]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Moved typedef to within public block to avoid compile error in VC++
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : src/msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initgdic
55
56 #define SWIG_name "gdic"
57
58 #include "helpers.h"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97 // Implementations of some alternate "constructors"
98
99 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
100 return new wxBitmap(width, height, depth);
101 }
102
103 static char** ConvertListOfStrings(PyObject* listOfStrings) {
104 char** cArray = NULL;
105 int count;
106
107 if (!PyList_Check(listOfStrings)) {
108 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
109 return NULL;
110 }
111 count = PyList_Size(listOfStrings);
112 cArray = new char*[count];
113
114 for(int x=0; x<count; x++) {
115 // TODO: Need some validation and error checking here
116 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
117 }
118 return cArray;
119 }
120
121
122 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
123 char** cArray = NULL;
124 wxBitmap* bmp;
125
126 cArray = ConvertListOfStrings(listOfStrings);
127 if (! cArray)
128 return NULL;
129 bmp = new wxBitmap(cArray);
130 delete [] cArray;
131 return bmp;
132 }
133
134
135 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
136 return new wxBitmap(icon);
137 }
138
139
140 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
141 return new wxBitmap(bits, width, height, depth);
142 }
143
144
145 // #ifdef __WXMSW__
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
150 // return NULL;
151 // }
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
153 // }
154 // #endif
155
156 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
157 return new wxMask(bitmap, colour);
158 }
159 // Implementations of some alternate "constructors"
160 wxIcon* wxEmptyIcon() {
161 return new wxIcon();
162 }
163
164 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
165 char** cArray = NULL;
166 wxIcon* icon;
167
168 cArray = ConvertListOfStrings(listOfStrings);
169 if (! cArray)
170 return NULL;
171 icon = new wxIcon(cArray);
172 delete [] cArray;
173 return icon;
174 }
175 // Alternate 'constructor'
176 wxCursor* wxPyStockCursor(int id) {
177 return new wxCursor(id);
178 }
179 // Alternate 'constructor'
180 wxColour* wxNamedColour(const wxString& colorName) {
181 return new wxColour(colorName);
182 }
183
184 class wxPyPen : public wxPen {
185 public:
186 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
187 : wxPen(colour, width, style)
188 { m_dash = NULL; }
189 ~wxPyPen() {
190 if (m_dash)
191 delete [] m_dash;
192 }
193
194 void SetDashes(int nb_dashes, const wxDash *dash) {
195 if (m_dash)
196 delete [] m_dash;
197 m_dash = new wxDash[nb_dashes];
198 for (int i=0; i<nb_dashes; i++) {
199 m_dash[i] = dash[i];
200 }
201 wxPen::SetDashes(nb_dashes, m_dash);
202 }
203
204 private:
205 wxDash* m_dash;
206 };
207
208 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
209 *x1 = dc->MinX();
210 *y1 = dc->MinY();
211 *x2 = dc->MaxX();
212 *y2 = dc->MaxY();
213 }
214 // Alternate 'constructor'
215 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
216 return new wxMemoryDC(oldDC);
217 }
218
219 #include <wx/metafile.h>
220
221 #if 0
222 extern wxFont * wxNORMAL_FONT;
223 extern wxFont * wxSMALL_FONT;
224 extern wxFont * wxITALIC_FONT;
225 extern wxFont * wxSWISS_FONT;
226 extern wxPen * wxRED_PEN;
227 extern wxPen * wxCYAN_PEN;
228 extern wxPen * wxGREEN_PEN;
229 extern wxPen * wxBLACK_PEN;
230 extern wxPen * wxWHITE_PEN;
231 extern wxPen * wxTRANSPARENT_PEN;
232 extern wxPen * wxBLACK_DASHED_PEN;
233 extern wxPen * wxGREY_PEN;
234 extern wxPen * wxMEDIUM_GREY_PEN;
235 extern wxPen * wxLIGHT_GREY_PEN;
236 extern wxBrush * wxBLUE_BRUSH;
237 extern wxBrush * wxGREEN_BRUSH;
238 extern wxBrush * wxWHITE_BRUSH;
239 extern wxBrush * wxBLACK_BRUSH;
240 extern wxBrush * wxTRANSPARENT_BRUSH;
241 extern wxBrush * wxCYAN_BRUSH;
242 extern wxBrush * wxRED_BRUSH;
243 extern wxBrush * wxGREY_BRUSH;
244 extern wxBrush * wxMEDIUM_GREY_BRUSH;
245 extern wxBrush * wxLIGHT_GREY_BRUSH;
246 extern wxColour * wxBLACK;
247 extern wxColour * wxWHITE;
248 extern wxColour * wxRED;
249 extern wxColour * wxBLUE;
250 extern wxColour * wxGREEN;
251 extern wxColour * wxCYAN;
252 extern wxColour * wxLIGHT_GREY;
253 extern wxCursor * wxSTANDARD_CURSOR;
254 extern wxCursor * wxHOURGLASS_CURSOR;
255 extern wxCursor * wxCROSS_CURSOR;
256 extern wxBitmap wxNullBitmap;
257 extern wxIcon wxNullIcon;
258 extern wxCursor wxNullCursor;
259 extern wxPen wxNullPen;
260 extern wxBrush wxNullBrush;
261 extern wxPalette wxNullPalette;
262 extern wxFont wxNullFont;
263 extern wxColour wxNullColour;
264 extern wxFontList * wxTheFontList;
265 extern wxPenList * wxThePenList;
266 extern wxBrushList * wxTheBrushList;
267 extern wxColourDatabase * wxTheColourDatabase;
268
269 #endif
270 #ifdef __cplusplus
271 extern "C" {
272 #endif
273 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
274 PyObject * _resultobj;
275 wxBitmap * _result;
276 int _arg0;
277 int _arg1;
278 int _arg2 = (int ) -1;
279 char *_kwnames[] = { "width","height","depth", NULL };
280 char _ptemp[128];
281
282 self = self;
283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
284 return NULL;
285 {
286 PyThreadState* __tstate = wxPyBeginAllowThreads();
287 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
288
289 wxPyEndAllowThreads(__tstate);
290 if (PyErr_Occurred()) return NULL;
291 } if (_result) {
292 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
293 _resultobj = Py_BuildValue("s",_ptemp);
294 } else {
295 Py_INCREF(Py_None);
296 _resultobj = Py_None;
297 }
298 return _resultobj;
299 }
300
301 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
302 PyObject * _resultobj;
303 wxBitmap * _result;
304 PyObject * _arg0;
305 PyObject * _obj0 = 0;
306 char *_kwnames[] = { "listOfStrings", NULL };
307 char _ptemp[128];
308
309 self = self;
310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
311 return NULL;
312 {
313 _arg0 = _obj0;
314 }
315 {
316 PyThreadState* __tstate = wxPyBeginAllowThreads();
317 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
318
319 wxPyEndAllowThreads(__tstate);
320 if (PyErr_Occurred()) return NULL;
321 } if (_result) {
322 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
323 _resultobj = Py_BuildValue("s",_ptemp);
324 } else {
325 Py_INCREF(Py_None);
326 _resultobj = Py_None;
327 }
328 return _resultobj;
329 }
330
331 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
332 PyObject * _resultobj;
333 wxBitmap * _result;
334 wxIcon * _arg0;
335 PyObject * _argo0 = 0;
336 char *_kwnames[] = { "icon", NULL };
337 char _ptemp[128];
338
339 self = self;
340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
341 return NULL;
342 if (_argo0) {
343 if (_argo0 == Py_None) { _arg0 = NULL; }
344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
346 return NULL;
347 }
348 }
349 {
350 PyThreadState* __tstate = wxPyBeginAllowThreads();
351 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
352
353 wxPyEndAllowThreads(__tstate);
354 if (PyErr_Occurred()) return NULL;
355 } if (_result) {
356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
357 _resultobj = Py_BuildValue("s",_ptemp);
358 } else {
359 Py_INCREF(Py_None);
360 _resultobj = Py_None;
361 }
362 return _resultobj;
363 }
364
365 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
366 PyObject * _resultobj;
367 wxBitmap * _result;
368 char * _arg0;
369 int _arg1;
370 int _arg2;
371 int _arg3 = (int ) 1;
372 char *_kwnames[] = { "bits","width","height","depth", NULL };
373 char _ptemp[128];
374
375 self = self;
376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
377 return NULL;
378 {
379 PyThreadState* __tstate = wxPyBeginAllowThreads();
380 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
381
382 wxPyEndAllowThreads(__tstate);
383 if (PyErr_Occurred()) return NULL;
384 } if (_result) {
385 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
386 _resultobj = Py_BuildValue("s",_ptemp);
387 } else {
388 Py_INCREF(Py_None);
389 _resultobj = Py_None;
390 }
391 return _resultobj;
392 }
393
394 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
395 PyObject * _resultobj;
396 wxMask * _result;
397 wxBitmap * _arg0;
398 wxColour * _arg1;
399 PyObject * _argo0 = 0;
400 wxColour temp;
401 PyObject * _obj1 = 0;
402 char *_kwnames[] = { "bitmap","colour", NULL };
403 char _ptemp[128];
404
405 self = self;
406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
407 return NULL;
408 if (_argo0) {
409 if (_argo0 == Py_None) { _arg0 = NULL; }
410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
412 return NULL;
413 }
414 }
415 {
416 _arg1 = &temp;
417 if (! wxColour_helper(_obj1, &_arg1))
418 return NULL;
419 }
420 {
421 PyThreadState* __tstate = wxPyBeginAllowThreads();
422 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
423
424 wxPyEndAllowThreads(__tstate);
425 if (PyErr_Occurred()) return NULL;
426 } if (_result) {
427 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
428 _resultobj = Py_BuildValue("s",_ptemp);
429 } else {
430 Py_INCREF(Py_None);
431 _resultobj = Py_None;
432 }
433 return _resultobj;
434 }
435
436 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
437 PyObject * _resultobj;
438 wxIcon * _result;
439 char *_kwnames[] = { NULL };
440 char _ptemp[128];
441
442 self = self;
443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
444 return NULL;
445 {
446 PyThreadState* __tstate = wxPyBeginAllowThreads();
447 _result = (wxIcon *)wxEmptyIcon();
448
449 wxPyEndAllowThreads(__tstate);
450 if (PyErr_Occurred()) return NULL;
451 } if (_result) {
452 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
453 _resultobj = Py_BuildValue("s",_ptemp);
454 } else {
455 Py_INCREF(Py_None);
456 _resultobj = Py_None;
457 }
458 return _resultobj;
459 }
460
461 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
462 PyObject * _resultobj;
463 wxIcon * _result;
464 PyObject * _arg0;
465 PyObject * _obj0 = 0;
466 char *_kwnames[] = { "listOfStrings", NULL };
467 char _ptemp[128];
468
469 self = self;
470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
471 return NULL;
472 {
473 _arg0 = _obj0;
474 }
475 {
476 PyThreadState* __tstate = wxPyBeginAllowThreads();
477 _result = (wxIcon *)wxIconFromXPMData(_arg0);
478
479 wxPyEndAllowThreads(__tstate);
480 if (PyErr_Occurred()) return NULL;
481 } if (_result) {
482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
483 _resultobj = Py_BuildValue("s",_ptemp);
484 } else {
485 Py_INCREF(Py_None);
486 _resultobj = Py_None;
487 }
488 return _resultobj;
489 }
490
491 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
492 PyObject * _resultobj;
493 wxCursor * _result;
494 int _arg0;
495 char *_kwnames[] = { "id", NULL };
496 char _ptemp[128];
497
498 self = self;
499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
500 return NULL;
501 {
502 PyThreadState* __tstate = wxPyBeginAllowThreads();
503 _result = (wxCursor *)wxPyStockCursor(_arg0);
504
505 wxPyEndAllowThreads(__tstate);
506 if (PyErr_Occurred()) return NULL;
507 } if (_result) {
508 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
509 _resultobj = Py_BuildValue("s",_ptemp);
510 } else {
511 Py_INCREF(Py_None);
512 _resultobj = Py_None;
513 }
514 return _resultobj;
515 }
516
517 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
518 PyObject * _resultobj;
519 wxColour * _result;
520 wxString * _arg0;
521 PyObject * _obj0 = 0;
522 char *_kwnames[] = { "colorName", NULL };
523 char _ptemp[128];
524
525 self = self;
526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
527 return NULL;
528 {
529 #if PYTHON_API_VERSION >= 1009
530 char* tmpPtr; int tmpSize;
531 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
533 return NULL;
534 }
535 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
536 return NULL;
537 _arg0 = new wxString(tmpPtr, tmpSize);
538 #else
539 if (!PyString_Check(_obj0)) {
540 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
541 return NULL;
542 }
543 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
544 #endif
545 }
546 {
547 PyThreadState* __tstate = wxPyBeginAllowThreads();
548 _result = (wxColour *)wxNamedColour(*_arg0);
549
550 wxPyEndAllowThreads(__tstate);
551 if (PyErr_Occurred()) return NULL;
552 } if (_result) {
553 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
554 _resultobj = Py_BuildValue("s",_ptemp);
555 } else {
556 Py_INCREF(Py_None);
557 _resultobj = Py_None;
558 }
559 {
560 if (_obj0)
561 delete _arg0;
562 }
563 return _resultobj;
564 }
565
566 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
567 PyObject * _resultobj;
568 wxMemoryDC * _result;
569 wxDC * _arg0;
570 PyObject * _argo0 = 0;
571 char *_kwnames[] = { "oldDC", NULL };
572 char _ptemp[128];
573
574 self = self;
575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
576 return NULL;
577 if (_argo0) {
578 if (_argo0 == Py_None) { _arg0 = NULL; }
579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
581 return NULL;
582 }
583 }
584 {
585 PyThreadState* __tstate = wxPyBeginAllowThreads();
586 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
587
588 wxPyEndAllowThreads(__tstate);
589 if (PyErr_Occurred()) return NULL;
590 } if (_result) {
591 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
592 _resultobj = Py_BuildValue("s",_ptemp);
593 } else {
594 Py_INCREF(Py_None);
595 _resultobj = Py_None;
596 }
597 return _resultobj;
598 }
599
600 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
601
602 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
603 return 1;
604 }
605
606 static PyObject *_wrap_wxNORMAL_FONT_get() {
607 PyObject * pyobj;
608 char ptemp[128];
609
610 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
611 pyobj = PyString_FromString(ptemp);
612 return pyobj;
613 }
614
615 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
616
617 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
618 return 1;
619 }
620
621 static PyObject *_wrap_wxSMALL_FONT_get() {
622 PyObject * pyobj;
623 char ptemp[128];
624
625 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
626 pyobj = PyString_FromString(ptemp);
627 return pyobj;
628 }
629
630 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
631
632 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
633 return 1;
634 }
635
636 static PyObject *_wrap_wxITALIC_FONT_get() {
637 PyObject * pyobj;
638 char ptemp[128];
639
640 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
641 pyobj = PyString_FromString(ptemp);
642 return pyobj;
643 }
644
645 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
646
647 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
648 return 1;
649 }
650
651 static PyObject *_wrap_wxSWISS_FONT_get() {
652 PyObject * pyobj;
653 char ptemp[128];
654
655 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
656 pyobj = PyString_FromString(ptemp);
657 return pyobj;
658 }
659
660 static int _wrap_wxRED_PEN_set(PyObject *val) {
661
662 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
663 return 1;
664 }
665
666 static PyObject *_wrap_wxRED_PEN_get() {
667 PyObject * pyobj;
668 char ptemp[128];
669
670 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
671 pyobj = PyString_FromString(ptemp);
672 return pyobj;
673 }
674
675 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
676
677 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
678 return 1;
679 }
680
681 static PyObject *_wrap_wxCYAN_PEN_get() {
682 PyObject * pyobj;
683 char ptemp[128];
684
685 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
686 pyobj = PyString_FromString(ptemp);
687 return pyobj;
688 }
689
690 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
691
692 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
693 return 1;
694 }
695
696 static PyObject *_wrap_wxGREEN_PEN_get() {
697 PyObject * pyobj;
698 char ptemp[128];
699
700 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
701 pyobj = PyString_FromString(ptemp);
702 return pyobj;
703 }
704
705 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
706
707 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
708 return 1;
709 }
710
711 static PyObject *_wrap_wxBLACK_PEN_get() {
712 PyObject * pyobj;
713 char ptemp[128];
714
715 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
716 pyobj = PyString_FromString(ptemp);
717 return pyobj;
718 }
719
720 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
721
722 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
723 return 1;
724 }
725
726 static PyObject *_wrap_wxWHITE_PEN_get() {
727 PyObject * pyobj;
728 char ptemp[128];
729
730 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
731 pyobj = PyString_FromString(ptemp);
732 return pyobj;
733 }
734
735 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
736
737 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
738 return 1;
739 }
740
741 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
742 PyObject * pyobj;
743 char ptemp[128];
744
745 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
746 pyobj = PyString_FromString(ptemp);
747 return pyobj;
748 }
749
750 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
751
752 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
753 return 1;
754 }
755
756 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
757 PyObject * pyobj;
758 char ptemp[128];
759
760 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
761 pyobj = PyString_FromString(ptemp);
762 return pyobj;
763 }
764
765 static int _wrap_wxGREY_PEN_set(PyObject *val) {
766
767 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
768 return 1;
769 }
770
771 static PyObject *_wrap_wxGREY_PEN_get() {
772 PyObject * pyobj;
773 char ptemp[128];
774
775 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
776 pyobj = PyString_FromString(ptemp);
777 return pyobj;
778 }
779
780 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
781
782 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
783 return 1;
784 }
785
786 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
787 PyObject * pyobj;
788 char ptemp[128];
789
790 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
791 pyobj = PyString_FromString(ptemp);
792 return pyobj;
793 }
794
795 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
796
797 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
798 return 1;
799 }
800
801 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
802 PyObject * pyobj;
803 char ptemp[128];
804
805 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
806 pyobj = PyString_FromString(ptemp);
807 return pyobj;
808 }
809
810 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
811
812 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
813 return 1;
814 }
815
816 static PyObject *_wrap_wxBLUE_BRUSH_get() {
817 PyObject * pyobj;
818 char ptemp[128];
819
820 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
821 pyobj = PyString_FromString(ptemp);
822 return pyobj;
823 }
824
825 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
826
827 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
828 return 1;
829 }
830
831 static PyObject *_wrap_wxGREEN_BRUSH_get() {
832 PyObject * pyobj;
833 char ptemp[128];
834
835 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
836 pyobj = PyString_FromString(ptemp);
837 return pyobj;
838 }
839
840 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
841
842 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
843 return 1;
844 }
845
846 static PyObject *_wrap_wxWHITE_BRUSH_get() {
847 PyObject * pyobj;
848 char ptemp[128];
849
850 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
851 pyobj = PyString_FromString(ptemp);
852 return pyobj;
853 }
854
855 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
856
857 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
858 return 1;
859 }
860
861 static PyObject *_wrap_wxBLACK_BRUSH_get() {
862 PyObject * pyobj;
863 char ptemp[128];
864
865 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
866 pyobj = PyString_FromString(ptemp);
867 return pyobj;
868 }
869
870 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
871
872 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
873 return 1;
874 }
875
876 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
877 PyObject * pyobj;
878 char ptemp[128];
879
880 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
881 pyobj = PyString_FromString(ptemp);
882 return pyobj;
883 }
884
885 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
886
887 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
888 return 1;
889 }
890
891 static PyObject *_wrap_wxCYAN_BRUSH_get() {
892 PyObject * pyobj;
893 char ptemp[128];
894
895 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
896 pyobj = PyString_FromString(ptemp);
897 return pyobj;
898 }
899
900 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
901
902 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
903 return 1;
904 }
905
906 static PyObject *_wrap_wxRED_BRUSH_get() {
907 PyObject * pyobj;
908 char ptemp[128];
909
910 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
911 pyobj = PyString_FromString(ptemp);
912 return pyobj;
913 }
914
915 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
916
917 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
918 return 1;
919 }
920
921 static PyObject *_wrap_wxGREY_BRUSH_get() {
922 PyObject * pyobj;
923 char ptemp[128];
924
925 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
926 pyobj = PyString_FromString(ptemp);
927 return pyobj;
928 }
929
930 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
931
932 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
933 return 1;
934 }
935
936 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
937 PyObject * pyobj;
938 char ptemp[128];
939
940 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
941 pyobj = PyString_FromString(ptemp);
942 return pyobj;
943 }
944
945 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
946
947 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
948 return 1;
949 }
950
951 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
952 PyObject * pyobj;
953 char ptemp[128];
954
955 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
956 pyobj = PyString_FromString(ptemp);
957 return pyobj;
958 }
959
960 static int _wrap_wxBLACK_set(PyObject *val) {
961
962 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
963 return 1;
964 }
965
966 static PyObject *_wrap_wxBLACK_get() {
967 PyObject * pyobj;
968 char ptemp[128];
969
970 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
971 pyobj = PyString_FromString(ptemp);
972 return pyobj;
973 }
974
975 static int _wrap_wxWHITE_set(PyObject *val) {
976
977 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
978 return 1;
979 }
980
981 static PyObject *_wrap_wxWHITE_get() {
982 PyObject * pyobj;
983 char ptemp[128];
984
985 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
986 pyobj = PyString_FromString(ptemp);
987 return pyobj;
988 }
989
990 static int _wrap_wxRED_set(PyObject *val) {
991
992 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
993 return 1;
994 }
995
996 static PyObject *_wrap_wxRED_get() {
997 PyObject * pyobj;
998 char ptemp[128];
999
1000 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1001 pyobj = PyString_FromString(ptemp);
1002 return pyobj;
1003 }
1004
1005 static int _wrap_wxBLUE_set(PyObject *val) {
1006
1007 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1008 return 1;
1009 }
1010
1011 static PyObject *_wrap_wxBLUE_get() {
1012 PyObject * pyobj;
1013 char ptemp[128];
1014
1015 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1016 pyobj = PyString_FromString(ptemp);
1017 return pyobj;
1018 }
1019
1020 static int _wrap_wxGREEN_set(PyObject *val) {
1021
1022 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1023 return 1;
1024 }
1025
1026 static PyObject *_wrap_wxGREEN_get() {
1027 PyObject * pyobj;
1028 char ptemp[128];
1029
1030 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1031 pyobj = PyString_FromString(ptemp);
1032 return pyobj;
1033 }
1034
1035 static int _wrap_wxCYAN_set(PyObject *val) {
1036
1037 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1038 return 1;
1039 }
1040
1041 static PyObject *_wrap_wxCYAN_get() {
1042 PyObject * pyobj;
1043 char ptemp[128];
1044
1045 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1046 pyobj = PyString_FromString(ptemp);
1047 return pyobj;
1048 }
1049
1050 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1051
1052 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1053 return 1;
1054 }
1055
1056 static PyObject *_wrap_wxLIGHT_GREY_get() {
1057 PyObject * pyobj;
1058 char ptemp[128];
1059
1060 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1061 pyobj = PyString_FromString(ptemp);
1062 return pyobj;
1063 }
1064
1065 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1066
1067 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1068 return 1;
1069 }
1070
1071 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1072 PyObject * pyobj;
1073 char ptemp[128];
1074
1075 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1076 pyobj = PyString_FromString(ptemp);
1077 return pyobj;
1078 }
1079
1080 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1081
1082 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1083 return 1;
1084 }
1085
1086 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1087 PyObject * pyobj;
1088 char ptemp[128];
1089
1090 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1091 pyobj = PyString_FromString(ptemp);
1092 return pyobj;
1093 }
1094
1095 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1096
1097 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1098 return 1;
1099 }
1100
1101 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1102 PyObject * pyobj;
1103 char ptemp[128];
1104
1105 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1106 pyobj = PyString_FromString(ptemp);
1107 return pyobj;
1108 }
1109
1110 static int _wrap_wxNullBitmap_set(PyObject *val) {
1111
1112 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1113 return 1;
1114 }
1115
1116 static PyObject *_wrap_wxNullBitmap_get() {
1117 PyObject * pyobj;
1118 char ptemp[128];
1119
1120 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1121 pyobj = PyString_FromString(ptemp);
1122 return pyobj;
1123 }
1124
1125 static int _wrap_wxNullIcon_set(PyObject *val) {
1126
1127 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1128 return 1;
1129 }
1130
1131 static PyObject *_wrap_wxNullIcon_get() {
1132 PyObject * pyobj;
1133 char ptemp[128];
1134
1135 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1136 pyobj = PyString_FromString(ptemp);
1137 return pyobj;
1138 }
1139
1140 static int _wrap_wxNullCursor_set(PyObject *val) {
1141
1142 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1143 return 1;
1144 }
1145
1146 static PyObject *_wrap_wxNullCursor_get() {
1147 PyObject * pyobj;
1148 char ptemp[128];
1149
1150 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1151 pyobj = PyString_FromString(ptemp);
1152 return pyobj;
1153 }
1154
1155 static int _wrap_wxNullPen_set(PyObject *val) {
1156
1157 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1158 return 1;
1159 }
1160
1161 static PyObject *_wrap_wxNullPen_get() {
1162 PyObject * pyobj;
1163 char ptemp[128];
1164
1165 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1166 pyobj = PyString_FromString(ptemp);
1167 return pyobj;
1168 }
1169
1170 static int _wrap_wxNullBrush_set(PyObject *val) {
1171
1172 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1173 return 1;
1174 }
1175
1176 static PyObject *_wrap_wxNullBrush_get() {
1177 PyObject * pyobj;
1178 char ptemp[128];
1179
1180 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1181 pyobj = PyString_FromString(ptemp);
1182 return pyobj;
1183 }
1184
1185 static int _wrap_wxNullPalette_set(PyObject *val) {
1186
1187 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1188 return 1;
1189 }
1190
1191 static PyObject *_wrap_wxNullPalette_get() {
1192 PyObject * pyobj;
1193 char ptemp[128];
1194
1195 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1196 pyobj = PyString_FromString(ptemp);
1197 return pyobj;
1198 }
1199
1200 static int _wrap_wxNullFont_set(PyObject *val) {
1201
1202 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1203 return 1;
1204 }
1205
1206 static PyObject *_wrap_wxNullFont_get() {
1207 PyObject * pyobj;
1208 char ptemp[128];
1209
1210 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1211 pyobj = PyString_FromString(ptemp);
1212 return pyobj;
1213 }
1214
1215 static int _wrap_wxNullColour_set(PyObject *val) {
1216
1217 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1218 return 1;
1219 }
1220
1221 static PyObject *_wrap_wxNullColour_get() {
1222 PyObject * pyobj;
1223 char ptemp[128];
1224
1225 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1226 pyobj = PyString_FromString(ptemp);
1227 return pyobj;
1228 }
1229
1230 static int _wrap_wxTheFontList_set(PyObject *val) {
1231
1232 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1233 return 1;
1234 }
1235
1236 static PyObject *_wrap_wxTheFontList_get() {
1237 PyObject * pyobj;
1238 char ptemp[128];
1239
1240 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1241 pyobj = PyString_FromString(ptemp);
1242 return pyobj;
1243 }
1244
1245 static int _wrap_wxThePenList_set(PyObject *val) {
1246
1247 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1248 return 1;
1249 }
1250
1251 static PyObject *_wrap_wxThePenList_get() {
1252 PyObject * pyobj;
1253 char ptemp[128];
1254
1255 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1256 pyobj = PyString_FromString(ptemp);
1257 return pyobj;
1258 }
1259
1260 static int _wrap_wxTheBrushList_set(PyObject *val) {
1261
1262 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1263 return 1;
1264 }
1265
1266 static PyObject *_wrap_wxTheBrushList_get() {
1267 PyObject * pyobj;
1268 char ptemp[128];
1269
1270 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1271 pyobj = PyString_FromString(ptemp);
1272 return pyobj;
1273 }
1274
1275 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1276
1277 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1278 return 1;
1279 }
1280
1281 static PyObject *_wrap_wxTheColourDatabase_get() {
1282 PyObject * pyobj;
1283 char ptemp[128];
1284
1285 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1286 pyobj = PyString_FromString(ptemp);
1287 return pyobj;
1288 }
1289
1290 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1291 wxGDIObject *src;
1292 wxObject *dest;
1293 src = (wxGDIObject *) ptr;
1294 dest = (wxObject *) src;
1295 return (void *) dest;
1296 }
1297
1298 #define new_wxGDIObject() (new wxGDIObject())
1299 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject * _resultobj;
1301 wxGDIObject * _result;
1302 char *_kwnames[] = { NULL };
1303 char _ptemp[128];
1304
1305 self = self;
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1307 return NULL;
1308 {
1309 PyThreadState* __tstate = wxPyBeginAllowThreads();
1310 _result = (wxGDIObject *)new_wxGDIObject();
1311
1312 wxPyEndAllowThreads(__tstate);
1313 if (PyErr_Occurred()) return NULL;
1314 } if (_result) {
1315 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1316 _resultobj = Py_BuildValue("s",_ptemp);
1317 } else {
1318 Py_INCREF(Py_None);
1319 _resultobj = Py_None;
1320 }
1321 return _resultobj;
1322 }
1323
1324 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1325 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject * _resultobj;
1327 wxGDIObject * _arg0;
1328 PyObject * _argo0 = 0;
1329 char *_kwnames[] = { "self", NULL };
1330
1331 self = self;
1332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1333 return NULL;
1334 if (_argo0) {
1335 if (_argo0 == Py_None) { _arg0 = NULL; }
1336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1338 return NULL;
1339 }
1340 }
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 delete_wxGDIObject(_arg0);
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) return NULL;
1347 } Py_INCREF(Py_None);
1348 _resultobj = Py_None;
1349 return _resultobj;
1350 }
1351
1352 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1353 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1354 PyObject * _resultobj;
1355 bool _result;
1356 wxGDIObject * _arg0;
1357 PyObject * _argo0 = 0;
1358 char *_kwnames[] = { "self", NULL };
1359
1360 self = self;
1361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1362 return NULL;
1363 if (_argo0) {
1364 if (_argo0 == Py_None) { _arg0 = NULL; }
1365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1367 return NULL;
1368 }
1369 }
1370 {
1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
1372 _result = (bool )wxGDIObject_GetVisible(_arg0);
1373
1374 wxPyEndAllowThreads(__tstate);
1375 if (PyErr_Occurred()) return NULL;
1376 } _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378 }
1379
1380 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1381 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject * _resultobj;
1383 wxGDIObject * _arg0;
1384 bool _arg1;
1385 PyObject * _argo0 = 0;
1386 int tempbool1;
1387 char *_kwnames[] = { "self","visible", NULL };
1388
1389 self = self;
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1391 return NULL;
1392 if (_argo0) {
1393 if (_argo0 == Py_None) { _arg0 = NULL; }
1394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1396 return NULL;
1397 }
1398 }
1399 _arg1 = (bool ) tempbool1;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 wxGDIObject_SetVisible(_arg0,_arg1);
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) return NULL;
1406 } Py_INCREF(Py_None);
1407 _resultobj = Py_None;
1408 return _resultobj;
1409 }
1410
1411 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1412 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 bool _result;
1415 wxGDIObject * _arg0;
1416 PyObject * _argo0 = 0;
1417 char *_kwnames[] = { "self", NULL };
1418
1419 self = self;
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1421 return NULL;
1422 if (_argo0) {
1423 if (_argo0 == Py_None) { _arg0 = NULL; }
1424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1426 return NULL;
1427 }
1428 }
1429 {
1430 PyThreadState* __tstate = wxPyBeginAllowThreads();
1431 _result = (bool )wxGDIObject_IsNull(_arg0);
1432
1433 wxPyEndAllowThreads(__tstate);
1434 if (PyErr_Occurred()) return NULL;
1435 } _resultobj = Py_BuildValue("i",_result);
1436 return _resultobj;
1437 }
1438
1439 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1440 wxBitmap *src;
1441 wxGDIObject *dest;
1442 src = (wxBitmap *) ptr;
1443 dest = (wxGDIObject *) src;
1444 return (void *) dest;
1445 }
1446
1447 static void *SwigwxBitmapTowxObject(void *ptr) {
1448 wxBitmap *src;
1449 wxObject *dest;
1450 src = (wxBitmap *) ptr;
1451 dest = (wxObject *) src;
1452 return (void *) dest;
1453 }
1454
1455 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1456 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject * _resultobj;
1458 wxBitmap * _result;
1459 wxString * _arg0;
1460 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1461 PyObject * _obj0 = 0;
1462 char *_kwnames[] = { "name","type", NULL };
1463 char _ptemp[128];
1464
1465 self = self;
1466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1467 return NULL;
1468 {
1469 #if PYTHON_API_VERSION >= 1009
1470 char* tmpPtr; int tmpSize;
1471 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1472 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1473 return NULL;
1474 }
1475 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1476 return NULL;
1477 _arg0 = new wxString(tmpPtr, tmpSize);
1478 #else
1479 if (!PyString_Check(_obj0)) {
1480 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1481 return NULL;
1482 }
1483 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1484 #endif
1485 }
1486 {
1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
1488 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1489
1490 wxPyEndAllowThreads(__tstate);
1491 if (PyErr_Occurred()) return NULL;
1492 } if (_result) {
1493 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1494 _resultobj = Py_BuildValue("s",_ptemp);
1495 } else {
1496 Py_INCREF(Py_None);
1497 _resultobj = Py_None;
1498 }
1499 {
1500 if (_obj0)
1501 delete _arg0;
1502 }
1503 return _resultobj;
1504 }
1505
1506 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1507 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1508 PyObject * _resultobj;
1509 wxBitmap * _arg0;
1510 PyObject * _argo0 = 0;
1511 char *_kwnames[] = { "self", NULL };
1512
1513 self = self;
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1515 return NULL;
1516 if (_argo0) {
1517 if (_argo0 == Py_None) { _arg0 = NULL; }
1518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1520 return NULL;
1521 }
1522 }
1523 {
1524 PyThreadState* __tstate = wxPyBeginAllowThreads();
1525 delete_wxBitmap(_arg0);
1526
1527 wxPyEndAllowThreads(__tstate);
1528 if (PyErr_Occurred()) return NULL;
1529 } Py_INCREF(Py_None);
1530 _resultobj = Py_None;
1531 return _resultobj;
1532 }
1533
1534 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1535 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject * _resultobj;
1537 wxPalette * _result;
1538 wxBitmap * _arg0;
1539 PyObject * _argo0 = 0;
1540 char *_kwnames[] = { "self", NULL };
1541 char _ptemp[128];
1542
1543 self = self;
1544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1545 return NULL;
1546 if (_argo0) {
1547 if (_argo0 == Py_None) { _arg0 = NULL; }
1548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1550 return NULL;
1551 }
1552 }
1553 {
1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
1555 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1556
1557 wxPyEndAllowThreads(__tstate);
1558 if (PyErr_Occurred()) return NULL;
1559 } if (_result) {
1560 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1561 _resultobj = Py_BuildValue("s",_ptemp);
1562 } else {
1563 Py_INCREF(Py_None);
1564 _resultobj = Py_None;
1565 }
1566 return _resultobj;
1567 }
1568
1569 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1570 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject * _resultobj;
1572 wxMask * _result;
1573 wxBitmap * _arg0;
1574 PyObject * _argo0 = 0;
1575 char *_kwnames[] = { "self", NULL };
1576 char _ptemp[128];
1577
1578 self = self;
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1580 return NULL;
1581 if (_argo0) {
1582 if (_argo0 == Py_None) { _arg0 = NULL; }
1583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1585 return NULL;
1586 }
1587 }
1588 {
1589 PyThreadState* __tstate = wxPyBeginAllowThreads();
1590 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1591
1592 wxPyEndAllowThreads(__tstate);
1593 if (PyErr_Occurred()) return NULL;
1594 } if (_result) {
1595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1596 _resultobj = Py_BuildValue("s",_ptemp);
1597 } else {
1598 Py_INCREF(Py_None);
1599 _resultobj = Py_None;
1600 }
1601 return _resultobj;
1602 }
1603
1604 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1605 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1606 PyObject * _resultobj;
1607 bool _result;
1608 wxBitmap * _arg0;
1609 wxString * _arg1;
1610 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1611 PyObject * _argo0 = 0;
1612 PyObject * _obj1 = 0;
1613 char *_kwnames[] = { "self","name","type", NULL };
1614
1615 self = self;
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1617 return NULL;
1618 if (_argo0) {
1619 if (_argo0 == Py_None) { _arg0 = NULL; }
1620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1622 return NULL;
1623 }
1624 }
1625 {
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr; int tmpSize;
1628 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1630 return NULL;
1631 }
1632 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1633 return NULL;
1634 _arg1 = new wxString(tmpPtr, tmpSize);
1635 #else
1636 if (!PyString_Check(_obj1)) {
1637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1638 return NULL;
1639 }
1640 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1641 #endif
1642 }
1643 {
1644 PyThreadState* __tstate = wxPyBeginAllowThreads();
1645 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1646
1647 wxPyEndAllowThreads(__tstate);
1648 if (PyErr_Occurred()) return NULL;
1649 } _resultobj = Py_BuildValue("i",_result);
1650 {
1651 if (_obj1)
1652 delete _arg1;
1653 }
1654 return _resultobj;
1655 }
1656
1657 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1658 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1659 PyObject * _resultobj;
1660 bool _result;
1661 wxBitmap * _arg0;
1662 wxString * _arg1;
1663 wxBitmapType _arg2;
1664 wxPalette * _arg3 = (wxPalette *) NULL;
1665 PyObject * _argo0 = 0;
1666 PyObject * _obj1 = 0;
1667 PyObject * _argo3 = 0;
1668 char *_kwnames[] = { "self","name","type","palette", NULL };
1669
1670 self = self;
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1672 return NULL;
1673 if (_argo0) {
1674 if (_argo0 == Py_None) { _arg0 = NULL; }
1675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1677 return NULL;
1678 }
1679 }
1680 {
1681 #if PYTHON_API_VERSION >= 1009
1682 char* tmpPtr; int tmpSize;
1683 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1684 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1685 return NULL;
1686 }
1687 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1688 return NULL;
1689 _arg1 = new wxString(tmpPtr, tmpSize);
1690 #else
1691 if (!PyString_Check(_obj1)) {
1692 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1693 return NULL;
1694 }
1695 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1696 #endif
1697 }
1698 if (_argo3) {
1699 if (_argo3 == Py_None) { _arg3 = NULL; }
1700 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1701 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1702 return NULL;
1703 }
1704 }
1705 {
1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
1707 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1708
1709 wxPyEndAllowThreads(__tstate);
1710 if (PyErr_Occurred()) return NULL;
1711 } _resultobj = Py_BuildValue("i",_result);
1712 {
1713 if (_obj1)
1714 delete _arg1;
1715 }
1716 return _resultobj;
1717 }
1718
1719 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1720 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1721 PyObject * _resultobj;
1722 wxBitmap * _arg0;
1723 wxMask * _arg1;
1724 PyObject * _argo0 = 0;
1725 PyObject * _argo1 = 0;
1726 char *_kwnames[] = { "self","mask", NULL };
1727
1728 self = self;
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1730 return NULL;
1731 if (_argo0) {
1732 if (_argo0 == Py_None) { _arg0 = NULL; }
1733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1735 return NULL;
1736 }
1737 }
1738 if (_argo1) {
1739 if (_argo1 == Py_None) { _arg1 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1742 return NULL;
1743 }
1744 }
1745 {
1746 PyThreadState* __tstate = wxPyBeginAllowThreads();
1747 wxBitmap_SetMask(_arg0,_arg1);
1748
1749 wxPyEndAllowThreads(__tstate);
1750 if (PyErr_Occurred()) return NULL;
1751 } Py_INCREF(Py_None);
1752 _resultobj = Py_None;
1753 return _resultobj;
1754 }
1755
1756 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1757 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject * _resultobj;
1759 wxBitmap * _arg0;
1760 wxPalette * _arg1;
1761 PyObject * _argo0 = 0;
1762 PyObject * _argo1 = 0;
1763 char *_kwnames[] = { "self","palette", NULL };
1764
1765 self = self;
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1767 return NULL;
1768 if (_argo0) {
1769 if (_argo0 == Py_None) { _arg0 = NULL; }
1770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1772 return NULL;
1773 }
1774 }
1775 if (_argo1) {
1776 if (_argo1 == Py_None) { _arg1 = NULL; }
1777 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1778 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1779 return NULL;
1780 }
1781 }
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 wxBitmap_SetPalette(_arg0,*_arg1);
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) return NULL;
1788 } Py_INCREF(Py_None);
1789 _resultobj = Py_None;
1790 return _resultobj;
1791 }
1792
1793 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1794 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject * _resultobj;
1796 long _result;
1797 wxBitmap * _arg0;
1798 PyObject * _argo0 = 0;
1799 char *_kwnames[] = { "self", NULL };
1800
1801 self = self;
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1803 return NULL;
1804 if (_argo0) {
1805 if (_argo0 == Py_None) { _arg0 = NULL; }
1806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1808 return NULL;
1809 }
1810 }
1811 {
1812 PyThreadState* __tstate = wxPyBeginAllowThreads();
1813 _result = (long )wxBitmap_GetHandle(_arg0);
1814
1815 wxPyEndAllowThreads(__tstate);
1816 if (PyErr_Occurred()) return NULL;
1817 } _resultobj = Py_BuildValue("l",_result);
1818 return _resultobj;
1819 }
1820
1821 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1822 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1823 PyObject * _resultobj;
1824 wxBitmap * _arg0;
1825 long _arg1;
1826 PyObject * _argo0 = 0;
1827 char *_kwnames[] = { "self","handle", NULL };
1828
1829 self = self;
1830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1831 return NULL;
1832 if (_argo0) {
1833 if (_argo0 == Py_None) { _arg0 = NULL; }
1834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1836 return NULL;
1837 }
1838 }
1839 {
1840 PyThreadState* __tstate = wxPyBeginAllowThreads();
1841 wxBitmap_SetHandle(_arg0,_arg1);
1842
1843 wxPyEndAllowThreads(__tstate);
1844 if (PyErr_Occurred()) return NULL;
1845 } Py_INCREF(Py_None);
1846 _resultobj = Py_None;
1847 return _resultobj;
1848 }
1849
1850 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1851 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject * _resultobj;
1853 bool _result;
1854 wxBitmap * _arg0;
1855 PyObject * _argo0 = 0;
1856 char *_kwnames[] = { "self", NULL };
1857
1858 self = self;
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1860 return NULL;
1861 if (_argo0) {
1862 if (_argo0 == Py_None) { _arg0 = NULL; }
1863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1865 return NULL;
1866 }
1867 }
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 _result = (bool )wxBitmap_Ok(_arg0);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) return NULL;
1874 } _resultobj = Py_BuildValue("i",_result);
1875 return _resultobj;
1876 }
1877
1878 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1879 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1880 PyObject * _resultobj;
1881 int _result;
1882 wxBitmap * _arg0;
1883 PyObject * _argo0 = 0;
1884 char *_kwnames[] = { "self", NULL };
1885
1886 self = self;
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1888 return NULL;
1889 if (_argo0) {
1890 if (_argo0 == Py_None) { _arg0 = NULL; }
1891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1893 return NULL;
1894 }
1895 }
1896 {
1897 PyThreadState* __tstate = wxPyBeginAllowThreads();
1898 _result = (int )wxBitmap_GetWidth(_arg0);
1899
1900 wxPyEndAllowThreads(__tstate);
1901 if (PyErr_Occurred()) return NULL;
1902 } _resultobj = Py_BuildValue("i",_result);
1903 return _resultobj;
1904 }
1905
1906 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1907 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject * _resultobj;
1909 int _result;
1910 wxBitmap * _arg0;
1911 PyObject * _argo0 = 0;
1912 char *_kwnames[] = { "self", NULL };
1913
1914 self = self;
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1916 return NULL;
1917 if (_argo0) {
1918 if (_argo0 == Py_None) { _arg0 = NULL; }
1919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1921 return NULL;
1922 }
1923 }
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 _result = (int )wxBitmap_GetHeight(_arg0);
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) return NULL;
1930 } _resultobj = Py_BuildValue("i",_result);
1931 return _resultobj;
1932 }
1933
1934 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1935 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1936 PyObject * _resultobj;
1937 int _result;
1938 wxBitmap * _arg0;
1939 PyObject * _argo0 = 0;
1940 char *_kwnames[] = { "self", NULL };
1941
1942 self = self;
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1944 return NULL;
1945 if (_argo0) {
1946 if (_argo0 == Py_None) { _arg0 = NULL; }
1947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1949 return NULL;
1950 }
1951 }
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 _result = (int )wxBitmap_GetDepth(_arg0);
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) return NULL;
1958 } _resultobj = Py_BuildValue("i",_result);
1959 return _resultobj;
1960 }
1961
1962 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1963 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1964 PyObject * _resultobj;
1965 wxBitmap * _arg0;
1966 int _arg1;
1967 PyObject * _argo0 = 0;
1968 char *_kwnames[] = { "self","w", NULL };
1969
1970 self = self;
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1972 return NULL;
1973 if (_argo0) {
1974 if (_argo0 == Py_None) { _arg0 = NULL; }
1975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1977 return NULL;
1978 }
1979 }
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 wxBitmap_SetWidth(_arg0,_arg1);
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) return NULL;
1986 } Py_INCREF(Py_None);
1987 _resultobj = Py_None;
1988 return _resultobj;
1989 }
1990
1991 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1992 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1993 PyObject * _resultobj;
1994 wxBitmap * _arg0;
1995 int _arg1;
1996 PyObject * _argo0 = 0;
1997 char *_kwnames[] = { "self","h", NULL };
1998
1999 self = self;
2000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2001 return NULL;
2002 if (_argo0) {
2003 if (_argo0 == Py_None) { _arg0 = NULL; }
2004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2006 return NULL;
2007 }
2008 }
2009 {
2010 PyThreadState* __tstate = wxPyBeginAllowThreads();
2011 wxBitmap_SetHeight(_arg0,_arg1);
2012
2013 wxPyEndAllowThreads(__tstate);
2014 if (PyErr_Occurred()) return NULL;
2015 } Py_INCREF(Py_None);
2016 _resultobj = Py_None;
2017 return _resultobj;
2018 }
2019
2020 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2021 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject * _resultobj;
2023 wxBitmap * _arg0;
2024 int _arg1;
2025 PyObject * _argo0 = 0;
2026 char *_kwnames[] = { "self","d", NULL };
2027
2028 self = self;
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2030 return NULL;
2031 if (_argo0) {
2032 if (_argo0 == Py_None) { _arg0 = NULL; }
2033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2035 return NULL;
2036 }
2037 }
2038 {
2039 PyThreadState* __tstate = wxPyBeginAllowThreads();
2040 wxBitmap_SetDepth(_arg0,_arg1);
2041
2042 wxPyEndAllowThreads(__tstate);
2043 if (PyErr_Occurred()) return NULL;
2044 } Py_INCREF(Py_None);
2045 _resultobj = Py_None;
2046 return _resultobj;
2047 }
2048
2049 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2050 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject * _resultobj;
2052 wxBitmap * _arg0;
2053 wxSize * _arg1;
2054 PyObject * _argo0 = 0;
2055 wxSize temp;
2056 PyObject * _obj1 = 0;
2057 char *_kwnames[] = { "self","size", NULL };
2058
2059 self = self;
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2061 return NULL;
2062 if (_argo0) {
2063 if (_argo0 == Py_None) { _arg0 = NULL; }
2064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2066 return NULL;
2067 }
2068 }
2069 {
2070 _arg1 = &temp;
2071 if (! wxSize_helper(_obj1, &_arg1))
2072 return NULL;
2073 }
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 wxBitmap_SetSize(_arg0,*_arg1);
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) return NULL;
2080 } Py_INCREF(Py_None);
2081 _resultobj = Py_None;
2082 return _resultobj;
2083 }
2084
2085 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2086 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject * _resultobj;
2088 wxBitmap * _result;
2089 wxBitmap * _arg0;
2090 wxRect * _arg1;
2091 PyObject * _argo0 = 0;
2092 wxRect temp;
2093 PyObject * _obj1 = 0;
2094 char *_kwnames[] = { "self","rect", NULL };
2095 char _ptemp[128];
2096
2097 self = self;
2098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2099 return NULL;
2100 if (_argo0) {
2101 if (_argo0 == Py_None) { _arg0 = NULL; }
2102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2104 return NULL;
2105 }
2106 }
2107 {
2108 _arg1 = &temp;
2109 if (! wxRect_helper(_obj1, &_arg1))
2110 return NULL;
2111 }
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) return NULL;
2118 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2119 _resultobj = Py_BuildValue("s",_ptemp);
2120 return _resultobj;
2121 }
2122
2123 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2124 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject * _resultobj;
2126 bool _result;
2127 wxBitmap * _arg0;
2128 wxIcon * _arg1;
2129 PyObject * _argo0 = 0;
2130 PyObject * _argo1 = 0;
2131 char *_kwnames[] = { "self","icon", NULL };
2132
2133 self = self;
2134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2135 return NULL;
2136 if (_argo0) {
2137 if (_argo0 == Py_None) { _arg0 = NULL; }
2138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2140 return NULL;
2141 }
2142 }
2143 if (_argo1) {
2144 if (_argo1 == Py_None) { _arg1 = NULL; }
2145 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2146 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2147 return NULL;
2148 }
2149 }
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) return NULL;
2156 } _resultobj = Py_BuildValue("i",_result);
2157 return _resultobj;
2158 }
2159
2160 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2161 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2162 PyObject * _resultobj;
2163 bool _result;
2164 wxBitmap * _arg0;
2165 wxCursor * _arg1;
2166 PyObject * _argo0 = 0;
2167 PyObject * _argo1 = 0;
2168 char *_kwnames[] = { "self","cursor", NULL };
2169
2170 self = self;
2171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2172 return NULL;
2173 if (_argo0) {
2174 if (_argo0 == Py_None) { _arg0 = NULL; }
2175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2177 return NULL;
2178 }
2179 }
2180 if (_argo1) {
2181 if (_argo1 == Py_None) { _arg1 = NULL; }
2182 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2183 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2184 return NULL;
2185 }
2186 }
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) return NULL;
2193 } _resultobj = Py_BuildValue("i",_result);
2194 return _resultobj;
2195 }
2196
2197 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2198 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2199 PyObject * _resultobj;
2200 int _result;
2201 wxBitmap * _arg0;
2202 PyObject * _argo0 = 0;
2203 char *_kwnames[] = { "self", NULL };
2204
2205 self = self;
2206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2207 return NULL;
2208 if (_argo0) {
2209 if (_argo0 == Py_None) { _arg0 = NULL; }
2210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2212 return NULL;
2213 }
2214 }
2215 {
2216 PyThreadState* __tstate = wxPyBeginAllowThreads();
2217 _result = (int )wxBitmap_GetQuality(_arg0);
2218
2219 wxPyEndAllowThreads(__tstate);
2220 if (PyErr_Occurred()) return NULL;
2221 } _resultobj = Py_BuildValue("i",_result);
2222 return _resultobj;
2223 }
2224
2225 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2226 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2227 PyObject * _resultobj;
2228 wxBitmap * _arg0;
2229 int _arg1;
2230 PyObject * _argo0 = 0;
2231 char *_kwnames[] = { "self","q", NULL };
2232
2233 self = self;
2234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2235 return NULL;
2236 if (_argo0) {
2237 if (_argo0 == Py_None) { _arg0 = NULL; }
2238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2240 return NULL;
2241 }
2242 }
2243 {
2244 PyThreadState* __tstate = wxPyBeginAllowThreads();
2245 wxBitmap_SetQuality(_arg0,_arg1);
2246
2247 wxPyEndAllowThreads(__tstate);
2248 if (PyErr_Occurred()) return NULL;
2249 } Py_INCREF(Py_None);
2250 _resultobj = Py_None;
2251 return _resultobj;
2252 }
2253
2254 static void *SwigwxMaskTowxObject(void *ptr) {
2255 wxMask *src;
2256 wxObject *dest;
2257 src = (wxMask *) ptr;
2258 dest = (wxObject *) src;
2259 return (void *) dest;
2260 }
2261
2262 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2263 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2264 PyObject * _resultobj;
2265 wxMask * _result;
2266 wxBitmap * _arg0;
2267 PyObject * _argo0 = 0;
2268 char *_kwnames[] = { "bitmap", NULL };
2269 char _ptemp[128];
2270
2271 self = self;
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2273 return NULL;
2274 if (_argo0) {
2275 if (_argo0 == Py_None) { _arg0 = NULL; }
2276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2278 return NULL;
2279 }
2280 }
2281 {
2282 PyThreadState* __tstate = wxPyBeginAllowThreads();
2283 _result = (wxMask *)new_wxMask(*_arg0);
2284
2285 wxPyEndAllowThreads(__tstate);
2286 if (PyErr_Occurred()) return NULL;
2287 } if (_result) {
2288 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2289 _resultobj = Py_BuildValue("s",_ptemp);
2290 } else {
2291 Py_INCREF(Py_None);
2292 _resultobj = Py_None;
2293 }
2294 return _resultobj;
2295 }
2296
2297 static void wxMask_Destroy(wxMask *self) { delete self; }
2298 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2299 PyObject * _resultobj;
2300 wxMask * _arg0;
2301 PyObject * _argo0 = 0;
2302 char *_kwnames[] = { "self", NULL };
2303
2304 self = self;
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2306 return NULL;
2307 if (_argo0) {
2308 if (_argo0 == Py_None) { _arg0 = NULL; }
2309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2311 return NULL;
2312 }
2313 }
2314 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 wxMask_Destroy(_arg0);
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) return NULL;
2320 } Py_INCREF(Py_None);
2321 _resultobj = Py_None;
2322 return _resultobj;
2323 }
2324
2325 static void *SwigwxIconTowxGDIObject(void *ptr) {
2326 wxIcon *src;
2327 wxGDIObject *dest;
2328 src = (wxIcon *) ptr;
2329 dest = (wxGDIObject *) src;
2330 return (void *) dest;
2331 }
2332
2333 static void *SwigwxIconTowxObject(void *ptr) {
2334 wxIcon *src;
2335 wxObject *dest;
2336 src = (wxIcon *) ptr;
2337 dest = (wxObject *) src;
2338 return (void *) dest;
2339 }
2340
2341 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2342 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2343 PyObject * _resultobj;
2344 wxIcon * _result;
2345 wxString * _arg0;
2346 long _arg1;
2347 int _arg2 = (int ) -1;
2348 int _arg3 = (int ) -1;
2349 PyObject * _obj0 = 0;
2350 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2351 char _ptemp[128];
2352
2353 self = self;
2354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2355 return NULL;
2356 {
2357 #if PYTHON_API_VERSION >= 1009
2358 char* tmpPtr; int tmpSize;
2359 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2360 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2361 return NULL;
2362 }
2363 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2364 return NULL;
2365 _arg0 = new wxString(tmpPtr, tmpSize);
2366 #else
2367 if (!PyString_Check(_obj0)) {
2368 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2369 return NULL;
2370 }
2371 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2372 #endif
2373 }
2374 {
2375 PyThreadState* __tstate = wxPyBeginAllowThreads();
2376 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2377
2378 wxPyEndAllowThreads(__tstate);
2379 if (PyErr_Occurred()) return NULL;
2380 } if (_result) {
2381 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2382 _resultobj = Py_BuildValue("s",_ptemp);
2383 } else {
2384 Py_INCREF(Py_None);
2385 _resultobj = Py_None;
2386 }
2387 {
2388 if (_obj0)
2389 delete _arg0;
2390 }
2391 return _resultobj;
2392 }
2393
2394 #define delete_wxIcon(_swigobj) (delete _swigobj)
2395 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2396 PyObject * _resultobj;
2397 wxIcon * _arg0;
2398 PyObject * _argo0 = 0;
2399 char *_kwnames[] = { "self", NULL };
2400
2401 self = self;
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2403 return NULL;
2404 if (_argo0) {
2405 if (_argo0 == Py_None) { _arg0 = NULL; }
2406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2408 return NULL;
2409 }
2410 }
2411 {
2412 PyThreadState* __tstate = wxPyBeginAllowThreads();
2413 delete_wxIcon(_arg0);
2414
2415 wxPyEndAllowThreads(__tstate);
2416 if (PyErr_Occurred()) return NULL;
2417 } Py_INCREF(Py_None);
2418 _resultobj = Py_None;
2419 return _resultobj;
2420 }
2421
2422 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2423 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject * _resultobj;
2425 bool _result;
2426 wxIcon * _arg0;
2427 wxString * _arg1;
2428 long _arg2;
2429 PyObject * _argo0 = 0;
2430 PyObject * _obj1 = 0;
2431 char *_kwnames[] = { "self","name","flags", NULL };
2432
2433 self = self;
2434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2435 return NULL;
2436 if (_argo0) {
2437 if (_argo0 == Py_None) { _arg0 = NULL; }
2438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2440 return NULL;
2441 }
2442 }
2443 {
2444 #if PYTHON_API_VERSION >= 1009
2445 char* tmpPtr; int tmpSize;
2446 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2447 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2448 return NULL;
2449 }
2450 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2451 return NULL;
2452 _arg1 = new wxString(tmpPtr, tmpSize);
2453 #else
2454 if (!PyString_Check(_obj1)) {
2455 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2456 return NULL;
2457 }
2458 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2459 #endif
2460 }
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) return NULL;
2467 } _resultobj = Py_BuildValue("i",_result);
2468 {
2469 if (_obj1)
2470 delete _arg1;
2471 }
2472 return _resultobj;
2473 }
2474
2475 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2476 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2477 PyObject * _resultobj;
2478 long _result;
2479 wxIcon * _arg0;
2480 PyObject * _argo0 = 0;
2481 char *_kwnames[] = { "self", NULL };
2482
2483 self = self;
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2485 return NULL;
2486 if (_argo0) {
2487 if (_argo0 == Py_None) { _arg0 = NULL; }
2488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2490 return NULL;
2491 }
2492 }
2493 {
2494 PyThreadState* __tstate = wxPyBeginAllowThreads();
2495 _result = (long )wxIcon_GetHandle(_arg0);
2496
2497 wxPyEndAllowThreads(__tstate);
2498 if (PyErr_Occurred()) return NULL;
2499 } _resultobj = Py_BuildValue("l",_result);
2500 return _resultobj;
2501 }
2502
2503 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2504 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject * _resultobj;
2506 wxIcon * _arg0;
2507 long _arg1;
2508 PyObject * _argo0 = 0;
2509 char *_kwnames[] = { "self","handle", NULL };
2510
2511 self = self;
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2513 return NULL;
2514 if (_argo0) {
2515 if (_argo0 == Py_None) { _arg0 = NULL; }
2516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2518 return NULL;
2519 }
2520 }
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 wxIcon_SetHandle(_arg0,_arg1);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) return NULL;
2527 } Py_INCREF(Py_None);
2528 _resultobj = Py_None;
2529 return _resultobj;
2530 }
2531
2532 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2533 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject * _resultobj;
2535 bool _result;
2536 wxIcon * _arg0;
2537 PyObject * _argo0 = 0;
2538 char *_kwnames[] = { "self", NULL };
2539
2540 self = self;
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2542 return NULL;
2543 if (_argo0) {
2544 if (_argo0 == Py_None) { _arg0 = NULL; }
2545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2547 return NULL;
2548 }
2549 }
2550 {
2551 PyThreadState* __tstate = wxPyBeginAllowThreads();
2552 _result = (bool )wxIcon_Ok(_arg0);
2553
2554 wxPyEndAllowThreads(__tstate);
2555 if (PyErr_Occurred()) return NULL;
2556 } _resultobj = Py_BuildValue("i",_result);
2557 return _resultobj;
2558 }
2559
2560 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2561 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2562 PyObject * _resultobj;
2563 int _result;
2564 wxIcon * _arg0;
2565 PyObject * _argo0 = 0;
2566 char *_kwnames[] = { "self", NULL };
2567
2568 self = self;
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2570 return NULL;
2571 if (_argo0) {
2572 if (_argo0 == Py_None) { _arg0 = NULL; }
2573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2575 return NULL;
2576 }
2577 }
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 _result = (int )wxIcon_GetWidth(_arg0);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) return NULL;
2584 } _resultobj = Py_BuildValue("i",_result);
2585 return _resultobj;
2586 }
2587
2588 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2589 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2590 PyObject * _resultobj;
2591 int _result;
2592 wxIcon * _arg0;
2593 PyObject * _argo0 = 0;
2594 char *_kwnames[] = { "self", NULL };
2595
2596 self = self;
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2598 return NULL;
2599 if (_argo0) {
2600 if (_argo0 == Py_None) { _arg0 = NULL; }
2601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2603 return NULL;
2604 }
2605 }
2606 {
2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
2608 _result = (int )wxIcon_GetHeight(_arg0);
2609
2610 wxPyEndAllowThreads(__tstate);
2611 if (PyErr_Occurred()) return NULL;
2612 } _resultobj = Py_BuildValue("i",_result);
2613 return _resultobj;
2614 }
2615
2616 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2617 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2618 PyObject * _resultobj;
2619 int _result;
2620 wxIcon * _arg0;
2621 PyObject * _argo0 = 0;
2622 char *_kwnames[] = { "self", NULL };
2623
2624 self = self;
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2626 return NULL;
2627 if (_argo0) {
2628 if (_argo0 == Py_None) { _arg0 = NULL; }
2629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2631 return NULL;
2632 }
2633 }
2634 {
2635 PyThreadState* __tstate = wxPyBeginAllowThreads();
2636 _result = (int )wxIcon_GetDepth(_arg0);
2637
2638 wxPyEndAllowThreads(__tstate);
2639 if (PyErr_Occurred()) return NULL;
2640 } _resultobj = Py_BuildValue("i",_result);
2641 return _resultobj;
2642 }
2643
2644 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2645 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject * _resultobj;
2647 wxIcon * _arg0;
2648 int _arg1;
2649 PyObject * _argo0 = 0;
2650 char *_kwnames[] = { "self","w", NULL };
2651
2652 self = self;
2653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2654 return NULL;
2655 if (_argo0) {
2656 if (_argo0 == Py_None) { _arg0 = NULL; }
2657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2659 return NULL;
2660 }
2661 }
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 wxIcon_SetWidth(_arg0,_arg1);
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) return NULL;
2668 } Py_INCREF(Py_None);
2669 _resultobj = Py_None;
2670 return _resultobj;
2671 }
2672
2673 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2674 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject * _resultobj;
2676 wxIcon * _arg0;
2677 int _arg1;
2678 PyObject * _argo0 = 0;
2679 char *_kwnames[] = { "self","h", NULL };
2680
2681 self = self;
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2683 return NULL;
2684 if (_argo0) {
2685 if (_argo0 == Py_None) { _arg0 = NULL; }
2686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2688 return NULL;
2689 }
2690 }
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 wxIcon_SetHeight(_arg0,_arg1);
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) return NULL;
2697 } Py_INCREF(Py_None);
2698 _resultobj = Py_None;
2699 return _resultobj;
2700 }
2701
2702 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2703 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject * _resultobj;
2705 wxIcon * _arg0;
2706 int _arg1;
2707 PyObject * _argo0 = 0;
2708 char *_kwnames[] = { "self","d", NULL };
2709
2710 self = self;
2711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2712 return NULL;
2713 if (_argo0) {
2714 if (_argo0 == Py_None) { _arg0 = NULL; }
2715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2717 return NULL;
2718 }
2719 }
2720 {
2721 PyThreadState* __tstate = wxPyBeginAllowThreads();
2722 wxIcon_SetDepth(_arg0,_arg1);
2723
2724 wxPyEndAllowThreads(__tstate);
2725 if (PyErr_Occurred()) return NULL;
2726 } Py_INCREF(Py_None);
2727 _resultobj = Py_None;
2728 return _resultobj;
2729 }
2730
2731 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2732 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject * _resultobj;
2734 wxIcon * _arg0;
2735 wxSize * _arg1;
2736 PyObject * _argo0 = 0;
2737 wxSize temp;
2738 PyObject * _obj1 = 0;
2739 char *_kwnames[] = { "self","size", NULL };
2740
2741 self = self;
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2743 return NULL;
2744 if (_argo0) {
2745 if (_argo0 == Py_None) { _arg0 = NULL; }
2746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2748 return NULL;
2749 }
2750 }
2751 {
2752 _arg1 = &temp;
2753 if (! wxSize_helper(_obj1, &_arg1))
2754 return NULL;
2755 }
2756 {
2757 PyThreadState* __tstate = wxPyBeginAllowThreads();
2758 wxIcon_SetSize(_arg0,*_arg1);
2759
2760 wxPyEndAllowThreads(__tstate);
2761 if (PyErr_Occurred()) return NULL;
2762 } Py_INCREF(Py_None);
2763 _resultobj = Py_None;
2764 return _resultobj;
2765 }
2766
2767 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2768 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject * _resultobj;
2770 wxIcon * _arg0;
2771 wxBitmap * _arg1;
2772 PyObject * _argo0 = 0;
2773 PyObject * _argo1 = 0;
2774 char *_kwnames[] = { "self","bmp", NULL };
2775
2776 self = self;
2777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2778 return NULL;
2779 if (_argo0) {
2780 if (_argo0 == Py_None) { _arg0 = NULL; }
2781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2783 return NULL;
2784 }
2785 }
2786 if (_argo1) {
2787 if (_argo1 == Py_None) { _arg1 = NULL; }
2788 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2789 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2790 return NULL;
2791 }
2792 }
2793 {
2794 PyThreadState* __tstate = wxPyBeginAllowThreads();
2795 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2796
2797 wxPyEndAllowThreads(__tstate);
2798 if (PyErr_Occurred()) return NULL;
2799 } Py_INCREF(Py_None);
2800 _resultobj = Py_None;
2801 return _resultobj;
2802 }
2803
2804 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2805 wxCursor *src;
2806 wxGDIObject *dest;
2807 src = (wxCursor *) ptr;
2808 dest = (wxGDIObject *) src;
2809 return (void *) dest;
2810 }
2811
2812 static void *SwigwxCursorTowxObject(void *ptr) {
2813 wxCursor *src;
2814 wxObject *dest;
2815 src = (wxCursor *) ptr;
2816 dest = (wxObject *) src;
2817 return (void *) dest;
2818 }
2819
2820 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2821 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject * _resultobj;
2823 wxCursor * _result;
2824 wxString * _arg0;
2825 long _arg1;
2826 int _arg2 = (int ) 0;
2827 int _arg3 = (int ) 0;
2828 PyObject * _obj0 = 0;
2829 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2830 char _ptemp[128];
2831
2832 self = self;
2833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2834 return NULL;
2835 {
2836 #if PYTHON_API_VERSION >= 1009
2837 char* tmpPtr; int tmpSize;
2838 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2839 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2840 return NULL;
2841 }
2842 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2843 return NULL;
2844 _arg0 = new wxString(tmpPtr, tmpSize);
2845 #else
2846 if (!PyString_Check(_obj0)) {
2847 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2848 return NULL;
2849 }
2850 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2851 #endif
2852 }
2853 {
2854 PyThreadState* __tstate = wxPyBeginAllowThreads();
2855 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2856
2857 wxPyEndAllowThreads(__tstate);
2858 if (PyErr_Occurred()) return NULL;
2859 } if (_result) {
2860 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2861 _resultobj = Py_BuildValue("s",_ptemp);
2862 } else {
2863 Py_INCREF(Py_None);
2864 _resultobj = Py_None;
2865 }
2866 {
2867 if (_obj0)
2868 delete _arg0;
2869 }
2870 return _resultobj;
2871 }
2872
2873 #define delete_wxCursor(_swigobj) (delete _swigobj)
2874 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2875 PyObject * _resultobj;
2876 wxCursor * _arg0;
2877 PyObject * _argo0 = 0;
2878 char *_kwnames[] = { "self", NULL };
2879
2880 self = self;
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2882 return NULL;
2883 if (_argo0) {
2884 if (_argo0 == Py_None) { _arg0 = NULL; }
2885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2887 return NULL;
2888 }
2889 }
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 delete_wxCursor(_arg0);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) return NULL;
2896 } Py_INCREF(Py_None);
2897 _resultobj = Py_None;
2898 return _resultobj;
2899 }
2900
2901 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2902 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2903 PyObject * _resultobj;
2904 long _result;
2905 wxCursor * _arg0;
2906 PyObject * _argo0 = 0;
2907 char *_kwnames[] = { "self", NULL };
2908
2909 self = self;
2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2911 return NULL;
2912 if (_argo0) {
2913 if (_argo0 == Py_None) { _arg0 = NULL; }
2914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2916 return NULL;
2917 }
2918 }
2919 {
2920 PyThreadState* __tstate = wxPyBeginAllowThreads();
2921 _result = (long )wxCursor_GetHandle(_arg0);
2922
2923 wxPyEndAllowThreads(__tstate);
2924 if (PyErr_Occurred()) return NULL;
2925 } _resultobj = Py_BuildValue("l",_result);
2926 return _resultobj;
2927 }
2928
2929 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2930 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject * _resultobj;
2932 wxCursor * _arg0;
2933 long _arg1;
2934 PyObject * _argo0 = 0;
2935 char *_kwnames[] = { "self","handle", NULL };
2936
2937 self = self;
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2939 return NULL;
2940 if (_argo0) {
2941 if (_argo0 == Py_None) { _arg0 = NULL; }
2942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2944 return NULL;
2945 }
2946 }
2947 {
2948 PyThreadState* __tstate = wxPyBeginAllowThreads();
2949 wxCursor_SetHandle(_arg0,_arg1);
2950
2951 wxPyEndAllowThreads(__tstate);
2952 if (PyErr_Occurred()) return NULL;
2953 } Py_INCREF(Py_None);
2954 _resultobj = Py_None;
2955 return _resultobj;
2956 }
2957
2958 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2959 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject * _resultobj;
2961 bool _result;
2962 wxCursor * _arg0;
2963 PyObject * _argo0 = 0;
2964 char *_kwnames[] = { "self", NULL };
2965
2966 self = self;
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2968 return NULL;
2969 if (_argo0) {
2970 if (_argo0 == Py_None) { _arg0 = NULL; }
2971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2973 return NULL;
2974 }
2975 }
2976 {
2977 PyThreadState* __tstate = wxPyBeginAllowThreads();
2978 _result = (bool )wxCursor_Ok(_arg0);
2979
2980 wxPyEndAllowThreads(__tstate);
2981 if (PyErr_Occurred()) return NULL;
2982 } _resultobj = Py_BuildValue("i",_result);
2983 return _resultobj;
2984 }
2985
2986 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2987 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject * _resultobj;
2989 int _result;
2990 wxCursor * _arg0;
2991 PyObject * _argo0 = 0;
2992 char *_kwnames[] = { "self", NULL };
2993
2994 self = self;
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2996 return NULL;
2997 if (_argo0) {
2998 if (_argo0 == Py_None) { _arg0 = NULL; }
2999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3001 return NULL;
3002 }
3003 }
3004 {
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 _result = (int )wxCursor_GetWidth(_arg0);
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) return NULL;
3010 } _resultobj = Py_BuildValue("i",_result);
3011 return _resultobj;
3012 }
3013
3014 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3015 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3016 PyObject * _resultobj;
3017 int _result;
3018 wxCursor * _arg0;
3019 PyObject * _argo0 = 0;
3020 char *_kwnames[] = { "self", NULL };
3021
3022 self = self;
3023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3024 return NULL;
3025 if (_argo0) {
3026 if (_argo0 == Py_None) { _arg0 = NULL; }
3027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3029 return NULL;
3030 }
3031 }
3032 {
3033 PyThreadState* __tstate = wxPyBeginAllowThreads();
3034 _result = (int )wxCursor_GetHeight(_arg0);
3035
3036 wxPyEndAllowThreads(__tstate);
3037 if (PyErr_Occurred()) return NULL;
3038 } _resultobj = Py_BuildValue("i",_result);
3039 return _resultobj;
3040 }
3041
3042 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3043 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3044 PyObject * _resultobj;
3045 int _result;
3046 wxCursor * _arg0;
3047 PyObject * _argo0 = 0;
3048 char *_kwnames[] = { "self", NULL };
3049
3050 self = self;
3051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3052 return NULL;
3053 if (_argo0) {
3054 if (_argo0 == Py_None) { _arg0 = NULL; }
3055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3057 return NULL;
3058 }
3059 }
3060 {
3061 PyThreadState* __tstate = wxPyBeginAllowThreads();
3062 _result = (int )wxCursor_GetDepth(_arg0);
3063
3064 wxPyEndAllowThreads(__tstate);
3065 if (PyErr_Occurred()) return NULL;
3066 } _resultobj = Py_BuildValue("i",_result);
3067 return _resultobj;
3068 }
3069
3070 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3071 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3072 PyObject * _resultobj;
3073 wxCursor * _arg0;
3074 int _arg1;
3075 PyObject * _argo0 = 0;
3076 char *_kwnames[] = { "self","w", NULL };
3077
3078 self = self;
3079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3080 return NULL;
3081 if (_argo0) {
3082 if (_argo0 == Py_None) { _arg0 = NULL; }
3083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3085 return NULL;
3086 }
3087 }
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 wxCursor_SetWidth(_arg0,_arg1);
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) return NULL;
3094 } Py_INCREF(Py_None);
3095 _resultobj = Py_None;
3096 return _resultobj;
3097 }
3098
3099 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3100 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3101 PyObject * _resultobj;
3102 wxCursor * _arg0;
3103 int _arg1;
3104 PyObject * _argo0 = 0;
3105 char *_kwnames[] = { "self","h", NULL };
3106
3107 self = self;
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3109 return NULL;
3110 if (_argo0) {
3111 if (_argo0 == Py_None) { _arg0 = NULL; }
3112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3114 return NULL;
3115 }
3116 }
3117 {
3118 PyThreadState* __tstate = wxPyBeginAllowThreads();
3119 wxCursor_SetHeight(_arg0,_arg1);
3120
3121 wxPyEndAllowThreads(__tstate);
3122 if (PyErr_Occurred()) return NULL;
3123 } Py_INCREF(Py_None);
3124 _resultobj = Py_None;
3125 return _resultobj;
3126 }
3127
3128 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3129 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject * _resultobj;
3131 wxCursor * _arg0;
3132 int _arg1;
3133 PyObject * _argo0 = 0;
3134 char *_kwnames[] = { "self","d", NULL };
3135
3136 self = self;
3137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3138 return NULL;
3139 if (_argo0) {
3140 if (_argo0 == Py_None) { _arg0 = NULL; }
3141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3143 return NULL;
3144 }
3145 }
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 wxCursor_SetDepth(_arg0,_arg1);
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) return NULL;
3152 } Py_INCREF(Py_None);
3153 _resultobj = Py_None;
3154 return _resultobj;
3155 }
3156
3157 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3158 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3159 PyObject * _resultobj;
3160 wxCursor * _arg0;
3161 wxSize * _arg1;
3162 PyObject * _argo0 = 0;
3163 wxSize temp;
3164 PyObject * _obj1 = 0;
3165 char *_kwnames[] = { "self","size", NULL };
3166
3167 self = self;
3168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3169 return NULL;
3170 if (_argo0) {
3171 if (_argo0 == Py_None) { _arg0 = NULL; }
3172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3174 return NULL;
3175 }
3176 }
3177 {
3178 _arg1 = &temp;
3179 if (! wxSize_helper(_obj1, &_arg1))
3180 return NULL;
3181 }
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 wxCursor_SetSize(_arg0,*_arg1);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) return NULL;
3188 } Py_INCREF(Py_None);
3189 _resultobj = Py_None;
3190 return _resultobj;
3191 }
3192
3193 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3194 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3195 PyObject * _resultobj;
3196 wxNativeFontInfo * _result;
3197 char *_kwnames[] = { NULL };
3198 char _ptemp[128];
3199
3200 self = self;
3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
3202 return NULL;
3203 {
3204 PyThreadState* __tstate = wxPyBeginAllowThreads();
3205 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
3206
3207 wxPyEndAllowThreads(__tstate);
3208 if (PyErr_Occurred()) return NULL;
3209 } if (_result) {
3210 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3211 _resultobj = Py_BuildValue("s",_ptemp);
3212 } else {
3213 Py_INCREF(Py_None);
3214 _resultobj = Py_None;
3215 }
3216 return _resultobj;
3217 }
3218
3219 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3220 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3221 PyObject * _resultobj;
3222 wxNativeFontInfo * _arg0;
3223 PyObject * _argo0 = 0;
3224 char *_kwnames[] = { "self", NULL };
3225
3226 self = self;
3227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
3228 return NULL;
3229 if (_argo0) {
3230 if (_argo0 == Py_None) { _arg0 = NULL; }
3231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3233 return NULL;
3234 }
3235 }
3236 {
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
3238 wxNativeFontInfo_Init(_arg0);
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) return NULL;
3242 } Py_INCREF(Py_None);
3243 _resultobj = Py_None;
3244 return _resultobj;
3245 }
3246
3247 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3248 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject * _resultobj;
3250 int _result;
3251 wxNativeFontInfo * _arg0;
3252 PyObject * _argo0 = 0;
3253 char *_kwnames[] = { "self", NULL };
3254
3255 self = self;
3256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
3257 return NULL;
3258 if (_argo0) {
3259 if (_argo0 == Py_None) { _arg0 = NULL; }
3260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3262 return NULL;
3263 }
3264 }
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) return NULL;
3271 } _resultobj = Py_BuildValue("i",_result);
3272 return _resultobj;
3273 }
3274
3275 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3276 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3277 PyObject * _resultobj;
3278 wxFontStyle _result;
3279 wxNativeFontInfo * _arg0;
3280 PyObject * _argo0 = 0;
3281 char *_kwnames[] = { "self", NULL };
3282
3283 self = self;
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
3285 return NULL;
3286 if (_argo0) {
3287 if (_argo0 == Py_None) { _arg0 = NULL; }
3288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3290 return NULL;
3291 }
3292 }
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) return NULL;
3299 } _resultobj = Py_BuildValue("i",_result);
3300 return _resultobj;
3301 }
3302
3303 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3304 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3305 PyObject * _resultobj;
3306 wxFontWeight _result;
3307 wxNativeFontInfo * _arg0;
3308 PyObject * _argo0 = 0;
3309 char *_kwnames[] = { "self", NULL };
3310
3311 self = self;
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
3313 return NULL;
3314 if (_argo0) {
3315 if (_argo0 == Py_None) { _arg0 = NULL; }
3316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3318 return NULL;
3319 }
3320 }
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) return NULL;
3327 } _resultobj = Py_BuildValue("i",_result);
3328 return _resultobj;
3329 }
3330
3331 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3332 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject * _resultobj;
3334 bool _result;
3335 wxNativeFontInfo * _arg0;
3336 PyObject * _argo0 = 0;
3337 char *_kwnames[] = { "self", NULL };
3338
3339 self = self;
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
3341 return NULL;
3342 if (_argo0) {
3343 if (_argo0 == Py_None) { _arg0 = NULL; }
3344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3346 return NULL;
3347 }
3348 }
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
3352
3353 wxPyEndAllowThreads(__tstate);
3354 if (PyErr_Occurred()) return NULL;
3355 } _resultobj = Py_BuildValue("i",_result);
3356 return _resultobj;
3357 }
3358
3359 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3360 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject * _resultobj;
3362 wxString * _result;
3363 wxNativeFontInfo * _arg0;
3364 PyObject * _argo0 = 0;
3365 char *_kwnames[] = { "self", NULL };
3366
3367 self = self;
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
3369 return NULL;
3370 if (_argo0) {
3371 if (_argo0 == Py_None) { _arg0 = NULL; }
3372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3374 return NULL;
3375 }
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) return NULL;
3383 }{
3384 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3385 }
3386 {
3387 delete _result;
3388 }
3389 return _resultobj;
3390 }
3391
3392 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3393 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3394 PyObject * _resultobj;
3395 wxFontFamily _result;
3396 wxNativeFontInfo * _arg0;
3397 PyObject * _argo0 = 0;
3398 char *_kwnames[] = { "self", NULL };
3399
3400 self = self;
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
3402 return NULL;
3403 if (_argo0) {
3404 if (_argo0 == Py_None) { _arg0 = NULL; }
3405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3407 return NULL;
3408 }
3409 }
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) return NULL;
3416 } _resultobj = Py_BuildValue("i",_result);
3417 return _resultobj;
3418 }
3419
3420 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3421 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3422 PyObject * _resultobj;
3423 wxFontEncoding _result;
3424 wxNativeFontInfo * _arg0;
3425 PyObject * _argo0 = 0;
3426 char *_kwnames[] = { "self", NULL };
3427
3428 self = self;
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
3430 return NULL;
3431 if (_argo0) {
3432 if (_argo0 == Py_None) { _arg0 = NULL; }
3433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3435 return NULL;
3436 }
3437 }
3438 {
3439 PyThreadState* __tstate = wxPyBeginAllowThreads();
3440 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
3441
3442 wxPyEndAllowThreads(__tstate);
3443 if (PyErr_Occurred()) return NULL;
3444 } _resultobj = Py_BuildValue("i",_result);
3445 return _resultobj;
3446 }
3447
3448 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3449 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3450 PyObject * _resultobj;
3451 wxNativeFontInfo * _arg0;
3452 int _arg1;
3453 PyObject * _argo0 = 0;
3454 char *_kwnames[] = { "self","pointsize", NULL };
3455
3456 self = self;
3457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
3458 return NULL;
3459 if (_argo0) {
3460 if (_argo0 == Py_None) { _arg0 = NULL; }
3461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3463 return NULL;
3464 }
3465 }
3466 {
3467 PyThreadState* __tstate = wxPyBeginAllowThreads();
3468 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
3469
3470 wxPyEndAllowThreads(__tstate);
3471 if (PyErr_Occurred()) return NULL;
3472 } Py_INCREF(Py_None);
3473 _resultobj = Py_None;
3474 return _resultobj;
3475 }
3476
3477 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3478 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3479 PyObject * _resultobj;
3480 wxNativeFontInfo * _arg0;
3481 wxFontStyle _arg1;
3482 PyObject * _argo0 = 0;
3483 char *_kwnames[] = { "self","style", NULL };
3484
3485 self = self;
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
3487 return NULL;
3488 if (_argo0) {
3489 if (_argo0 == Py_None) { _arg0 = NULL; }
3490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3492 return NULL;
3493 }
3494 }
3495 {
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 wxNativeFontInfo_SetStyle(_arg0,_arg1);
3498
3499 wxPyEndAllowThreads(__tstate);
3500 if (PyErr_Occurred()) return NULL;
3501 } Py_INCREF(Py_None);
3502 _resultobj = Py_None;
3503 return _resultobj;
3504 }
3505
3506 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3507 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3508 PyObject * _resultobj;
3509 wxNativeFontInfo * _arg0;
3510 wxFontWeight _arg1;
3511 PyObject * _argo0 = 0;
3512 char *_kwnames[] = { "self","weight", NULL };
3513
3514 self = self;
3515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
3516 return NULL;
3517 if (_argo0) {
3518 if (_argo0 == Py_None) { _arg0 = NULL; }
3519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3521 return NULL;
3522 }
3523 }
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 wxNativeFontInfo_SetWeight(_arg0,_arg1);
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) return NULL;
3530 } Py_INCREF(Py_None);
3531 _resultobj = Py_None;
3532 return _resultobj;
3533 }
3534
3535 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3536 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3537 PyObject * _resultobj;
3538 wxNativeFontInfo * _arg0;
3539 bool _arg1;
3540 PyObject * _argo0 = 0;
3541 int tempbool1;
3542 char *_kwnames[] = { "self","underlined", NULL };
3543
3544 self = self;
3545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3546 return NULL;
3547 if (_argo0) {
3548 if (_argo0 == Py_None) { _arg0 = NULL; }
3549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3551 return NULL;
3552 }
3553 }
3554 _arg1 = (bool ) tempbool1;
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) return NULL;
3561 } Py_INCREF(Py_None);
3562 _resultobj = Py_None;
3563 return _resultobj;
3564 }
3565
3566 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3567 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3568 PyObject * _resultobj;
3569 wxNativeFontInfo * _arg0;
3570 wxString * _arg1;
3571 PyObject * _argo0 = 0;
3572 PyObject * _obj1 = 0;
3573 char *_kwnames[] = { "self","facename", NULL };
3574
3575 self = self;
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
3577 return NULL;
3578 if (_argo0) {
3579 if (_argo0 == Py_None) { _arg0 = NULL; }
3580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3582 return NULL;
3583 }
3584 }
3585 {
3586 #if PYTHON_API_VERSION >= 1009
3587 char* tmpPtr; int tmpSize;
3588 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3589 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3590 return NULL;
3591 }
3592 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3593 return NULL;
3594 _arg1 = new wxString(tmpPtr, tmpSize);
3595 #else
3596 if (!PyString_Check(_obj1)) {
3597 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3598 return NULL;
3599 }
3600 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3601 #endif
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) return NULL;
3609 } Py_INCREF(Py_None);
3610 _resultobj = Py_None;
3611 {
3612 if (_obj1)
3613 delete _arg1;
3614 }
3615 return _resultobj;
3616 }
3617
3618 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3619 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3620 PyObject * _resultobj;
3621 wxNativeFontInfo * _arg0;
3622 wxFontFamily _arg1;
3623 PyObject * _argo0 = 0;
3624 char *_kwnames[] = { "self","family", NULL };
3625
3626 self = self;
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
3628 return NULL;
3629 if (_argo0) {
3630 if (_argo0 == Py_None) { _arg0 = NULL; }
3631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3633 return NULL;
3634 }
3635 }
3636 {
3637 PyThreadState* __tstate = wxPyBeginAllowThreads();
3638 wxNativeFontInfo_SetFamily(_arg0,_arg1);
3639
3640 wxPyEndAllowThreads(__tstate);
3641 if (PyErr_Occurred()) return NULL;
3642 } Py_INCREF(Py_None);
3643 _resultobj = Py_None;
3644 return _resultobj;
3645 }
3646
3647 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3648 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject * _resultobj;
3650 wxNativeFontInfo * _arg0;
3651 wxFontEncoding _arg1;
3652 PyObject * _argo0 = 0;
3653 char *_kwnames[] = { "self","encoding", NULL };
3654
3655 self = self;
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
3657 return NULL;
3658 if (_argo0) {
3659 if (_argo0 == Py_None) { _arg0 = NULL; }
3660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3662 return NULL;
3663 }
3664 }
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) return NULL;
3671 } Py_INCREF(Py_None);
3672 _resultobj = Py_None;
3673 return _resultobj;
3674 }
3675
3676 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3677 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject * _resultobj;
3679 bool _result;
3680 wxNativeFontInfo * _arg0;
3681 wxString * _arg1;
3682 PyObject * _argo0 = 0;
3683 PyObject * _obj1 = 0;
3684 char *_kwnames[] = { "self","s", NULL };
3685
3686 self = self;
3687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3688 return NULL;
3689 if (_argo0) {
3690 if (_argo0 == Py_None) { _arg0 = NULL; }
3691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3693 return NULL;
3694 }
3695 }
3696 {
3697 #if PYTHON_API_VERSION >= 1009
3698 char* tmpPtr; int tmpSize;
3699 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3700 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3701 return NULL;
3702 }
3703 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3704 return NULL;
3705 _arg1 = new wxString(tmpPtr, tmpSize);
3706 #else
3707 if (!PyString_Check(_obj1)) {
3708 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3709 return NULL;
3710 }
3711 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3712 #endif
3713 }
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3717
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) return NULL;
3720 } _resultobj = Py_BuildValue("i",_result);
3721 {
3722 if (_obj1)
3723 delete _arg1;
3724 }
3725 return _resultobj;
3726 }
3727
3728 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3729 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3730 PyObject * _resultobj;
3731 wxString * _result;
3732 wxNativeFontInfo * _arg0;
3733 PyObject * _argo0 = 0;
3734 char *_kwnames[] = { "self", NULL };
3735
3736 self = self;
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3738 return NULL;
3739 if (_argo0) {
3740 if (_argo0 == Py_None) { _arg0 = NULL; }
3741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3743 return NULL;
3744 }
3745 }
3746 {
3747 PyThreadState* __tstate = wxPyBeginAllowThreads();
3748 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3749
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) return NULL;
3752 }{
3753 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3754 }
3755 {
3756 delete _result;
3757 }
3758 return _resultobj;
3759 }
3760
3761 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3762 return self->ToString();
3763 }
3764 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3765 PyObject * _resultobj;
3766 wxString * _result;
3767 wxNativeFontInfo * _arg0;
3768 PyObject * _argo0 = 0;
3769 char *_kwnames[] = { "self", NULL };
3770
3771 self = self;
3772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3773 return NULL;
3774 if (_argo0) {
3775 if (_argo0 == Py_None) { _arg0 = NULL; }
3776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3778 return NULL;
3779 }
3780 }
3781 {
3782 PyThreadState* __tstate = wxPyBeginAllowThreads();
3783 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3784
3785 wxPyEndAllowThreads(__tstate);
3786 if (PyErr_Occurred()) return NULL;
3787 }{
3788 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3789 }
3790 {
3791 delete _result;
3792 }
3793 return _resultobj;
3794 }
3795
3796 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3797 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3798 PyObject * _resultobj;
3799 bool _result;
3800 wxNativeFontInfo * _arg0;
3801 wxString * _arg1;
3802 PyObject * _argo0 = 0;
3803 PyObject * _obj1 = 0;
3804 char *_kwnames[] = { "self","s", NULL };
3805
3806 self = self;
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3808 return NULL;
3809 if (_argo0) {
3810 if (_argo0 == Py_None) { _arg0 = NULL; }
3811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3813 return NULL;
3814 }
3815 }
3816 {
3817 #if PYTHON_API_VERSION >= 1009
3818 char* tmpPtr; int tmpSize;
3819 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3820 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3821 return NULL;
3822 }
3823 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3824 return NULL;
3825 _arg1 = new wxString(tmpPtr, tmpSize);
3826 #else
3827 if (!PyString_Check(_obj1)) {
3828 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3829 return NULL;
3830 }
3831 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3832 #endif
3833 }
3834 {
3835 PyThreadState* __tstate = wxPyBeginAllowThreads();
3836 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
3837
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) return NULL;
3840 } _resultobj = Py_BuildValue("i",_result);
3841 {
3842 if (_obj1)
3843 delete _arg1;
3844 }
3845 return _resultobj;
3846 }
3847
3848 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3849 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject * _resultobj;
3851 wxString * _result;
3852 wxNativeFontInfo * _arg0;
3853 PyObject * _argo0 = 0;
3854 char *_kwnames[] = { "self", NULL };
3855
3856 self = self;
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
3858 return NULL;
3859 if (_argo0) {
3860 if (_argo0 == Py_None) { _arg0 = NULL; }
3861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3863 return NULL;
3864 }
3865 }
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3869
3870 wxPyEndAllowThreads(__tstate);
3871 if (PyErr_Occurred()) return NULL;
3872 }{
3873 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3874 }
3875 {
3876 delete _result;
3877 }
3878 return _resultobj;
3879 }
3880
3881 #define new_wxFontMapper() (new wxFontMapper())
3882 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3883 PyObject * _resultobj;
3884 wxFontMapper * _result;
3885 char *_kwnames[] = { NULL };
3886 char _ptemp[128];
3887
3888 self = self;
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3890 return NULL;
3891 {
3892 PyThreadState* __tstate = wxPyBeginAllowThreads();
3893 _result = (wxFontMapper *)new_wxFontMapper();
3894
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) return NULL;
3897 } if (_result) {
3898 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3899 _resultobj = Py_BuildValue("s",_ptemp);
3900 } else {
3901 Py_INCREF(Py_None);
3902 _resultobj = Py_None;
3903 }
3904 return _resultobj;
3905 }
3906
3907 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3908 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3909 PyObject * _resultobj;
3910 wxFontMapper * _arg0;
3911 PyObject * _argo0 = 0;
3912 char *_kwnames[] = { "self", NULL };
3913
3914 self = self;
3915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3916 return NULL;
3917 if (_argo0) {
3918 if (_argo0 == Py_None) { _arg0 = NULL; }
3919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3921 return NULL;
3922 }
3923 }
3924 {
3925 PyThreadState* __tstate = wxPyBeginAllowThreads();
3926 delete_wxFontMapper(_arg0);
3927
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) return NULL;
3930 } Py_INCREF(Py_None);
3931 _resultobj = Py_None;
3932 return _resultobj;
3933 }
3934
3935 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3936 wxFontEncoding alt_enc;
3937 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3938 return PyInt_FromLong(alt_enc);
3939 else {
3940 Py_INCREF(Py_None);
3941 return Py_None;
3942 }
3943 }
3944 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3945 PyObject * _resultobj;
3946 PyObject * _result;
3947 wxFontMapper * _arg0;
3948 wxFontEncoding _arg1;
3949 wxString * _arg2 = (wxString *) &wxEmptyString;
3950 bool _arg3 = (bool ) TRUE;
3951 PyObject * _argo0 = 0;
3952 PyObject * _obj2 = 0;
3953 int tempbool3 = (int) TRUE;
3954 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3955
3956 self = self;
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3958 return NULL;
3959 if (_argo0) {
3960 if (_argo0 == Py_None) { _arg0 = NULL; }
3961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3963 return NULL;
3964 }
3965 }
3966 if (_obj2)
3967 {
3968 #if PYTHON_API_VERSION >= 1009
3969 char* tmpPtr; int tmpSize;
3970 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3971 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3972 return NULL;
3973 }
3974 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3975 return NULL;
3976 _arg2 = new wxString(tmpPtr, tmpSize);
3977 #else
3978 if (!PyString_Check(_obj2)) {
3979 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3980 return NULL;
3981 }
3982 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3983 #endif
3984 }
3985 _arg3 = (bool ) tempbool3;
3986 {
3987 PyThreadState* __tstate = wxPyBeginAllowThreads();
3988 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3989
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) return NULL;
3992 }{
3993 _resultobj = _result;
3994 }
3995 {
3996 if (_obj2)
3997 delete _arg2;
3998 }
3999 return _resultobj;
4000 }
4001
4002 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4003 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject * _resultobj;
4005 bool _result;
4006 wxFontMapper * _arg0;
4007 wxFontEncoding _arg1;
4008 wxString * _arg2 = (wxString *) &wxEmptyString;
4009 PyObject * _argo0 = 0;
4010 PyObject * _obj2 = 0;
4011 char *_kwnames[] = { "self","encoding","facename", NULL };
4012
4013 self = self;
4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
4015 return NULL;
4016 if (_argo0) {
4017 if (_argo0 == Py_None) { _arg0 = NULL; }
4018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4020 return NULL;
4021 }
4022 }
4023 if (_obj2)
4024 {
4025 #if PYTHON_API_VERSION >= 1009
4026 char* tmpPtr; int tmpSize;
4027 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4028 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4029 return NULL;
4030 }
4031 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4032 return NULL;
4033 _arg2 = new wxString(tmpPtr, tmpSize);
4034 #else
4035 if (!PyString_Check(_obj2)) {
4036 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4037 return NULL;
4038 }
4039 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4040 #endif
4041 }
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) return NULL;
4048 } _resultobj = Py_BuildValue("i",_result);
4049 {
4050 if (_obj2)
4051 delete _arg2;
4052 }
4053 return _resultobj;
4054 }
4055
4056 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4057 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject * _resultobj;
4059 wxFontEncoding _result;
4060 wxFontMapper * _arg0;
4061 wxString * _arg1;
4062 bool _arg2 = (bool ) TRUE;
4063 PyObject * _argo0 = 0;
4064 PyObject * _obj1 = 0;
4065 int tempbool2 = (int) TRUE;
4066 char *_kwnames[] = { "self","charset","interactive", NULL };
4067
4068 self = self;
4069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
4070 return NULL;
4071 if (_argo0) {
4072 if (_argo0 == Py_None) { _arg0 = NULL; }
4073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4075 return NULL;
4076 }
4077 }
4078 {
4079 #if PYTHON_API_VERSION >= 1009
4080 char* tmpPtr; int tmpSize;
4081 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4082 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4083 return NULL;
4084 }
4085 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4086 return NULL;
4087 _arg1 = new wxString(tmpPtr, tmpSize);
4088 #else
4089 if (!PyString_Check(_obj1)) {
4090 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4091 return NULL;
4092 }
4093 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4094 #endif
4095 }
4096 _arg2 = (bool ) tempbool2;
4097 {
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
4099 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
4100
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) return NULL;
4103 } _resultobj = Py_BuildValue("i",_result);
4104 {
4105 if (_obj1)
4106 delete _arg1;
4107 }
4108 return _resultobj;
4109 }
4110
4111 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
4112 PyObject * _resultobj;
4113 wxString * _result;
4114 wxFontEncoding _arg0;
4115 char *_kwnames[] = { "encoding", NULL };
4116
4117 self = self;
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
4119 return NULL;
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
4123
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) return NULL;
4126 }{
4127 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4128 }
4129 {
4130 delete _result;
4131 }
4132 return _resultobj;
4133 }
4134
4135 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
4136 PyObject * _resultobj;
4137 wxString * _result;
4138 wxFontEncoding _arg0;
4139 char *_kwnames[] = { "encoding", NULL };
4140
4141 self = self;
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
4143 return NULL;
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) return NULL;
4150 }{
4151 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4152 }
4153 {
4154 delete _result;
4155 }
4156 return _resultobj;
4157 }
4158
4159 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4160 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject * _resultobj;
4162 wxFontMapper * _arg0;
4163 wxWindow * _arg1;
4164 PyObject * _argo0 = 0;
4165 PyObject * _argo1 = 0;
4166 char *_kwnames[] = { "self","parent", NULL };
4167
4168 self = self;
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
4170 return NULL;
4171 if (_argo0) {
4172 if (_argo0 == Py_None) { _arg0 = NULL; }
4173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4175 return NULL;
4176 }
4177 }
4178 if (_argo1) {
4179 if (_argo1 == Py_None) { _arg1 = NULL; }
4180 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4181 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4182 return NULL;
4183 }
4184 }
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 wxFontMapper_SetDialogParent(_arg0,_arg1);
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) return NULL;
4191 } Py_INCREF(Py_None);
4192 _resultobj = Py_None;
4193 return _resultobj;
4194 }
4195
4196 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4197 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4198 PyObject * _resultobj;
4199 wxFontMapper * _arg0;
4200 wxString * _arg1;
4201 PyObject * _argo0 = 0;
4202 PyObject * _obj1 = 0;
4203 char *_kwnames[] = { "self","title", NULL };
4204
4205 self = self;
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
4207 return NULL;
4208 if (_argo0) {
4209 if (_argo0 == Py_None) { _arg0 = NULL; }
4210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4212 return NULL;
4213 }
4214 }
4215 {
4216 #if PYTHON_API_VERSION >= 1009
4217 char* tmpPtr; int tmpSize;
4218 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4220 return NULL;
4221 }
4222 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4223 return NULL;
4224 _arg1 = new wxString(tmpPtr, tmpSize);
4225 #else
4226 if (!PyString_Check(_obj1)) {
4227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4228 return NULL;
4229 }
4230 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4231 #endif
4232 }
4233 {
4234 PyThreadState* __tstate = wxPyBeginAllowThreads();
4235 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
4236
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) return NULL;
4239 } Py_INCREF(Py_None);
4240 _resultobj = Py_None;
4241 {
4242 if (_obj1)
4243 delete _arg1;
4244 }
4245 return _resultobj;
4246 }
4247
4248 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4249 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject * _resultobj;
4251 wxFontMapper * _arg0;
4252 wxConfigBase * _arg1;
4253 PyObject * _argo0 = 0;
4254 PyObject * _argo1 = 0;
4255 char *_kwnames[] = { "self","config", NULL };
4256
4257 self = self;
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
4259 return NULL;
4260 if (_argo0) {
4261 if (_argo0 == Py_None) { _arg0 = NULL; }
4262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4264 return NULL;
4265 }
4266 }
4267 if (_argo1) {
4268 if (_argo1 == Py_None) { _arg1 = NULL; }
4269 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4270 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4271 return NULL;
4272 }
4273 }
4274 {
4275 PyThreadState* __tstate = wxPyBeginAllowThreads();
4276 wxFontMapper_SetConfig(_arg0,_arg1);
4277
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) return NULL;
4280 } Py_INCREF(Py_None);
4281 _resultobj = Py_None;
4282 return _resultobj;
4283 }
4284
4285 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4286 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject * _resultobj;
4288 wxFontMapper * _arg0;
4289 wxString * _arg1;
4290 PyObject * _argo0 = 0;
4291 PyObject * _obj1 = 0;
4292 char *_kwnames[] = { "self","prefix", NULL };
4293
4294 self = self;
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
4296 return NULL;
4297 if (_argo0) {
4298 if (_argo0 == Py_None) { _arg0 = NULL; }
4299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4301 return NULL;
4302 }
4303 }
4304 {
4305 #if PYTHON_API_VERSION >= 1009
4306 char* tmpPtr; int tmpSize;
4307 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4308 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4309 return NULL;
4310 }
4311 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4312 return NULL;
4313 _arg1 = new wxString(tmpPtr, tmpSize);
4314 #else
4315 if (!PyString_Check(_obj1)) {
4316 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4317 return NULL;
4318 }
4319 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4320 #endif
4321 }
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 wxFontMapper_SetConfigPath(_arg0,*_arg1);
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) return NULL;
4328 } Py_INCREF(Py_None);
4329 _resultobj = Py_None;
4330 {
4331 if (_obj1)
4332 delete _arg1;
4333 }
4334 return _resultobj;
4335 }
4336
4337 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject * _resultobj;
4339 wxChar * _result;
4340 char *_kwnames[] = { NULL };
4341
4342 self = self;
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
4344 return NULL;
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
4348
4349 wxPyEndAllowThreads(__tstate);
4350 if (PyErr_Occurred()) return NULL;
4351 } _resultobj = Py_BuildValue("s", _result);
4352 return _resultobj;
4353 }
4354
4355 static void *SwigwxFontTowxGDIObject(void *ptr) {
4356 wxFont *src;
4357 wxGDIObject *dest;
4358 src = (wxFont *) ptr;
4359 dest = (wxGDIObject *) src;
4360 return (void *) dest;
4361 }
4362
4363 static void *SwigwxFontTowxObject(void *ptr) {
4364 wxFont *src;
4365 wxObject *dest;
4366 src = (wxFont *) ptr;
4367 dest = (wxObject *) src;
4368 return (void *) dest;
4369 }
4370
4371 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4372 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4373 PyObject * _resultobj;
4374 wxFont * _result;
4375 int _arg0;
4376 int _arg1;
4377 int _arg2;
4378 int _arg3;
4379 int _arg4 = (int ) FALSE;
4380 char * _arg5 = (char *) "";
4381 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4382 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
4383 char _ptemp[128];
4384
4385 self = self;
4386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4387 return NULL;
4388 {
4389 PyThreadState* __tstate = wxPyBeginAllowThreads();
4390 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4391
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) return NULL;
4394 } if (_result) {
4395 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4396 _resultobj = Py_BuildValue("s",_ptemp);
4397 } else {
4398 Py_INCREF(Py_None);
4399 _resultobj = Py_None;
4400 }
4401 return _resultobj;
4402 }
4403
4404 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4405 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4406 PyObject * _resultobj;
4407 wxFont * _result;
4408 wxNativeFontInfo * _arg0;
4409 PyObject * _argo0 = 0;
4410 char *_kwnames[] = { "info", NULL };
4411 char _ptemp[128];
4412
4413 self = self;
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
4415 return NULL;
4416 if (_argo0) {
4417 if (_argo0 == Py_None) { _arg0 = NULL; }
4418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4420 return NULL;
4421 }
4422 }
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
4426
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) return NULL;
4429 } if (_result) {
4430 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4431 _resultobj = Py_BuildValue("s",_ptemp);
4432 } else {
4433 Py_INCREF(Py_None);
4434 _resultobj = Py_None;
4435 }
4436 return _resultobj;
4437 }
4438
4439 #define delete_wxFont(_swigobj) (delete _swigobj)
4440 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject * _resultobj;
4442 wxFont * _arg0;
4443 PyObject * _argo0 = 0;
4444 char *_kwnames[] = { "self", NULL };
4445
4446 self = self;
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
4448 return NULL;
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4453 return NULL;
4454 }
4455 }
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 delete_wxFont(_arg0);
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) return NULL;
4462 } Py_INCREF(Py_None);
4463 _resultobj = Py_None;
4464 return _resultobj;
4465 }
4466
4467 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4468 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4469 PyObject * _resultobj;
4470 bool _result;
4471 wxFont * _arg0;
4472 PyObject * _argo0 = 0;
4473 char *_kwnames[] = { "self", NULL };
4474
4475 self = self;
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
4477 return NULL;
4478 if (_argo0) {
4479 if (_argo0 == Py_None) { _arg0 = NULL; }
4480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4482 return NULL;
4483 }
4484 }
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 _result = (bool )wxFont_Ok(_arg0);
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) return NULL;
4491 } _resultobj = Py_BuildValue("i",_result);
4492 return _resultobj;
4493 }
4494
4495 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4496 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4497 PyObject * _resultobj;
4498 int _result;
4499 wxFont * _arg0;
4500 PyObject * _argo0 = 0;
4501 char *_kwnames[] = { "self", NULL };
4502
4503 self = self;
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
4505 return NULL;
4506 if (_argo0) {
4507 if (_argo0 == Py_None) { _arg0 = NULL; }
4508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4510 return NULL;
4511 }
4512 }
4513 {
4514 PyThreadState* __tstate = wxPyBeginAllowThreads();
4515 _result = (int )wxFont_GetPointSize(_arg0);
4516
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) return NULL;
4519 } _resultobj = Py_BuildValue("i",_result);
4520 return _resultobj;
4521 }
4522
4523 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4524 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4525 PyObject * _resultobj;
4526 int _result;
4527 wxFont * _arg0;
4528 PyObject * _argo0 = 0;
4529 char *_kwnames[] = { "self", NULL };
4530
4531 self = self;
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
4533 return NULL;
4534 if (_argo0) {
4535 if (_argo0 == Py_None) { _arg0 = NULL; }
4536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4538 return NULL;
4539 }
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 _result = (int )wxFont_GetFamily(_arg0);
4544
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) return NULL;
4547 } _resultobj = Py_BuildValue("i",_result);
4548 return _resultobj;
4549 }
4550
4551 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4552 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4553 PyObject * _resultobj;
4554 int _result;
4555 wxFont * _arg0;
4556 PyObject * _argo0 = 0;
4557 char *_kwnames[] = { "self", NULL };
4558
4559 self = self;
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
4561 return NULL;
4562 if (_argo0) {
4563 if (_argo0 == Py_None) { _arg0 = NULL; }
4564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4566 return NULL;
4567 }
4568 }
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 _result = (int )wxFont_GetStyle(_arg0);
4572
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) return NULL;
4575 } _resultobj = Py_BuildValue("i",_result);
4576 return _resultobj;
4577 }
4578
4579 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4580 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4581 PyObject * _resultobj;
4582 int _result;
4583 wxFont * _arg0;
4584 PyObject * _argo0 = 0;
4585 char *_kwnames[] = { "self", NULL };
4586
4587 self = self;
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4589 return NULL;
4590 if (_argo0) {
4591 if (_argo0 == Py_None) { _arg0 = NULL; }
4592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4594 return NULL;
4595 }
4596 }
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 _result = (int )wxFont_GetWeight(_arg0);
4600
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) return NULL;
4603 } _resultobj = Py_BuildValue("i",_result);
4604 return _resultobj;
4605 }
4606
4607 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4608 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4609 PyObject * _resultobj;
4610 bool _result;
4611 wxFont * _arg0;
4612 PyObject * _argo0 = 0;
4613 char *_kwnames[] = { "self", NULL };
4614
4615 self = self;
4616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4617 return NULL;
4618 if (_argo0) {
4619 if (_argo0 == Py_None) { _arg0 = NULL; }
4620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4622 return NULL;
4623 }
4624 }
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 _result = (bool )wxFont_GetUnderlined(_arg0);
4628
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) return NULL;
4631 } _resultobj = Py_BuildValue("i",_result);
4632 return _resultobj;
4633 }
4634
4635 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4636 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4637 PyObject * _resultobj;
4638 wxString * _result;
4639 wxFont * _arg0;
4640 PyObject * _argo0 = 0;
4641 char *_kwnames[] = { "self", NULL };
4642
4643 self = self;
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4645 return NULL;
4646 if (_argo0) {
4647 if (_argo0 == Py_None) { _arg0 = NULL; }
4648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4650 return NULL;
4651 }
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 _result = new wxString (wxFont_GetFaceName(_arg0));
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) return NULL;
4659 }{
4660 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4661 }
4662 {
4663 delete _result;
4664 }
4665 return _resultobj;
4666 }
4667
4668 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4669 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4670 PyObject * _resultobj;
4671 wxFontEncoding _result;
4672 wxFont * _arg0;
4673 PyObject * _argo0 = 0;
4674 char *_kwnames[] = { "self", NULL };
4675
4676 self = self;
4677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4678 return NULL;
4679 if (_argo0) {
4680 if (_argo0 == Py_None) { _arg0 = NULL; }
4681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4683 return NULL;
4684 }
4685 }
4686 {
4687 PyThreadState* __tstate = wxPyBeginAllowThreads();
4688 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4689
4690 wxPyEndAllowThreads(__tstate);
4691 if (PyErr_Occurred()) return NULL;
4692 } _resultobj = Py_BuildValue("i",_result);
4693 return _resultobj;
4694 }
4695
4696 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4697 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4698 PyObject * _resultobj;
4699 bool _result;
4700 wxFont * _arg0;
4701 PyObject * _argo0 = 0;
4702 char *_kwnames[] = { "self", NULL };
4703
4704 self = self;
4705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
4706 return NULL;
4707 if (_argo0) {
4708 if (_argo0 == Py_None) { _arg0 = NULL; }
4709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4711 return NULL;
4712 }
4713 }
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 _result = (bool )wxFont_IsFixedWidth(_arg0);
4717
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) return NULL;
4720 } _resultobj = Py_BuildValue("i",_result);
4721 return _resultobj;
4722 }
4723
4724 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4725 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4726 PyObject * _resultobj;
4727 wxNativeFontInfo * _result;
4728 wxFont * _arg0;
4729 PyObject * _argo0 = 0;
4730 char *_kwnames[] = { "self", NULL };
4731 char _ptemp[128];
4732
4733 self = self;
4734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4735 return NULL;
4736 if (_argo0) {
4737 if (_argo0 == Py_None) { _arg0 = NULL; }
4738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4740 return NULL;
4741 }
4742 }
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4746
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) return NULL;
4749 } if (_result) {
4750 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4751 _resultobj = Py_BuildValue("s",_ptemp);
4752 } else {
4753 Py_INCREF(Py_None);
4754 _resultobj = Py_None;
4755 }
4756 return _resultobj;
4757 }
4758
4759 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4760 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4761 PyObject * _resultobj;
4762 wxString * _result;
4763 wxFont * _arg0;
4764 PyObject * _argo0 = 0;
4765 char *_kwnames[] = { "self", NULL };
4766
4767 self = self;
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4769 return NULL;
4770 if (_argo0) {
4771 if (_argo0 == Py_None) { _arg0 = NULL; }
4772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4774 return NULL;
4775 }
4776 }
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4780
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) return NULL;
4783 }{
4784 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4785 }
4786 {
4787 delete _result;
4788 }
4789 return _resultobj;
4790 }
4791
4792 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4793 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4794 PyObject * _resultobj;
4795 wxString * _result;
4796 wxFont * _arg0;
4797 PyObject * _argo0 = 0;
4798 char *_kwnames[] = { "self", NULL };
4799
4800 self = self;
4801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4802 return NULL;
4803 if (_argo0) {
4804 if (_argo0 == Py_None) { _arg0 = NULL; }
4805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4807 return NULL;
4808 }
4809 }
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) return NULL;
4816 }{
4817 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4818 }
4819 {
4820 delete _result;
4821 }
4822 return _resultobj;
4823 }
4824
4825 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4826 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject * _resultobj;
4828 wxFont * _arg0;
4829 int _arg1;
4830 PyObject * _argo0 = 0;
4831 char *_kwnames[] = { "self","pointSize", NULL };
4832
4833 self = self;
4834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4835 return NULL;
4836 if (_argo0) {
4837 if (_argo0 == Py_None) { _arg0 = NULL; }
4838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4840 return NULL;
4841 }
4842 }
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 wxFont_SetPointSize(_arg0,_arg1);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) return NULL;
4849 } Py_INCREF(Py_None);
4850 _resultobj = Py_None;
4851 return _resultobj;
4852 }
4853
4854 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4855 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4856 PyObject * _resultobj;
4857 wxFont * _arg0;
4858 int _arg1;
4859 PyObject * _argo0 = 0;
4860 char *_kwnames[] = { "self","family", NULL };
4861
4862 self = self;
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4864 return NULL;
4865 if (_argo0) {
4866 if (_argo0 == Py_None) { _arg0 = NULL; }
4867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4869 return NULL;
4870 }
4871 }
4872 {
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 wxFont_SetFamily(_arg0,_arg1);
4875
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) return NULL;
4878 } Py_INCREF(Py_None);
4879 _resultobj = Py_None;
4880 return _resultobj;
4881 }
4882
4883 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4884 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4885 PyObject * _resultobj;
4886 wxFont * _arg0;
4887 int _arg1;
4888 PyObject * _argo0 = 0;
4889 char *_kwnames[] = { "self","style", NULL };
4890
4891 self = self;
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4893 return NULL;
4894 if (_argo0) {
4895 if (_argo0 == Py_None) { _arg0 = NULL; }
4896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4898 return NULL;
4899 }
4900 }
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 wxFont_SetStyle(_arg0,_arg1);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) return NULL;
4907 } Py_INCREF(Py_None);
4908 _resultobj = Py_None;
4909 return _resultobj;
4910 }
4911
4912 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4913 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4914 PyObject * _resultobj;
4915 wxFont * _arg0;
4916 int _arg1;
4917 PyObject * _argo0 = 0;
4918 char *_kwnames[] = { "self","weight", NULL };
4919
4920 self = self;
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4922 return NULL;
4923 if (_argo0) {
4924 if (_argo0 == Py_None) { _arg0 = NULL; }
4925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4927 return NULL;
4928 }
4929 }
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 wxFont_SetWeight(_arg0,_arg1);
4933
4934 wxPyEndAllowThreads(__tstate);
4935 if (PyErr_Occurred()) return NULL;
4936 } Py_INCREF(Py_None);
4937 _resultobj = Py_None;
4938 return _resultobj;
4939 }
4940
4941 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4942 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4943 PyObject * _resultobj;
4944 wxFont * _arg0;
4945 wxString * _arg1;
4946 PyObject * _argo0 = 0;
4947 PyObject * _obj1 = 0;
4948 char *_kwnames[] = { "self","faceName", NULL };
4949
4950 self = self;
4951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4952 return NULL;
4953 if (_argo0) {
4954 if (_argo0 == Py_None) { _arg0 = NULL; }
4955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4957 return NULL;
4958 }
4959 }
4960 {
4961 #if PYTHON_API_VERSION >= 1009
4962 char* tmpPtr; int tmpSize;
4963 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4964 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4965 return NULL;
4966 }
4967 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4968 return NULL;
4969 _arg1 = new wxString(tmpPtr, tmpSize);
4970 #else
4971 if (!PyString_Check(_obj1)) {
4972 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4973 return NULL;
4974 }
4975 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4976 #endif
4977 }
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 wxFont_SetFaceName(_arg0,*_arg1);
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) return NULL;
4984 } Py_INCREF(Py_None);
4985 _resultobj = Py_None;
4986 {
4987 if (_obj1)
4988 delete _arg1;
4989 }
4990 return _resultobj;
4991 }
4992
4993 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4994 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4995 PyObject * _resultobj;
4996 wxFont * _arg0;
4997 bool _arg1;
4998 PyObject * _argo0 = 0;
4999 int tempbool1;
5000 char *_kwnames[] = { "self","underlined", NULL };
5001
5002 self = self;
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
5004 return NULL;
5005 if (_argo0) {
5006 if (_argo0 == Py_None) { _arg0 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
5009 return NULL;
5010 }
5011 }
5012 _arg1 = (bool ) tempbool1;
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 wxFont_SetUnderlined(_arg0,_arg1);
5016
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) return NULL;
5019 } Py_INCREF(Py_None);
5020 _resultobj = Py_None;
5021 return _resultobj;
5022 }
5023
5024 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
5025 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject * _resultobj;
5027 wxFont * _arg0;
5028 wxFontEncoding _arg1;
5029 PyObject * _argo0 = 0;
5030 char *_kwnames[] = { "self","encoding", NULL };
5031
5032 self = self;
5033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
5034 return NULL;
5035 if (_argo0) {
5036 if (_argo0 == Py_None) { _arg0 = NULL; }
5037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5039 return NULL;
5040 }
5041 }
5042 {
5043 PyThreadState* __tstate = wxPyBeginAllowThreads();
5044 wxFont_SetEncoding(_arg0,_arg1);
5045
5046 wxPyEndAllowThreads(__tstate);
5047 if (PyErr_Occurred()) return NULL;
5048 } Py_INCREF(Py_None);
5049 _resultobj = Py_None;
5050 return _resultobj;
5051 }
5052
5053 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5054 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5055 PyObject * _resultobj;
5056 wxFont * _arg0;
5057 wxNativeFontInfo * _arg1;
5058 PyObject * _argo0 = 0;
5059 PyObject * _argo1 = 0;
5060 char *_kwnames[] = { "self","info", NULL };
5061
5062 self = self;
5063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
5064 return NULL;
5065 if (_argo0) {
5066 if (_argo0 == Py_None) { _arg0 = NULL; }
5067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5069 return NULL;
5070 }
5071 }
5072 if (_argo1) {
5073 if (_argo1 == Py_None) { _arg1 = NULL; }
5074 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
5075 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5076 return NULL;
5077 }
5078 }
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 wxFont_SetNativeFontInfo(_arg0,*_arg1);
5082
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) return NULL;
5085 } Py_INCREF(Py_None);
5086 _resultobj = Py_None;
5087 return _resultobj;
5088 }
5089
5090 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5091 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
5092 PyObject * _resultobj;
5093 wxFont * _arg0;
5094 wxString * _arg1;
5095 PyObject * _argo0 = 0;
5096 PyObject * _obj1 = 0;
5097 char *_kwnames[] = { "self","info", NULL };
5098
5099 self = self;
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
5101 return NULL;
5102 if (_argo0) {
5103 if (_argo0 == Py_None) { _arg0 = NULL; }
5104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5106 return NULL;
5107 }
5108 }
5109 {
5110 #if PYTHON_API_VERSION >= 1009
5111 char* tmpPtr; int tmpSize;
5112 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5113 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5114 return NULL;
5115 }
5116 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5117 return NULL;
5118 _arg1 = new wxString(tmpPtr, tmpSize);
5119 #else
5120 if (!PyString_Check(_obj1)) {
5121 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5122 return NULL;
5123 }
5124 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5125 #endif
5126 }
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
5130
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) return NULL;
5133 } Py_INCREF(Py_None);
5134 _resultobj = Py_None;
5135 {
5136 if (_obj1)
5137 delete _arg1;
5138 }
5139 return _resultobj;
5140 }
5141
5142 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5143 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
5144 PyObject * _resultobj;
5145 wxString * _result;
5146 wxFont * _arg0;
5147 PyObject * _argo0 = 0;
5148 char *_kwnames[] = { "self", NULL };
5149
5150 self = self;
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
5152 return NULL;
5153 if (_argo0) {
5154 if (_argo0 == Py_None) { _arg0 = NULL; }
5155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5157 return NULL;
5158 }
5159 }
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 _result = new wxString (wxFont_GetFamilyString(_arg0));
5163
5164 wxPyEndAllowThreads(__tstate);
5165 if (PyErr_Occurred()) return NULL;
5166 }{
5167 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5168 }
5169 {
5170 delete _result;
5171 }
5172 return _resultobj;
5173 }
5174
5175 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5176 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject * _resultobj;
5178 wxString * _result;
5179 wxFont * _arg0;
5180 PyObject * _argo0 = 0;
5181 char *_kwnames[] = { "self", NULL };
5182
5183 self = self;
5184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
5185 return NULL;
5186 if (_argo0) {
5187 if (_argo0 == Py_None) { _arg0 = NULL; }
5188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5190 return NULL;
5191 }
5192 }
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 _result = new wxString (wxFont_GetStyleString(_arg0));
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) return NULL;
5199 }{
5200 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5201 }
5202 {
5203 delete _result;
5204 }
5205 return _resultobj;
5206 }
5207
5208 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5209 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
5210 PyObject * _resultobj;
5211 wxString * _result;
5212 wxFont * _arg0;
5213 PyObject * _argo0 = 0;
5214 char *_kwnames[] = { "self", NULL };
5215
5216 self = self;
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
5218 return NULL;
5219 if (_argo0) {
5220 if (_argo0 == Py_None) { _arg0 = NULL; }
5221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5223 return NULL;
5224 }
5225 }
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 _result = new wxString (wxFont_GetWeightString(_arg0));
5229
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) return NULL;
5232 }{
5233 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5234 }
5235 {
5236 delete _result;
5237 }
5238 return _resultobj;
5239 }
5240
5241 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject * _resultobj;
5243 wxFontEncoding _result;
5244 char *_kwnames[] = { NULL };
5245
5246 self = self;
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
5248 return NULL;
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
5255 } _resultobj = Py_BuildValue("i",_result);
5256 return _resultobj;
5257 }
5258
5259 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5260 PyObject * _resultobj;
5261 wxFontEncoding _arg0;
5262 char *_kwnames[] = { "encoding", NULL };
5263
5264 self = self;
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
5266 return NULL;
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 wxFont::SetDefaultEncoding(_arg0);
5270
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) return NULL;
5273 } Py_INCREF(Py_None);
5274 _resultobj = Py_None;
5275 return _resultobj;
5276 }
5277
5278 static void *SwigwxFontListTowxObject(void *ptr) {
5279 wxFontList *src;
5280 wxObject *dest;
5281 src = (wxFontList *) ptr;
5282 dest = (wxObject *) src;
5283 return (void *) dest;
5284 }
5285
5286 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5287 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5288 PyObject * _resultobj;
5289 wxFontList * _arg0;
5290 wxFont * _arg1;
5291 PyObject * _argo0 = 0;
5292 PyObject * _argo1 = 0;
5293 char *_kwnames[] = { "self","font", NULL };
5294
5295 self = self;
5296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
5297 return NULL;
5298 if (_argo0) {
5299 if (_argo0 == Py_None) { _arg0 = NULL; }
5300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5302 return NULL;
5303 }
5304 }
5305 if (_argo1) {
5306 if (_argo1 == Py_None) { _arg1 = NULL; }
5307 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5308 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5309 return NULL;
5310 }
5311 }
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 wxFontList_AddFont(_arg0,_arg1);
5315
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) return NULL;
5318 } Py_INCREF(Py_None);
5319 _resultobj = Py_None;
5320 return _resultobj;
5321 }
5322
5323 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5324 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject * _resultobj;
5326 wxFont * _result;
5327 wxFontList * _arg0;
5328 int _arg1;
5329 int _arg2;
5330 int _arg3;
5331 int _arg4;
5332 bool _arg5 = (bool ) FALSE;
5333 char * _arg6 = (char *) NULL;
5334 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
5335 PyObject * _argo0 = 0;
5336 int tempbool5 = (int) FALSE;
5337 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
5338 char _ptemp[128];
5339
5340 self = self;
5341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
5342 return NULL;
5343 if (_argo0) {
5344 if (_argo0 == Py_None) { _arg0 = NULL; }
5345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5347 return NULL;
5348 }
5349 }
5350 _arg5 = (bool ) tempbool5;
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) return NULL;
5357 } if (_result) {
5358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5359 _resultobj = Py_BuildValue("s",_ptemp);
5360 } else {
5361 Py_INCREF(Py_None);
5362 _resultobj = Py_None;
5363 }
5364 return _resultobj;
5365 }
5366
5367 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5368 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5369 PyObject * _resultobj;
5370 wxFontList * _arg0;
5371 wxFont * _arg1;
5372 PyObject * _argo0 = 0;
5373 PyObject * _argo1 = 0;
5374 char *_kwnames[] = { "self","font", NULL };
5375
5376 self = self;
5377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
5378 return NULL;
5379 if (_argo0) {
5380 if (_argo0 == Py_None) { _arg0 = NULL; }
5381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5383 return NULL;
5384 }
5385 }
5386 if (_argo1) {
5387 if (_argo1 == Py_None) { _arg1 = NULL; }
5388 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5389 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5390 return NULL;
5391 }
5392 }
5393 {
5394 PyThreadState* __tstate = wxPyBeginAllowThreads();
5395 wxFontList_RemoveFont(_arg0,_arg1);
5396
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) return NULL;
5399 } Py_INCREF(Py_None);
5400 _resultobj = Py_None;
5401 return _resultobj;
5402 }
5403
5404 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5405 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject * _resultobj;
5407 int _result;
5408 wxFontList * _arg0;
5409 PyObject * _argo0 = 0;
5410 char *_kwnames[] = { "self", NULL };
5411
5412 self = self;
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
5414 return NULL;
5415 if (_argo0) {
5416 if (_argo0 == Py_None) { _arg0 = NULL; }
5417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5419 return NULL;
5420 }
5421 }
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 _result = (int )wxFontList_GetCount(_arg0);
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) return NULL;
5428 } _resultobj = Py_BuildValue("i",_result);
5429 return _resultobj;
5430 }
5431
5432 static void *SwigwxColourTowxObject(void *ptr) {
5433 wxColour *src;
5434 wxObject *dest;
5435 src = (wxColour *) ptr;
5436 dest = (wxObject *) src;
5437 return (void *) dest;
5438 }
5439
5440 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5441 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5442 PyObject * _resultobj;
5443 wxColour * _result;
5444 unsigned char _arg0 = (unsigned char ) 0;
5445 unsigned char _arg1 = (unsigned char ) 0;
5446 unsigned char _arg2 = (unsigned char ) 0;
5447 char *_kwnames[] = { "red","green","blue", NULL };
5448 char _ptemp[128];
5449
5450 self = self;
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
5452 return NULL;
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) return NULL;
5459 } if (_result) {
5460 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5461 _resultobj = Py_BuildValue("s",_ptemp);
5462 } else {
5463 Py_INCREF(Py_None);
5464 _resultobj = Py_None;
5465 }
5466 return _resultobj;
5467 }
5468
5469 #define delete_wxColour(_swigobj) (delete _swigobj)
5470 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject * _resultobj;
5472 wxColour * _arg0;
5473 wxColour temp;
5474 PyObject * _obj0 = 0;
5475 char *_kwnames[] = { "self", NULL };
5476
5477 self = self;
5478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
5479 return NULL;
5480 {
5481 _arg0 = &temp;
5482 if (! wxColour_helper(_obj0, &_arg0))
5483 return NULL;
5484 }
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 delete_wxColour(_arg0);
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) return NULL;
5491 } Py_INCREF(Py_None);
5492 _resultobj = Py_None;
5493 return _resultobj;
5494 }
5495
5496 #define wxColour_Red(_swigobj) (_swigobj->Red())
5497 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
5498 PyObject * _resultobj;
5499 unsigned char _result;
5500 wxColour * _arg0;
5501 wxColour temp;
5502 PyObject * _obj0 = 0;
5503 char *_kwnames[] = { "self", NULL };
5504
5505 self = self;
5506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
5507 return NULL;
5508 {
5509 _arg0 = &temp;
5510 if (! wxColour_helper(_obj0, &_arg0))
5511 return NULL;
5512 }
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 _result = (unsigned char )wxColour_Red(_arg0);
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) return NULL;
5519 } _resultobj = Py_BuildValue("b",_result);
5520 return _resultobj;
5521 }
5522
5523 #define wxColour_Green(_swigobj) (_swigobj->Green())
5524 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
5525 PyObject * _resultobj;
5526 unsigned char _result;
5527 wxColour * _arg0;
5528 wxColour temp;
5529 PyObject * _obj0 = 0;
5530 char *_kwnames[] = { "self", NULL };
5531
5532 self = self;
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
5534 return NULL;
5535 {
5536 _arg0 = &temp;
5537 if (! wxColour_helper(_obj0, &_arg0))
5538 return NULL;
5539 }
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 _result = (unsigned char )wxColour_Green(_arg0);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) return NULL;
5546 } _resultobj = Py_BuildValue("b",_result);
5547 return _resultobj;
5548 }
5549
5550 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5551 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject * _resultobj;
5553 unsigned char _result;
5554 wxColour * _arg0;
5555 wxColour temp;
5556 PyObject * _obj0 = 0;
5557 char *_kwnames[] = { "self", NULL };
5558
5559 self = self;
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
5561 return NULL;
5562 {
5563 _arg0 = &temp;
5564 if (! wxColour_helper(_obj0, &_arg0))
5565 return NULL;
5566 }
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 _result = (unsigned char )wxColour_Blue(_arg0);
5570
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) return NULL;
5573 } _resultobj = Py_BuildValue("b",_result);
5574 return _resultobj;
5575 }
5576
5577 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5578 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject * _resultobj;
5580 bool _result;
5581 wxColour * _arg0;
5582 wxColour temp;
5583 PyObject * _obj0 = 0;
5584 char *_kwnames[] = { "self", NULL };
5585
5586 self = self;
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
5588 return NULL;
5589 {
5590 _arg0 = &temp;
5591 if (! wxColour_helper(_obj0, &_arg0))
5592 return NULL;
5593 }
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 _result = (bool )wxColour_Ok(_arg0);
5597
5598 wxPyEndAllowThreads(__tstate);
5599 if (PyErr_Occurred()) return NULL;
5600 } _resultobj = Py_BuildValue("i",_result);
5601 return _resultobj;
5602 }
5603
5604 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5605 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5606 PyObject * _resultobj;
5607 wxColour * _arg0;
5608 unsigned char _arg1;
5609 unsigned char _arg2;
5610 unsigned char _arg3;
5611 wxColour temp;
5612 PyObject * _obj0 = 0;
5613 char *_kwnames[] = { "self","red","green","blue", NULL };
5614
5615 self = self;
5616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
5617 return NULL;
5618 {
5619 _arg0 = &temp;
5620 if (! wxColour_helper(_obj0, &_arg0))
5621 return NULL;
5622 }
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
5626
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) return NULL;
5629 } Py_INCREF(Py_None);
5630 _resultobj = Py_None;
5631 return _resultobj;
5632 }
5633
5634 static PyObject * wxColour_Get(wxColour *self) {
5635 PyObject* rv = PyTuple_New(3);
5636 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
5637 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
5638 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
5639 return rv;
5640 }
5641 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject * _resultobj;
5643 PyObject * _result;
5644 wxColour * _arg0;
5645 wxColour temp;
5646 PyObject * _obj0 = 0;
5647 char *_kwnames[] = { "self", NULL };
5648
5649 self = self;
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
5651 return NULL;
5652 {
5653 _arg0 = &temp;
5654 if (! wxColour_helper(_obj0, &_arg0))
5655 return NULL;
5656 }
5657 {
5658 PyThreadState* __tstate = wxPyBeginAllowThreads();
5659 _result = (PyObject *)wxColour_Get(_arg0);
5660
5661 wxPyEndAllowThreads(__tstate);
5662 if (PyErr_Occurred()) return NULL;
5663 }{
5664 _resultobj = _result;
5665 }
5666 return _resultobj;
5667 }
5668
5669 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
5670 wxColourDatabase *src;
5671 wxObject *dest;
5672 src = (wxColourDatabase *) ptr;
5673 dest = (wxObject *) src;
5674 return (void *) dest;
5675 }
5676
5677 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5678 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject * _resultobj;
5680 wxColour * _result;
5681 wxColourDatabase * _arg0;
5682 wxString * _arg1;
5683 PyObject * _argo0 = 0;
5684 PyObject * _obj1 = 0;
5685 char *_kwnames[] = { "self","colour", NULL };
5686 char _ptemp[128];
5687
5688 self = self;
5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5690 return NULL;
5691 if (_argo0) {
5692 if (_argo0 == Py_None) { _arg0 = NULL; }
5693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5695 return NULL;
5696 }
5697 }
5698 {
5699 #if PYTHON_API_VERSION >= 1009
5700 char* tmpPtr; int tmpSize;
5701 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5703 return NULL;
5704 }
5705 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5706 return NULL;
5707 _arg1 = new wxString(tmpPtr, tmpSize);
5708 #else
5709 if (!PyString_Check(_obj1)) {
5710 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5711 return NULL;
5712 }
5713 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5714 #endif
5715 }
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) return NULL;
5722 } if (_result) {
5723 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5724 _resultobj = Py_BuildValue("s",_ptemp);
5725 } else {
5726 Py_INCREF(Py_None);
5727 _resultobj = Py_None;
5728 }
5729 {
5730 if (_obj1)
5731 delete _arg1;
5732 }
5733 return _resultobj;
5734 }
5735
5736 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5737 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5738 PyObject * _resultobj;
5739 wxString * _result;
5740 wxColourDatabase * _arg0;
5741 wxColour * _arg1;
5742 PyObject * _argo0 = 0;
5743 wxColour temp;
5744 PyObject * _obj1 = 0;
5745 char *_kwnames[] = { "self","colour", NULL };
5746
5747 self = self;
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5749 return NULL;
5750 if (_argo0) {
5751 if (_argo0 == Py_None) { _arg0 = NULL; }
5752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5754 return NULL;
5755 }
5756 }
5757 {
5758 _arg1 = &temp;
5759 if (! wxColour_helper(_obj1, &_arg1))
5760 return NULL;
5761 }
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) return NULL;
5768 }{
5769 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5770 }
5771 {
5772 delete _result;
5773 }
5774 return _resultobj;
5775 }
5776
5777 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5778 // first see if the name is already there
5779 wxString cName = name;
5780 cName.MakeUpper();
5781 wxString cName2 = cName;
5782 if ( !cName2.Replace("GRAY", "GREY") )
5783 cName2.clear();
5784
5785 wxNode *node = self->First();
5786 while ( node ) {
5787 const wxChar *key = node->GetKeyString();
5788 if ( cName == key || cName2 == key ) {
5789 wxColour* c = (wxColour *)node->Data();
5790 c->Set(red, green, blue);
5791 return;
5792 }
5793 node = node->Next();
5794 }
5795
5796 // otherwise append the new colour
5797 self->Append(name.c_str(), new wxColour(red, green, blue));
5798 }
5799 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5800 PyObject * _resultobj;
5801 wxColourDatabase * _arg0;
5802 wxString * _arg1;
5803 int _arg2;
5804 int _arg3;
5805 int _arg4;
5806 PyObject * _argo0 = 0;
5807 PyObject * _obj1 = 0;
5808 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5809
5810 self = self;
5811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5812 return NULL;
5813 if (_argo0) {
5814 if (_argo0 == Py_None) { _arg0 = NULL; }
5815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5817 return NULL;
5818 }
5819 }
5820 {
5821 #if PYTHON_API_VERSION >= 1009
5822 char* tmpPtr; int tmpSize;
5823 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5824 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5825 return NULL;
5826 }
5827 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5828 return NULL;
5829 _arg1 = new wxString(tmpPtr, tmpSize);
5830 #else
5831 if (!PyString_Check(_obj1)) {
5832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5833 return NULL;
5834 }
5835 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5836 #endif
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5841
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) return NULL;
5844 } Py_INCREF(Py_None);
5845 _resultobj = Py_None;
5846 {
5847 if (_obj1)
5848 delete _arg1;
5849 }
5850 return _resultobj;
5851 }
5852
5853 static void *SwigwxPenTowxGDIObject(void *ptr) {
5854 wxPen *src;
5855 wxGDIObject *dest;
5856 src = (wxPen *) ptr;
5857 dest = (wxGDIObject *) src;
5858 return (void *) dest;
5859 }
5860
5861 static void *SwigwxPenTowxObject(void *ptr) {
5862 wxPen *src;
5863 wxObject *dest;
5864 src = (wxPen *) ptr;
5865 dest = (wxObject *) src;
5866 return (void *) dest;
5867 }
5868
5869 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5870 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject * _resultobj;
5872 wxPen * _result;
5873 wxColour * _arg0;
5874 int _arg1 = (int ) 1;
5875 int _arg2 = (int ) wxSOLID;
5876 wxColour temp;
5877 PyObject * _obj0 = 0;
5878 char *_kwnames[] = { "colour","width","style", NULL };
5879 char _ptemp[128];
5880
5881 self = self;
5882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5883 return NULL;
5884 {
5885 _arg0 = &temp;
5886 if (! wxColour_helper(_obj0, &_arg0))
5887 return NULL;
5888 }
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5892
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) return NULL;
5895 } if (_result) {
5896 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5897 _resultobj = Py_BuildValue("s",_ptemp);
5898 } else {
5899 Py_INCREF(Py_None);
5900 _resultobj = Py_None;
5901 }
5902 return _resultobj;
5903 }
5904
5905 #define delete_wxPen(_swigobj) (delete _swigobj)
5906 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5907 PyObject * _resultobj;
5908 wxPen * _arg0;
5909 PyObject * _argo0 = 0;
5910 char *_kwnames[] = { "self", NULL };
5911
5912 self = self;
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5914 return NULL;
5915 if (_argo0) {
5916 if (_argo0 == Py_None) { _arg0 = NULL; }
5917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5919 return NULL;
5920 }
5921 }
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 delete_wxPen(_arg0);
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) return NULL;
5928 } Py_INCREF(Py_None);
5929 _resultobj = Py_None;
5930 return _resultobj;
5931 }
5932
5933 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5934 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5935 PyObject * _resultobj;
5936 int _result;
5937 wxPen * _arg0;
5938 PyObject * _argo0 = 0;
5939 char *_kwnames[] = { "self", NULL };
5940
5941 self = self;
5942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5943 return NULL;
5944 if (_argo0) {
5945 if (_argo0 == Py_None) { _arg0 = NULL; }
5946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5948 return NULL;
5949 }
5950 }
5951 {
5952 PyThreadState* __tstate = wxPyBeginAllowThreads();
5953 _result = (int )wxPen_GetCap(_arg0);
5954
5955 wxPyEndAllowThreads(__tstate);
5956 if (PyErr_Occurred()) return NULL;
5957 } _resultobj = Py_BuildValue("i",_result);
5958 return _resultobj;
5959 }
5960
5961 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5962 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject * _resultobj;
5964 wxColour * _result;
5965 wxPen * _arg0;
5966 PyObject * _argo0 = 0;
5967 char *_kwnames[] = { "self", NULL };
5968 char _ptemp[128];
5969
5970 self = self;
5971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5972 return NULL;
5973 if (_argo0) {
5974 if (_argo0 == Py_None) { _arg0 = NULL; }
5975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5977 return NULL;
5978 }
5979 }
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 _result = new wxColour (wxPen_GetColour(_arg0));
5983
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) return NULL;
5986 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5987 _resultobj = Py_BuildValue("s",_ptemp);
5988 return _resultobj;
5989 }
5990
5991 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5992 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5993 PyObject * _resultobj;
5994 int _result;
5995 wxPen * _arg0;
5996 PyObject * _argo0 = 0;
5997 char *_kwnames[] = { "self", NULL };
5998
5999 self = self;
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
6001 return NULL;
6002 if (_argo0) {
6003 if (_argo0 == Py_None) { _arg0 = NULL; }
6004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
6006 return NULL;
6007 }
6008 }
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 _result = (int )wxPen_GetJoin(_arg0);
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) return NULL;
6015 } _resultobj = Py_BuildValue("i",_result);
6016 return _resultobj;
6017 }
6018
6019 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
6020 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject * _resultobj;
6022 int _result;
6023 wxPen * _arg0;
6024 PyObject * _argo0 = 0;
6025 char *_kwnames[] = { "self", NULL };
6026
6027 self = self;
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
6029 return NULL;
6030 if (_argo0) {
6031 if (_argo0 == Py_None) { _arg0 = NULL; }
6032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
6034 return NULL;
6035 }
6036 }
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 _result = (int )wxPen_GetStyle(_arg0);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) return NULL;
6043 } _resultobj = Py_BuildValue("i",_result);
6044 return _resultobj;
6045 }
6046
6047 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6048 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject * _resultobj;
6050 int _result;
6051 wxPen * _arg0;
6052 PyObject * _argo0 = 0;
6053 char *_kwnames[] = { "self", NULL };
6054
6055 self = self;
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
6057 return NULL;
6058 if (_argo0) {
6059 if (_argo0 == Py_None) { _arg0 = NULL; }
6060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6062 return NULL;
6063 }
6064 }
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 _result = (int )wxPen_GetWidth(_arg0);
6068
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) return NULL;
6071 } _resultobj = Py_BuildValue("i",_result);
6072 return _resultobj;
6073 }
6074
6075 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6076 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6077 PyObject * _resultobj;
6078 bool _result;
6079 wxPen * _arg0;
6080 PyObject * _argo0 = 0;
6081 char *_kwnames[] = { "self", NULL };
6082
6083 self = self;
6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
6085 return NULL;
6086 if (_argo0) {
6087 if (_argo0 == Py_None) { _arg0 = NULL; }
6088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6090 return NULL;
6091 }
6092 }
6093 {
6094 PyThreadState* __tstate = wxPyBeginAllowThreads();
6095 _result = (bool )wxPen_Ok(_arg0);
6096
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) return NULL;
6099 } _resultobj = Py_BuildValue("i",_result);
6100 return _resultobj;
6101 }
6102
6103 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6104 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
6105 PyObject * _resultobj;
6106 wxPen * _arg0;
6107 int _arg1;
6108 PyObject * _argo0 = 0;
6109 char *_kwnames[] = { "self","cap_style", NULL };
6110
6111 self = self;
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
6113 return NULL;
6114 if (_argo0) {
6115 if (_argo0 == Py_None) { _arg0 = NULL; }
6116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6118 return NULL;
6119 }
6120 }
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 wxPen_SetCap(_arg0,_arg1);
6124
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) return NULL;
6127 } Py_INCREF(Py_None);
6128 _resultobj = Py_None;
6129 return _resultobj;
6130 }
6131
6132 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6133 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6134 PyObject * _resultobj;
6135 wxPen * _arg0;
6136 wxColour * _arg1;
6137 PyObject * _argo0 = 0;
6138 wxColour temp;
6139 PyObject * _obj1 = 0;
6140 char *_kwnames[] = { "self","colour", NULL };
6141
6142 self = self;
6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
6144 return NULL;
6145 if (_argo0) {
6146 if (_argo0 == Py_None) { _arg0 = NULL; }
6147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6149 return NULL;
6150 }
6151 }
6152 {
6153 _arg1 = &temp;
6154 if (! wxColour_helper(_obj1, &_arg1))
6155 return NULL;
6156 }
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 wxPen_SetColour(_arg0,*_arg1);
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) return NULL;
6163 } Py_INCREF(Py_None);
6164 _resultobj = Py_None;
6165 return _resultobj;
6166 }
6167
6168 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6169 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject * _resultobj;
6171 wxPen * _arg0;
6172 int _arg1;
6173 PyObject * _argo0 = 0;
6174 char *_kwnames[] = { "self","join_style", NULL };
6175
6176 self = self;
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
6178 return NULL;
6179 if (_argo0) {
6180 if (_argo0 == Py_None) { _arg0 = NULL; }
6181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6183 return NULL;
6184 }
6185 }
6186 {
6187 PyThreadState* __tstate = wxPyBeginAllowThreads();
6188 wxPen_SetJoin(_arg0,_arg1);
6189
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) return NULL;
6192 } Py_INCREF(Py_None);
6193 _resultobj = Py_None;
6194 return _resultobj;
6195 }
6196
6197 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6198 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6199 PyObject * _resultobj;
6200 wxPen * _arg0;
6201 int _arg1;
6202 PyObject * _argo0 = 0;
6203 char *_kwnames[] = { "self","style", NULL };
6204
6205 self = self;
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
6207 return NULL;
6208 if (_argo0) {
6209 if (_argo0 == Py_None) { _arg0 = NULL; }
6210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6212 return NULL;
6213 }
6214 }
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 wxPen_SetStyle(_arg0,_arg1);
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) return NULL;
6221 } Py_INCREF(Py_None);
6222 _resultobj = Py_None;
6223 return _resultobj;
6224 }
6225
6226 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6227 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject * _resultobj;
6229 wxPen * _arg0;
6230 int _arg1;
6231 PyObject * _argo0 = 0;
6232 char *_kwnames[] = { "self","width", NULL };
6233
6234 self = self;
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
6236 return NULL;
6237 if (_argo0) {
6238 if (_argo0 == Py_None) { _arg0 = NULL; }
6239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6241 return NULL;
6242 }
6243 }
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 wxPen_SetWidth(_arg0,_arg1);
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) return NULL;
6250 } Py_INCREF(Py_None);
6251 _resultobj = Py_None;
6252 return _resultobj;
6253 }
6254
6255 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6256 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6257 PyObject * _resultobj;
6258 wxPen * _arg0;
6259 int _arg1;
6260 wxDash * _arg2;
6261 PyObject * _argo0 = 0;
6262 PyObject * _obj2 = 0;
6263 char *_kwnames[] = { "self","choices", NULL };
6264
6265 self = self;
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
6267 return NULL;
6268 if (_argo0) {
6269 if (_argo0 == Py_None) { _arg0 = NULL; }
6270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6272 return NULL;
6273 }
6274 }
6275 if (_obj2)
6276 {
6277 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6278 if (_arg2 == NULL) {
6279 return NULL;
6280 }
6281 }
6282 {
6283 if (_obj2) {
6284 _arg1 = PyList_Size(_obj2);
6285 }
6286 else {
6287 _arg1 = 0;
6288 }
6289 }
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 wxPen_SetDashes(_arg0,_arg1,_arg2);
6293
6294 wxPyEndAllowThreads(__tstate);
6295 if (PyErr_Occurred()) return NULL;
6296 } Py_INCREF(Py_None);
6297 _resultobj = Py_None;
6298 {
6299 delete [] _arg2;
6300 }
6301 return _resultobj;
6302 }
6303
6304 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6305 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject * _resultobj;
6307 wxBitmap * _result;
6308 wxPen * _arg0;
6309 PyObject * _argo0 = 0;
6310 char *_kwnames[] = { "self", NULL };
6311 char _ptemp[128];
6312
6313 self = self;
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
6315 return NULL;
6316 if (_argo0) {
6317 if (_argo0 == Py_None) { _arg0 = NULL; }
6318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6320 return NULL;
6321 }
6322 }
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) return NULL;
6329 } if (_result) {
6330 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6331 _resultobj = Py_BuildValue("s",_ptemp);
6332 } else {
6333 Py_INCREF(Py_None);
6334 _resultobj = Py_None;
6335 }
6336 return _resultobj;
6337 }
6338
6339 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6340 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6341 PyObject * _resultobj;
6342 wxPen * _arg0;
6343 wxBitmap * _arg1;
6344 PyObject * _argo0 = 0;
6345 PyObject * _argo1 = 0;
6346 char *_kwnames[] = { "self","stipple", NULL };
6347
6348 self = self;
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
6350 return NULL;
6351 if (_argo0) {
6352 if (_argo0 == Py_None) { _arg0 = NULL; }
6353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6355 return NULL;
6356 }
6357 }
6358 if (_argo1) {
6359 if (_argo1 == Py_None) { _arg1 = NULL; }
6360 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6361 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6362 return NULL;
6363 }
6364 }
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 wxPen_SetStipple(_arg0,*_arg1);
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) return NULL;
6371 } Py_INCREF(Py_None);
6372 _resultobj = Py_None;
6373 return _resultobj;
6374 }
6375
6376 static void *SwigwxPyPenTowxPen(void *ptr) {
6377 wxPyPen *src;
6378 wxPen *dest;
6379 src = (wxPyPen *) ptr;
6380 dest = (wxPen *) src;
6381 return (void *) dest;
6382 }
6383
6384 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
6385 wxPyPen *src;
6386 wxGDIObject *dest;
6387 src = (wxPyPen *) ptr;
6388 dest = (wxGDIObject *) src;
6389 return (void *) dest;
6390 }
6391
6392 static void *SwigwxPyPenTowxObject(void *ptr) {
6393 wxPyPen *src;
6394 wxObject *dest;
6395 src = (wxPyPen *) ptr;
6396 dest = (wxObject *) src;
6397 return (void *) dest;
6398 }
6399
6400 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6401 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6402 PyObject * _resultobj;
6403 wxPyPen * _result;
6404 wxColour * _arg0;
6405 int _arg1 = (int ) 1;
6406 int _arg2 = (int ) wxSOLID;
6407 wxColour temp;
6408 PyObject * _obj0 = 0;
6409 char *_kwnames[] = { "colour","width","style", NULL };
6410 char _ptemp[128];
6411
6412 self = self;
6413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
6414 return NULL;
6415 {
6416 _arg0 = &temp;
6417 if (! wxColour_helper(_obj0, &_arg0))
6418 return NULL;
6419 }
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) return NULL;
6426 } if (_result) {
6427 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
6428 _resultobj = Py_BuildValue("s",_ptemp);
6429 } else {
6430 Py_INCREF(Py_None);
6431 _resultobj = Py_None;
6432 }
6433 return _resultobj;
6434 }
6435
6436 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6437 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6438 PyObject * _resultobj;
6439 wxPyPen * _arg0;
6440 PyObject * _argo0 = 0;
6441 char *_kwnames[] = { "self", NULL };
6442
6443 self = self;
6444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
6445 return NULL;
6446 if (_argo0) {
6447 if (_argo0 == Py_None) { _arg0 = NULL; }
6448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6450 return NULL;
6451 }
6452 }
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 delete_wxPyPen(_arg0);
6456
6457 wxPyEndAllowThreads(__tstate);
6458 if (PyErr_Occurred()) return NULL;
6459 } Py_INCREF(Py_None);
6460 _resultobj = Py_None;
6461 return _resultobj;
6462 }
6463
6464 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6465 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6466 PyObject * _resultobj;
6467 wxPyPen * _arg0;
6468 int _arg1;
6469 wxDash * _arg2;
6470 PyObject * _argo0 = 0;
6471 PyObject * _obj2 = 0;
6472 char *_kwnames[] = { "self","choices", NULL };
6473
6474 self = self;
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
6476 return NULL;
6477 if (_argo0) {
6478 if (_argo0 == Py_None) { _arg0 = NULL; }
6479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6481 return NULL;
6482 }
6483 }
6484 if (_obj2)
6485 {
6486 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6487 if (_arg2 == NULL) {
6488 return NULL;
6489 }
6490 }
6491 {
6492 if (_obj2) {
6493 _arg1 = PyList_Size(_obj2);
6494 }
6495 else {
6496 _arg1 = 0;
6497 }
6498 }
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) return NULL;
6505 } Py_INCREF(Py_None);
6506 _resultobj = Py_None;
6507 {
6508 delete [] _arg2;
6509 }
6510 return _resultobj;
6511 }
6512
6513 static void *SwigwxPenListTowxObject(void *ptr) {
6514 wxPenList *src;
6515 wxObject *dest;
6516 src = (wxPenList *) ptr;
6517 dest = (wxObject *) src;
6518 return (void *) dest;
6519 }
6520
6521 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6522 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6523 PyObject * _resultobj;
6524 wxPenList * _arg0;
6525 wxPen * _arg1;
6526 PyObject * _argo0 = 0;
6527 PyObject * _argo1 = 0;
6528 char *_kwnames[] = { "self","pen", NULL };
6529
6530 self = self;
6531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
6532 return NULL;
6533 if (_argo0) {
6534 if (_argo0 == Py_None) { _arg0 = NULL; }
6535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6537 return NULL;
6538 }
6539 }
6540 if (_argo1) {
6541 if (_argo1 == Py_None) { _arg1 = NULL; }
6542 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6543 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6544 return NULL;
6545 }
6546 }
6547 {
6548 PyThreadState* __tstate = wxPyBeginAllowThreads();
6549 wxPenList_AddPen(_arg0,_arg1);
6550
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) return NULL;
6553 } Py_INCREF(Py_None);
6554 _resultobj = Py_None;
6555 return _resultobj;
6556 }
6557
6558 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6559 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject * _resultobj;
6561 wxPen * _result;
6562 wxPenList * _arg0;
6563 wxColour * _arg1;
6564 int _arg2;
6565 int _arg3;
6566 PyObject * _argo0 = 0;
6567 wxColour temp;
6568 PyObject * _obj1 = 0;
6569 char *_kwnames[] = { "self","colour","width","style", NULL };
6570 char _ptemp[128];
6571
6572 self = self;
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6574 return NULL;
6575 if (_argo0) {
6576 if (_argo0 == Py_None) { _arg0 = NULL; }
6577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6579 return NULL;
6580 }
6581 }
6582 {
6583 _arg1 = &temp;
6584 if (! wxColour_helper(_obj1, &_arg1))
6585 return NULL;
6586 }
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
6590
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) return NULL;
6593 } if (_result) {
6594 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6595 _resultobj = Py_BuildValue("s",_ptemp);
6596 } else {
6597 Py_INCREF(Py_None);
6598 _resultobj = Py_None;
6599 }
6600 return _resultobj;
6601 }
6602
6603 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6604 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject * _resultobj;
6606 wxPenList * _arg0;
6607 wxPen * _arg1;
6608 PyObject * _argo0 = 0;
6609 PyObject * _argo1 = 0;
6610 char *_kwnames[] = { "self","pen", NULL };
6611
6612 self = self;
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
6614 return NULL;
6615 if (_argo0) {
6616 if (_argo0 == Py_None) { _arg0 = NULL; }
6617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6619 return NULL;
6620 }
6621 }
6622 if (_argo1) {
6623 if (_argo1 == Py_None) { _arg1 = NULL; }
6624 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6625 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6626 return NULL;
6627 }
6628 }
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 wxPenList_RemovePen(_arg0,_arg1);
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) return NULL;
6635 } Py_INCREF(Py_None);
6636 _resultobj = Py_None;
6637 return _resultobj;
6638 }
6639
6640 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6641 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6642 PyObject * _resultobj;
6643 int _result;
6644 wxPenList * _arg0;
6645 PyObject * _argo0 = 0;
6646 char *_kwnames[] = { "self", NULL };
6647
6648 self = self;
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
6650 return NULL;
6651 if (_argo0) {
6652 if (_argo0 == Py_None) { _arg0 = NULL; }
6653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6655 return NULL;
6656 }
6657 }
6658 {
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 _result = (int )wxPenList_GetCount(_arg0);
6661
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) return NULL;
6664 } _resultobj = Py_BuildValue("i",_result);
6665 return _resultobj;
6666 }
6667
6668 static void *SwigwxBrushTowxGDIObject(void *ptr) {
6669 wxBrush *src;
6670 wxGDIObject *dest;
6671 src = (wxBrush *) ptr;
6672 dest = (wxGDIObject *) src;
6673 return (void *) dest;
6674 }
6675
6676 static void *SwigwxBrushTowxObject(void *ptr) {
6677 wxBrush *src;
6678 wxObject *dest;
6679 src = (wxBrush *) ptr;
6680 dest = (wxObject *) src;
6681 return (void *) dest;
6682 }
6683
6684 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6685 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6686 PyObject * _resultobj;
6687 wxBrush * _result;
6688 wxColour * _arg0;
6689 int _arg1 = (int ) wxSOLID;
6690 wxColour temp;
6691 PyObject * _obj0 = 0;
6692 char *_kwnames[] = { "colour","style", NULL };
6693 char _ptemp[128];
6694
6695 self = self;
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
6697 return NULL;
6698 {
6699 _arg0 = &temp;
6700 if (! wxColour_helper(_obj0, &_arg0))
6701 return NULL;
6702 }
6703 {
6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
6705 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
6706
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) return NULL;
6709 } if (_result) {
6710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6711 _resultobj = Py_BuildValue("s",_ptemp);
6712 } else {
6713 Py_INCREF(Py_None);
6714 _resultobj = Py_None;
6715 }
6716 return _resultobj;
6717 }
6718
6719 #define delete_wxBrush(_swigobj) (delete _swigobj)
6720 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6721 PyObject * _resultobj;
6722 wxBrush * _arg0;
6723 PyObject * _argo0 = 0;
6724 char *_kwnames[] = { "self", NULL };
6725
6726 self = self;
6727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
6728 return NULL;
6729 if (_argo0) {
6730 if (_argo0 == Py_None) { _arg0 = NULL; }
6731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6733 return NULL;
6734 }
6735 }
6736 {
6737 PyThreadState* __tstate = wxPyBeginAllowThreads();
6738 delete_wxBrush(_arg0);
6739
6740 wxPyEndAllowThreads(__tstate);
6741 if (PyErr_Occurred()) return NULL;
6742 } Py_INCREF(Py_None);
6743 _resultobj = Py_None;
6744 return _resultobj;
6745 }
6746
6747 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6748 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject * _resultobj;
6750 wxColour * _result;
6751 wxBrush * _arg0;
6752 PyObject * _argo0 = 0;
6753 char *_kwnames[] = { "self", NULL };
6754 char _ptemp[128];
6755
6756 self = self;
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6758 return NULL;
6759 if (_argo0) {
6760 if (_argo0 == Py_None) { _arg0 = NULL; }
6761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6763 return NULL;
6764 }
6765 }
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 _result = new wxColour (wxBrush_GetColour(_arg0));
6769
6770 wxPyEndAllowThreads(__tstate);
6771 if (PyErr_Occurred()) return NULL;
6772 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6773 _resultobj = Py_BuildValue("s",_ptemp);
6774 return _resultobj;
6775 }
6776
6777 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6778 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject * _resultobj;
6780 wxBitmap * _result;
6781 wxBrush * _arg0;
6782 PyObject * _argo0 = 0;
6783 char *_kwnames[] = { "self", NULL };
6784 char _ptemp[128];
6785
6786 self = self;
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6788 return NULL;
6789 if (_argo0) {
6790 if (_argo0 == Py_None) { _arg0 = NULL; }
6791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6793 return NULL;
6794 }
6795 }
6796 {
6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
6798 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6799
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) return NULL;
6802 } if (_result) {
6803 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6804 _resultobj = Py_BuildValue("s",_ptemp);
6805 } else {
6806 Py_INCREF(Py_None);
6807 _resultobj = Py_None;
6808 }
6809 return _resultobj;
6810 }
6811
6812 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6813 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject * _resultobj;
6815 int _result;
6816 wxBrush * _arg0;
6817 PyObject * _argo0 = 0;
6818 char *_kwnames[] = { "self", NULL };
6819
6820 self = self;
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6822 return NULL;
6823 if (_argo0) {
6824 if (_argo0 == Py_None) { _arg0 = NULL; }
6825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6827 return NULL;
6828 }
6829 }
6830 {
6831 PyThreadState* __tstate = wxPyBeginAllowThreads();
6832 _result = (int )wxBrush_GetStyle(_arg0);
6833
6834 wxPyEndAllowThreads(__tstate);
6835 if (PyErr_Occurred()) return NULL;
6836 } _resultobj = Py_BuildValue("i",_result);
6837 return _resultobj;
6838 }
6839
6840 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6841 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6842 PyObject * _resultobj;
6843 bool _result;
6844 wxBrush * _arg0;
6845 PyObject * _argo0 = 0;
6846 char *_kwnames[] = { "self", NULL };
6847
6848 self = self;
6849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6850 return NULL;
6851 if (_argo0) {
6852 if (_argo0 == Py_None) { _arg0 = NULL; }
6853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6855 return NULL;
6856 }
6857 }
6858 {
6859 PyThreadState* __tstate = wxPyBeginAllowThreads();
6860 _result = (bool )wxBrush_Ok(_arg0);
6861
6862 wxPyEndAllowThreads(__tstate);
6863 if (PyErr_Occurred()) return NULL;
6864 } _resultobj = Py_BuildValue("i",_result);
6865 return _resultobj;
6866 }
6867
6868 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6869 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6870 PyObject * _resultobj;
6871 wxBrush * _arg0;
6872 wxColour * _arg1;
6873 PyObject * _argo0 = 0;
6874 wxColour temp;
6875 PyObject * _obj1 = 0;
6876 char *_kwnames[] = { "self","colour", NULL };
6877
6878 self = self;
6879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6880 return NULL;
6881 if (_argo0) {
6882 if (_argo0 == Py_None) { _arg0 = NULL; }
6883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6885 return NULL;
6886 }
6887 }
6888 {
6889 _arg1 = &temp;
6890 if (! wxColour_helper(_obj1, &_arg1))
6891 return NULL;
6892 }
6893 {
6894 PyThreadState* __tstate = wxPyBeginAllowThreads();
6895 wxBrush_SetColour(_arg0,*_arg1);
6896
6897 wxPyEndAllowThreads(__tstate);
6898 if (PyErr_Occurred()) return NULL;
6899 } Py_INCREF(Py_None);
6900 _resultobj = Py_None;
6901 return _resultobj;
6902 }
6903
6904 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6905 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6906 PyObject * _resultobj;
6907 wxBrush * _arg0;
6908 wxBitmap * _arg1;
6909 PyObject * _argo0 = 0;
6910 PyObject * _argo1 = 0;
6911 char *_kwnames[] = { "self","bitmap", NULL };
6912
6913 self = self;
6914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6915 return NULL;
6916 if (_argo0) {
6917 if (_argo0 == Py_None) { _arg0 = NULL; }
6918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6920 return NULL;
6921 }
6922 }
6923 if (_argo1) {
6924 if (_argo1 == Py_None) { _arg1 = NULL; }
6925 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6926 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6927 return NULL;
6928 }
6929 }
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 wxBrush_SetStipple(_arg0,*_arg1);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) return NULL;
6936 } Py_INCREF(Py_None);
6937 _resultobj = Py_None;
6938 return _resultobj;
6939 }
6940
6941 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6942 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6943 PyObject * _resultobj;
6944 wxBrush * _arg0;
6945 int _arg1;
6946 PyObject * _argo0 = 0;
6947 char *_kwnames[] = { "self","style", NULL };
6948
6949 self = self;
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6951 return NULL;
6952 if (_argo0) {
6953 if (_argo0 == Py_None) { _arg0 = NULL; }
6954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6956 return NULL;
6957 }
6958 }
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 wxBrush_SetStyle(_arg0,_arg1);
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) return NULL;
6965 } Py_INCREF(Py_None);
6966 _resultobj = Py_None;
6967 return _resultobj;
6968 }
6969
6970 static void *SwigwxBrushListTowxObject(void *ptr) {
6971 wxBrushList *src;
6972 wxObject *dest;
6973 src = (wxBrushList *) ptr;
6974 dest = (wxObject *) src;
6975 return (void *) dest;
6976 }
6977
6978 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6979 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6980 PyObject * _resultobj;
6981 wxBrushList * _arg0;
6982 wxBrush * _arg1;
6983 PyObject * _argo0 = 0;
6984 PyObject * _argo1 = 0;
6985 char *_kwnames[] = { "self","brush", NULL };
6986
6987 self = self;
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6989 return NULL;
6990 if (_argo0) {
6991 if (_argo0 == Py_None) { _arg0 = NULL; }
6992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6994 return NULL;
6995 }
6996 }
6997 if (_argo1) {
6998 if (_argo1 == Py_None) { _arg1 = NULL; }
6999 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7000 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
7001 return NULL;
7002 }
7003 }
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 wxBrushList_AddBrush(_arg0,_arg1);
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) return NULL;
7010 } Py_INCREF(Py_None);
7011 _resultobj = Py_None;
7012 return _resultobj;
7013 }
7014
7015 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
7016 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7017 PyObject * _resultobj;
7018 wxBrush * _result;
7019 wxBrushList * _arg0;
7020 wxColour * _arg1;
7021 int _arg2;
7022 PyObject * _argo0 = 0;
7023 wxColour temp;
7024 PyObject * _obj1 = 0;
7025 char *_kwnames[] = { "self","colour","style", NULL };
7026 char _ptemp[128];
7027
7028 self = self;
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
7030 return NULL;
7031 if (_argo0) {
7032 if (_argo0 == Py_None) { _arg0 = NULL; }
7033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
7035 return NULL;
7036 }
7037 }
7038 {
7039 _arg1 = &temp;
7040 if (! wxColour_helper(_obj1, &_arg1))
7041 return NULL;
7042 }
7043 {
7044 PyThreadState* __tstate = wxPyBeginAllowThreads();
7045 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
7046
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) return NULL;
7049 } if (_result) {
7050 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7051 _resultobj = Py_BuildValue("s",_ptemp);
7052 } else {
7053 Py_INCREF(Py_None);
7054 _resultobj = Py_None;
7055 }
7056 return _resultobj;
7057 }
7058
7059 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7060 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7061 PyObject * _resultobj;
7062 wxBrushList * _arg0;
7063 wxBrush * _arg1;
7064 PyObject * _argo0 = 0;
7065 PyObject * _argo1 = 0;
7066 char *_kwnames[] = { "self","brush", NULL };
7067
7068 self = self;
7069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
7070 return NULL;
7071 if (_argo0) {
7072 if (_argo0 == Py_None) { _arg0 = NULL; }
7073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7075 return NULL;
7076 }
7077 }
7078 if (_argo1) {
7079 if (_argo1 == Py_None) { _arg1 = NULL; }
7080 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7081 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7082 return NULL;
7083 }
7084 }
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 wxBrushList_RemoveBrush(_arg0,_arg1);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) return NULL;
7091 } Py_INCREF(Py_None);
7092 _resultobj = Py_None;
7093 return _resultobj;
7094 }
7095
7096 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7097 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7098 PyObject * _resultobj;
7099 int _result;
7100 wxBrushList * _arg0;
7101 PyObject * _argo0 = 0;
7102 char *_kwnames[] = { "self", NULL };
7103
7104 self = self;
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
7106 return NULL;
7107 if (_argo0) {
7108 if (_argo0 == Py_None) { _arg0 = NULL; }
7109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7111 return NULL;
7112 }
7113 }
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 _result = (int )wxBrushList_GetCount(_arg0);
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) return NULL;
7120 } _resultobj = Py_BuildValue("i",_result);
7121 return _resultobj;
7122 }
7123
7124 static void *SwigwxDCTowxObject(void *ptr) {
7125 wxDC *src;
7126 wxObject *dest;
7127 src = (wxDC *) ptr;
7128 dest = (wxObject *) src;
7129 return (void *) dest;
7130 }
7131
7132 #define delete_wxDC(_swigobj) (delete _swigobj)
7133 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7134 PyObject * _resultobj;
7135 wxDC * _arg0;
7136 PyObject * _argo0 = 0;
7137 char *_kwnames[] = { "self", NULL };
7138
7139 self = self;
7140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
7141 return NULL;
7142 if (_argo0) {
7143 if (_argo0 == Py_None) { _arg0 = NULL; }
7144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7146 return NULL;
7147 }
7148 }
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 delete_wxDC(_arg0);
7152
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) return NULL;
7155 } Py_INCREF(Py_None);
7156 _resultobj = Py_None;
7157 return _resultobj;
7158 }
7159
7160 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7161 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7162 PyObject * _resultobj;
7163 wxDC * _arg0;
7164 PyObject * _argo0 = 0;
7165 char *_kwnames[] = { "self", NULL };
7166
7167 self = self;
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
7169 return NULL;
7170 if (_argo0) {
7171 if (_argo0 == Py_None) { _arg0 = NULL; }
7172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7174 return NULL;
7175 }
7176 }
7177 {
7178 PyThreadState* __tstate = wxPyBeginAllowThreads();
7179 wxDC_BeginDrawing(_arg0);
7180
7181 wxPyEndAllowThreads(__tstate);
7182 if (PyErr_Occurred()) return NULL;
7183 } Py_INCREF(Py_None);
7184 _resultobj = Py_None;
7185 return _resultobj;
7186 }
7187
7188 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7189 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
7190 PyObject * _resultobj;
7191 bool _result;
7192 wxDC * _arg0;
7193 long _arg1;
7194 long _arg2;
7195 long _arg3;
7196 long _arg4;
7197 wxDC * _arg5;
7198 long _arg6;
7199 long _arg7;
7200 int _arg8 = (int ) wxCOPY;
7201 int _arg9 = (int ) FALSE;
7202 PyObject * _argo0 = 0;
7203 PyObject * _argo5 = 0;
7204 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
7205
7206 self = self;
7207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
7208 return NULL;
7209 if (_argo0) {
7210 if (_argo0 == Py_None) { _arg0 = NULL; }
7211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7213 return NULL;
7214 }
7215 }
7216 if (_argo5) {
7217 if (_argo5 == Py_None) { _arg5 = NULL; }
7218 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
7219 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7220 return NULL;
7221 }
7222 }
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
7226
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) return NULL;
7229 } _resultobj = Py_BuildValue("i",_result);
7230 return _resultobj;
7231 }
7232
7233 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7234 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject * _resultobj;
7236 wxDC * _arg0;
7237 PyObject * _argo0 = 0;
7238 char *_kwnames[] = { "self", NULL };
7239
7240 self = self;
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
7242 return NULL;
7243 if (_argo0) {
7244 if (_argo0 == Py_None) { _arg0 = NULL; }
7245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7247 return NULL;
7248 }
7249 }
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 wxDC_Clear(_arg0);
7253
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) return NULL;
7256 } Py_INCREF(Py_None);
7257 _resultobj = Py_None;
7258 return _resultobj;
7259 }
7260
7261 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7262 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
7263 PyObject * _resultobj;
7264 wxDC * _arg0;
7265 long _arg1;
7266 long _arg2;
7267 PyObject * _argo0 = 0;
7268 char *_kwnames[] = { "self","x","y", NULL };
7269
7270 self = self;
7271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
7272 return NULL;
7273 if (_argo0) {
7274 if (_argo0 == Py_None) { _arg0 = NULL; }
7275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7277 return NULL;
7278 }
7279 }
7280 {
7281 PyThreadState* __tstate = wxPyBeginAllowThreads();
7282 wxDC_CrossHair(_arg0,_arg1,_arg2);
7283
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) return NULL;
7286 } Py_INCREF(Py_None);
7287 _resultobj = Py_None;
7288 return _resultobj;
7289 }
7290
7291 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7292 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject * _resultobj;
7294 wxDC * _arg0;
7295 PyObject * _argo0 = 0;
7296 char *_kwnames[] = { "self", NULL };
7297
7298 self = self;
7299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
7300 return NULL;
7301 if (_argo0) {
7302 if (_argo0 == Py_None) { _arg0 = NULL; }
7303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7305 return NULL;
7306 }
7307 }
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 wxDC_DestroyClippingRegion(_arg0);
7311
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) return NULL;
7314 } Py_INCREF(Py_None);
7315 _resultobj = Py_None;
7316 return _resultobj;
7317 }
7318
7319 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7320 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
7321 PyObject * _resultobj;
7322 long _result;
7323 wxDC * _arg0;
7324 long _arg1;
7325 PyObject * _argo0 = 0;
7326 char *_kwnames[] = { "self","x", NULL };
7327
7328 self = self;
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
7330 return NULL;
7331 if (_argo0) {
7332 if (_argo0 == Py_None) { _arg0 = NULL; }
7333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7335 return NULL;
7336 }
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) return NULL;
7344 } _resultobj = Py_BuildValue("l",_result);
7345 return _resultobj;
7346 }
7347
7348 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7349 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7350 PyObject * _resultobj;
7351 long _result;
7352 wxDC * _arg0;
7353 long _arg1;
7354 PyObject * _argo0 = 0;
7355 char *_kwnames[] = { "self","x", NULL };
7356
7357 self = self;
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
7359 return NULL;
7360 if (_argo0) {
7361 if (_argo0 == Py_None) { _arg0 = NULL; }
7362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7364 return NULL;
7365 }
7366 }
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) return NULL;
7373 } _resultobj = Py_BuildValue("l",_result);
7374 return _resultobj;
7375 }
7376
7377 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7378 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject * _resultobj;
7380 long _result;
7381 wxDC * _arg0;
7382 long _arg1;
7383 PyObject * _argo0 = 0;
7384 char *_kwnames[] = { "self","y", NULL };
7385
7386 self = self;
7387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
7388 return NULL;
7389 if (_argo0) {
7390 if (_argo0 == Py_None) { _arg0 = NULL; }
7391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7393 return NULL;
7394 }
7395 }
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) return NULL;
7402 } _resultobj = Py_BuildValue("l",_result);
7403 return _resultobj;
7404 }
7405
7406 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7407 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7408 PyObject * _resultobj;
7409 long _result;
7410 wxDC * _arg0;
7411 long _arg1;
7412 PyObject * _argo0 = 0;
7413 char *_kwnames[] = { "self","y", NULL };
7414
7415 self = self;
7416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
7417 return NULL;
7418 if (_argo0) {
7419 if (_argo0 == Py_None) { _arg0 = NULL; }
7420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7422 return NULL;
7423 }
7424 }
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) return NULL;
7431 } _resultobj = Py_BuildValue("l",_result);
7432 return _resultobj;
7433 }
7434
7435 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7436 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7437 PyObject * _resultobj;
7438 wxDC * _arg0;
7439 long _arg1;
7440 long _arg2;
7441 long _arg3;
7442 long _arg4;
7443 long _arg5;
7444 long _arg6;
7445 PyObject * _argo0 = 0;
7446 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
7447
7448 self = self;
7449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7450 return NULL;
7451 if (_argo0) {
7452 if (_argo0 == Py_None) { _arg0 = NULL; }
7453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7455 return NULL;
7456 }
7457 }
7458 {
7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
7460 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7461
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) return NULL;
7464 } Py_INCREF(Py_None);
7465 _resultobj = Py_None;
7466 return _resultobj;
7467 }
7468
7469 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7470 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject * _resultobj;
7472 wxDC * _arg0;
7473 long _arg1;
7474 long _arg2;
7475 long _arg3;
7476 PyObject * _argo0 = 0;
7477 char *_kwnames[] = { "self","x","y","radius", NULL };
7478
7479 self = self;
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7481 return NULL;
7482 if (_argo0) {
7483 if (_argo0 == Py_None) { _arg0 = NULL; }
7484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7486 return NULL;
7487 }
7488 }
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
7492
7493 wxPyEndAllowThreads(__tstate);
7494 if (PyErr_Occurred()) return NULL;
7495 } Py_INCREF(Py_None);
7496 _resultobj = Py_None;
7497 return _resultobj;
7498 }
7499
7500 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7501 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject * _resultobj;
7503 wxDC * _arg0;
7504 long _arg1;
7505 long _arg2;
7506 long _arg3;
7507 long _arg4;
7508 PyObject * _argo0 = 0;
7509 char *_kwnames[] = { "self","x","y","width","height", NULL };
7510
7511 self = self;
7512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7513 return NULL;
7514 if (_argo0) {
7515 if (_argo0 == Py_None) { _arg0 = NULL; }
7516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7518 return NULL;
7519 }
7520 }
7521 {
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
7524
7525 wxPyEndAllowThreads(__tstate);
7526 if (PyErr_Occurred()) return NULL;
7527 } Py_INCREF(Py_None);
7528 _resultobj = Py_None;
7529 return _resultobj;
7530 }
7531
7532 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7533 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7534 PyObject * _resultobj;
7535 wxDC * _arg0;
7536 long _arg1;
7537 long _arg2;
7538 long _arg3;
7539 long _arg4;
7540 long _arg5;
7541 long _arg6;
7542 PyObject * _argo0 = 0;
7543 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
7544
7545 self = self;
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7547 return NULL;
7548 if (_argo0) {
7549 if (_argo0 == Py_None) { _arg0 = NULL; }
7550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7552 return NULL;
7553 }
7554 }
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) return NULL;
7561 } Py_INCREF(Py_None);
7562 _resultobj = Py_None;
7563 return _resultobj;
7564 }
7565
7566 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7567 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7568 PyObject * _resultobj;
7569 wxDC * _arg0;
7570 wxIcon * _arg1;
7571 long _arg2;
7572 long _arg3;
7573 PyObject * _argo0 = 0;
7574 PyObject * _argo1 = 0;
7575 char *_kwnames[] = { "self","icon","x","y", NULL };
7576
7577 self = self;
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7579 return NULL;
7580 if (_argo0) {
7581 if (_argo0 == Py_None) { _arg0 = NULL; }
7582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7584 return NULL;
7585 }
7586 }
7587 if (_argo1) {
7588 if (_argo1 == Py_None) { _arg1 = NULL; }
7589 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
7590 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7591 return NULL;
7592 }
7593 }
7594 {
7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
7596 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
7597
7598 wxPyEndAllowThreads(__tstate);
7599 if (PyErr_Occurred()) return NULL;
7600 } Py_INCREF(Py_None);
7601 _resultobj = Py_None;
7602 return _resultobj;
7603 }
7604
7605 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7606 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject * _resultobj;
7608 wxDC * _arg0;
7609 wxString * _arg1;
7610 wxRect * _arg2;
7611 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7612 int _arg4 = (int ) -1;
7613 PyObject * _argo0 = 0;
7614 PyObject * _obj1 = 0;
7615 wxRect temp;
7616 PyObject * _obj2 = 0;
7617 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
7618
7619 self = self;
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
7621 return NULL;
7622 if (_argo0) {
7623 if (_argo0 == Py_None) { _arg0 = NULL; }
7624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7626 return NULL;
7627 }
7628 }
7629 {
7630 #if PYTHON_API_VERSION >= 1009
7631 char* tmpPtr; int tmpSize;
7632 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7633 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7634 return NULL;
7635 }
7636 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7637 return NULL;
7638 _arg1 = new wxString(tmpPtr, tmpSize);
7639 #else
7640 if (!PyString_Check(_obj1)) {
7641 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7642 return NULL;
7643 }
7644 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7645 #endif
7646 }
7647 {
7648 _arg2 = &temp;
7649 if (! wxRect_helper(_obj2, &_arg2))
7650 return NULL;
7651 }
7652 {
7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
7654 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
7655
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) return NULL;
7658 } Py_INCREF(Py_None);
7659 _resultobj = Py_None;
7660 {
7661 if (_obj1)
7662 delete _arg1;
7663 }
7664 return _resultobj;
7665 }
7666
7667 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
7668 wxRect rv;
7669 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
7670 return rv;
7671 }
7672 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7673 PyObject * _resultobj;
7674 wxRect * _result;
7675 wxDC * _arg0;
7676 wxString * _arg1;
7677 wxBitmap * _arg2;
7678 wxRect * _arg3;
7679 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7680 int _arg5 = (int ) -1;
7681 PyObject * _argo0 = 0;
7682 PyObject * _obj1 = 0;
7683 PyObject * _argo2 = 0;
7684 wxRect temp;
7685 PyObject * _obj3 = 0;
7686 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
7687 char _ptemp[128];
7688
7689 self = self;
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
7691 return NULL;
7692 if (_argo0) {
7693 if (_argo0 == Py_None) { _arg0 = NULL; }
7694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7696 return NULL;
7697 }
7698 }
7699 {
7700 #if PYTHON_API_VERSION >= 1009
7701 char* tmpPtr; int tmpSize;
7702 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7703 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7704 return NULL;
7705 }
7706 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7707 return NULL;
7708 _arg1 = new wxString(tmpPtr, tmpSize);
7709 #else
7710 if (!PyString_Check(_obj1)) {
7711 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7712 return NULL;
7713 }
7714 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7715 #endif
7716 }
7717 if (_argo2) {
7718 if (_argo2 == Py_None) { _arg2 = NULL; }
7719 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7720 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7721 return NULL;
7722 }
7723 }
7724 {
7725 _arg3 = &temp;
7726 if (! wxRect_helper(_obj3, &_arg3))
7727 return NULL;
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) return NULL;
7735 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
7736 _resultobj = Py_BuildValue("s",_ptemp);
7737 {
7738 if (_obj1)
7739 delete _arg1;
7740 }
7741 return _resultobj;
7742 }
7743
7744 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7745 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7746 PyObject * _resultobj;
7747 wxDC * _arg0;
7748 long _arg1;
7749 long _arg2;
7750 long _arg3;
7751 long _arg4;
7752 PyObject * _argo0 = 0;
7753 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
7754
7755 self = self;
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7757 return NULL;
7758 if (_argo0) {
7759 if (_argo0 == Py_None) { _arg0 = NULL; }
7760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7762 return NULL;
7763 }
7764 }
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) return NULL;
7771 } Py_INCREF(Py_None);
7772 _resultobj = Py_None;
7773 return _resultobj;
7774 }
7775
7776 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7777 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject * _resultobj;
7779 wxDC * _arg0;
7780 int _arg1;
7781 wxPoint * _arg2;
7782 long _arg3 = (long ) 0;
7783 long _arg4 = (long ) 0;
7784 PyObject * _argo0 = 0;
7785 int NPOINTS;
7786 PyObject * _obj2 = 0;
7787 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7788
7789 self = self;
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7791 return NULL;
7792 if (_argo0) {
7793 if (_argo0 == Py_None) { _arg0 = NULL; }
7794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7796 return NULL;
7797 }
7798 }
7799 if (_obj2)
7800 {
7801 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7802 if (_arg2 == NULL) {
7803 return NULL;
7804 }
7805 }
7806 {
7807 _arg1 = NPOINTS;
7808 }
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) return NULL;
7815 } Py_INCREF(Py_None);
7816 _resultobj = Py_None;
7817 {
7818 delete [] _arg2;
7819 }
7820 return _resultobj;
7821 }
7822
7823 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7824 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject * _resultobj;
7826 wxDC * _arg0;
7827 int _arg1;
7828 wxPoint * _arg2;
7829 long _arg3 = (long ) 0;
7830 long _arg4 = (long ) 0;
7831 int _arg5 = (int ) wxODDEVEN_RULE;
7832 PyObject * _argo0 = 0;
7833 int NPOINTS;
7834 PyObject * _obj2 = 0;
7835 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7836
7837 self = self;
7838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7839 return NULL;
7840 if (_argo0) {
7841 if (_argo0 == Py_None) { _arg0 = NULL; }
7842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7844 return NULL;
7845 }
7846 }
7847 if (_obj2)
7848 {
7849 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7850 if (_arg2 == NULL) {
7851 return NULL;
7852 }
7853 }
7854 {
7855 _arg1 = NPOINTS;
7856 }
7857 {
7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
7859 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7860
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) return NULL;
7863 } Py_INCREF(Py_None);
7864 _resultobj = Py_None;
7865 {
7866 delete [] _arg2;
7867 }
7868 return _resultobj;
7869 }
7870
7871 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7872 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject * _resultobj;
7874 wxDC * _arg0;
7875 long _arg1;
7876 long _arg2;
7877 PyObject * _argo0 = 0;
7878 char *_kwnames[] = { "self","x","y", NULL };
7879
7880 self = self;
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7882 return NULL;
7883 if (_argo0) {
7884 if (_argo0 == Py_None) { _arg0 = NULL; }
7885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7887 return NULL;
7888 }
7889 }
7890 {
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) return NULL;
7896 } Py_INCREF(Py_None);
7897 _resultobj = Py_None;
7898 return _resultobj;
7899 }
7900
7901 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7902 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject * _resultobj;
7904 wxDC * _arg0;
7905 long _arg1;
7906 long _arg2;
7907 long _arg3;
7908 long _arg4;
7909 PyObject * _argo0 = 0;
7910 char *_kwnames[] = { "self","x","y","width","height", NULL };
7911
7912 self = self;
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7914 return NULL;
7915 if (_argo0) {
7916 if (_argo0 == Py_None) { _arg0 = NULL; }
7917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7919 return NULL;
7920 }
7921 }
7922 {
7923 PyThreadState* __tstate = wxPyBeginAllowThreads();
7924 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7925
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) return NULL;
7928 } Py_INCREF(Py_None);
7929 _resultobj = Py_None;
7930 return _resultobj;
7931 }
7932
7933 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7934 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7935 PyObject * _resultobj;
7936 wxDC * _arg0;
7937 wxString * _arg1;
7938 wxCoord _arg2;
7939 wxCoord _arg3;
7940 double _arg4;
7941 PyObject * _argo0 = 0;
7942 PyObject * _obj1 = 0;
7943 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7944
7945 self = self;
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
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_DrawRotatedText. Expected _wxDC_p.");
7952 return NULL;
7953 }
7954 }
7955 {
7956 #if PYTHON_API_VERSION >= 1009
7957 char* tmpPtr; int tmpSize;
7958 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7959 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7960 return NULL;
7961 }
7962 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7963 return NULL;
7964 _arg1 = new wxString(tmpPtr, tmpSize);
7965 #else
7966 if (!PyString_Check(_obj1)) {
7967 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7968 return NULL;
7969 }
7970 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7971 #endif
7972 }
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) return NULL;
7979 } Py_INCREF(Py_None);
7980 _resultobj = Py_None;
7981 {
7982 if (_obj1)
7983 delete _arg1;
7984 }
7985 return _resultobj;
7986 }
7987
7988 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7989 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7990 PyObject * _resultobj;
7991 wxDC * _arg0;
7992 long _arg1;
7993 long _arg2;
7994 long _arg3;
7995 long _arg4;
7996 long _arg5 = (long ) 20;
7997 PyObject * _argo0 = 0;
7998 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7999
8000 self = self;
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
8002 return NULL;
8003 if (_argo0) {
8004 if (_argo0 == Py_None) { _arg0 = NULL; }
8005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
8007 return NULL;
8008 }
8009 }
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) return NULL;
8016 } Py_INCREF(Py_None);
8017 _resultobj = Py_None;
8018 return _resultobj;
8019 }
8020
8021 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
8022 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
8023 PyObject * _resultobj;
8024 wxDC * _arg0;
8025 int _arg1;
8026 wxPoint * _arg2;
8027 PyObject * _argo0 = 0;
8028 int NPOINTS;
8029 PyObject * _obj2 = 0;
8030 char *_kwnames[] = { "self","points", NULL };
8031
8032 self = self;
8033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
8034 return NULL;
8035 if (_argo0) {
8036 if (_argo0 == Py_None) { _arg0 = NULL; }
8037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
8039 return NULL;
8040 }
8041 }
8042 if (_obj2)
8043 {
8044 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
8045 if (_arg2 == NULL) {
8046 return NULL;
8047 }
8048 }
8049 {
8050 _arg1 = NPOINTS;
8051 }
8052 {
8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
8054 wxDC_DrawSpline(_arg0,_arg1,_arg2);
8055
8056 wxPyEndAllowThreads(__tstate);
8057 if (PyErr_Occurred()) return NULL;
8058 } Py_INCREF(Py_None);
8059 _resultobj = Py_None;
8060 {
8061 delete [] _arg2;
8062 }
8063 return _resultobj;
8064 }
8065
8066 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
8067 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
8068 PyObject * _resultobj;
8069 wxDC * _arg0;
8070 wxString * _arg1;
8071 long _arg2;
8072 long _arg3;
8073 PyObject * _argo0 = 0;
8074 PyObject * _obj1 = 0;
8075 char *_kwnames[] = { "self","text","x","y", NULL };
8076
8077 self = self;
8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
8079 return NULL;
8080 if (_argo0) {
8081 if (_argo0 == Py_None) { _arg0 = NULL; }
8082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
8084 return NULL;
8085 }
8086 }
8087 {
8088 #if PYTHON_API_VERSION >= 1009
8089 char* tmpPtr; int tmpSize;
8090 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8091 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8092 return NULL;
8093 }
8094 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8095 return NULL;
8096 _arg1 = new wxString(tmpPtr, tmpSize);
8097 #else
8098 if (!PyString_Check(_obj1)) {
8099 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8100 return NULL;
8101 }
8102 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8103 #endif
8104 }
8105 {
8106 PyThreadState* __tstate = wxPyBeginAllowThreads();
8107 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
8108
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) return NULL;
8111 } Py_INCREF(Py_None);
8112 _resultobj = Py_None;
8113 {
8114 if (_obj1)
8115 delete _arg1;
8116 }
8117 return _resultobj;
8118 }
8119
8120 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
8121 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8122 PyObject * _resultobj;
8123 wxDC * _arg0;
8124 PyObject * _argo0 = 0;
8125 char *_kwnames[] = { "self", NULL };
8126
8127 self = self;
8128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
8129 return NULL;
8130 if (_argo0) {
8131 if (_argo0 == Py_None) { _arg0 = NULL; }
8132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
8134 return NULL;
8135 }
8136 }
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 wxDC_EndDoc(_arg0);
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) return NULL;
8143 } Py_INCREF(Py_None);
8144 _resultobj = Py_None;
8145 return _resultobj;
8146 }
8147
8148 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
8149 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject * _resultobj;
8151 wxDC * _arg0;
8152 PyObject * _argo0 = 0;
8153 char *_kwnames[] = { "self", NULL };
8154
8155 self = self;
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
8157 return NULL;
8158 if (_argo0) {
8159 if (_argo0 == Py_None) { _arg0 = NULL; }
8160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
8162 return NULL;
8163 }
8164 }
8165 {
8166 PyThreadState* __tstate = wxPyBeginAllowThreads();
8167 wxDC_EndDrawing(_arg0);
8168
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) return NULL;
8171 } Py_INCREF(Py_None);
8172 _resultobj = Py_None;
8173 return _resultobj;
8174 }
8175
8176 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
8177 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject * _resultobj;
8179 wxDC * _arg0;
8180 PyObject * _argo0 = 0;
8181 char *_kwnames[] = { "self", NULL };
8182
8183 self = self;
8184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
8185 return NULL;
8186 if (_argo0) {
8187 if (_argo0 == Py_None) { _arg0 = NULL; }
8188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8190 return NULL;
8191 }
8192 }
8193 {
8194 PyThreadState* __tstate = wxPyBeginAllowThreads();
8195 wxDC_EndPage(_arg0);
8196
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) return NULL;
8199 } Py_INCREF(Py_None);
8200 _resultobj = Py_None;
8201 return _resultobj;
8202 }
8203
8204 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8205 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject * _resultobj;
8207 wxDC * _arg0;
8208 long _arg1;
8209 long _arg2;
8210 wxColour * _arg3;
8211 int _arg4 = (int ) wxFLOOD_SURFACE;
8212 PyObject * _argo0 = 0;
8213 wxColour temp;
8214 PyObject * _obj3 = 0;
8215 char *_kwnames[] = { "self","x","y","colour","style", NULL };
8216
8217 self = self;
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8219 return NULL;
8220 if (_argo0) {
8221 if (_argo0 == Py_None) { _arg0 = NULL; }
8222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8224 return NULL;
8225 }
8226 }
8227 {
8228 _arg3 = &temp;
8229 if (! wxColour_helper(_obj3, &_arg3))
8230 return NULL;
8231 }
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) return NULL;
8238 } Py_INCREF(Py_None);
8239 _resultobj = Py_None;
8240 return _resultobj;
8241 }
8242
8243 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8244 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject * _resultobj;
8246 wxBrush * _result;
8247 wxDC * _arg0;
8248 PyObject * _argo0 = 0;
8249 char *_kwnames[] = { "self", NULL };
8250 char _ptemp[128];
8251
8252 self = self;
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
8254 return NULL;
8255 if (_argo0) {
8256 if (_argo0 == Py_None) { _arg0 = NULL; }
8257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8259 return NULL;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 _result = new wxBrush (wxDC_GetBackground(_arg0));
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) return NULL;
8268 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8269 _resultobj = Py_BuildValue("s",_ptemp);
8270 return _resultobj;
8271 }
8272
8273 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8274 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8275 PyObject * _resultobj;
8276 wxBrush * _result;
8277 wxDC * _arg0;
8278 PyObject * _argo0 = 0;
8279 char *_kwnames[] = { "self", NULL };
8280 char _ptemp[128];
8281
8282 self = self;
8283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
8284 return NULL;
8285 if (_argo0) {
8286 if (_argo0 == Py_None) { _arg0 = NULL; }
8287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8289 return NULL;
8290 }
8291 }
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 _result = new wxBrush (wxDC_GetBrush(_arg0));
8295
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) return NULL;
8298 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8299 _resultobj = Py_BuildValue("s",_ptemp);
8300 return _resultobj;
8301 }
8302
8303 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8304 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject * _resultobj;
8306 long _result;
8307 wxDC * _arg0;
8308 PyObject * _argo0 = 0;
8309 char *_kwnames[] = { "self", NULL };
8310
8311 self = self;
8312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
8313 return NULL;
8314 if (_argo0) {
8315 if (_argo0 == Py_None) { _arg0 = NULL; }
8316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8318 return NULL;
8319 }
8320 }
8321 {
8322 PyThreadState* __tstate = wxPyBeginAllowThreads();
8323 _result = (long )wxDC_GetCharHeight(_arg0);
8324
8325 wxPyEndAllowThreads(__tstate);
8326 if (PyErr_Occurred()) return NULL;
8327 } _resultobj = Py_BuildValue("l",_result);
8328 return _resultobj;
8329 }
8330
8331 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8332 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8333 PyObject * _resultobj;
8334 long _result;
8335 wxDC * _arg0;
8336 PyObject * _argo0 = 0;
8337 char *_kwnames[] = { "self", NULL };
8338
8339 self = self;
8340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
8341 return NULL;
8342 if (_argo0) {
8343 if (_argo0 == Py_None) { _arg0 = NULL; }
8344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8346 return NULL;
8347 }
8348 }
8349 {
8350 PyThreadState* __tstate = wxPyBeginAllowThreads();
8351 _result = (long )wxDC_GetCharWidth(_arg0);
8352
8353 wxPyEndAllowThreads(__tstate);
8354 if (PyErr_Occurred()) return NULL;
8355 } _resultobj = Py_BuildValue("l",_result);
8356 return _resultobj;
8357 }
8358
8359 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8360 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8361 PyObject * _resultobj;
8362 wxDC * _arg0;
8363 long * _arg1;
8364 long temp;
8365 long * _arg2;
8366 long temp0;
8367 long * _arg3;
8368 long temp1;
8369 long * _arg4;
8370 long temp2;
8371 PyObject * _argo0 = 0;
8372 char *_kwnames[] = { "self", NULL };
8373
8374 self = self;
8375 {
8376 _arg1 = &temp;
8377 }
8378 {
8379 _arg2 = &temp0;
8380 }
8381 {
8382 _arg3 = &temp1;
8383 }
8384 {
8385 _arg4 = &temp2;
8386 }
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
8388 return NULL;
8389 if (_argo0) {
8390 if (_argo0 == Py_None) { _arg0 = NULL; }
8391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8393 return NULL;
8394 }
8395 }
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8399
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) return NULL;
8402 } Py_INCREF(Py_None);
8403 _resultobj = Py_None;
8404 {
8405 PyObject *o;
8406 o = PyInt_FromLong((long) (*_arg1));
8407 _resultobj = t_output_helper(_resultobj, o);
8408 }
8409 {
8410 PyObject *o;
8411 o = PyInt_FromLong((long) (*_arg2));
8412 _resultobj = t_output_helper(_resultobj, o);
8413 }
8414 {
8415 PyObject *o;
8416 o = PyInt_FromLong((long) (*_arg3));
8417 _resultobj = t_output_helper(_resultobj, o);
8418 }
8419 {
8420 PyObject *o;
8421 o = PyInt_FromLong((long) (*_arg4));
8422 _resultobj = t_output_helper(_resultobj, o);
8423 }
8424 return _resultobj;
8425 }
8426
8427 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8428 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8429 PyObject * _resultobj;
8430 wxFont * _result;
8431 wxDC * _arg0;
8432 PyObject * _argo0 = 0;
8433 char *_kwnames[] = { "self", NULL };
8434 char _ptemp[128];
8435
8436 self = self;
8437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
8438 return NULL;
8439 if (_argo0) {
8440 if (_argo0 == Py_None) { _arg0 = NULL; }
8441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8443 return NULL;
8444 }
8445 }
8446 {
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 _result = new wxFont (wxDC_GetFont(_arg0));
8449
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) return NULL;
8452 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
8453 _resultobj = Py_BuildValue("s",_ptemp);
8454 return _resultobj;
8455 }
8456
8457 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8458 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8459 PyObject * _resultobj;
8460 int _result;
8461 wxDC * _arg0;
8462 PyObject * _argo0 = 0;
8463 char *_kwnames[] = { "self", NULL };
8464
8465 self = self;
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
8467 return NULL;
8468 if (_argo0) {
8469 if (_argo0 == Py_None) { _arg0 = NULL; }
8470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8472 return NULL;
8473 }
8474 }
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 _result = (int )wxDC_GetLogicalFunction(_arg0);
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) return NULL;
8481 } _resultobj = Py_BuildValue("i",_result);
8482 return _resultobj;
8483 }
8484
8485 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8486 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8487 PyObject * _resultobj;
8488 wxDC * _arg0;
8489 double * _arg1;
8490 double temp;
8491 double * _arg2;
8492 double temp0;
8493 PyObject * _argo0 = 0;
8494 char *_kwnames[] = { "self", NULL };
8495
8496 self = self;
8497 {
8498 _arg1 = &temp;
8499 }
8500 {
8501 _arg2 = &temp0;
8502 }
8503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
8504 return NULL;
8505 if (_argo0) {
8506 if (_argo0 == Py_None) { _arg0 = NULL; }
8507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8509 return NULL;
8510 }
8511 }
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) return NULL;
8518 } Py_INCREF(Py_None);
8519 _resultobj = Py_None;
8520 {
8521 PyObject *o;
8522 o = PyFloat_FromDouble((double) (*_arg1));
8523 _resultobj = t_output_helper(_resultobj, o);
8524 }
8525 {
8526 PyObject *o;
8527 o = PyFloat_FromDouble((double) (*_arg2));
8528 _resultobj = t_output_helper(_resultobj, o);
8529 }
8530 return _resultobj;
8531 }
8532
8533 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8534 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8535 PyObject * _resultobj;
8536 int _result;
8537 wxDC * _arg0;
8538 PyObject * _argo0 = 0;
8539 char *_kwnames[] = { "self", NULL };
8540
8541 self = self;
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
8543 return NULL;
8544 if (_argo0) {
8545 if (_argo0 == Py_None) { _arg0 = NULL; }
8546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8548 return NULL;
8549 }
8550 }
8551 {
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 _result = (int )wxDC_GetMapMode(_arg0);
8554
8555 wxPyEndAllowThreads(__tstate);
8556 if (PyErr_Occurred()) return NULL;
8557 } _resultobj = Py_BuildValue("i",_result);
8558 return _resultobj;
8559 }
8560
8561 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8562 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8563 PyObject * _resultobj;
8564 bool _result;
8565 wxDC * _arg0;
8566 PyObject * _argo0 = 0;
8567 char *_kwnames[] = { "self", NULL };
8568
8569 self = self;
8570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
8571 return NULL;
8572 if (_argo0) {
8573 if (_argo0 == Py_None) { _arg0 = NULL; }
8574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8576 return NULL;
8577 }
8578 }
8579 {
8580 PyThreadState* __tstate = wxPyBeginAllowThreads();
8581 _result = (bool )wxDC_GetOptimization(_arg0);
8582
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) return NULL;
8585 } _resultobj = Py_BuildValue("i",_result);
8586 return _resultobj;
8587 }
8588
8589 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8590 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8591 PyObject * _resultobj;
8592 wxPen * _result;
8593 wxDC * _arg0;
8594 PyObject * _argo0 = 0;
8595 char *_kwnames[] = { "self", NULL };
8596 char _ptemp[128];
8597
8598 self = self;
8599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
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_GetPen. Expected _wxDC_p.");
8605 return NULL;
8606 }
8607 }
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 _result = new wxPen (wxDC_GetPen(_arg0));
8611
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) return NULL;
8614 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
8615 _resultobj = Py_BuildValue("s",_ptemp);
8616 return _resultobj;
8617 }
8618
8619 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
8620 wxColour* wc = new wxColour();
8621 self->GetPixel(x, y, wc);
8622 return wc;
8623 }
8624 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8625 PyObject * _resultobj;
8626 wxColour * _result;
8627 wxDC * _arg0;
8628 long _arg1;
8629 long _arg2;
8630 PyObject * _argo0 = 0;
8631 char *_kwnames[] = { "self","x","y", NULL };
8632 char _ptemp[128];
8633
8634 self = self;
8635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
8636 return NULL;
8637 if (_argo0) {
8638 if (_argo0 == Py_None) { _arg0 = NULL; }
8639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8641 return NULL;
8642 }
8643 }
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) return NULL;
8650 } if (_result) {
8651 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
8652 _resultobj = Py_BuildValue("s",_ptemp);
8653 } else {
8654 Py_INCREF(Py_None);
8655 _resultobj = Py_None;
8656 }
8657 return _resultobj;
8658 }
8659
8660 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8661 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
8662 PyObject * _resultobj;
8663 wxDC * _arg0;
8664 int * _arg1;
8665 int temp;
8666 int * _arg2;
8667 int temp0;
8668 PyObject * _argo0 = 0;
8669 char *_kwnames[] = { "self", NULL };
8670
8671 self = self;
8672 {
8673 _arg1 = &temp;
8674 }
8675 {
8676 _arg2 = &temp0;
8677 }
8678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
8679 return NULL;
8680 if (_argo0) {
8681 if (_argo0 == Py_None) { _arg0 = NULL; }
8682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8684 return NULL;
8685 }
8686 }
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) return NULL;
8693 } Py_INCREF(Py_None);
8694 _resultobj = Py_None;
8695 {
8696 PyObject *o;
8697 o = PyInt_FromLong((long) (*_arg1));
8698 _resultobj = t_output_helper(_resultobj, o);
8699 }
8700 {
8701 PyObject *o;
8702 o = PyInt_FromLong((long) (*_arg2));
8703 _resultobj = t_output_helper(_resultobj, o);
8704 }
8705 return _resultobj;
8706 }
8707
8708 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8709 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject * _resultobj;
8711 wxSize * _result;
8712 wxDC * _arg0;
8713 PyObject * _argo0 = 0;
8714 char *_kwnames[] = { "self", NULL };
8715 char _ptemp[128];
8716
8717 self = self;
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
8719 return NULL;
8720 if (_argo0) {
8721 if (_argo0 == Py_None) { _arg0 = NULL; }
8722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8724 return NULL;
8725 }
8726 }
8727 {
8728 PyThreadState* __tstate = wxPyBeginAllowThreads();
8729 _result = new wxSize (wxDC_GetSize(_arg0));
8730
8731 wxPyEndAllowThreads(__tstate);
8732 if (PyErr_Occurred()) return NULL;
8733 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8734 _resultobj = Py_BuildValue("s",_ptemp);
8735 return _resultobj;
8736 }
8737
8738 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8739 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
8740 PyObject * _resultobj;
8741 wxSize * _result;
8742 wxDC * _arg0;
8743 PyObject * _argo0 = 0;
8744 char *_kwnames[] = { "self", NULL };
8745 char _ptemp[128];
8746
8747 self = self;
8748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
8749 return NULL;
8750 if (_argo0) {
8751 if (_argo0 == Py_None) { _arg0 = NULL; }
8752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8754 return NULL;
8755 }
8756 }
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) return NULL;
8763 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8764 _resultobj = Py_BuildValue("s",_ptemp);
8765 return _resultobj;
8766 }
8767
8768 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8769 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject * _resultobj;
8771 wxColour * _result;
8772 wxDC * _arg0;
8773 PyObject * _argo0 = 0;
8774 char *_kwnames[] = { "self", NULL };
8775 char _ptemp[128];
8776
8777 self = self;
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8779 return NULL;
8780 if (_argo0) {
8781 if (_argo0 == Py_None) { _arg0 = NULL; }
8782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8784 return NULL;
8785 }
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) return NULL;
8793 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8794 _resultobj = Py_BuildValue("s",_ptemp);
8795 return _resultobj;
8796 }
8797
8798 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8799 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8800 PyObject * _resultobj;
8801 wxDC * _arg0;
8802 wxString * _arg1;
8803 long * _arg2;
8804 long temp;
8805 long * _arg3;
8806 long temp0;
8807 PyObject * _argo0 = 0;
8808 PyObject * _obj1 = 0;
8809 char *_kwnames[] = { "self","string", NULL };
8810
8811 self = self;
8812 {
8813 _arg2 = &temp;
8814 }
8815 {
8816 _arg3 = &temp0;
8817 }
8818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8819 return NULL;
8820 if (_argo0) {
8821 if (_argo0 == Py_None) { _arg0 = NULL; }
8822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8824 return NULL;
8825 }
8826 }
8827 {
8828 #if PYTHON_API_VERSION >= 1009
8829 char* tmpPtr; int tmpSize;
8830 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8831 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8832 return NULL;
8833 }
8834 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8835 return NULL;
8836 _arg1 = new wxString(tmpPtr, tmpSize);
8837 #else
8838 if (!PyString_Check(_obj1)) {
8839 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8840 return NULL;
8841 }
8842 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8843 #endif
8844 }
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) return NULL;
8851 } Py_INCREF(Py_None);
8852 _resultobj = Py_None;
8853 {
8854 PyObject *o;
8855 o = PyInt_FromLong((long) (*_arg2));
8856 _resultobj = t_output_helper(_resultobj, o);
8857 }
8858 {
8859 PyObject *o;
8860 o = PyInt_FromLong((long) (*_arg3));
8861 _resultobj = t_output_helper(_resultobj, o);
8862 }
8863 {
8864 if (_obj1)
8865 delete _arg1;
8866 }
8867 return _resultobj;
8868 }
8869
8870 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8871 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8872 PyObject * _resultobj;
8873 wxDC * _arg0;
8874 wxString * _arg1;
8875 long * _arg2;
8876 long temp;
8877 long * _arg3;
8878 long temp0;
8879 long * _arg4;
8880 long temp1;
8881 long * _arg5;
8882 long temp2;
8883 wxFont * _arg6 = (wxFont *) NULL;
8884 PyObject * _argo0 = 0;
8885 PyObject * _obj1 = 0;
8886 PyObject * _argo6 = 0;
8887 char *_kwnames[] = { "self","string","font", NULL };
8888
8889 self = self;
8890 {
8891 _arg2 = &temp;
8892 }
8893 {
8894 _arg3 = &temp0;
8895 }
8896 {
8897 _arg4 = &temp1;
8898 }
8899 {
8900 _arg5 = &temp2;
8901 }
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8903 return NULL;
8904 if (_argo0) {
8905 if (_argo0 == Py_None) { _arg0 = NULL; }
8906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8908 return NULL;
8909 }
8910 }
8911 {
8912 #if PYTHON_API_VERSION >= 1009
8913 char* tmpPtr; int tmpSize;
8914 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8915 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8916 return NULL;
8917 }
8918 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8919 return NULL;
8920 _arg1 = new wxString(tmpPtr, tmpSize);
8921 #else
8922 if (!PyString_Check(_obj1)) {
8923 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8924 return NULL;
8925 }
8926 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8927 #endif
8928 }
8929 if (_argo6) {
8930 if (_argo6 == Py_None) { _arg6 = NULL; }
8931 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8932 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8933 return NULL;
8934 }
8935 }
8936 {
8937 PyThreadState* __tstate = wxPyBeginAllowThreads();
8938 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8939
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) return NULL;
8942 } Py_INCREF(Py_None);
8943 _resultobj = Py_None;
8944 {
8945 PyObject *o;
8946 o = PyInt_FromLong((long) (*_arg2));
8947 _resultobj = t_output_helper(_resultobj, o);
8948 }
8949 {
8950 PyObject *o;
8951 o = PyInt_FromLong((long) (*_arg3));
8952 _resultobj = t_output_helper(_resultobj, o);
8953 }
8954 {
8955 PyObject *o;
8956 o = PyInt_FromLong((long) (*_arg4));
8957 _resultobj = t_output_helper(_resultobj, o);
8958 }
8959 {
8960 PyObject *o;
8961 o = PyInt_FromLong((long) (*_arg5));
8962 _resultobj = t_output_helper(_resultobj, o);
8963 }
8964 {
8965 if (_obj1)
8966 delete _arg1;
8967 }
8968 return _resultobj;
8969 }
8970
8971 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8972 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8973 PyObject * _resultobj;
8974 wxColour * _result;
8975 wxDC * _arg0;
8976 PyObject * _argo0 = 0;
8977 char *_kwnames[] = { "self", NULL };
8978 char _ptemp[128];
8979
8980 self = self;
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8982 return NULL;
8983 if (_argo0) {
8984 if (_argo0 == Py_None) { _arg0 = NULL; }
8985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8987 return NULL;
8988 }
8989 }
8990 {
8991 PyThreadState* __tstate = wxPyBeginAllowThreads();
8992 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8993
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) return NULL;
8996 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8997 _resultobj = Py_BuildValue("s",_ptemp);
8998 return _resultobj;
8999 }
9000
9001 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
9002 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9003 PyObject * _resultobj;
9004 wxDC * _arg0;
9005 double * _arg1;
9006 double temp;
9007 double * _arg2;
9008 double temp0;
9009 PyObject * _argo0 = 0;
9010 char *_kwnames[] = { "self", NULL };
9011
9012 self = self;
9013 {
9014 _arg1 = &temp;
9015 }
9016 {
9017 _arg2 = &temp0;
9018 }
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
9020 return NULL;
9021 if (_argo0) {
9022 if (_argo0 == Py_None) { _arg0 = NULL; }
9023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
9025 return NULL;
9026 }
9027 }
9028 {
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 wxDC_GetUserScale(_arg0,_arg1,_arg2);
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) return NULL;
9034 } Py_INCREF(Py_None);
9035 _resultobj = Py_None;
9036 {
9037 PyObject *o;
9038 o = PyFloat_FromDouble((double) (*_arg1));
9039 _resultobj = t_output_helper(_resultobj, o);
9040 }
9041 {
9042 PyObject *o;
9043 o = PyFloat_FromDouble((double) (*_arg2));
9044 _resultobj = t_output_helper(_resultobj, o);
9045 }
9046 return _resultobj;
9047 }
9048
9049 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
9050 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
9051 PyObject * _resultobj;
9052 long _result;
9053 wxDC * _arg0;
9054 long _arg1;
9055 PyObject * _argo0 = 0;
9056 char *_kwnames[] = { "self","x", NULL };
9057
9058 self = self;
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
9060 return NULL;
9061 if (_argo0) {
9062 if (_argo0 == Py_None) { _arg0 = NULL; }
9063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
9065 return NULL;
9066 }
9067 }
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
9071
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) return NULL;
9074 } _resultobj = Py_BuildValue("l",_result);
9075 return _resultobj;
9076 }
9077
9078 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
9079 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9080 PyObject * _resultobj;
9081 long _result;
9082 wxDC * _arg0;
9083 long _arg1;
9084 PyObject * _argo0 = 0;
9085 char *_kwnames[] = { "self","x", NULL };
9086
9087 self = self;
9088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
9089 return NULL;
9090 if (_argo0) {
9091 if (_argo0 == Py_None) { _arg0 = NULL; }
9092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
9094 return NULL;
9095 }
9096 }
9097 {
9098 PyThreadState* __tstate = wxPyBeginAllowThreads();
9099 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
9100
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) return NULL;
9103 } _resultobj = Py_BuildValue("l",_result);
9104 return _resultobj;
9105 }
9106
9107 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
9108 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
9109 PyObject * _resultobj;
9110 long _result;
9111 wxDC * _arg0;
9112 long _arg1;
9113 PyObject * _argo0 = 0;
9114 char *_kwnames[] = { "self","y", NULL };
9115
9116 self = self;
9117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
9118 return NULL;
9119 if (_argo0) {
9120 if (_argo0 == Py_None) { _arg0 = NULL; }
9121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
9123 return NULL;
9124 }
9125 }
9126 {
9127 PyThreadState* __tstate = wxPyBeginAllowThreads();
9128 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
9129
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) return NULL;
9132 } _resultobj = Py_BuildValue("l",_result);
9133 return _resultobj;
9134 }
9135
9136 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
9137 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9138 PyObject * _resultobj;
9139 long _result;
9140 wxDC * _arg0;
9141 long _arg1;
9142 PyObject * _argo0 = 0;
9143 char *_kwnames[] = { "self","y", NULL };
9144
9145 self = self;
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
9147 return NULL;
9148 if (_argo0) {
9149 if (_argo0 == Py_None) { _arg0 = NULL; }
9150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
9152 return NULL;
9153 }
9154 }
9155 {
9156 PyThreadState* __tstate = wxPyBeginAllowThreads();
9157 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
9158
9159 wxPyEndAllowThreads(__tstate);
9160 if (PyErr_Occurred()) return NULL;
9161 } _resultobj = Py_BuildValue("l",_result);
9162 return _resultobj;
9163 }
9164
9165 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
9166 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
9167 PyObject * _resultobj;
9168 long _result;
9169 wxDC * _arg0;
9170 PyObject * _argo0 = 0;
9171 char *_kwnames[] = { "self", NULL };
9172
9173 self = self;
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
9175 return NULL;
9176 if (_argo0) {
9177 if (_argo0 == Py_None) { _arg0 = NULL; }
9178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9180 return NULL;
9181 }
9182 }
9183 {
9184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9185 _result = (long )wxDC_MaxX(_arg0);
9186
9187 wxPyEndAllowThreads(__tstate);
9188 if (PyErr_Occurred()) return NULL;
9189 } _resultobj = Py_BuildValue("l",_result);
9190 return _resultobj;
9191 }
9192
9193 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9194 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
9195 PyObject * _resultobj;
9196 long _result;
9197 wxDC * _arg0;
9198 PyObject * _argo0 = 0;
9199 char *_kwnames[] = { "self", NULL };
9200
9201 self = self;
9202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
9203 return NULL;
9204 if (_argo0) {
9205 if (_argo0 == Py_None) { _arg0 = NULL; }
9206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9208 return NULL;
9209 }
9210 }
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 _result = (long )wxDC_MaxY(_arg0);
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) return NULL;
9217 } _resultobj = Py_BuildValue("l",_result);
9218 return _resultobj;
9219 }
9220
9221 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9222 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
9223 PyObject * _resultobj;
9224 long _result;
9225 wxDC * _arg0;
9226 PyObject * _argo0 = 0;
9227 char *_kwnames[] = { "self", NULL };
9228
9229 self = self;
9230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
9231 return NULL;
9232 if (_argo0) {
9233 if (_argo0 == Py_None) { _arg0 = NULL; }
9234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9236 return NULL;
9237 }
9238 }
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 _result = (long )wxDC_MinX(_arg0);
9242
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) return NULL;
9245 } _resultobj = Py_BuildValue("l",_result);
9246 return _resultobj;
9247 }
9248
9249 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9250 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject * _resultobj;
9252 long _result;
9253 wxDC * _arg0;
9254 PyObject * _argo0 = 0;
9255 char *_kwnames[] = { "self", NULL };
9256
9257 self = self;
9258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
9259 return NULL;
9260 if (_argo0) {
9261 if (_argo0 == Py_None) { _arg0 = NULL; }
9262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9264 return NULL;
9265 }
9266 }
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9269 _result = (long )wxDC_MinY(_arg0);
9270
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) return NULL;
9273 } _resultobj = Py_BuildValue("l",_result);
9274 return _resultobj;
9275 }
9276
9277 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9278 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject * _resultobj;
9280 bool _result;
9281 wxDC * _arg0;
9282 PyObject * _argo0 = 0;
9283 char *_kwnames[] = { "self", NULL };
9284
9285 self = self;
9286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
9287 return NULL;
9288 if (_argo0) {
9289 if (_argo0 == Py_None) { _arg0 = NULL; }
9290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9292 return NULL;
9293 }
9294 }
9295 {
9296 PyThreadState* __tstate = wxPyBeginAllowThreads();
9297 _result = (bool )wxDC_Ok(_arg0);
9298
9299 wxPyEndAllowThreads(__tstate);
9300 if (PyErr_Occurred()) return NULL;
9301 } _resultobj = Py_BuildValue("i",_result);
9302 return _resultobj;
9303 }
9304
9305 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9306 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9307 PyObject * _resultobj;
9308 wxDC * _arg0;
9309 long _arg1;
9310 long _arg2;
9311 PyObject * _argo0 = 0;
9312 char *_kwnames[] = { "self","x","y", NULL };
9313
9314 self = self;
9315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9316 return NULL;
9317 if (_argo0) {
9318 if (_argo0 == Py_None) { _arg0 = NULL; }
9319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9321 return NULL;
9322 }
9323 }
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
9327
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) return NULL;
9330 } Py_INCREF(Py_None);
9331 _resultobj = Py_None;
9332 return _resultobj;
9333 }
9334
9335 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9336 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9337 PyObject * _resultobj;
9338 wxDC * _arg0;
9339 wxBrush * _arg1;
9340 PyObject * _argo0 = 0;
9341 PyObject * _argo1 = 0;
9342 char *_kwnames[] = { "self","brush", NULL };
9343
9344 self = self;
9345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
9346 return NULL;
9347 if (_argo0) {
9348 if (_argo0 == Py_None) { _arg0 = NULL; }
9349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9351 return NULL;
9352 }
9353 }
9354 if (_argo1) {
9355 if (_argo1 == Py_None) { _arg1 = NULL; }
9356 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9357 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9358 return NULL;
9359 }
9360 }
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 wxDC_SetBackground(_arg0,*_arg1);
9364
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) return NULL;
9367 } Py_INCREF(Py_None);
9368 _resultobj = Py_None;
9369 return _resultobj;
9370 }
9371
9372 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9373 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9374 PyObject * _resultobj;
9375 wxDC * _arg0;
9376 int _arg1;
9377 PyObject * _argo0 = 0;
9378 char *_kwnames[] = { "self","mode", NULL };
9379
9380 self = self;
9381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
9382 return NULL;
9383 if (_argo0) {
9384 if (_argo0 == Py_None) { _arg0 = NULL; }
9385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9387 return NULL;
9388 }
9389 }
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 wxDC_SetBackgroundMode(_arg0,_arg1);
9393
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) return NULL;
9396 } Py_INCREF(Py_None);
9397 _resultobj = Py_None;
9398 return _resultobj;
9399 }
9400
9401 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9402 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9403 PyObject * _resultobj;
9404 wxDC * _arg0;
9405 long _arg1;
9406 long _arg2;
9407 long _arg3;
9408 long _arg4;
9409 PyObject * _argo0 = 0;
9410 char *_kwnames[] = { "self","x","y","width","height", NULL };
9411
9412 self = self;
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9414 return NULL;
9415 if (_argo0) {
9416 if (_argo0 == Py_None) { _arg0 = NULL; }
9417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9419 return NULL;
9420 }
9421 }
9422 {
9423 PyThreadState* __tstate = wxPyBeginAllowThreads();
9424 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
9425
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) return NULL;
9428 } Py_INCREF(Py_None);
9429 _resultobj = Py_None;
9430 return _resultobj;
9431 }
9432
9433 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9434 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject * _resultobj;
9436 wxDC * _arg0;
9437 wxRegion * _arg1;
9438 PyObject * _argo0 = 0;
9439 PyObject * _argo1 = 0;
9440 char *_kwnames[] = { "self","region", NULL };
9441
9442 self = self;
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
9444 return NULL;
9445 if (_argo0) {
9446 if (_argo0 == Py_None) { _arg0 = NULL; }
9447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9449 return NULL;
9450 }
9451 }
9452 if (_argo1) {
9453 if (_argo1 == Py_None) { _arg1 = NULL; }
9454 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9455 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9456 return NULL;
9457 }
9458 }
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) return NULL;
9465 } Py_INCREF(Py_None);
9466 _resultobj = Py_None;
9467 return _resultobj;
9468 }
9469
9470 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9471 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
9472 PyObject * _resultobj;
9473 wxDC * _arg0;
9474 wxPalette * _arg1;
9475 PyObject * _argo0 = 0;
9476 PyObject * _argo1 = 0;
9477 char *_kwnames[] = { "self","colourMap", NULL };
9478
9479 self = self;
9480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
9481 return NULL;
9482 if (_argo0) {
9483 if (_argo0 == Py_None) { _arg0 = NULL; }
9484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9486 return NULL;
9487 }
9488 }
9489 if (_argo1) {
9490 if (_argo1 == Py_None) { _arg1 = NULL; }
9491 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
9492 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9493 return NULL;
9494 }
9495 }
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 wxDC_SetPalette(_arg0,*_arg1);
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) return NULL;
9502 } Py_INCREF(Py_None);
9503 _resultobj = Py_None;
9504 return _resultobj;
9505 }
9506
9507 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9508 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
9509 PyObject * _resultobj;
9510 wxDC * _arg0;
9511 wxBrush * _arg1;
9512 PyObject * _argo0 = 0;
9513 PyObject * _argo1 = 0;
9514 char *_kwnames[] = { "self","brush", NULL };
9515
9516 self = self;
9517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
9518 return NULL;
9519 if (_argo0) {
9520 if (_argo0 == Py_None) { _arg0 = NULL; }
9521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9523 return NULL;
9524 }
9525 }
9526 if (_argo1) {
9527 if (_argo1 == Py_None) { _arg1 = NULL; }
9528 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9529 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9530 return NULL;
9531 }
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 wxDC_SetBrush(_arg0,*_arg1);
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) return NULL;
9539 } Py_INCREF(Py_None);
9540 _resultobj = Py_None;
9541 return _resultobj;
9542 }
9543
9544 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9545 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject * _resultobj;
9547 wxDC * _arg0;
9548 wxFont * _arg1;
9549 PyObject * _argo0 = 0;
9550 PyObject * _argo1 = 0;
9551 char *_kwnames[] = { "self","font", NULL };
9552
9553 self = self;
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
9555 return NULL;
9556 if (_argo0) {
9557 if (_argo0 == Py_None) { _arg0 = NULL; }
9558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9560 return NULL;
9561 }
9562 }
9563 if (_argo1) {
9564 if (_argo1 == Py_None) { _arg1 = NULL; }
9565 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
9566 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9567 return NULL;
9568 }
9569 }
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 wxDC_SetFont(_arg0,*_arg1);
9573
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) return NULL;
9576 } Py_INCREF(Py_None);
9577 _resultobj = Py_None;
9578 return _resultobj;
9579 }
9580
9581 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9582 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
9583 PyObject * _resultobj;
9584 wxDC * _arg0;
9585 int _arg1;
9586 PyObject * _argo0 = 0;
9587 char *_kwnames[] = { "self","function", NULL };
9588
9589 self = self;
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
9591 return NULL;
9592 if (_argo0) {
9593 if (_argo0 == Py_None) { _arg0 = NULL; }
9594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9596 return NULL;
9597 }
9598 }
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 wxDC_SetLogicalFunction(_arg0,_arg1);
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) return NULL;
9605 } Py_INCREF(Py_None);
9606 _resultobj = Py_None;
9607 return _resultobj;
9608 }
9609
9610 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9611 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9612 PyObject * _resultobj;
9613 wxDC * _arg0;
9614 double _arg1;
9615 double _arg2;
9616 PyObject * _argo0 = 0;
9617 char *_kwnames[] = { "self","x","y", NULL };
9618
9619 self = self;
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
9621 return NULL;
9622 if (_argo0) {
9623 if (_argo0 == Py_None) { _arg0 = NULL; }
9624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9626 return NULL;
9627 }
9628 }
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) return NULL;
9635 } Py_INCREF(Py_None);
9636 _resultobj = Py_None;
9637 return _resultobj;
9638 }
9639
9640 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9641 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9642 PyObject * _resultobj;
9643 wxDC * _arg0;
9644 int _arg1;
9645 PyObject * _argo0 = 0;
9646 char *_kwnames[] = { "self","mode", NULL };
9647
9648 self = self;
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
9650 return NULL;
9651 if (_argo0) {
9652 if (_argo0 == Py_None) { _arg0 = NULL; }
9653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9655 return NULL;
9656 }
9657 }
9658 {
9659 PyThreadState* __tstate = wxPyBeginAllowThreads();
9660 wxDC_SetMapMode(_arg0,_arg1);
9661
9662 wxPyEndAllowThreads(__tstate);
9663 if (PyErr_Occurred()) return NULL;
9664 } Py_INCREF(Py_None);
9665 _resultobj = Py_None;
9666 return _resultobj;
9667 }
9668
9669 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9670 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject * _resultobj;
9672 wxDC * _arg0;
9673 bool _arg1;
9674 PyObject * _argo0 = 0;
9675 int tempbool1;
9676 char *_kwnames[] = { "self","optimize", NULL };
9677
9678 self = self;
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
9680 return NULL;
9681 if (_argo0) {
9682 if (_argo0 == Py_None) { _arg0 = NULL; }
9683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9685 return NULL;
9686 }
9687 }
9688 _arg1 = (bool ) tempbool1;
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 wxDC_SetOptimization(_arg0,_arg1);
9692
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) return NULL;
9695 } Py_INCREF(Py_None);
9696 _resultobj = Py_None;
9697 return _resultobj;
9698 }
9699
9700 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9701 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
9702 PyObject * _resultobj;
9703 wxDC * _arg0;
9704 wxPen * _arg1;
9705 PyObject * _argo0 = 0;
9706 PyObject * _argo1 = 0;
9707 char *_kwnames[] = { "self","pen", NULL };
9708
9709 self = self;
9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
9711 return NULL;
9712 if (_argo0) {
9713 if (_argo0 == Py_None) { _arg0 = NULL; }
9714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9716 return NULL;
9717 }
9718 }
9719 if (_argo1) {
9720 if (_argo1 == Py_None) { _arg1 = NULL; }
9721 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
9722 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9723 return NULL;
9724 }
9725 }
9726 {
9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
9728 wxDC_SetPen(_arg0,*_arg1);
9729
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) return NULL;
9732 } Py_INCREF(Py_None);
9733 _resultobj = Py_None;
9734 return _resultobj;
9735 }
9736
9737 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9738 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject * _resultobj;
9740 wxDC * _arg0;
9741 wxColour * _arg1;
9742 PyObject * _argo0 = 0;
9743 wxColour temp;
9744 PyObject * _obj1 = 0;
9745 char *_kwnames[] = { "self","colour", NULL };
9746
9747 self = self;
9748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
9749 return NULL;
9750 if (_argo0) {
9751 if (_argo0 == Py_None) { _arg0 = NULL; }
9752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9754 return NULL;
9755 }
9756 }
9757 {
9758 _arg1 = &temp;
9759 if (! wxColour_helper(_obj1, &_arg1))
9760 return NULL;
9761 }
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 wxDC_SetTextBackground(_arg0,*_arg1);
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) return NULL;
9768 } Py_INCREF(Py_None);
9769 _resultobj = Py_None;
9770 return _resultobj;
9771 }
9772
9773 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9774 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9775 PyObject * _resultobj;
9776 wxDC * _arg0;
9777 wxColour * _arg1;
9778 PyObject * _argo0 = 0;
9779 wxColour temp;
9780 PyObject * _obj1 = 0;
9781 char *_kwnames[] = { "self","colour", NULL };
9782
9783 self = self;
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9785 return NULL;
9786 if (_argo0) {
9787 if (_argo0 == Py_None) { _arg0 = NULL; }
9788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9790 return NULL;
9791 }
9792 }
9793 {
9794 _arg1 = &temp;
9795 if (! wxColour_helper(_obj1, &_arg1))
9796 return NULL;
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 wxDC_SetTextForeground(_arg0,*_arg1);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) return NULL;
9804 } Py_INCREF(Py_None);
9805 _resultobj = Py_None;
9806 return _resultobj;
9807 }
9808
9809 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9810 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9811 PyObject * _resultobj;
9812 wxDC * _arg0;
9813 double _arg1;
9814 double _arg2;
9815 PyObject * _argo0 = 0;
9816 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9817
9818 self = self;
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
9820 return NULL;
9821 if (_argo0) {
9822 if (_argo0 == Py_None) { _arg0 = NULL; }
9823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9825 return NULL;
9826 }
9827 }
9828 {
9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
9830 wxDC_SetUserScale(_arg0,_arg1,_arg2);
9831
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) return NULL;
9834 } Py_INCREF(Py_None);
9835 _resultobj = Py_None;
9836 return _resultobj;
9837 }
9838
9839 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9840 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9841 PyObject * _resultobj;
9842 bool _result;
9843 wxDC * _arg0;
9844 wxString * _arg1;
9845 PyObject * _argo0 = 0;
9846 PyObject * _obj1 = 0;
9847 char *_kwnames[] = { "self","message", NULL };
9848
9849 self = self;
9850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9851 return NULL;
9852 if (_argo0) {
9853 if (_argo0 == Py_None) { _arg0 = NULL; }
9854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9856 return NULL;
9857 }
9858 }
9859 {
9860 #if PYTHON_API_VERSION >= 1009
9861 char* tmpPtr; int tmpSize;
9862 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9863 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9864 return NULL;
9865 }
9866 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9867 return NULL;
9868 _arg1 = new wxString(tmpPtr, tmpSize);
9869 #else
9870 if (!PyString_Check(_obj1)) {
9871 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9872 return NULL;
9873 }
9874 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9875 #endif
9876 }
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
9879 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9880
9881 wxPyEndAllowThreads(__tstate);
9882 if (PyErr_Occurred()) return NULL;
9883 } _resultobj = Py_BuildValue("i",_result);
9884 {
9885 if (_obj1)
9886 delete _arg1;
9887 }
9888 return _resultobj;
9889 }
9890
9891 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9892 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9893 PyObject * _resultobj;
9894 wxDC * _arg0;
9895 PyObject * _argo0 = 0;
9896 char *_kwnames[] = { "self", NULL };
9897
9898 self = self;
9899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9900 return NULL;
9901 if (_argo0) {
9902 if (_argo0 == Py_None) { _arg0 = NULL; }
9903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9905 return NULL;
9906 }
9907 }
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 wxDC_StartPage(_arg0);
9911
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) return NULL;
9914 } Py_INCREF(Py_None);
9915 _resultobj = Py_None;
9916 return _resultobj;
9917 }
9918
9919 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9920 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9921 PyObject * _resultobj;
9922 wxDC * _arg0;
9923 wxBitmap * _arg1;
9924 long _arg2;
9925 long _arg3;
9926 int _arg4 = (int ) FALSE;
9927 PyObject * _argo0 = 0;
9928 PyObject * _argo1 = 0;
9929 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9930
9931 self = self;
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9933 return NULL;
9934 if (_argo0) {
9935 if (_argo0 == Py_None) { _arg0 = NULL; }
9936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9938 return NULL;
9939 }
9940 }
9941 if (_argo1) {
9942 if (_argo1 == Py_None) { _arg1 = NULL; }
9943 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9944 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9945 return NULL;
9946 }
9947 }
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) return NULL;
9954 } Py_INCREF(Py_None);
9955 _resultobj = Py_None;
9956 return _resultobj;
9957 }
9958
9959 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9960 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject * _resultobj;
9962 bool _result;
9963 wxDC * _arg0;
9964 PyObject * _argo0 = 0;
9965 char *_kwnames[] = { "self", NULL };
9966
9967 self = self;
9968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9969 return NULL;
9970 if (_argo0) {
9971 if (_argo0 == Py_None) { _arg0 = NULL; }
9972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9974 return NULL;
9975 }
9976 }
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9980
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) return NULL;
9983 } _resultobj = Py_BuildValue("i",_result);
9984 return _resultobj;
9985 }
9986
9987 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9988 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9989 PyObject * _resultobj;
9990 bool _result;
9991 wxDC * _arg0;
9992 PyObject * _argo0 = 0;
9993 char *_kwnames[] = { "self", NULL };
9994
9995 self = self;
9996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9997 return NULL;
9998 if (_argo0) {
9999 if (_argo0 == Py_None) { _arg0 = NULL; }
10000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
10002 return NULL;
10003 }
10004 }
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 _result = (bool )wxDC_CanGetTextExtent(_arg0);
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) return NULL;
10011 } _resultobj = Py_BuildValue("i",_result);
10012 return _resultobj;
10013 }
10014
10015 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
10016 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
10017 PyObject * _resultobj;
10018 int _result;
10019 wxDC * _arg0;
10020 PyObject * _argo0 = 0;
10021 char *_kwnames[] = { "self", NULL };
10022
10023 self = self;
10024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
10025 return NULL;
10026 if (_argo0) {
10027 if (_argo0 == Py_None) { _arg0 = NULL; }
10028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
10030 return NULL;
10031 }
10032 }
10033 {
10034 PyThreadState* __tstate = wxPyBeginAllowThreads();
10035 _result = (int )wxDC_GetDepth(_arg0);
10036
10037 wxPyEndAllowThreads(__tstate);
10038 if (PyErr_Occurred()) return NULL;
10039 } _resultobj = Py_BuildValue("i",_result);
10040 return _resultobj;
10041 }
10042
10043 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
10044 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
10045 PyObject * _resultobj;
10046 wxSize * _result;
10047 wxDC * _arg0;
10048 PyObject * _argo0 = 0;
10049 char *_kwnames[] = { "self", NULL };
10050 char _ptemp[128];
10051
10052 self = self;
10053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
10054 return NULL;
10055 if (_argo0) {
10056 if (_argo0 == Py_None) { _arg0 = NULL; }
10057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
10059 return NULL;
10060 }
10061 }
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 _result = new wxSize (wxDC_GetPPI(_arg0));
10065
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) return NULL;
10068 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10069 _resultobj = Py_BuildValue("s",_ptemp);
10070 return _resultobj;
10071 }
10072
10073 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
10074 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject * _resultobj;
10076 wxDC * _arg0;
10077 int * _arg1;
10078 int temp;
10079 int * _arg2;
10080 int temp0;
10081 PyObject * _argo0 = 0;
10082 char *_kwnames[] = { "self", NULL };
10083
10084 self = self;
10085 {
10086 _arg1 = &temp;
10087 }
10088 {
10089 _arg2 = &temp0;
10090 }
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
10092 return NULL;
10093 if (_argo0) {
10094 if (_argo0 == Py_None) { _arg0 = NULL; }
10095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
10097 return NULL;
10098 }
10099 }
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
10103
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) return NULL;
10106 } Py_INCREF(Py_None);
10107 _resultobj = Py_None;
10108 {
10109 PyObject *o;
10110 o = PyInt_FromLong((long) (*_arg1));
10111 _resultobj = t_output_helper(_resultobj, o);
10112 }
10113 {
10114 PyObject *o;
10115 o = PyInt_FromLong((long) (*_arg2));
10116 _resultobj = t_output_helper(_resultobj, o);
10117 }
10118 return _resultobj;
10119 }
10120
10121 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
10122 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10123 PyObject * _resultobj;
10124 wxDC * _arg0;
10125 int _arg1;
10126 int _arg2;
10127 PyObject * _argo0 = 0;
10128 char *_kwnames[] = { "self","x","y", NULL };
10129
10130 self = self;
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
10132 return NULL;
10133 if (_argo0) {
10134 if (_argo0 == Py_None) { _arg0 = NULL; }
10135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
10137 return NULL;
10138 }
10139 }
10140 {
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
10143
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) return NULL;
10146 } Py_INCREF(Py_None);
10147 _resultobj = Py_None;
10148 return _resultobj;
10149 }
10150
10151 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
10152 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10153 PyObject * _resultobj;
10154 wxDC * _arg0;
10155 int * _arg1;
10156 int temp;
10157 int * _arg2;
10158 int temp0;
10159 PyObject * _argo0 = 0;
10160 char *_kwnames[] = { "self", NULL };
10161
10162 self = self;
10163 {
10164 _arg1 = &temp;
10165 }
10166 {
10167 _arg2 = &temp0;
10168 }
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
10170 return NULL;
10171 if (_argo0) {
10172 if (_argo0 == Py_None) { _arg0 = NULL; }
10173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
10175 return NULL;
10176 }
10177 }
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
10181
10182 wxPyEndAllowThreads(__tstate);
10183 if (PyErr_Occurred()) return NULL;
10184 } Py_INCREF(Py_None);
10185 _resultobj = Py_None;
10186 {
10187 PyObject *o;
10188 o = PyInt_FromLong((long) (*_arg1));
10189 _resultobj = t_output_helper(_resultobj, o);
10190 }
10191 {
10192 PyObject *o;
10193 o = PyInt_FromLong((long) (*_arg2));
10194 _resultobj = t_output_helper(_resultobj, o);
10195 }
10196 return _resultobj;
10197 }
10198
10199 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10200 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10201 PyObject * _resultobj;
10202 wxDC * _arg0;
10203 bool _arg1;
10204 bool _arg2;
10205 PyObject * _argo0 = 0;
10206 int tempbool1;
10207 int tempbool2;
10208 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
10209
10210 self = self;
10211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
10212 return NULL;
10213 if (_argo0) {
10214 if (_argo0 == Py_None) { _arg0 = NULL; }
10215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10217 return NULL;
10218 }
10219 }
10220 _arg1 = (bool ) tempbool1;
10221 _arg2 = (bool ) tempbool2;
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) return NULL;
10228 } Py_INCREF(Py_None);
10229 _resultobj = Py_None;
10230 return _resultobj;
10231 }
10232
10233 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10234 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject * _resultobj;
10236 wxDC * _arg0;
10237 int _arg1;
10238 int _arg2;
10239 PyObject * _argo0 = 0;
10240 char *_kwnames[] = { "self","x","y", NULL };
10241
10242 self = self;
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
10244 return NULL;
10245 if (_argo0) {
10246 if (_argo0 == Py_None) { _arg0 = NULL; }
10247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10249 return NULL;
10250 }
10251 }
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
10255
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) return NULL;
10258 } Py_INCREF(Py_None);
10259 _resultobj = Py_None;
10260 return _resultobj;
10261 }
10262
10263 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10264 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10265 PyObject * _resultobj;
10266 wxDC * _arg0;
10267 PyObject * _argo0 = 0;
10268 char *_kwnames[] = { "self", NULL };
10269
10270 self = self;
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
10272 return NULL;
10273 if (_argo0) {
10274 if (_argo0 == Py_None) { _arg0 = NULL; }
10275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10277 return NULL;
10278 }
10279 }
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 wxDC_ResetBoundingBox(_arg0);
10283
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) return NULL;
10286 } Py_INCREF(Py_None);
10287 _resultobj = Py_None;
10288 return _resultobj;
10289 }
10290
10291 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10292 PyObject * _resultobj;
10293 wxDC * _arg0;
10294 int * _arg1;
10295 int temp;
10296 int * _arg2;
10297 int temp0;
10298 int * _arg3;
10299 int temp1;
10300 int * _arg4;
10301 int temp2;
10302 PyObject * _argo0 = 0;
10303 char *_kwnames[] = { "self", NULL };
10304
10305 self = self;
10306 {
10307 _arg1 = &temp;
10308 }
10309 {
10310 _arg2 = &temp0;
10311 }
10312 {
10313 _arg3 = &temp1;
10314 }
10315 {
10316 _arg4 = &temp2;
10317 }
10318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
10319 return NULL;
10320 if (_argo0) {
10321 if (_argo0 == Py_None) { _arg0 = NULL; }
10322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10324 return NULL;
10325 }
10326 }
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
10330
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) return NULL;
10333 } Py_INCREF(Py_None);
10334 _resultobj = Py_None;
10335 {
10336 PyObject *o;
10337 o = PyInt_FromLong((long) (*_arg1));
10338 _resultobj = t_output_helper(_resultobj, o);
10339 }
10340 {
10341 PyObject *o;
10342 o = PyInt_FromLong((long) (*_arg2));
10343 _resultobj = t_output_helper(_resultobj, o);
10344 }
10345 {
10346 PyObject *o;
10347 o = PyInt_FromLong((long) (*_arg3));
10348 _resultobj = t_output_helper(_resultobj, o);
10349 }
10350 {
10351 PyObject *o;
10352 o = PyInt_FromLong((long) (*_arg4));
10353 _resultobj = t_output_helper(_resultobj, o);
10354 }
10355 return _resultobj;
10356 }
10357
10358 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10359 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject * _resultobj;
10361 long _result;
10362 wxDC * _arg0;
10363 PyObject * _argo0 = 0;
10364 char *_kwnames[] = { "self", NULL };
10365
10366 self = self;
10367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
10368 return NULL;
10369 if (_argo0) {
10370 if (_argo0 == Py_None) { _arg0 = NULL; }
10371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10373 return NULL;
10374 }
10375 }
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 _result = (long )wxDC_GetHDC(_arg0);
10379
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) return NULL;
10382 } _resultobj = Py_BuildValue("l",_result);
10383 return _resultobj;
10384 }
10385
10386 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
10387 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
10388 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10389 int numObjs = 0;
10390 int numPens = 0;
10391 wxPen* pen;
10392 PyObject* obj;
10393 int x1, y1;
10394 int i = 0;
10395
10396 if (!PySequence_Check(pyPoints)) {
10397 goto err0;
10398 }
10399 if (!PySequence_Check(pyPens)) {
10400 goto err1;
10401 }
10402 numObjs = PySequence_Length(pyPoints);
10403 numPens = PySequence_Length(pyPens);
10404
10405 for (i = 0; i < numObjs; i++) {
10406 // Use a new pen?
10407 if (i < numPens) {
10408 if (isFastPens) {
10409 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10410 }
10411 else {
10412 obj = PySequence_GetItem(pyPens, i);
10413 }
10414 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10415 if (!isFastPens)
10416 Py_DECREF(obj);
10417 goto err1;
10418 }
10419
10420 self->SetPen(*pen);
10421 if (!isFastPens)
10422 Py_DECREF(obj);
10423 }
10424
10425 // Get the point coordinants
10426 if (isFastSeq) {
10427 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
10428 }
10429 else {
10430 obj = PySequence_GetItem(pyPoints, i);
10431 }
10432 if (! _2int_seq_helper(obj, &x1, &y1)) {
10433 if (!isFastPens)
10434 Py_DECREF(obj);
10435 goto err0;
10436 }
10437
10438 // Now draw the point
10439 self->DrawPoint(x1, y1);
10440
10441 if (!isFastSeq)
10442 Py_DECREF(obj);
10443 }
10444
10445 Py_INCREF(Py_None);
10446 return Py_None;
10447
10448 err1:
10449 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10450 return NULL;
10451 err0:
10452 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
10453 return NULL;
10454 }
10455 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
10456 PyObject * _resultobj;
10457 PyObject * _result;
10458 wxDC * _arg0;
10459 PyObject * _arg1;
10460 PyObject * _arg2;
10461 PyObject * _argo0 = 0;
10462 PyObject * _obj1 = 0;
10463 PyObject * _obj2 = 0;
10464 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
10465
10466 self = self;
10467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
10468 return NULL;
10469 if (_argo0) {
10470 if (_argo0 == Py_None) { _arg0 = NULL; }
10471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10473 return NULL;
10474 }
10475 }
10476 {
10477 _arg1 = _obj1;
10478 }
10479 {
10480 _arg2 = _obj2;
10481 }
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
10485
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) return NULL;
10488 }{
10489 _resultobj = _result;
10490 }
10491 return _resultobj;
10492 }
10493
10494 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
10495 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
10496 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10497 int numObjs = 0;
10498 int numPens = 0;
10499 wxPen* pen;
10500 PyObject* obj;
10501 int x1, y1, x2, y2;
10502 int i = 0;
10503
10504 if (!PySequence_Check(pyLines)) {
10505 goto err0;
10506 }
10507 if (!PySequence_Check(pyPens)) {
10508 goto err1;
10509 }
10510 numObjs = PySequence_Length(pyLines);
10511 numPens = PySequence_Length(pyPens);
10512
10513 for (i = 0; i < numObjs; i++) {
10514 // Use a new pen?
10515 if (i < numPens) {
10516 if (isFastPens) {
10517 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10518 }
10519 else {
10520 obj = PySequence_GetItem(pyPens, i);
10521 }
10522 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10523 if (!isFastPens)
10524 Py_DECREF(obj);
10525 goto err1;
10526 }
10527
10528 self->SetPen(*pen);
10529 if (!isFastPens)
10530 Py_DECREF(obj);
10531 }
10532
10533 // Get the line coordinants
10534 if (isFastSeq) {
10535 obj = PySequence_Fast_GET_ITEM(pyLines, i);
10536 }
10537 else {
10538 obj = PySequence_GetItem(pyLines, i);
10539 }
10540 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
10541 if (!isFastPens)
10542 Py_DECREF(obj);
10543 goto err0;
10544 }
10545
10546 // Now draw the line
10547 self->DrawLine(x1, y1, x2, y2);
10548
10549 if (!isFastSeq)
10550 Py_DECREF(obj);
10551 }
10552
10553 Py_INCREF(Py_None);
10554 return Py_None;
10555
10556 err1:
10557 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10558 return NULL;
10559 err0:
10560 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10561 return NULL;
10562 }
10563 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
10564 PyObject * _resultobj;
10565 PyObject * _result;
10566 wxDC * _arg0;
10567 PyObject * _arg1;
10568 PyObject * _arg2;
10569 PyObject * _argo0 = 0;
10570 PyObject * _obj1 = 0;
10571 PyObject * _obj2 = 0;
10572 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
10573
10574 self = self;
10575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
10576 return NULL;
10577 if (_argo0) {
10578 if (_argo0 == Py_None) { _arg0 = NULL; }
10579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10581 return NULL;
10582 }
10583 }
10584 {
10585 _arg1 = _obj1;
10586 }
10587 {
10588 _arg2 = _obj2;
10589 }
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) return NULL;
10596 }{
10597 _resultobj = _result;
10598 }
10599 return _resultobj;
10600 }
10601
10602 static void *SwigwxMemoryDCTowxDC(void *ptr) {
10603 wxMemoryDC *src;
10604 wxDC *dest;
10605 src = (wxMemoryDC *) ptr;
10606 dest = (wxDC *) src;
10607 return (void *) dest;
10608 }
10609
10610 static void *SwigwxMemoryDCTowxObject(void *ptr) {
10611 wxMemoryDC *src;
10612 wxObject *dest;
10613 src = (wxMemoryDC *) ptr;
10614 dest = (wxObject *) src;
10615 return (void *) dest;
10616 }
10617
10618 #define new_wxMemoryDC() (new wxMemoryDC())
10619 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject * _resultobj;
10621 wxMemoryDC * _result;
10622 char *_kwnames[] = { NULL };
10623 char _ptemp[128];
10624
10625 self = self;
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
10627 return NULL;
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 _result = (wxMemoryDC *)new_wxMemoryDC();
10631
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) return NULL;
10634 } if (_result) {
10635 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
10636 _resultobj = Py_BuildValue("s",_ptemp);
10637 } else {
10638 Py_INCREF(Py_None);
10639 _resultobj = Py_None;
10640 }
10641 return _resultobj;
10642 }
10643
10644 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10645 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
10646 PyObject * _resultobj;
10647 wxMemoryDC * _arg0;
10648 wxBitmap * _arg1;
10649 PyObject * _argo0 = 0;
10650 PyObject * _argo1 = 0;
10651 char *_kwnames[] = { "self","bitmap", NULL };
10652
10653 self = self;
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
10655 return NULL;
10656 if (_argo0) {
10657 if (_argo0 == Py_None) { _arg0 = NULL; }
10658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
10659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10660 return NULL;
10661 }
10662 }
10663 if (_argo1) {
10664 if (_argo1 == Py_None) { _arg1 = NULL; }
10665 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10666 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10667 return NULL;
10668 }
10669 }
10670 {
10671 PyThreadState* __tstate = wxPyBeginAllowThreads();
10672 wxMemoryDC_SelectObject(_arg0,*_arg1);
10673
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) return NULL;
10676 } Py_INCREF(Py_None);
10677 _resultobj = Py_None;
10678 return _resultobj;
10679 }
10680
10681 static void *SwigwxScreenDCTowxDC(void *ptr) {
10682 wxScreenDC *src;
10683 wxDC *dest;
10684 src = (wxScreenDC *) ptr;
10685 dest = (wxDC *) src;
10686 return (void *) dest;
10687 }
10688
10689 static void *SwigwxScreenDCTowxObject(void *ptr) {
10690 wxScreenDC *src;
10691 wxObject *dest;
10692 src = (wxScreenDC *) ptr;
10693 dest = (wxObject *) src;
10694 return (void *) dest;
10695 }
10696
10697 #define new_wxScreenDC() (new wxScreenDC())
10698 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10699 PyObject * _resultobj;
10700 wxScreenDC * _result;
10701 char *_kwnames[] = { NULL };
10702 char _ptemp[128];
10703
10704 self = self;
10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
10706 return NULL;
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 _result = (wxScreenDC *)new_wxScreenDC();
10710
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) return NULL;
10713 } if (_result) {
10714 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
10715 _resultobj = Py_BuildValue("s",_ptemp);
10716 } else {
10717 Py_INCREF(Py_None);
10718 _resultobj = Py_None;
10719 }
10720 return _resultobj;
10721 }
10722
10723 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10724 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject * _resultobj;
10726 bool _result;
10727 wxScreenDC * _arg0;
10728 wxWindow * _arg1;
10729 PyObject * _argo0 = 0;
10730 PyObject * _argo1 = 0;
10731 char *_kwnames[] = { "self","window", NULL };
10732
10733 self = self;
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
10735 return NULL;
10736 if (_argo0) {
10737 if (_argo0 == Py_None) { _arg0 = NULL; }
10738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10740 return NULL;
10741 }
10742 }
10743 if (_argo1) {
10744 if (_argo1 == Py_None) { _arg1 = NULL; }
10745 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10746 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10747 return NULL;
10748 }
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) return NULL;
10756 } _resultobj = Py_BuildValue("i",_result);
10757 return _resultobj;
10758 }
10759
10760 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10761 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10762 PyObject * _resultobj;
10763 bool _result;
10764 wxScreenDC * _arg0;
10765 wxRect * _arg1 = (wxRect *) NULL;
10766 PyObject * _argo0 = 0;
10767 wxRect temp;
10768 PyObject * _obj1 = 0;
10769 char *_kwnames[] = { "self","rect", NULL };
10770
10771 self = self;
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
10773 return NULL;
10774 if (_argo0) {
10775 if (_argo0 == Py_None) { _arg0 = NULL; }
10776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10778 return NULL;
10779 }
10780 }
10781 if (_obj1)
10782 {
10783 _arg1 = &temp;
10784 if (! wxRect_helper(_obj1, &_arg1))
10785 return NULL;
10786 }
10787 {
10788 PyThreadState* __tstate = wxPyBeginAllowThreads();
10789 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
10790
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) return NULL;
10793 } _resultobj = Py_BuildValue("i",_result);
10794 return _resultobj;
10795 }
10796
10797 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10798 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject * _resultobj;
10800 bool _result;
10801 wxScreenDC * _arg0;
10802 PyObject * _argo0 = 0;
10803 char *_kwnames[] = { "self", NULL };
10804
10805 self = self;
10806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
10807 return NULL;
10808 if (_argo0) {
10809 if (_argo0 == Py_None) { _arg0 = NULL; }
10810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10812 return NULL;
10813 }
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) return NULL;
10821 } _resultobj = Py_BuildValue("i",_result);
10822 return _resultobj;
10823 }
10824
10825 static void *SwigwxClientDCTowxDC(void *ptr) {
10826 wxClientDC *src;
10827 wxDC *dest;
10828 src = (wxClientDC *) ptr;
10829 dest = (wxDC *) src;
10830 return (void *) dest;
10831 }
10832
10833 static void *SwigwxClientDCTowxObject(void *ptr) {
10834 wxClientDC *src;
10835 wxObject *dest;
10836 src = (wxClientDC *) ptr;
10837 dest = (wxObject *) src;
10838 return (void *) dest;
10839 }
10840
10841 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10842 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10843 PyObject * _resultobj;
10844 wxClientDC * _result;
10845 wxWindow * _arg0;
10846 PyObject * _argo0 = 0;
10847 char *_kwnames[] = { "win", NULL };
10848 char _ptemp[128];
10849
10850 self = self;
10851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10852 return NULL;
10853 if (_argo0) {
10854 if (_argo0 == Py_None) { _arg0 = NULL; }
10855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10857 return NULL;
10858 }
10859 }
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 _result = (wxClientDC *)new_wxClientDC(_arg0);
10863
10864 wxPyEndAllowThreads(__tstate);
10865 if (PyErr_Occurred()) return NULL;
10866 } if (_result) {
10867 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10868 _resultobj = Py_BuildValue("s",_ptemp);
10869 } else {
10870 Py_INCREF(Py_None);
10871 _resultobj = Py_None;
10872 }
10873 return _resultobj;
10874 }
10875
10876 static void *SwigwxPaintDCTowxDC(void *ptr) {
10877 wxPaintDC *src;
10878 wxDC *dest;
10879 src = (wxPaintDC *) ptr;
10880 dest = (wxDC *) src;
10881 return (void *) dest;
10882 }
10883
10884 static void *SwigwxPaintDCTowxObject(void *ptr) {
10885 wxPaintDC *src;
10886 wxObject *dest;
10887 src = (wxPaintDC *) ptr;
10888 dest = (wxObject *) src;
10889 return (void *) dest;
10890 }
10891
10892 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10893 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10894 PyObject * _resultobj;
10895 wxPaintDC * _result;
10896 wxWindow * _arg0;
10897 PyObject * _argo0 = 0;
10898 char *_kwnames[] = { "win", NULL };
10899 char _ptemp[128];
10900
10901 self = self;
10902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10903 return NULL;
10904 if (_argo0) {
10905 if (_argo0 == Py_None) { _arg0 = NULL; }
10906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10908 return NULL;
10909 }
10910 }
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10914
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) return NULL;
10917 } if (_result) {
10918 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10919 _resultobj = Py_BuildValue("s",_ptemp);
10920 } else {
10921 Py_INCREF(Py_None);
10922 _resultobj = Py_None;
10923 }
10924 return _resultobj;
10925 }
10926
10927 static void *SwigwxWindowDCTowxDC(void *ptr) {
10928 wxWindowDC *src;
10929 wxDC *dest;
10930 src = (wxWindowDC *) ptr;
10931 dest = (wxDC *) src;
10932 return (void *) dest;
10933 }
10934
10935 static void *SwigwxWindowDCTowxObject(void *ptr) {
10936 wxWindowDC *src;
10937 wxObject *dest;
10938 src = (wxWindowDC *) ptr;
10939 dest = (wxObject *) src;
10940 return (void *) dest;
10941 }
10942
10943 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10944 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject * _resultobj;
10946 wxWindowDC * _result;
10947 wxWindow * _arg0;
10948 PyObject * _argo0 = 0;
10949 char *_kwnames[] = { "win", NULL };
10950 char _ptemp[128];
10951
10952 self = self;
10953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10954 return NULL;
10955 if (_argo0) {
10956 if (_argo0 == Py_None) { _arg0 = NULL; }
10957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10959 return NULL;
10960 }
10961 }
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) return NULL;
10968 } if (_result) {
10969 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10970 _resultobj = Py_BuildValue("s",_ptemp);
10971 } else {
10972 Py_INCREF(Py_None);
10973 _resultobj = Py_None;
10974 }
10975 return _resultobj;
10976 }
10977
10978 static void *SwigwxMetaFileTowxObject(void *ptr) {
10979 wxMetaFile *src;
10980 wxObject *dest;
10981 src = (wxMetaFile *) ptr;
10982 dest = (wxObject *) src;
10983 return (void *) dest;
10984 }
10985
10986 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10987 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10988 PyObject * _resultobj;
10989 wxMetaFile * _result;
10990 wxString * _arg0 = (wxString *) &wxEmptyString;
10991 PyObject * _obj0 = 0;
10992 char *_kwnames[] = { "filename", NULL };
10993 char _ptemp[128];
10994
10995 self = self;
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10997 return NULL;
10998 if (_obj0)
10999 {
11000 #if PYTHON_API_VERSION >= 1009
11001 char* tmpPtr; int tmpSize;
11002 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
11003 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11004 return NULL;
11005 }
11006 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
11007 return NULL;
11008 _arg0 = new wxString(tmpPtr, tmpSize);
11009 #else
11010 if (!PyString_Check(_obj0)) {
11011 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11012 return NULL;
11013 }
11014 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
11015 #endif
11016 }
11017 {
11018 PyThreadState* __tstate = wxPyBeginAllowThreads();
11019 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
11020
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) return NULL;
11023 } if (_result) {
11024 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11025 _resultobj = Py_BuildValue("s",_ptemp);
11026 } else {
11027 Py_INCREF(Py_None);
11028 _resultobj = Py_None;
11029 }
11030 {
11031 if (_obj0)
11032 delete _arg0;
11033 }
11034 return _resultobj;
11035 }
11036
11037 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
11038 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject * _resultobj;
11040 wxMetaFile * _arg0;
11041 PyObject * _argo0 = 0;
11042 char *_kwnames[] = { "self", NULL };
11043
11044 self = self;
11045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
11046 return NULL;
11047 if (_argo0) {
11048 if (_argo0 == Py_None) { _arg0 = NULL; }
11049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11051 return NULL;
11052 }
11053 }
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 delete_wxMetaFile(_arg0);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) return NULL;
11060 } Py_INCREF(Py_None);
11061 _resultobj = Py_None;
11062 return _resultobj;
11063 }
11064
11065 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11066 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject * _resultobj;
11068 bool _result;
11069 wxMetaFile * _arg0;
11070 PyObject * _argo0 = 0;
11071 char *_kwnames[] = { "self", NULL };
11072
11073 self = self;
11074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
11075 return NULL;
11076 if (_argo0) {
11077 if (_argo0 == Py_None) { _arg0 = NULL; }
11078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11080 return NULL;
11081 }
11082 }
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 _result = (bool )wxMetaFile_Ok(_arg0);
11086
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) return NULL;
11089 } _resultobj = Py_BuildValue("i",_result);
11090 return _resultobj;
11091 }
11092
11093 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11094 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
11095 PyObject * _resultobj;
11096 bool _result;
11097 wxMetaFile * _arg0;
11098 int _arg1 = (int ) 0;
11099 int _arg2 = (int ) 0;
11100 PyObject * _argo0 = 0;
11101 char *_kwnames[] = { "self","width","height", NULL };
11102
11103 self = self;
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
11105 return NULL;
11106 if (_argo0) {
11107 if (_argo0 == Py_None) { _arg0 = NULL; }
11108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11110 return NULL;
11111 }
11112 }
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) return NULL;
11119 } _resultobj = Py_BuildValue("i",_result);
11120 return _resultobj;
11121 }
11122
11123 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11124 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject * _resultobj;
11126 wxSize * _result;
11127 wxMetaFile * _arg0;
11128 PyObject * _argo0 = 0;
11129 char *_kwnames[] = { "self", NULL };
11130 char _ptemp[128];
11131
11132 self = self;
11133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
11134 return NULL;
11135 if (_argo0) {
11136 if (_argo0 == Py_None) { _arg0 = NULL; }
11137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11139 return NULL;
11140 }
11141 }
11142 {
11143 PyThreadState* __tstate = wxPyBeginAllowThreads();
11144 _result = new wxSize (wxMetaFile_GetSize(_arg0));
11145
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) return NULL;
11148 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
11149 _resultobj = Py_BuildValue("s",_ptemp);
11150 return _resultobj;
11151 }
11152
11153 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11154 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11155 PyObject * _resultobj;
11156 int _result;
11157 wxMetaFile * _arg0;
11158 PyObject * _argo0 = 0;
11159 char *_kwnames[] = { "self", NULL };
11160
11161 self = self;
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
11163 return NULL;
11164 if (_argo0) {
11165 if (_argo0 == Py_None) { _arg0 = NULL; }
11166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11168 return NULL;
11169 }
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 _result = (int )wxMetaFile_GetWidth(_arg0);
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) return NULL;
11177 } _resultobj = Py_BuildValue("i",_result);
11178 return _resultobj;
11179 }
11180
11181 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11182 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11183 PyObject * _resultobj;
11184 int _result;
11185 wxMetaFile * _arg0;
11186 PyObject * _argo0 = 0;
11187 char *_kwnames[] = { "self", NULL };
11188
11189 self = self;
11190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
11191 return NULL;
11192 if (_argo0) {
11193 if (_argo0 == Py_None) { _arg0 = NULL; }
11194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11196 return NULL;
11197 }
11198 }
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 _result = (int )wxMetaFile_GetHeight(_arg0);
11202
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) return NULL;
11205 } _resultobj = Py_BuildValue("i",_result);
11206 return _resultobj;
11207 }
11208
11209 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11210 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
11211 PyObject * _resultobj;
11212 wxString * _result;
11213 wxMetaFile * _arg0;
11214 PyObject * _argo0 = 0;
11215 char *_kwnames[] = { "self", NULL };
11216
11217 self = self;
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
11219 return NULL;
11220 if (_argo0) {
11221 if (_argo0 == Py_None) { _arg0 = NULL; }
11222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11224 return NULL;
11225 }
11226 }
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
11230 _result = (wxString *) &_result_ref;
11231
11232 wxPyEndAllowThreads(__tstate);
11233 if (PyErr_Occurred()) return NULL;
11234 }{
11235 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11236 }
11237 return _resultobj;
11238 }
11239
11240 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
11241 wxMetaFileDC *src;
11242 wxDC *dest;
11243 src = (wxMetaFileDC *) ptr;
11244 dest = (wxDC *) src;
11245 return (void *) dest;
11246 }
11247
11248 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
11249 wxMetaFileDC *src;
11250 wxObject *dest;
11251 src = (wxMetaFileDC *) ptr;
11252 dest = (wxObject *) src;
11253 return (void *) dest;
11254 }
11255
11256 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11257 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11258 PyObject * _resultobj;
11259 wxMetaFileDC * _result;
11260 wxString * _arg0 = (wxString *) &wxEmptyString;
11261 int _arg1 = (int ) 0;
11262 int _arg2 = (int ) 0;
11263 wxString * _arg3 = (wxString *) &wxEmptyString;
11264 PyObject * _obj0 = 0;
11265 PyObject * _obj3 = 0;
11266 char *_kwnames[] = { "filename","width","height","description", NULL };
11267 char _ptemp[128];
11268
11269 self = self;
11270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
11271 return NULL;
11272 if (_obj0)
11273 {
11274 #if PYTHON_API_VERSION >= 1009
11275 char* tmpPtr; int tmpSize;
11276 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
11277 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11278 return NULL;
11279 }
11280 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
11281 return NULL;
11282 _arg0 = new wxString(tmpPtr, tmpSize);
11283 #else
11284 if (!PyString_Check(_obj0)) {
11285 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11286 return NULL;
11287 }
11288 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
11289 #endif
11290 }
11291 if (_obj3)
11292 {
11293 #if PYTHON_API_VERSION >= 1009
11294 char* tmpPtr; int tmpSize;
11295 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
11296 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11297 return NULL;
11298 }
11299 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
11300 return NULL;
11301 _arg3 = new wxString(tmpPtr, tmpSize);
11302 #else
11303 if (!PyString_Check(_obj3)) {
11304 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11305 return NULL;
11306 }
11307 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
11308 #endif
11309 }
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
11313
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) return NULL;
11316 } if (_result) {
11317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
11318 _resultobj = Py_BuildValue("s",_ptemp);
11319 } else {
11320 Py_INCREF(Py_None);
11321 _resultobj = Py_None;
11322 }
11323 {
11324 if (_obj0)
11325 delete _arg0;
11326 }
11327 {
11328 if (_obj3)
11329 delete _arg3;
11330 }
11331 return _resultobj;
11332 }
11333
11334 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11335 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
11336 PyObject * _resultobj;
11337 wxMetaFile * _result;
11338 wxMetaFileDC * _arg0;
11339 PyObject * _argo0 = 0;
11340 char *_kwnames[] = { "self", NULL };
11341 char _ptemp[128];
11342
11343 self = self;
11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
11345 return NULL;
11346 if (_argo0) {
11347 if (_argo0 == Py_None) { _arg0 = NULL; }
11348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
11349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11350 return NULL;
11351 }
11352 }
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) return NULL;
11359 } if (_result) {
11360 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11361 _resultobj = Py_BuildValue("s",_ptemp);
11362 } else {
11363 Py_INCREF(Py_None);
11364 _resultobj = Py_None;
11365 }
11366 return _resultobj;
11367 }
11368
11369 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
11370 wxPalette *src;
11371 wxGDIObject *dest;
11372 src = (wxPalette *) ptr;
11373 dest = (wxGDIObject *) src;
11374 return (void *) dest;
11375 }
11376
11377 static void *SwigwxPaletteTowxObject(void *ptr) {
11378 wxPalette *src;
11379 wxObject *dest;
11380 src = (wxPalette *) ptr;
11381 dest = (wxObject *) src;
11382 return (void *) dest;
11383 }
11384
11385 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11386 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject * _resultobj;
11388 wxPalette * _result;
11389 int _arg0;
11390 byte * _arg1;
11391 byte * _arg2;
11392 byte * _arg3;
11393 PyObject * _obj1 = 0;
11394 PyObject * _obj2 = 0;
11395 PyObject * _obj3 = 0;
11396 char *_kwnames[] = { "choices","choices","choices", NULL };
11397 char _ptemp[128];
11398
11399 self = self;
11400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
11401 return NULL;
11402 {
11403 _arg1 = byte_LIST_helper(_obj1);
11404 if (_arg1 == NULL) {
11405 return NULL;
11406 }
11407 }
11408 {
11409 _arg2 = byte_LIST_helper(_obj2);
11410 if (_arg2 == NULL) {
11411 return NULL;
11412 }
11413 }
11414 if (_obj3)
11415 {
11416 _arg3 = byte_LIST_helper(_obj3);
11417 if (_arg3 == NULL) {
11418 return NULL;
11419 }
11420 }
11421 {
11422 if (_obj1) {
11423 _arg0 = PyList_Size(_obj1);
11424 }
11425 else {
11426 _arg0 = 0;
11427 }
11428 }
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
11432
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) return NULL;
11435 } if (_result) {
11436 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
11437 _resultobj = Py_BuildValue("s",_ptemp);
11438 } else {
11439 Py_INCREF(Py_None);
11440 _resultobj = Py_None;
11441 }
11442 {
11443 delete [] _arg1;
11444 }
11445 {
11446 delete [] _arg2;
11447 }
11448 {
11449 delete [] _arg3;
11450 }
11451 return _resultobj;
11452 }
11453
11454 #define delete_wxPalette(_swigobj) (delete _swigobj)
11455 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11456 PyObject * _resultobj;
11457 wxPalette * _arg0;
11458 PyObject * _argo0 = 0;
11459 char *_kwnames[] = { "self", NULL };
11460
11461 self = self;
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
11463 return NULL;
11464 if (_argo0) {
11465 if (_argo0 == Py_None) { _arg0 = NULL; }
11466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11468 return NULL;
11469 }
11470 }
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 delete_wxPalette(_arg0);
11474
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) return NULL;
11477 } Py_INCREF(Py_None);
11478 _resultobj = Py_None;
11479 return _resultobj;
11480 }
11481
11482 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11483 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject * _resultobj;
11485 int _result;
11486 wxPalette * _arg0;
11487 byte _arg1;
11488 byte _arg2;
11489 byte _arg3;
11490 PyObject * _argo0 = 0;
11491 char *_kwnames[] = { "self","red","green","blue", NULL };
11492
11493 self = self;
11494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
11495 return NULL;
11496 if (_argo0) {
11497 if (_argo0 == Py_None) { _arg0 = NULL; }
11498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11500 return NULL;
11501 }
11502 }
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) return NULL;
11509 } _resultobj = Py_BuildValue("i",_result);
11510 return _resultobj;
11511 }
11512
11513 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11514 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
11515 PyObject * _resultobj;
11516 bool _result;
11517 wxPalette * _arg0;
11518 int _arg1;
11519 byte * _arg2;
11520 int temp;
11521 byte * _arg3;
11522 int temp0;
11523 byte * _arg4;
11524 int temp1;
11525 PyObject * _argo0 = 0;
11526 char *_kwnames[] = { "self","pixel", NULL };
11527
11528 self = self;
11529 {
11530 _arg2 = (byte*)&temp;
11531 }
11532 {
11533 _arg3 = (byte*)&temp0;
11534 }
11535 {
11536 _arg4 = (byte*)&temp1;
11537 }
11538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
11539 return NULL;
11540 if (_argo0) {
11541 if (_argo0 == Py_None) { _arg0 = NULL; }
11542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11544 return NULL;
11545 }
11546 }
11547 {
11548 PyThreadState* __tstate = wxPyBeginAllowThreads();
11549 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
11550
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) return NULL;
11553 } _resultobj = Py_BuildValue("i",_result);
11554 {
11555 PyObject *o;
11556 o = PyInt_FromLong((long) (*_arg2));
11557 _resultobj = t_output_helper(_resultobj, o);
11558 }
11559 {
11560 PyObject *o;
11561 o = PyInt_FromLong((long) (*_arg3));
11562 _resultobj = t_output_helper(_resultobj, o);
11563 }
11564 {
11565 PyObject *o;
11566 o = PyInt_FromLong((long) (*_arg4));
11567 _resultobj = t_output_helper(_resultobj, o);
11568 }
11569 return _resultobj;
11570 }
11571
11572 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11573 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject * _resultobj;
11575 bool _result;
11576 wxPalette * _arg0;
11577 PyObject * _argo0 = 0;
11578 char *_kwnames[] = { "self", NULL };
11579
11580 self = self;
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
11582 return NULL;
11583 if (_argo0) {
11584 if (_argo0 == Py_None) { _arg0 = NULL; }
11585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11587 return NULL;
11588 }
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 _result = (bool )wxPalette_Ok(_arg0);
11593
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) return NULL;
11596 } _resultobj = Py_BuildValue("i",_result);
11597 return _resultobj;
11598 }
11599
11600 static void *SwigwxImageListTowxObject(void *ptr) {
11601 wxImageList *src;
11602 wxObject *dest;
11603 src = (wxImageList *) ptr;
11604 dest = (wxObject *) src;
11605 return (void *) dest;
11606 }
11607
11608 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11609 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11610 PyObject * _resultobj;
11611 wxImageList * _result;
11612 int _arg0;
11613 int _arg1;
11614 int _arg2 = (int ) TRUE;
11615 int _arg3 = (int ) 1;
11616 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
11617 char _ptemp[128];
11618
11619 self = self;
11620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11621 return NULL;
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
11625
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) return NULL;
11628 } if (_result) {
11629 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
11630 _resultobj = Py_BuildValue("s",_ptemp);
11631 } else {
11632 Py_INCREF(Py_None);
11633 _resultobj = Py_None;
11634 }
11635 return _resultobj;
11636 }
11637
11638 #define delete_wxImageList(_swigobj) (delete _swigobj)
11639 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject * _resultobj;
11641 wxImageList * _arg0;
11642 PyObject * _argo0 = 0;
11643 char *_kwnames[] = { "self", NULL };
11644
11645 self = self;
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
11647 return NULL;
11648 if (_argo0) {
11649 if (_argo0 == Py_None) { _arg0 = NULL; }
11650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11652 return NULL;
11653 }
11654 }
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 delete_wxImageList(_arg0);
11658
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) return NULL;
11661 } Py_INCREF(Py_None);
11662 _resultobj = Py_None;
11663 return _resultobj;
11664 }
11665
11666 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11667 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
11668 PyObject * _resultobj;
11669 int _result;
11670 wxImageList * _arg0;
11671 wxBitmap * _arg1;
11672 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11673 PyObject * _argo0 = 0;
11674 PyObject * _argo1 = 0;
11675 PyObject * _argo2 = 0;
11676 char *_kwnames[] = { "self","bitmap","mask", NULL };
11677
11678 self = self;
11679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
11680 return NULL;
11681 if (_argo0) {
11682 if (_argo0 == Py_None) { _arg0 = NULL; }
11683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11685 return NULL;
11686 }
11687 }
11688 if (_argo1) {
11689 if (_argo1 == Py_None) { _arg1 = NULL; }
11690 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11691 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11692 return NULL;
11693 }
11694 }
11695 if (_argo2) {
11696 if (_argo2 == Py_None) { _arg2 = NULL; }
11697 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11698 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11699 return NULL;
11700 }
11701 }
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
11705
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) return NULL;
11708 } _resultobj = Py_BuildValue("i",_result);
11709 return _resultobj;
11710 }
11711
11712 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11713 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
11714 PyObject * _resultobj;
11715 int _result;
11716 wxImageList * _arg0;
11717 wxBitmap * _arg1;
11718 wxColour * _arg2;
11719 PyObject * _argo0 = 0;
11720 PyObject * _argo1 = 0;
11721 wxColour temp;
11722 PyObject * _obj2 = 0;
11723 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
11724
11725 self = self;
11726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
11727 return NULL;
11728 if (_argo0) {
11729 if (_argo0 == Py_None) { _arg0 = NULL; }
11730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11732 return NULL;
11733 }
11734 }
11735 if (_argo1) {
11736 if (_argo1 == Py_None) { _arg1 = NULL; }
11737 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11738 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11739 return NULL;
11740 }
11741 }
11742 {
11743 _arg2 = &temp;
11744 if (! wxColour_helper(_obj2, &_arg2))
11745 return NULL;
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) return NULL;
11753 } _resultobj = Py_BuildValue("i",_result);
11754 return _resultobj;
11755 }
11756
11757 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11758 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11759 PyObject * _resultobj;
11760 int _result;
11761 wxImageList * _arg0;
11762 wxIcon * _arg1;
11763 PyObject * _argo0 = 0;
11764 PyObject * _argo1 = 0;
11765 char *_kwnames[] = { "self","icon", NULL };
11766
11767 self = self;
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
11769 return NULL;
11770 if (_argo0) {
11771 if (_argo0 == Py_None) { _arg0 = NULL; }
11772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11774 return NULL;
11775 }
11776 }
11777 if (_argo1) {
11778 if (_argo1 == Py_None) { _arg1 = NULL; }
11779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
11780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11781 return NULL;
11782 }
11783 }
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) return NULL;
11790 } _resultobj = Py_BuildValue("i",_result);
11791 return _resultobj;
11792 }
11793
11794 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11795 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11796 PyObject * _resultobj;
11797 bool _result;
11798 wxImageList * _arg0;
11799 int _arg1;
11800 wxBitmap * _arg2;
11801 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
11802 PyObject * _argo0 = 0;
11803 PyObject * _argo2 = 0;
11804 PyObject * _argo3 = 0;
11805 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
11806
11807 self = self;
11808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
11809 return NULL;
11810 if (_argo0) {
11811 if (_argo0 == Py_None) { _arg0 = NULL; }
11812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11814 return NULL;
11815 }
11816 }
11817 if (_argo2) {
11818 if (_argo2 == Py_None) { _arg2 = NULL; }
11819 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11820 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11821 return NULL;
11822 }
11823 }
11824 if (_argo3) {
11825 if (_argo3 == Py_None) { _arg3 = NULL; }
11826 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
11827 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11828 return NULL;
11829 }
11830 }
11831 {
11832 PyThreadState* __tstate = wxPyBeginAllowThreads();
11833 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
11834
11835 wxPyEndAllowThreads(__tstate);
11836 if (PyErr_Occurred()) return NULL;
11837 } _resultobj = Py_BuildValue("i",_result);
11838 return _resultobj;
11839 }
11840
11841 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11842 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
11843 PyObject * _resultobj;
11844 bool _result;
11845 wxImageList * _arg0;
11846 int _arg1;
11847 wxDC * _arg2;
11848 int _arg3;
11849 int _arg4;
11850 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11851 bool _arg6 = (bool ) FALSE;
11852 PyObject * _argo0 = 0;
11853 PyObject * _argo2 = 0;
11854 int tempbool6 = (int) FALSE;
11855 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11856
11857 self = self;
11858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11859 return NULL;
11860 if (_argo0) {
11861 if (_argo0 == Py_None) { _arg0 = NULL; }
11862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11864 return NULL;
11865 }
11866 }
11867 if (_argo2) {
11868 if (_argo2 == Py_None) { _arg2 = NULL; }
11869 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11870 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11871 return NULL;
11872 }
11873 }
11874 _arg6 = (bool ) tempbool6;
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) return NULL;
11881 } _resultobj = Py_BuildValue("i",_result);
11882 return _resultobj;
11883 }
11884
11885 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11886 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11887 PyObject * _resultobj;
11888 int _result;
11889 wxImageList * _arg0;
11890 PyObject * _argo0 = 0;
11891 char *_kwnames[] = { "self", NULL };
11892
11893 self = self;
11894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11895 return NULL;
11896 if (_argo0) {
11897 if (_argo0 == Py_None) { _arg0 = NULL; }
11898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11900 return NULL;
11901 }
11902 }
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 _result = (int )wxImageList_GetImageCount(_arg0);
11906
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) return NULL;
11909 } _resultobj = Py_BuildValue("i",_result);
11910 return _resultobj;
11911 }
11912
11913 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11914 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11915 PyObject * _resultobj;
11916 bool _result;
11917 wxImageList * _arg0;
11918 int _arg1;
11919 PyObject * _argo0 = 0;
11920 char *_kwnames[] = { "self","index", NULL };
11921
11922 self = self;
11923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11924 return NULL;
11925 if (_argo0) {
11926 if (_argo0 == Py_None) { _arg0 = NULL; }
11927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11929 return NULL;
11930 }
11931 }
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11935
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) return NULL;
11938 } _resultobj = Py_BuildValue("i",_result);
11939 return _resultobj;
11940 }
11941
11942 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11943 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11944 PyObject * _resultobj;
11945 bool _result;
11946 wxImageList * _arg0;
11947 PyObject * _argo0 = 0;
11948 char *_kwnames[] = { "self", NULL };
11949
11950 self = self;
11951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11952 return NULL;
11953 if (_argo0) {
11954 if (_argo0 == Py_None) { _arg0 = NULL; }
11955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11957 return NULL;
11958 }
11959 }
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 _result = (bool )wxImageList_RemoveAll(_arg0);
11963
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) return NULL;
11966 } _resultobj = Py_BuildValue("i",_result);
11967 return _resultobj;
11968 }
11969
11970 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11971 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject * _resultobj;
11973 wxImageList * _arg0;
11974 int _arg1;
11975 int * _arg2;
11976 int temp;
11977 int * _arg3;
11978 int temp0;
11979 PyObject * _argo0 = 0;
11980 char *_kwnames[] = { "self","index", NULL };
11981
11982 self = self;
11983 {
11984 _arg2 = &temp;
11985 }
11986 {
11987 _arg3 = &temp0;
11988 }
11989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11990 return NULL;
11991 if (_argo0) {
11992 if (_argo0 == Py_None) { _arg0 = NULL; }
11993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11995 return NULL;
11996 }
11997 }
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) return NULL;
12004 } Py_INCREF(Py_None);
12005 _resultobj = Py_None;
12006 {
12007 PyObject *o;
12008 o = PyInt_FromLong((long) (*_arg2));
12009 _resultobj = t_output_helper(_resultobj, o);
12010 }
12011 {
12012 PyObject *o;
12013 o = PyInt_FromLong((long) (*_arg3));
12014 _resultobj = t_output_helper(_resultobj, o);
12015 }
12016 return _resultobj;
12017 }
12018
12019 static void *SwigwxRegionTowxGDIObject(void *ptr) {
12020 wxRegion *src;
12021 wxGDIObject *dest;
12022 src = (wxRegion *) ptr;
12023 dest = (wxGDIObject *) src;
12024 return (void *) dest;
12025 }
12026
12027 static void *SwigwxRegionTowxObject(void *ptr) {
12028 wxRegion *src;
12029 wxObject *dest;
12030 src = (wxRegion *) ptr;
12031 dest = (wxObject *) src;
12032 return (void *) dest;
12033 }
12034
12035 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12036 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12037 PyObject * _resultobj;
12038 wxRegion * _result;
12039 long _arg0 = (long ) 0;
12040 long _arg1 = (long ) 0;
12041 long _arg2 = (long ) 0;
12042 long _arg3 = (long ) 0;
12043 char *_kwnames[] = { "x","y","width","height", NULL };
12044 char _ptemp[128];
12045
12046 self = self;
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
12048 return NULL;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) return NULL;
12055 } if (_result) {
12056 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
12057 _resultobj = Py_BuildValue("s",_ptemp);
12058 } else {
12059 Py_INCREF(Py_None);
12060 _resultobj = Py_None;
12061 }
12062 return _resultobj;
12063 }
12064
12065 #define delete_wxRegion(_swigobj) (delete _swigobj)
12066 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12067 PyObject * _resultobj;
12068 wxRegion * _arg0;
12069 PyObject * _argo0 = 0;
12070 char *_kwnames[] = { "self", NULL };
12071
12072 self = self;
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
12074 return NULL;
12075 if (_argo0) {
12076 if (_argo0 == Py_None) { _arg0 = NULL; }
12077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12079 return NULL;
12080 }
12081 }
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 delete_wxRegion(_arg0);
12085
12086 wxPyEndAllowThreads(__tstate);
12087 if (PyErr_Occurred()) return NULL;
12088 } Py_INCREF(Py_None);
12089 _resultobj = Py_None;
12090 return _resultobj;
12091 }
12092
12093 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12094 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12095 PyObject * _resultobj;
12096 wxRegion * _arg0;
12097 PyObject * _argo0 = 0;
12098 char *_kwnames[] = { "self", NULL };
12099
12100 self = self;
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
12102 return NULL;
12103 if (_argo0) {
12104 if (_argo0 == Py_None) { _arg0 = NULL; }
12105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12107 return NULL;
12108 }
12109 }
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 wxRegion_Clear(_arg0);
12113
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) return NULL;
12116 } Py_INCREF(Py_None);
12117 _resultobj = Py_None;
12118 return _resultobj;
12119 }
12120
12121 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12122 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
12123 PyObject * _resultobj;
12124 bool _result;
12125 wxRegion * _arg0;
12126 wxCoord _arg1;
12127 wxCoord _arg2;
12128 PyObject * _argo0 = 0;
12129 char *_kwnames[] = { "self","x","y", NULL };
12130
12131 self = self;
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
12133 return NULL;
12134 if (_argo0) {
12135 if (_argo0 == Py_None) { _arg0 = NULL; }
12136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12138 return NULL;
12139 }
12140 }
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
12144
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) return NULL;
12147 } _resultobj = Py_BuildValue("i",_result);
12148 return _resultobj;
12149 }
12150
12151 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12152 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
12153 PyObject * _resultobj;
12154 wxRegionContain _result;
12155 wxRegion * _arg0;
12156 long _arg1;
12157 long _arg2;
12158 PyObject * _argo0 = 0;
12159 char *_kwnames[] = { "self","x","y", NULL };
12160
12161 self = self;
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
12163 return NULL;
12164 if (_argo0) {
12165 if (_argo0 == Py_None) { _arg0 = NULL; }
12166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12168 return NULL;
12169 }
12170 }
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
12174
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) return NULL;
12177 } _resultobj = Py_BuildValue("i",_result);
12178 return _resultobj;
12179 }
12180
12181 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12182 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12183 PyObject * _resultobj;
12184 wxRegionContain _result;
12185 wxRegion * _arg0;
12186 wxPoint * _arg1;
12187 PyObject * _argo0 = 0;
12188 wxPoint temp;
12189 PyObject * _obj1 = 0;
12190 char *_kwnames[] = { "self","pt", NULL };
12191
12192 self = self;
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
12194 return NULL;
12195 if (_argo0) {
12196 if (_argo0 == Py_None) { _arg0 = NULL; }
12197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12199 return NULL;
12200 }
12201 }
12202 {
12203 _arg1 = &temp;
12204 if (! wxPoint_helper(_obj1, &_arg1))
12205 return NULL;
12206 }
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
12210
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) return NULL;
12213 } _resultobj = Py_BuildValue("i",_result);
12214 return _resultobj;
12215 }
12216
12217 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12218 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12219 PyObject * _resultobj;
12220 wxRegionContain _result;
12221 wxRegion * _arg0;
12222 wxRect * _arg1;
12223 PyObject * _argo0 = 0;
12224 wxRect temp;
12225 PyObject * _obj1 = 0;
12226 char *_kwnames[] = { "self","rect", NULL };
12227
12228 self = self;
12229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
12230 return NULL;
12231 if (_argo0) {
12232 if (_argo0 == Py_None) { _arg0 = NULL; }
12233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12235 return NULL;
12236 }
12237 }
12238 {
12239 _arg1 = &temp;
12240 if (! wxRect_helper(_obj1, &_arg1))
12241 return NULL;
12242 }
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
12246
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) return NULL;
12249 } _resultobj = Py_BuildValue("i",_result);
12250 return _resultobj;
12251 }
12252
12253 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12254 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
12255 PyObject * _resultobj;
12256 wxRegionContain _result;
12257 wxRegion * _arg0;
12258 long _arg1;
12259 long _arg2;
12260 long _arg3;
12261 long _arg4;
12262 PyObject * _argo0 = 0;
12263 char *_kwnames[] = { "self","x","y","w","h", NULL };
12264
12265 self = self;
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12267 return NULL;
12268 if (_argo0) {
12269 if (_argo0 == Py_None) { _arg0 = NULL; }
12270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12272 return NULL;
12273 }
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) return NULL;
12281 } _resultobj = Py_BuildValue("i",_result);
12282 return _resultobj;
12283 }
12284
12285 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12286 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12287 PyObject * _resultobj;
12288 wxRect * _result;
12289 wxRegion * _arg0;
12290 PyObject * _argo0 = 0;
12291 char *_kwnames[] = { "self", NULL };
12292 char _ptemp[128];
12293
12294 self = self;
12295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
12296 return NULL;
12297 if (_argo0) {
12298 if (_argo0 == Py_None) { _arg0 = NULL; }
12299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12301 return NULL;
12302 }
12303 }
12304 {
12305 PyThreadState* __tstate = wxPyBeginAllowThreads();
12306 _result = new wxRect (wxRegion_GetBox(_arg0));
12307
12308 wxPyEndAllowThreads(__tstate);
12309 if (PyErr_Occurred()) return NULL;
12310 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12311 _resultobj = Py_BuildValue("s",_ptemp);
12312 return _resultobj;
12313 }
12314
12315 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12316 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject * _resultobj;
12318 bool _result;
12319 wxRegion * _arg0;
12320 long _arg1;
12321 long _arg2;
12322 long _arg3;
12323 long _arg4;
12324 PyObject * _argo0 = 0;
12325 char *_kwnames[] = { "self","x","y","width","height", NULL };
12326
12327 self = self;
12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12329 return NULL;
12330 if (_argo0) {
12331 if (_argo0 == Py_None) { _arg0 = NULL; }
12332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12334 return NULL;
12335 }
12336 }
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
12340
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) return NULL;
12343 } _resultobj = Py_BuildValue("i",_result);
12344 return _resultobj;
12345 }
12346
12347 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12348 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12349 PyObject * _resultobj;
12350 bool _result;
12351 wxRegion * _arg0;
12352 wxRect * _arg1;
12353 PyObject * _argo0 = 0;
12354 wxRect temp;
12355 PyObject * _obj1 = 0;
12356 char *_kwnames[] = { "self","rect", NULL };
12357
12358 self = self;
12359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
12360 return NULL;
12361 if (_argo0) {
12362 if (_argo0 == Py_None) { _arg0 = NULL; }
12363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12365 return NULL;
12366 }
12367 }
12368 {
12369 _arg1 = &temp;
12370 if (! wxRect_helper(_obj1, &_arg1))
12371 return NULL;
12372 }
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) return NULL;
12379 } _resultobj = Py_BuildValue("i",_result);
12380 return _resultobj;
12381 }
12382
12383 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12384 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12385 PyObject * _resultobj;
12386 bool _result;
12387 wxRegion * _arg0;
12388 wxRegion * _arg1;
12389 PyObject * _argo0 = 0;
12390 PyObject * _argo1 = 0;
12391 char *_kwnames[] = { "self","region", NULL };
12392
12393 self = self;
12394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
12395 return NULL;
12396 if (_argo0) {
12397 if (_argo0 == Py_None) { _arg0 = NULL; }
12398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12400 return NULL;
12401 }
12402 }
12403 if (_argo1) {
12404 if (_argo1 == Py_None) { _arg1 = NULL; }
12405 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12406 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12407 return NULL;
12408 }
12409 }
12410 {
12411 PyThreadState* __tstate = wxPyBeginAllowThreads();
12412 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
12413
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) return NULL;
12416 } _resultobj = Py_BuildValue("i",_result);
12417 return _resultobj;
12418 }
12419
12420 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12421 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
12422 PyObject * _resultobj;
12423 bool _result;
12424 wxRegion * _arg0;
12425 PyObject * _argo0 = 0;
12426 char *_kwnames[] = { "self", NULL };
12427
12428 self = self;
12429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
12430 return NULL;
12431 if (_argo0) {
12432 if (_argo0 == Py_None) { _arg0 = NULL; }
12433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12435 return NULL;
12436 }
12437 }
12438 {
12439 PyThreadState* __tstate = wxPyBeginAllowThreads();
12440 _result = (bool )wxRegion_IsEmpty(_arg0);
12441
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) return NULL;
12444 } _resultobj = Py_BuildValue("i",_result);
12445 return _resultobj;
12446 }
12447
12448 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12449 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
12450 PyObject * _resultobj;
12451 bool _result;
12452 wxRegion * _arg0;
12453 long _arg1;
12454 long _arg2;
12455 long _arg3;
12456 long _arg4;
12457 PyObject * _argo0 = 0;
12458 char *_kwnames[] = { "self","x","y","width","height", NULL };
12459
12460 self = self;
12461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12462 return NULL;
12463 if (_argo0) {
12464 if (_argo0 == Py_None) { _arg0 = NULL; }
12465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12467 return NULL;
12468 }
12469 }
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) return NULL;
12476 } _resultobj = Py_BuildValue("i",_result);
12477 return _resultobj;
12478 }
12479
12480 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12481 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12482 PyObject * _resultobj;
12483 bool _result;
12484 wxRegion * _arg0;
12485 wxRect * _arg1;
12486 PyObject * _argo0 = 0;
12487 wxRect temp;
12488 PyObject * _obj1 = 0;
12489 char *_kwnames[] = { "self","rect", NULL };
12490
12491 self = self;
12492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
12493 return NULL;
12494 if (_argo0) {
12495 if (_argo0 == Py_None) { _arg0 = NULL; }
12496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12498 return NULL;
12499 }
12500 }
12501 {
12502 _arg1 = &temp;
12503 if (! wxRect_helper(_obj1, &_arg1))
12504 return NULL;
12505 }
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
12509
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) return NULL;
12512 } _resultobj = Py_BuildValue("i",_result);
12513 return _resultobj;
12514 }
12515
12516 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12517 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject * _resultobj;
12519 bool _result;
12520 wxRegion * _arg0;
12521 wxRegion * _arg1;
12522 PyObject * _argo0 = 0;
12523 PyObject * _argo1 = 0;
12524 char *_kwnames[] = { "self","region", NULL };
12525
12526 self = self;
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
12528 return NULL;
12529 if (_argo0) {
12530 if (_argo0 == Py_None) { _arg0 = NULL; }
12531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12533 return NULL;
12534 }
12535 }
12536 if (_argo1) {
12537 if (_argo1 == Py_None) { _arg1 = NULL; }
12538 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12539 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12540 return NULL;
12541 }
12542 }
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) return NULL;
12549 } _resultobj = Py_BuildValue("i",_result);
12550 return _resultobj;
12551 }
12552
12553 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12554 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
12555 PyObject * _resultobj;
12556 bool _result;
12557 wxRegion * _arg0;
12558 long _arg1;
12559 long _arg2;
12560 long _arg3;
12561 long _arg4;
12562 PyObject * _argo0 = 0;
12563 char *_kwnames[] = { "self","x","y","width","height", NULL };
12564
12565 self = self;
12566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12567 return NULL;
12568 if (_argo0) {
12569 if (_argo0 == Py_None) { _arg0 = NULL; }
12570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12572 return NULL;
12573 }
12574 }
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
12578
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) return NULL;
12581 } _resultobj = Py_BuildValue("i",_result);
12582 return _resultobj;
12583 }
12584
12585 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12586 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12587 PyObject * _resultobj;
12588 bool _result;
12589 wxRegion * _arg0;
12590 wxRect * _arg1;
12591 PyObject * _argo0 = 0;
12592 wxRect temp;
12593 PyObject * _obj1 = 0;
12594 char *_kwnames[] = { "self","rect", NULL };
12595
12596 self = self;
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
12598 return NULL;
12599 if (_argo0) {
12600 if (_argo0 == Py_None) { _arg0 = NULL; }
12601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12603 return NULL;
12604 }
12605 }
12606 {
12607 _arg1 = &temp;
12608 if (! wxRect_helper(_obj1, &_arg1))
12609 return NULL;
12610 }
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
12614
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) return NULL;
12617 } _resultobj = Py_BuildValue("i",_result);
12618 return _resultobj;
12619 }
12620
12621 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12622 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12623 PyObject * _resultobj;
12624 bool _result;
12625 wxRegion * _arg0;
12626 wxRegion * _arg1;
12627 PyObject * _argo0 = 0;
12628 PyObject * _argo1 = 0;
12629 char *_kwnames[] = { "self","region", NULL };
12630
12631 self = self;
12632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
12633 return NULL;
12634 if (_argo0) {
12635 if (_argo0 == Py_None) { _arg0 = NULL; }
12636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12638 return NULL;
12639 }
12640 }
12641 if (_argo1) {
12642 if (_argo1 == Py_None) { _arg1 = NULL; }
12643 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12644 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12645 return NULL;
12646 }
12647 }
12648 {
12649 PyThreadState* __tstate = wxPyBeginAllowThreads();
12650 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
12651
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) return NULL;
12654 } _resultobj = Py_BuildValue("i",_result);
12655 return _resultobj;
12656 }
12657
12658 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12659 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
12660 PyObject * _resultobj;
12661 bool _result;
12662 wxRegion * _arg0;
12663 long _arg1;
12664 long _arg2;
12665 long _arg3;
12666 long _arg4;
12667 PyObject * _argo0 = 0;
12668 char *_kwnames[] = { "self","x","y","width","height", NULL };
12669
12670 self = self;
12671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12672 return NULL;
12673 if (_argo0) {
12674 if (_argo0 == Py_None) { _arg0 = NULL; }
12675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12677 return NULL;
12678 }
12679 }
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) return NULL;
12686 } _resultobj = Py_BuildValue("i",_result);
12687 return _resultobj;
12688 }
12689
12690 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12691 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12692 PyObject * _resultobj;
12693 bool _result;
12694 wxRegion * _arg0;
12695 wxRect * _arg1;
12696 PyObject * _argo0 = 0;
12697 wxRect temp;
12698 PyObject * _obj1 = 0;
12699 char *_kwnames[] = { "self","rect", NULL };
12700
12701 self = self;
12702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
12703 return NULL;
12704 if (_argo0) {
12705 if (_argo0 == Py_None) { _arg0 = NULL; }
12706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12708 return NULL;
12709 }
12710 }
12711 {
12712 _arg1 = &temp;
12713 if (! wxRect_helper(_obj1, &_arg1))
12714 return NULL;
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
12719
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) return NULL;
12722 } _resultobj = Py_BuildValue("i",_result);
12723 return _resultobj;
12724 }
12725
12726 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12727 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject * _resultobj;
12729 bool _result;
12730 wxRegion * _arg0;
12731 wxRegion * _arg1;
12732 PyObject * _argo0 = 0;
12733 PyObject * _argo1 = 0;
12734 char *_kwnames[] = { "self","region", NULL };
12735
12736 self = self;
12737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
12738 return NULL;
12739 if (_argo0) {
12740 if (_argo0 == Py_None) { _arg0 = NULL; }
12741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12743 return NULL;
12744 }
12745 }
12746 if (_argo1) {
12747 if (_argo1 == Py_None) { _arg1 = NULL; }
12748 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12749 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12750 return NULL;
12751 }
12752 }
12753 {
12754 PyThreadState* __tstate = wxPyBeginAllowThreads();
12755 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
12756
12757 wxPyEndAllowThreads(__tstate);
12758 if (PyErr_Occurred()) return NULL;
12759 } _resultobj = Py_BuildValue("i",_result);
12760 return _resultobj;
12761 }
12762
12763 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
12764 wxRegionIterator *src;
12765 wxObject *dest;
12766 src = (wxRegionIterator *) ptr;
12767 dest = (wxObject *) src;
12768 return (void *) dest;
12769 }
12770
12771 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12772 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12773 PyObject * _resultobj;
12774 wxRegionIterator * _result;
12775 wxRegion * _arg0;
12776 PyObject * _argo0 = 0;
12777 char *_kwnames[] = { "region", NULL };
12778 char _ptemp[128];
12779
12780 self = self;
12781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
12782 return NULL;
12783 if (_argo0) {
12784 if (_argo0 == Py_None) { _arg0 = NULL; }
12785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12787 return NULL;
12788 }
12789 }
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
12793
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) return NULL;
12796 } if (_result) {
12797 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12798 _resultobj = Py_BuildValue("s",_ptemp);
12799 } else {
12800 Py_INCREF(Py_None);
12801 _resultobj = Py_None;
12802 }
12803 return _resultobj;
12804 }
12805
12806 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12807 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12808 PyObject * _resultobj;
12809 wxRegionIterator * _arg0;
12810 PyObject * _argo0 = 0;
12811 char *_kwnames[] = { "self", NULL };
12812
12813 self = self;
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12815 return NULL;
12816 if (_argo0) {
12817 if (_argo0 == Py_None) { _arg0 = NULL; }
12818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12820 return NULL;
12821 }
12822 }
12823 {
12824 PyThreadState* __tstate = wxPyBeginAllowThreads();
12825 delete_wxRegionIterator(_arg0);
12826
12827 wxPyEndAllowThreads(__tstate);
12828 if (PyErr_Occurred()) return NULL;
12829 } Py_INCREF(Py_None);
12830 _resultobj = Py_None;
12831 return _resultobj;
12832 }
12833
12834 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12835 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
12836 PyObject * _resultobj;
12837 long _result;
12838 wxRegionIterator * _arg0;
12839 PyObject * _argo0 = 0;
12840 char *_kwnames[] = { "self", NULL };
12841
12842 self = self;
12843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
12844 return NULL;
12845 if (_argo0) {
12846 if (_argo0 == Py_None) { _arg0 = NULL; }
12847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12849 return NULL;
12850 }
12851 }
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 _result = (long )wxRegionIterator_GetX(_arg0);
12855
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) return NULL;
12858 } _resultobj = Py_BuildValue("l",_result);
12859 return _resultobj;
12860 }
12861
12862 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12863 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
12864 PyObject * _resultobj;
12865 long _result;
12866 wxRegionIterator * _arg0;
12867 PyObject * _argo0 = 0;
12868 char *_kwnames[] = { "self", NULL };
12869
12870 self = self;
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
12872 return NULL;
12873 if (_argo0) {
12874 if (_argo0 == Py_None) { _arg0 = NULL; }
12875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12877 return NULL;
12878 }
12879 }
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 _result = (long )wxRegionIterator_GetY(_arg0);
12883
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) return NULL;
12886 } _resultobj = Py_BuildValue("l",_result);
12887 return _resultobj;
12888 }
12889
12890 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12891 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12892 PyObject * _resultobj;
12893 long _result;
12894 wxRegionIterator * _arg0;
12895 PyObject * _argo0 = 0;
12896 char *_kwnames[] = { "self", NULL };
12897
12898 self = self;
12899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12900 return NULL;
12901 if (_argo0) {
12902 if (_argo0 == Py_None) { _arg0 = NULL; }
12903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12905 return NULL;
12906 }
12907 }
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 _result = (long )wxRegionIterator_GetW(_arg0);
12911
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) return NULL;
12914 } _resultobj = Py_BuildValue("l",_result);
12915 return _resultobj;
12916 }
12917
12918 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12919 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject * _resultobj;
12921 long _result;
12922 wxRegionIterator * _arg0;
12923 PyObject * _argo0 = 0;
12924 char *_kwnames[] = { "self", NULL };
12925
12926 self = self;
12927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12928 return NULL;
12929 if (_argo0) {
12930 if (_argo0 == Py_None) { _arg0 = NULL; }
12931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12933 return NULL;
12934 }
12935 }
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 _result = (long )wxRegionIterator_GetWidth(_arg0);
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) return NULL;
12942 } _resultobj = Py_BuildValue("l",_result);
12943 return _resultobj;
12944 }
12945
12946 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12947 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12948 PyObject * _resultobj;
12949 long _result;
12950 wxRegionIterator * _arg0;
12951 PyObject * _argo0 = 0;
12952 char *_kwnames[] = { "self", NULL };
12953
12954 self = self;
12955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12956 return NULL;
12957 if (_argo0) {
12958 if (_argo0 == Py_None) { _arg0 = NULL; }
12959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12961 return NULL;
12962 }
12963 }
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 _result = (long )wxRegionIterator_GetH(_arg0);
12967
12968 wxPyEndAllowThreads(__tstate);
12969 if (PyErr_Occurred()) return NULL;
12970 } _resultobj = Py_BuildValue("l",_result);
12971 return _resultobj;
12972 }
12973
12974 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12975 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12976 PyObject * _resultobj;
12977 long _result;
12978 wxRegionIterator * _arg0;
12979 PyObject * _argo0 = 0;
12980 char *_kwnames[] = { "self", NULL };
12981
12982 self = self;
12983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12984 return NULL;
12985 if (_argo0) {
12986 if (_argo0 == Py_None) { _arg0 = NULL; }
12987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12989 return NULL;
12990 }
12991 }
12992 {
12993 PyThreadState* __tstate = wxPyBeginAllowThreads();
12994 _result = (long )wxRegionIterator_GetHeight(_arg0);
12995
12996 wxPyEndAllowThreads(__tstate);
12997 if (PyErr_Occurred()) return NULL;
12998 } _resultobj = Py_BuildValue("l",_result);
12999 return _resultobj;
13000 }
13001
13002 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
13003 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13004 PyObject * _resultobj;
13005 wxRect * _result;
13006 wxRegionIterator * _arg0;
13007 PyObject * _argo0 = 0;
13008 char *_kwnames[] = { "self", NULL };
13009 char _ptemp[128];
13010
13011 self = self;
13012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
13013 return NULL;
13014 if (_argo0) {
13015 if (_argo0 == Py_None) { _arg0 = NULL; }
13016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
13018 return NULL;
13019 }
13020 }
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
13024
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) return NULL;
13027 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
13028 _resultobj = Py_BuildValue("s",_ptemp);
13029 return _resultobj;
13030 }
13031
13032 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
13033 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
13034 PyObject * _resultobj;
13035 bool _result;
13036 wxRegionIterator * _arg0;
13037 PyObject * _argo0 = 0;
13038 char *_kwnames[] = { "self", NULL };
13039
13040 self = self;
13041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
13042 return NULL;
13043 if (_argo0) {
13044 if (_argo0 == Py_None) { _arg0 = NULL; }
13045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
13047 return NULL;
13048 }
13049 }
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 _result = (bool )wxRegionIterator_HaveRects(_arg0);
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) return NULL;
13056 } _resultobj = Py_BuildValue("i",_result);
13057 return _resultobj;
13058 }
13059
13060 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
13061 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
13062 PyObject * _resultobj;
13063 wxRegionIterator * _arg0;
13064 PyObject * _argo0 = 0;
13065 char *_kwnames[] = { "self", NULL };
13066
13067 self = self;
13068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
13069 return NULL;
13070 if (_argo0) {
13071 if (_argo0 == Py_None) { _arg0 = NULL; }
13072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13074 return NULL;
13075 }
13076 }
13077 {
13078 PyThreadState* __tstate = wxPyBeginAllowThreads();
13079 wxRegionIterator_Reset(_arg0);
13080
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) return NULL;
13083 } Py_INCREF(Py_None);
13084 _resultobj = Py_None;
13085 return _resultobj;
13086 }
13087
13088 static void wxRegionIterator_Next(wxRegionIterator *self) {
13089 (*self) ++;
13090 }
13091 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
13092 PyObject * _resultobj;
13093 wxRegionIterator * _arg0;
13094 PyObject * _argo0 = 0;
13095 char *_kwnames[] = { "self", NULL };
13096
13097 self = self;
13098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
13099 return NULL;
13100 if (_argo0) {
13101 if (_argo0 == Py_None) { _arg0 = NULL; }
13102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13104 return NULL;
13105 }
13106 }
13107 {
13108 PyThreadState* __tstate = wxPyBeginAllowThreads();
13109 wxRegionIterator_Next(_arg0);
13110
13111 wxPyEndAllowThreads(__tstate);
13112 if (PyErr_Occurred()) return NULL;
13113 } Py_INCREF(Py_None);
13114 _resultobj = Py_None;
13115 return _resultobj;
13116 }
13117
13118 static PyMethodDef gdicMethods[] = {
13119 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
13120 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
13121 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
13122 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
13123 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
13124 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
13125 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
13126 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
13127 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
13128 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
13129 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13130 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13131 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
13132 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
13133 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
13134 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
13135 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
13136 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
13137 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
13138 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
13139 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
13140 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
13141 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
13142 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
13143 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
13144 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
13145 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
13146 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
13147 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
13148 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
13149 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
13150 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
13151 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
13152 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
13153 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
13154 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
13155 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
13156 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
13157 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
13158 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
13159 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
13160 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
13161 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
13162 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
13163 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
13164 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
13165 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
13166 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
13167 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
13168 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
13169 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
13170 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
13171 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
13172 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
13173 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
13174 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
13175 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
13176 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
13177 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13178 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13179 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
13180 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
13181 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
13182 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13183 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13184 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
13185 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
13186 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
13187 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
13188 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
13189 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
13190 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
13191 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13192 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13193 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
13194 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
13195 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13196 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13197 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13198 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
13199 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
13200 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
13201 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
13202 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
13203 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
13204 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
13205 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
13206 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
13207 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
13208 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
13209 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
13210 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
13211 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13212 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13213 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
13214 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
13215 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
13216 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
13217 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
13218 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
13219 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
13220 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13221 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
13222 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
13223 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
13224 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
13225 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
13226 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
13227 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
13228 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
13229 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
13230 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
13231 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
13232 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
13233 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
13234 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
13235 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
13236 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
13237 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
13238 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
13239 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
13240 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
13241 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
13242 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13243 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13244 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
13245 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
13246 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
13247 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
13248 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
13249 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
13250 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
13251 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
13252 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
13253 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
13254 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
13255 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
13256 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
13257 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
13258 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
13259 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
13260 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
13261 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
13262 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
13263 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
13264 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
13265 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
13266 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
13267 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
13268 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
13269 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
13270 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
13271 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
13272 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
13273 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
13274 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
13275 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
13276 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
13277 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
13278 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
13279 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
13280 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
13281 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
13282 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
13283 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
13284 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
13285 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
13286 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
13287 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
13288 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
13289 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
13290 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
13291 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
13292 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
13293 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
13294 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
13295 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
13296 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
13297 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13298 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13299 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13300 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
13301 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
13302 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13303 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
13304 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
13305 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
13306 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
13307 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
13308 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
13309 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
13310 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
13311 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
13312 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
13313 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
13314 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
13315 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
13316 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
13317 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
13318 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
13319 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
13320 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
13321 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
13322 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
13323 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
13324 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
13325 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
13326 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
13327 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
13328 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
13329 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
13330 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
13331 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13332 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13333 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
13334 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
13335 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
13336 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13337 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13338 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13339 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13340 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13341 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
13342 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
13343 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
13344 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13345 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13346 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
13347 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13348 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
13349 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13350 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13351 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13352 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
13353 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
13354 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
13355 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13356 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
13357 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
13358 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
13359 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
13360 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
13361 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
13362 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
13363 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
13364 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
13365 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
13366 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
13367 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
13368 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
13369 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
13370 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13371 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13372 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
13373 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
13374 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
13375 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
13376 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
13377 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13378 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
13379 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13380 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13381 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
13382 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
13383 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13384 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13385 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
13386 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13387 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13388 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
13389 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
13390 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13391 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
13392 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13393 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
13394 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
13395 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
13396 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
13397 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
13398 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
13399 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
13400 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
13401 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
13402 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
13403 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
13404 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
13405 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
13406 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
13407 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
13408 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
13409 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
13410 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
13411 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
13412 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
13413 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
13414 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
13415 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
13416 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
13417 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
13418 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
13419 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
13420 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
13421 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
13422 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
13423 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
13424 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
13425 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
13426 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
13427 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
13428 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
13429 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
13430 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
13431 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
13432 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
13433 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
13434 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
13435 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
13436 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
13437 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
13438 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
13439 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
13440 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
13441 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
13442 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13443 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13444 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
13445 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
13446 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
13447 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13448 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13449 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
13450 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
13451 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
13452 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
13453 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
13454 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
13455 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
13456 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
13457 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
13458 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
13459 { NULL, NULL }
13460 };
13461 #ifdef __cplusplus
13462 }
13463 #endif
13464 /*
13465 * This table is used by the pointer type-checker
13466 */
13467 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
13468 { "_signed_long","_long",0},
13469 { "_wxPrintQuality","_wxCoord",0},
13470 { "_wxPrintQuality","_int",0},
13471 { "_wxPrintQuality","_signed_int",0},
13472 { "_wxPrintQuality","_unsigned_int",0},
13473 { "_wxPrintQuality","_wxWindowID",0},
13474 { "_wxPrintQuality","_uint",0},
13475 { "_wxPrintQuality","_EBool",0},
13476 { "_wxPrintQuality","_size_t",0},
13477 { "_wxPrintQuality","_time_t",0},
13478 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
13479 { "_byte","_unsigned_char",0},
13480 { "_long","_unsigned_long",0},
13481 { "_long","_signed_long",0},
13482 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
13483 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
13484 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
13485 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
13486 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
13487 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
13488 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
13489 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
13490 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
13491 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
13492 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
13493 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
13494 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
13495 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
13496 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
13497 { "_size_t","_wxCoord",0},
13498 { "_size_t","_wxPrintQuality",0},
13499 { "_size_t","_time_t",0},
13500 { "_size_t","_unsigned_int",0},
13501 { "_size_t","_int",0},
13502 { "_size_t","_wxWindowID",0},
13503 { "_size_t","_uint",0},
13504 { "_uint","_wxCoord",0},
13505 { "_uint","_wxPrintQuality",0},
13506 { "_uint","_time_t",0},
13507 { "_uint","_size_t",0},
13508 { "_uint","_unsigned_int",0},
13509 { "_uint","_int",0},
13510 { "_uint","_wxWindowID",0},
13511 { "_wxChar","_char",0},
13512 { "_char","_wxChar",0},
13513 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13514 { "_EBool","_wxCoord",0},
13515 { "_EBool","_wxPrintQuality",0},
13516 { "_EBool","_signed_int",0},
13517 { "_EBool","_int",0},
13518 { "_EBool","_wxWindowID",0},
13519 { "_unsigned_long","_long",0},
13520 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13521 { "_signed_int","_wxCoord",0},
13522 { "_signed_int","_wxPrintQuality",0},
13523 { "_signed_int","_EBool",0},
13524 { "_signed_int","_wxWindowID",0},
13525 { "_signed_int","_int",0},
13526 { "_WXTYPE","_short",0},
13527 { "_WXTYPE","_signed_short",0},
13528 { "_WXTYPE","_unsigned_short",0},
13529 { "_unsigned_short","_WXTYPE",0},
13530 { "_unsigned_short","_short",0},
13531 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
13532 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
13533 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
13534 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
13535 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
13536 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
13537 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
13538 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
13539 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
13540 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
13541 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
13542 { "_wxObject","_wxDC",SwigwxDCTowxObject},
13543 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
13544 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
13545 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
13546 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
13547 { "_wxObject","_wxPen",SwigwxPenTowxObject},
13548 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
13549 { "_wxObject","_wxColour",SwigwxColourTowxObject},
13550 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
13551 { "_wxObject","_wxFont",SwigwxFontTowxObject},
13552 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
13553 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
13554 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
13555 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
13556 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
13557 { "_signed_short","_WXTYPE",0},
13558 { "_signed_short","_short",0},
13559 { "_unsigned_char","_byte",0},
13560 { "_unsigned_int","_wxCoord",0},
13561 { "_unsigned_int","_wxPrintQuality",0},
13562 { "_unsigned_int","_time_t",0},
13563 { "_unsigned_int","_size_t",0},
13564 { "_unsigned_int","_uint",0},
13565 { "_unsigned_int","_wxWindowID",0},
13566 { "_unsigned_int","_int",0},
13567 { "_short","_WXTYPE",0},
13568 { "_short","_unsigned_short",0},
13569 { "_short","_signed_short",0},
13570 { "_wxWindowID","_wxCoord",0},
13571 { "_wxWindowID","_wxPrintQuality",0},
13572 { "_wxWindowID","_time_t",0},
13573 { "_wxWindowID","_size_t",0},
13574 { "_wxWindowID","_EBool",0},
13575 { "_wxWindowID","_uint",0},
13576 { "_wxWindowID","_int",0},
13577 { "_wxWindowID","_signed_int",0},
13578 { "_wxWindowID","_unsigned_int",0},
13579 { "_int","_wxCoord",0},
13580 { "_int","_wxPrintQuality",0},
13581 { "_int","_time_t",0},
13582 { "_int","_size_t",0},
13583 { "_int","_EBool",0},
13584 { "_int","_uint",0},
13585 { "_int","_wxWindowID",0},
13586 { "_int","_unsigned_int",0},
13587 { "_int","_signed_int",0},
13588 { "_time_t","_wxCoord",0},
13589 { "_time_t","_wxPrintQuality",0},
13590 { "_time_t","_unsigned_int",0},
13591 { "_time_t","_int",0},
13592 { "_time_t","_wxWindowID",0},
13593 { "_time_t","_uint",0},
13594 { "_time_t","_size_t",0},
13595 { "_wxCoord","_int",0},
13596 { "_wxCoord","_signed_int",0},
13597 { "_wxCoord","_unsigned_int",0},
13598 { "_wxCoord","_wxWindowID",0},
13599 { "_wxCoord","_uint",0},
13600 { "_wxCoord","_EBool",0},
13601 { "_wxCoord","_size_t",0},
13602 { "_wxCoord","_time_t",0},
13603 { "_wxCoord","_wxPrintQuality",0},
13604 {0,0,0}};
13605
13606 static PyObject *SWIG_globals;
13607 #ifdef __cplusplus
13608 extern "C"
13609 #endif
13610 SWIGEXPORT(void) initgdic() {
13611 PyObject *m, *d;
13612 SWIG_globals = SWIG_newvarlink();
13613 m = Py_InitModule("gdic", gdicMethods);
13614 d = PyModule_GetDict(m);
13615 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
13616 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
13617 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
13618 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
13619 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
13620 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
13621 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
13622 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
13623 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
13624 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
13625 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
13626 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
13627 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
13628 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
13629 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
13630 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
13631 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
13632 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
13633 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
13634 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
13635 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
13636 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
13637 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
13638 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
13639 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
13640 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
13641 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
13642 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
13643 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
13644 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
13645 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
13646 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
13647 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
13648 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
13649 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
13650 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
13651 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
13652 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
13653 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
13654 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
13655 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
13656 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
13657 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
13658 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
13659 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
13660 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
13661 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
13662 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
13663 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
13664 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
13665 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
13666 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
13667 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
13668 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
13669 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
13670 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
13671 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
13672 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
13673 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
13674 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
13675 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
13676 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
13677 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
13678 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
13679 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
13680 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
13681 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
13682 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
13683 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
13684 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
13685 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
13686 PyDict_SetItemString(d,"cvar", SWIG_globals);
13687 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
13688 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
13689 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
13690 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
13691 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
13692 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
13693 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
13694 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
13695 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
13696 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
13697 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
13698 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
13699 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
13700 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
13701 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
13702 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
13703 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
13704 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
13705 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
13706 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
13707 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
13708 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
13709 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
13710 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
13711 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
13712 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
13713 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
13714 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
13715 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
13716 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
13717 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
13718 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
13719 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
13720 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
13721 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
13722 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
13723 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
13724 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
13725 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
13726 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
13727 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
13728 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
13729 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
13730 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
13731 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
13732 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
13733 {
13734 int i;
13735 for (i = 0; _swig_mapping[i].n1; i++)
13736 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13737 }
13738 }