]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi.cpp
undef LoadMenu() (patch #521743)
[wxWidgets.git] / wxPython / src / mac / gdi.cpp
1 /*
2 * FILE : src/mac/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_Ok(_swigobj) (_swigobj->Ok())
1757 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject * _resultobj;
1759 bool _result;
1760 wxBitmap * _arg0;
1761 PyObject * _argo0 = 0;
1762 char *_kwnames[] = { "self", NULL };
1763
1764 self = self;
1765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1766 return NULL;
1767 if (_argo0) {
1768 if (_argo0 == Py_None) { _arg0 = NULL; }
1769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1771 return NULL;
1772 }
1773 }
1774 {
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 _result = (bool )wxBitmap_Ok(_arg0);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) return NULL;
1780 } _resultobj = Py_BuildValue("i",_result);
1781 return _resultobj;
1782 }
1783
1784 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1785 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1786 PyObject * _resultobj;
1787 int _result;
1788 wxBitmap * _arg0;
1789 PyObject * _argo0 = 0;
1790 char *_kwnames[] = { "self", NULL };
1791
1792 self = self;
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1794 return NULL;
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1799 return NULL;
1800 }
1801 }
1802 {
1803 PyThreadState* __tstate = wxPyBeginAllowThreads();
1804 _result = (int )wxBitmap_GetWidth(_arg0);
1805
1806 wxPyEndAllowThreads(__tstate);
1807 if (PyErr_Occurred()) return NULL;
1808 } _resultobj = Py_BuildValue("i",_result);
1809 return _resultobj;
1810 }
1811
1812 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1813 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject * _resultobj;
1815 int _result;
1816 wxBitmap * _arg0;
1817 PyObject * _argo0 = 0;
1818 char *_kwnames[] = { "self", NULL };
1819
1820 self = self;
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1822 return NULL;
1823 if (_argo0) {
1824 if (_argo0 == Py_None) { _arg0 = NULL; }
1825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1827 return NULL;
1828 }
1829 }
1830 {
1831 PyThreadState* __tstate = wxPyBeginAllowThreads();
1832 _result = (int )wxBitmap_GetHeight(_arg0);
1833
1834 wxPyEndAllowThreads(__tstate);
1835 if (PyErr_Occurred()) return NULL;
1836 } _resultobj = Py_BuildValue("i",_result);
1837 return _resultobj;
1838 }
1839
1840 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1841 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1842 PyObject * _resultobj;
1843 int _result;
1844 wxBitmap * _arg0;
1845 PyObject * _argo0 = 0;
1846 char *_kwnames[] = { "self", NULL };
1847
1848 self = self;
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1850 return NULL;
1851 if (_argo0) {
1852 if (_argo0 == Py_None) { _arg0 = NULL; }
1853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1855 return NULL;
1856 }
1857 }
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 _result = (int )wxBitmap_GetDepth(_arg0);
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) return NULL;
1864 } _resultobj = Py_BuildValue("i",_result);
1865 return _resultobj;
1866 }
1867
1868 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1869 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1870 PyObject * _resultobj;
1871 wxBitmap * _arg0;
1872 int _arg1;
1873 PyObject * _argo0 = 0;
1874 char *_kwnames[] = { "self","w", NULL };
1875
1876 self = self;
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1878 return NULL;
1879 if (_argo0) {
1880 if (_argo0 == Py_None) { _arg0 = NULL; }
1881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1883 return NULL;
1884 }
1885 }
1886 {
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 wxBitmap_SetWidth(_arg0,_arg1);
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) return NULL;
1892 } Py_INCREF(Py_None);
1893 _resultobj = Py_None;
1894 return _resultobj;
1895 }
1896
1897 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1898 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1899 PyObject * _resultobj;
1900 wxBitmap * _arg0;
1901 int _arg1;
1902 PyObject * _argo0 = 0;
1903 char *_kwnames[] = { "self","h", NULL };
1904
1905 self = self;
1906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
1907 return NULL;
1908 if (_argo0) {
1909 if (_argo0 == Py_None) { _arg0 = NULL; }
1910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1912 return NULL;
1913 }
1914 }
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 wxBitmap_SetHeight(_arg0,_arg1);
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) return NULL;
1921 } Py_INCREF(Py_None);
1922 _resultobj = Py_None;
1923 return _resultobj;
1924 }
1925
1926 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1927 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1928 PyObject * _resultobj;
1929 wxBitmap * _arg0;
1930 int _arg1;
1931 PyObject * _argo0 = 0;
1932 char *_kwnames[] = { "self","d", NULL };
1933
1934 self = self;
1935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
1936 return NULL;
1937 if (_argo0) {
1938 if (_argo0 == Py_None) { _arg0 = NULL; }
1939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1941 return NULL;
1942 }
1943 }
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 wxBitmap_SetDepth(_arg0,_arg1);
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) return NULL;
1950 } Py_INCREF(Py_None);
1951 _resultobj = Py_None;
1952 return _resultobj;
1953 }
1954
1955 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1956 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject * _resultobj;
1958 wxBitmap * _result;
1959 wxBitmap * _arg0;
1960 wxRect * _arg1;
1961 PyObject * _argo0 = 0;
1962 wxRect temp;
1963 PyObject * _obj1 = 0;
1964 char *_kwnames[] = { "self","rect", NULL };
1965 char _ptemp[128];
1966
1967 self = self;
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1969 return NULL;
1970 if (_argo0) {
1971 if (_argo0 == Py_None) { _arg0 = NULL; }
1972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1974 return NULL;
1975 }
1976 }
1977 {
1978 _arg1 = &temp;
1979 if (! wxRect_helper(_obj1, &_arg1))
1980 return NULL;
1981 }
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) return NULL;
1988 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1989 _resultobj = Py_BuildValue("s",_ptemp);
1990 return _resultobj;
1991 }
1992
1993 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1994 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 bool _result;
1997 wxBitmap * _arg0;
1998 wxIcon * _arg1;
1999 PyObject * _argo0 = 0;
2000 PyObject * _argo1 = 0;
2001 char *_kwnames[] = { "self","icon", NULL };
2002
2003 self = self;
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2005 return NULL;
2006 if (_argo0) {
2007 if (_argo0 == Py_None) { _arg0 = NULL; }
2008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2010 return NULL;
2011 }
2012 }
2013 if (_argo1) {
2014 if (_argo1 == Py_None) { _arg1 = NULL; }
2015 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2016 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2017 return NULL;
2018 }
2019 }
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) return NULL;
2026 } _resultobj = Py_BuildValue("i",_result);
2027 return _resultobj;
2028 }
2029
2030 static void *SwigwxMaskTowxObject(void *ptr) {
2031 wxMask *src;
2032 wxObject *dest;
2033 src = (wxMask *) ptr;
2034 dest = (wxObject *) src;
2035 return (void *) dest;
2036 }
2037
2038 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2039 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2040 PyObject * _resultobj;
2041 wxMask * _result;
2042 wxBitmap * _arg0;
2043 PyObject * _argo0 = 0;
2044 char *_kwnames[] = { "bitmap", NULL };
2045 char _ptemp[128];
2046
2047 self = self;
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2049 return NULL;
2050 if (_argo0) {
2051 if (_argo0 == Py_None) { _arg0 = NULL; }
2052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2054 return NULL;
2055 }
2056 }
2057 {
2058 PyThreadState* __tstate = wxPyBeginAllowThreads();
2059 _result = (wxMask *)new_wxMask(*_arg0);
2060
2061 wxPyEndAllowThreads(__tstate);
2062 if (PyErr_Occurred()) return NULL;
2063 } if (_result) {
2064 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2065 _resultobj = Py_BuildValue("s",_ptemp);
2066 } else {
2067 Py_INCREF(Py_None);
2068 _resultobj = Py_None;
2069 }
2070 return _resultobj;
2071 }
2072
2073 static void wxMask_Destroy(wxMask *self) { delete self; }
2074 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 wxMask * _arg0;
2077 PyObject * _argo0 = 0;
2078 char *_kwnames[] = { "self", NULL };
2079
2080 self = self;
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2082 return NULL;
2083 if (_argo0) {
2084 if (_argo0 == Py_None) { _arg0 = NULL; }
2085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2087 return NULL;
2088 }
2089 }
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 wxMask_Destroy(_arg0);
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) return NULL;
2096 } Py_INCREF(Py_None);
2097 _resultobj = Py_None;
2098 return _resultobj;
2099 }
2100
2101 static void *SwigwxIconTowxGDIObject(void *ptr) {
2102 wxIcon *src;
2103 wxGDIObject *dest;
2104 src = (wxIcon *) ptr;
2105 dest = (wxGDIObject *) src;
2106 return (void *) dest;
2107 }
2108
2109 static void *SwigwxIconTowxObject(void *ptr) {
2110 wxIcon *src;
2111 wxObject *dest;
2112 src = (wxIcon *) ptr;
2113 dest = (wxObject *) src;
2114 return (void *) dest;
2115 }
2116
2117 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2118 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2119 PyObject * _resultobj;
2120 wxIcon * _result;
2121 wxString * _arg0;
2122 long _arg1;
2123 int _arg2 = (int ) -1;
2124 int _arg3 = (int ) -1;
2125 PyObject * _obj0 = 0;
2126 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2127 char _ptemp[128];
2128
2129 self = self;
2130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2131 return NULL;
2132 {
2133 #if PYTHON_API_VERSION >= 1009
2134 char* tmpPtr; int tmpSize;
2135 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2136 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2137 return NULL;
2138 }
2139 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2140 return NULL;
2141 _arg0 = new wxString(tmpPtr, tmpSize);
2142 #else
2143 if (!PyString_Check(_obj0)) {
2144 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2145 return NULL;
2146 }
2147 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2148 #endif
2149 }
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) return NULL;
2156 } if (_result) {
2157 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2158 _resultobj = Py_BuildValue("s",_ptemp);
2159 } else {
2160 Py_INCREF(Py_None);
2161 _resultobj = Py_None;
2162 }
2163 {
2164 if (_obj0)
2165 delete _arg0;
2166 }
2167 return _resultobj;
2168 }
2169
2170 #define delete_wxIcon(_swigobj) (delete _swigobj)
2171 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2172 PyObject * _resultobj;
2173 wxIcon * _arg0;
2174 PyObject * _argo0 = 0;
2175 char *_kwnames[] = { "self", NULL };
2176
2177 self = self;
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2179 return NULL;
2180 if (_argo0) {
2181 if (_argo0 == Py_None) { _arg0 = NULL; }
2182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2184 return NULL;
2185 }
2186 }
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 delete_wxIcon(_arg0);
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) return NULL;
2193 } Py_INCREF(Py_None);
2194 _resultobj = Py_None;
2195 return _resultobj;
2196 }
2197
2198 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2199 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2200 PyObject * _resultobj;
2201 bool _result;
2202 wxIcon * _arg0;
2203 PyObject * _argo0 = 0;
2204 char *_kwnames[] = { "self", NULL };
2205
2206 self = self;
2207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2208 return NULL;
2209 if (_argo0) {
2210 if (_argo0 == Py_None) { _arg0 = NULL; }
2211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2213 return NULL;
2214 }
2215 }
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 _result = (bool )wxIcon_Ok(_arg0);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) return NULL;
2222 } _resultobj = Py_BuildValue("i",_result);
2223 return _resultobj;
2224 }
2225
2226 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2227 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2228 PyObject * _resultobj;
2229 int _result;
2230 wxIcon * _arg0;
2231 PyObject * _argo0 = 0;
2232 char *_kwnames[] = { "self", NULL };
2233
2234 self = self;
2235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2236 return NULL;
2237 if (_argo0) {
2238 if (_argo0 == Py_None) { _arg0 = NULL; }
2239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2241 return NULL;
2242 }
2243 }
2244 {
2245 PyThreadState* __tstate = wxPyBeginAllowThreads();
2246 _result = (int )wxIcon_GetWidth(_arg0);
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) return NULL;
2250 } _resultobj = Py_BuildValue("i",_result);
2251 return _resultobj;
2252 }
2253
2254 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2255 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2256 PyObject * _resultobj;
2257 int _result;
2258 wxIcon * _arg0;
2259 PyObject * _argo0 = 0;
2260 char *_kwnames[] = { "self", NULL };
2261
2262 self = self;
2263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2264 return NULL;
2265 if (_argo0) {
2266 if (_argo0 == Py_None) { _arg0 = NULL; }
2267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2269 return NULL;
2270 }
2271 }
2272 {
2273 PyThreadState* __tstate = wxPyBeginAllowThreads();
2274 _result = (int )wxIcon_GetHeight(_arg0);
2275
2276 wxPyEndAllowThreads(__tstate);
2277 if (PyErr_Occurred()) return NULL;
2278 } _resultobj = Py_BuildValue("i",_result);
2279 return _resultobj;
2280 }
2281
2282 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2283 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject * _resultobj;
2285 int _result;
2286 wxIcon * _arg0;
2287 PyObject * _argo0 = 0;
2288 char *_kwnames[] = { "self", NULL };
2289
2290 self = self;
2291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2292 return NULL;
2293 if (_argo0) {
2294 if (_argo0 == Py_None) { _arg0 = NULL; }
2295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2297 return NULL;
2298 }
2299 }
2300 {
2301 PyThreadState* __tstate = wxPyBeginAllowThreads();
2302 _result = (int )wxIcon_GetDepth(_arg0);
2303
2304 wxPyEndAllowThreads(__tstate);
2305 if (PyErr_Occurred()) return NULL;
2306 } _resultobj = Py_BuildValue("i",_result);
2307 return _resultobj;
2308 }
2309
2310 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2311 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2312 PyObject * _resultobj;
2313 wxIcon * _arg0;
2314 int _arg1;
2315 PyObject * _argo0 = 0;
2316 char *_kwnames[] = { "self","w", NULL };
2317
2318 self = self;
2319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2320 return NULL;
2321 if (_argo0) {
2322 if (_argo0 == Py_None) { _arg0 = NULL; }
2323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2325 return NULL;
2326 }
2327 }
2328 {
2329 PyThreadState* __tstate = wxPyBeginAllowThreads();
2330 wxIcon_SetWidth(_arg0,_arg1);
2331
2332 wxPyEndAllowThreads(__tstate);
2333 if (PyErr_Occurred()) return NULL;
2334 } Py_INCREF(Py_None);
2335 _resultobj = Py_None;
2336 return _resultobj;
2337 }
2338
2339 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2340 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject * _resultobj;
2342 wxIcon * _arg0;
2343 int _arg1;
2344 PyObject * _argo0 = 0;
2345 char *_kwnames[] = { "self","h", NULL };
2346
2347 self = self;
2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2349 return NULL;
2350 if (_argo0) {
2351 if (_argo0 == Py_None) { _arg0 = NULL; }
2352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2354 return NULL;
2355 }
2356 }
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 wxIcon_SetHeight(_arg0,_arg1);
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) return NULL;
2363 } Py_INCREF(Py_None);
2364 _resultobj = Py_None;
2365 return _resultobj;
2366 }
2367
2368 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2369 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2370 PyObject * _resultobj;
2371 wxIcon * _arg0;
2372 int _arg1;
2373 PyObject * _argo0 = 0;
2374 char *_kwnames[] = { "self","d", NULL };
2375
2376 self = self;
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2378 return NULL;
2379 if (_argo0) {
2380 if (_argo0 == Py_None) { _arg0 = NULL; }
2381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2383 return NULL;
2384 }
2385 }
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 wxIcon_SetDepth(_arg0,_arg1);
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) return NULL;
2392 } Py_INCREF(Py_None);
2393 _resultobj = Py_None;
2394 return _resultobj;
2395 }
2396
2397 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2398 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject * _resultobj;
2400 wxIcon * _arg0;
2401 wxBitmap * _arg1;
2402 PyObject * _argo0 = 0;
2403 PyObject * _argo1 = 0;
2404 char *_kwnames[] = { "self","bmp", NULL };
2405
2406 self = self;
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2408 return NULL;
2409 if (_argo0) {
2410 if (_argo0 == Py_None) { _arg0 = NULL; }
2411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2413 return NULL;
2414 }
2415 }
2416 if (_argo1) {
2417 if (_argo1 == Py_None) { _arg1 = NULL; }
2418 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2419 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2420 return NULL;
2421 }
2422 }
2423 {
2424 PyThreadState* __tstate = wxPyBeginAllowThreads();
2425 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2426
2427 wxPyEndAllowThreads(__tstate);
2428 if (PyErr_Occurred()) return NULL;
2429 } Py_INCREF(Py_None);
2430 _resultobj = Py_None;
2431 return _resultobj;
2432 }
2433
2434 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2435 wxCursor *src;
2436 wxGDIObject *dest;
2437 src = (wxCursor *) ptr;
2438 dest = (wxGDIObject *) src;
2439 return (void *) dest;
2440 }
2441
2442 static void *SwigwxCursorTowxObject(void *ptr) {
2443 wxCursor *src;
2444 wxObject *dest;
2445 src = (wxCursor *) ptr;
2446 dest = (wxObject *) src;
2447 return (void *) dest;
2448 }
2449
2450 #define delete_wxCursor(_swigobj) (delete _swigobj)
2451 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2452 PyObject * _resultobj;
2453 wxCursor * _arg0;
2454 PyObject * _argo0 = 0;
2455 char *_kwnames[] = { "self", NULL };
2456
2457 self = self;
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2459 return NULL;
2460 if (_argo0) {
2461 if (_argo0 == Py_None) { _arg0 = NULL; }
2462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2464 return NULL;
2465 }
2466 }
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 delete_wxCursor(_arg0);
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) return NULL;
2473 } Py_INCREF(Py_None);
2474 _resultobj = Py_None;
2475 return _resultobj;
2476 }
2477
2478 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2479 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject * _resultobj;
2481 bool _result;
2482 wxCursor * _arg0;
2483 PyObject * _argo0 = 0;
2484 char *_kwnames[] = { "self", NULL };
2485
2486 self = self;
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2488 return NULL;
2489 if (_argo0) {
2490 if (_argo0 == Py_None) { _arg0 = NULL; }
2491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2493 return NULL;
2494 }
2495 }
2496 {
2497 PyThreadState* __tstate = wxPyBeginAllowThreads();
2498 _result = (bool )wxCursor_Ok(_arg0);
2499
2500 wxPyEndAllowThreads(__tstate);
2501 if (PyErr_Occurred()) return NULL;
2502 } _resultobj = Py_BuildValue("i",_result);
2503 return _resultobj;
2504 }
2505
2506 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2507 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2508 PyObject * _resultobj;
2509 wxNativeFontInfo * _result;
2510 char *_kwnames[] = { NULL };
2511 char _ptemp[128];
2512
2513 self = self;
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
2515 return NULL;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) return NULL;
2522 } if (_result) {
2523 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
2524 _resultobj = Py_BuildValue("s",_ptemp);
2525 } else {
2526 Py_INCREF(Py_None);
2527 _resultobj = Py_None;
2528 }
2529 return _resultobj;
2530 }
2531
2532 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2533 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject * _resultobj;
2535 wxNativeFontInfo * _arg0;
2536 PyObject * _argo0 = 0;
2537 char *_kwnames[] = { "self", NULL };
2538
2539 self = self;
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
2541 return NULL;
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2546 return NULL;
2547 }
2548 }
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 wxNativeFontInfo_Init(_arg0);
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) return NULL;
2555 } Py_INCREF(Py_None);
2556 _resultobj = Py_None;
2557 return _resultobj;
2558 }
2559
2560 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2561 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2562 PyObject * _resultobj;
2563 int _result;
2564 wxNativeFontInfo * _arg0;
2565 PyObject * _argo0 = 0;
2566 char *_kwnames[] = { "self", NULL };
2567
2568 self = self;
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
2570 return NULL;
2571 if (_argo0) {
2572 if (_argo0 == Py_None) { _arg0 = NULL; }
2573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
2575 return NULL;
2576 }
2577 }
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) return NULL;
2584 } _resultobj = Py_BuildValue("i",_result);
2585 return _resultobj;
2586 }
2587
2588 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
2589 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2590 PyObject * _resultobj;
2591 wxFontStyle _result;
2592 wxNativeFontInfo * _arg0;
2593 PyObject * _argo0 = 0;
2594 char *_kwnames[] = { "self", NULL };
2595
2596 self = self;
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
2598 return NULL;
2599 if (_argo0) {
2600 if (_argo0 == Py_None) { _arg0 = NULL; }
2601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
2603 return NULL;
2604 }
2605 }
2606 {
2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
2608 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
2609
2610 wxPyEndAllowThreads(__tstate);
2611 if (PyErr_Occurred()) return NULL;
2612 } _resultobj = Py_BuildValue("i",_result);
2613 return _resultobj;
2614 }
2615
2616 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
2617 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2618 PyObject * _resultobj;
2619 wxFontWeight _result;
2620 wxNativeFontInfo * _arg0;
2621 PyObject * _argo0 = 0;
2622 char *_kwnames[] = { "self", NULL };
2623
2624 self = self;
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
2626 return NULL;
2627 if (_argo0) {
2628 if (_argo0 == Py_None) { _arg0 = NULL; }
2629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
2631 return NULL;
2632 }
2633 }
2634 {
2635 PyThreadState* __tstate = wxPyBeginAllowThreads();
2636 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
2637
2638 wxPyEndAllowThreads(__tstate);
2639 if (PyErr_Occurred()) return NULL;
2640 } _resultobj = Py_BuildValue("i",_result);
2641 return _resultobj;
2642 }
2643
2644 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2645 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject * _resultobj;
2647 bool _result;
2648 wxNativeFontInfo * _arg0;
2649 PyObject * _argo0 = 0;
2650 char *_kwnames[] = { "self", NULL };
2651
2652 self = self;
2653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
2654 return NULL;
2655 if (_argo0) {
2656 if (_argo0 == Py_None) { _arg0 = NULL; }
2657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
2659 return NULL;
2660 }
2661 }
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) return NULL;
2668 } _resultobj = Py_BuildValue("i",_result);
2669 return _resultobj;
2670 }
2671
2672 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2673 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
2674 PyObject * _resultobj;
2675 wxString * _result;
2676 wxNativeFontInfo * _arg0;
2677 PyObject * _argo0 = 0;
2678 char *_kwnames[] = { "self", NULL };
2679
2680 self = self;
2681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
2682 return NULL;
2683 if (_argo0) {
2684 if (_argo0 == Py_None) { _arg0 = NULL; }
2685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
2687 return NULL;
2688 }
2689 }
2690 {
2691 PyThreadState* __tstate = wxPyBeginAllowThreads();
2692 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
2693
2694 wxPyEndAllowThreads(__tstate);
2695 if (PyErr_Occurred()) return NULL;
2696 }{
2697 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2698 }
2699 {
2700 delete _result;
2701 }
2702 return _resultobj;
2703 }
2704
2705 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
2706 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
2707 PyObject * _resultobj;
2708 wxFontFamily _result;
2709 wxNativeFontInfo * _arg0;
2710 PyObject * _argo0 = 0;
2711 char *_kwnames[] = { "self", NULL };
2712
2713 self = self;
2714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
2715 return NULL;
2716 if (_argo0) {
2717 if (_argo0 == Py_None) { _arg0 = NULL; }
2718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
2720 return NULL;
2721 }
2722 }
2723 {
2724 PyThreadState* __tstate = wxPyBeginAllowThreads();
2725 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
2726
2727 wxPyEndAllowThreads(__tstate);
2728 if (PyErr_Occurred()) return NULL;
2729 } _resultobj = Py_BuildValue("i",_result);
2730 return _resultobj;
2731 }
2732
2733 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2734 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 wxFontEncoding _result;
2737 wxNativeFontInfo * _arg0;
2738 PyObject * _argo0 = 0;
2739 char *_kwnames[] = { "self", NULL };
2740
2741 self = self;
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
2743 return NULL;
2744 if (_argo0) {
2745 if (_argo0 == Py_None) { _arg0 = NULL; }
2746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
2748 return NULL;
2749 }
2750 }
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) return NULL;
2757 } _resultobj = Py_BuildValue("i",_result);
2758 return _resultobj;
2759 }
2760
2761 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2762 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2763 PyObject * _resultobj;
2764 wxNativeFontInfo * _arg0;
2765 int _arg1;
2766 PyObject * _argo0 = 0;
2767 char *_kwnames[] = { "self","pointsize", NULL };
2768
2769 self = self;
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
2771 return NULL;
2772 if (_argo0) {
2773 if (_argo0 == Py_None) { _arg0 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
2776 return NULL;
2777 }
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) return NULL;
2785 } Py_INCREF(Py_None);
2786 _resultobj = Py_None;
2787 return _resultobj;
2788 }
2789
2790 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2791 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject * _resultobj;
2793 wxNativeFontInfo * _arg0;
2794 wxFontStyle _arg1;
2795 PyObject * _argo0 = 0;
2796 char *_kwnames[] = { "self","style", NULL };
2797
2798 self = self;
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
2800 return NULL;
2801 if (_argo0) {
2802 if (_argo0 == Py_None) { _arg0 = NULL; }
2803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
2805 return NULL;
2806 }
2807 }
2808 {
2809 PyThreadState* __tstate = wxPyBeginAllowThreads();
2810 wxNativeFontInfo_SetStyle(_arg0,_arg1);
2811
2812 wxPyEndAllowThreads(__tstate);
2813 if (PyErr_Occurred()) return NULL;
2814 } Py_INCREF(Py_None);
2815 _resultobj = Py_None;
2816 return _resultobj;
2817 }
2818
2819 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2820 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2821 PyObject * _resultobj;
2822 wxNativeFontInfo * _arg0;
2823 wxFontWeight _arg1;
2824 PyObject * _argo0 = 0;
2825 char *_kwnames[] = { "self","weight", NULL };
2826
2827 self = self;
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
2829 return NULL;
2830 if (_argo0) {
2831 if (_argo0 == Py_None) { _arg0 = NULL; }
2832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
2834 return NULL;
2835 }
2836 }
2837 {
2838 PyThreadState* __tstate = wxPyBeginAllowThreads();
2839 wxNativeFontInfo_SetWeight(_arg0,_arg1);
2840
2841 wxPyEndAllowThreads(__tstate);
2842 if (PyErr_Occurred()) return NULL;
2843 } Py_INCREF(Py_None);
2844 _resultobj = Py_None;
2845 return _resultobj;
2846 }
2847
2848 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2849 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject * _resultobj;
2851 wxNativeFontInfo * _arg0;
2852 bool _arg1;
2853 PyObject * _argo0 = 0;
2854 int tempbool1;
2855 char *_kwnames[] = { "self","underlined", NULL };
2856
2857 self = self;
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
2859 return NULL;
2860 if (_argo0) {
2861 if (_argo0 == Py_None) { _arg0 = NULL; }
2862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
2864 return NULL;
2865 }
2866 }
2867 _arg1 = (bool ) tempbool1;
2868 {
2869 PyThreadState* __tstate = wxPyBeginAllowThreads();
2870 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
2871
2872 wxPyEndAllowThreads(__tstate);
2873 if (PyErr_Occurred()) return NULL;
2874 } Py_INCREF(Py_None);
2875 _resultobj = Py_None;
2876 return _resultobj;
2877 }
2878
2879 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2880 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
2881 PyObject * _resultobj;
2882 wxNativeFontInfo * _arg0;
2883 wxString * _arg1;
2884 PyObject * _argo0 = 0;
2885 PyObject * _obj1 = 0;
2886 char *_kwnames[] = { "self","facename", NULL };
2887
2888 self = self;
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
2890 return NULL;
2891 if (_argo0) {
2892 if (_argo0 == Py_None) { _arg0 = NULL; }
2893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
2895 return NULL;
2896 }
2897 }
2898 {
2899 #if PYTHON_API_VERSION >= 1009
2900 char* tmpPtr; int tmpSize;
2901 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2902 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2903 return NULL;
2904 }
2905 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2906 return NULL;
2907 _arg1 = new wxString(tmpPtr, tmpSize);
2908 #else
2909 if (!PyString_Check(_obj1)) {
2910 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2911 return NULL;
2912 }
2913 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2914 #endif
2915 }
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) return NULL;
2922 } Py_INCREF(Py_None);
2923 _resultobj = Py_None;
2924 {
2925 if (_obj1)
2926 delete _arg1;
2927 }
2928 return _resultobj;
2929 }
2930
2931 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2932 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxNativeFontInfo * _arg0;
2935 wxFontFamily _arg1;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self","family", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 PyThreadState* __tstate = wxPyBeginAllowThreads();
2951 wxNativeFontInfo_SetFamily(_arg0,_arg1);
2952
2953 wxPyEndAllowThreads(__tstate);
2954 if (PyErr_Occurred()) return NULL;
2955 } Py_INCREF(Py_None);
2956 _resultobj = Py_None;
2957 return _resultobj;
2958 }
2959
2960 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2961 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject * _resultobj;
2963 wxNativeFontInfo * _arg0;
2964 wxFontEncoding _arg1;
2965 PyObject * _argo0 = 0;
2966 char *_kwnames[] = { "self","encoding", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
2970 return NULL;
2971 if (_argo0) {
2972 if (_argo0 == Py_None) { _arg0 = NULL; }
2973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
2975 return NULL;
2976 }
2977 }
2978 {
2979 PyThreadState* __tstate = wxPyBeginAllowThreads();
2980 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
2981
2982 wxPyEndAllowThreads(__tstate);
2983 if (PyErr_Occurred()) return NULL;
2984 } Py_INCREF(Py_None);
2985 _resultobj = Py_None;
2986 return _resultobj;
2987 }
2988
2989 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2990 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
2991 PyObject * _resultobj;
2992 bool _result;
2993 wxNativeFontInfo * _arg0;
2994 wxString * _arg1;
2995 PyObject * _argo0 = 0;
2996 PyObject * _obj1 = 0;
2997 char *_kwnames[] = { "self","s", NULL };
2998
2999 self = self;
3000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3001 return NULL;
3002 if (_argo0) {
3003 if (_argo0 == Py_None) { _arg0 = NULL; }
3004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3006 return NULL;
3007 }
3008 }
3009 {
3010 #if PYTHON_API_VERSION >= 1009
3011 char* tmpPtr; int tmpSize;
3012 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3013 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3014 return NULL;
3015 }
3016 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3017 return NULL;
3018 _arg1 = new wxString(tmpPtr, tmpSize);
3019 #else
3020 if (!PyString_Check(_obj1)) {
3021 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3022 return NULL;
3023 }
3024 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3025 #endif
3026 }
3027 {
3028 PyThreadState* __tstate = wxPyBeginAllowThreads();
3029 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3030
3031 wxPyEndAllowThreads(__tstate);
3032 if (PyErr_Occurred()) return NULL;
3033 } _resultobj = Py_BuildValue("i",_result);
3034 {
3035 if (_obj1)
3036 delete _arg1;
3037 }
3038 return _resultobj;
3039 }
3040
3041 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3042 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3043 PyObject * _resultobj;
3044 wxString * _result;
3045 wxNativeFontInfo * _arg0;
3046 PyObject * _argo0 = 0;
3047 char *_kwnames[] = { "self", NULL };
3048
3049 self = self;
3050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3051 return NULL;
3052 if (_argo0) {
3053 if (_argo0 == Py_None) { _arg0 = NULL; }
3054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3056 return NULL;
3057 }
3058 }
3059 {
3060 PyThreadState* __tstate = wxPyBeginAllowThreads();
3061 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3062
3063 wxPyEndAllowThreads(__tstate);
3064 if (PyErr_Occurred()) return NULL;
3065 }{
3066 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3067 }
3068 {
3069 delete _result;
3070 }
3071 return _resultobj;
3072 }
3073
3074 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3075 return self->ToString();
3076 }
3077 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3078 PyObject * _resultobj;
3079 wxString * _result;
3080 wxNativeFontInfo * _arg0;
3081 PyObject * _argo0 = 0;
3082 char *_kwnames[] = { "self", NULL };
3083
3084 self = self;
3085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3086 return NULL;
3087 if (_argo0) {
3088 if (_argo0 == Py_None) { _arg0 = NULL; }
3089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3091 return NULL;
3092 }
3093 }
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3097
3098 wxPyEndAllowThreads(__tstate);
3099 if (PyErr_Occurred()) return NULL;
3100 }{
3101 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3102 }
3103 {
3104 delete _result;
3105 }
3106 return _resultobj;
3107 }
3108
3109 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3110 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3111 PyObject * _resultobj;
3112 bool _result;
3113 wxNativeFontInfo * _arg0;
3114 wxString * _arg1;
3115 PyObject * _argo0 = 0;
3116 PyObject * _obj1 = 0;
3117 char *_kwnames[] = { "self","s", NULL };
3118
3119 self = self;
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3121 return NULL;
3122 if (_argo0) {
3123 if (_argo0 == Py_None) { _arg0 = NULL; }
3124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3126 return NULL;
3127 }
3128 }
3129 {
3130 #if PYTHON_API_VERSION >= 1009
3131 char* tmpPtr; int tmpSize;
3132 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3133 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3134 return NULL;
3135 }
3136 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3137 return NULL;
3138 _arg1 = new wxString(tmpPtr, tmpSize);
3139 #else
3140 if (!PyString_Check(_obj1)) {
3141 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3142 return NULL;
3143 }
3144 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3145 #endif
3146 }
3147 {
3148 PyThreadState* __tstate = wxPyBeginAllowThreads();
3149 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
3150
3151 wxPyEndAllowThreads(__tstate);
3152 if (PyErr_Occurred()) return NULL;
3153 } _resultobj = Py_BuildValue("i",_result);
3154 {
3155 if (_obj1)
3156 delete _arg1;
3157 }
3158 return _resultobj;
3159 }
3160
3161 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3162 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3163 PyObject * _resultobj;
3164 wxString * _result;
3165 wxNativeFontInfo * _arg0;
3166 PyObject * _argo0 = 0;
3167 char *_kwnames[] = { "self", NULL };
3168
3169 self = self;
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
3171 return NULL;
3172 if (_argo0) {
3173 if (_argo0 == Py_None) { _arg0 = NULL; }
3174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3176 return NULL;
3177 }
3178 }
3179 {
3180 PyThreadState* __tstate = wxPyBeginAllowThreads();
3181 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3182
3183 wxPyEndAllowThreads(__tstate);
3184 if (PyErr_Occurred()) return NULL;
3185 }{
3186 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3187 }
3188 {
3189 delete _result;
3190 }
3191 return _resultobj;
3192 }
3193
3194 #define new_wxFontMapper() (new wxFontMapper())
3195 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3196 PyObject * _resultobj;
3197 wxFontMapper * _result;
3198 char *_kwnames[] = { NULL };
3199 char _ptemp[128];
3200
3201 self = self;
3202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3203 return NULL;
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 _result = (wxFontMapper *)new_wxFontMapper();
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) return NULL;
3210 } if (_result) {
3211 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3212 _resultobj = Py_BuildValue("s",_ptemp);
3213 } else {
3214 Py_INCREF(Py_None);
3215 _resultobj = Py_None;
3216 }
3217 return _resultobj;
3218 }
3219
3220 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3221 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3222 PyObject * _resultobj;
3223 wxFontMapper * _arg0;
3224 PyObject * _argo0 = 0;
3225 char *_kwnames[] = { "self", NULL };
3226
3227 self = self;
3228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3229 return NULL;
3230 if (_argo0) {
3231 if (_argo0 == Py_None) { _arg0 = NULL; }
3232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3234 return NULL;
3235 }
3236 }
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 delete_wxFontMapper(_arg0);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) return NULL;
3243 } Py_INCREF(Py_None);
3244 _resultobj = Py_None;
3245 return _resultobj;
3246 }
3247
3248 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3249 wxFontEncoding alt_enc;
3250 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3251 return PyInt_FromLong(alt_enc);
3252 else {
3253 Py_INCREF(Py_None);
3254 return Py_None;
3255 }
3256 }
3257 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3258 PyObject * _resultobj;
3259 PyObject * _result;
3260 wxFontMapper * _arg0;
3261 wxFontEncoding _arg1;
3262 wxString * _arg2 = (wxString *) &wxEmptyString;
3263 bool _arg3 = (bool ) TRUE;
3264 PyObject * _argo0 = 0;
3265 PyObject * _obj2 = 0;
3266 int tempbool3 = (int) TRUE;
3267 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3268
3269 self = self;
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3271 return NULL;
3272 if (_argo0) {
3273 if (_argo0 == Py_None) { _arg0 = NULL; }
3274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3276 return NULL;
3277 }
3278 }
3279 if (_obj2)
3280 {
3281 #if PYTHON_API_VERSION >= 1009
3282 char* tmpPtr; int tmpSize;
3283 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3284 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3285 return NULL;
3286 }
3287 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3288 return NULL;
3289 _arg2 = new wxString(tmpPtr, tmpSize);
3290 #else
3291 if (!PyString_Check(_obj2)) {
3292 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3293 return NULL;
3294 }
3295 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3296 #endif
3297 }
3298 _arg3 = (bool ) tempbool3;
3299 {
3300 PyThreadState* __tstate = wxPyBeginAllowThreads();
3301 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3302
3303 wxPyEndAllowThreads(__tstate);
3304 if (PyErr_Occurred()) return NULL;
3305 }{
3306 _resultobj = _result;
3307 }
3308 {
3309 if (_obj2)
3310 delete _arg2;
3311 }
3312 return _resultobj;
3313 }
3314
3315 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3316 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject * _resultobj;
3318 bool _result;
3319 wxFontMapper * _arg0;
3320 wxFontEncoding _arg1;
3321 wxString * _arg2 = (wxString *) &wxEmptyString;
3322 PyObject * _argo0 = 0;
3323 PyObject * _obj2 = 0;
3324 char *_kwnames[] = { "self","encoding","facename", NULL };
3325
3326 self = self;
3327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
3328 return NULL;
3329 if (_argo0) {
3330 if (_argo0 == Py_None) { _arg0 = NULL; }
3331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3333 return NULL;
3334 }
3335 }
3336 if (_obj2)
3337 {
3338 #if PYTHON_API_VERSION >= 1009
3339 char* tmpPtr; int tmpSize;
3340 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3341 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3342 return NULL;
3343 }
3344 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3345 return NULL;
3346 _arg2 = new wxString(tmpPtr, tmpSize);
3347 #else
3348 if (!PyString_Check(_obj2)) {
3349 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3350 return NULL;
3351 }
3352 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3353 #endif
3354 }
3355 {
3356 PyThreadState* __tstate = wxPyBeginAllowThreads();
3357 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
3358
3359 wxPyEndAllowThreads(__tstate);
3360 if (PyErr_Occurred()) return NULL;
3361 } _resultobj = Py_BuildValue("i",_result);
3362 {
3363 if (_obj2)
3364 delete _arg2;
3365 }
3366 return _resultobj;
3367 }
3368
3369 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3370 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3371 PyObject * _resultobj;
3372 wxFontEncoding _result;
3373 wxFontMapper * _arg0;
3374 wxString * _arg1;
3375 bool _arg2 = (bool ) TRUE;
3376 PyObject * _argo0 = 0;
3377 PyObject * _obj1 = 0;
3378 int tempbool2 = (int) TRUE;
3379 char *_kwnames[] = { "self","charset","interactive", NULL };
3380
3381 self = self;
3382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
3383 return NULL;
3384 if (_argo0) {
3385 if (_argo0 == Py_None) { _arg0 = NULL; }
3386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3388 return NULL;
3389 }
3390 }
3391 {
3392 #if PYTHON_API_VERSION >= 1009
3393 char* tmpPtr; int tmpSize;
3394 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3395 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3396 return NULL;
3397 }
3398 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3399 return NULL;
3400 _arg1 = new wxString(tmpPtr, tmpSize);
3401 #else
3402 if (!PyString_Check(_obj1)) {
3403 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3404 return NULL;
3405 }
3406 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3407 #endif
3408 }
3409 _arg2 = (bool ) tempbool2;
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) return NULL;
3416 } _resultobj = Py_BuildValue("i",_result);
3417 {
3418 if (_obj1)
3419 delete _arg1;
3420 }
3421 return _resultobj;
3422 }
3423
3424 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3425 PyObject * _resultobj;
3426 wxString * _result;
3427 wxFontEncoding _arg0;
3428 char *_kwnames[] = { "encoding", NULL };
3429
3430 self = self;
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3432 return NULL;
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
3436
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) return NULL;
3439 }{
3440 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3441 }
3442 {
3443 delete _result;
3444 }
3445 return _resultobj;
3446 }
3447
3448 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3449 PyObject * _resultobj;
3450 wxString * _result;
3451 wxFontEncoding _arg0;
3452 char *_kwnames[] = { "encoding", NULL };
3453
3454 self = self;
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3456 return NULL;
3457 {
3458 PyThreadState* __tstate = wxPyBeginAllowThreads();
3459 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
3460
3461 wxPyEndAllowThreads(__tstate);
3462 if (PyErr_Occurred()) return NULL;
3463 }{
3464 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3465 }
3466 {
3467 delete _result;
3468 }
3469 return _resultobj;
3470 }
3471
3472 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3473 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3474 PyObject * _resultobj;
3475 wxFontMapper * _arg0;
3476 wxWindow * _arg1;
3477 PyObject * _argo0 = 0;
3478 PyObject * _argo1 = 0;
3479 char *_kwnames[] = { "self","parent", NULL };
3480
3481 self = self;
3482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3483 return NULL;
3484 if (_argo0) {
3485 if (_argo0 == Py_None) { _arg0 = NULL; }
3486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3488 return NULL;
3489 }
3490 }
3491 if (_argo1) {
3492 if (_argo1 == Py_None) { _arg1 = NULL; }
3493 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3494 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3495 return NULL;
3496 }
3497 }
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 wxFontMapper_SetDialogParent(_arg0,_arg1);
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) return NULL;
3504 } Py_INCREF(Py_None);
3505 _resultobj = Py_None;
3506 return _resultobj;
3507 }
3508
3509 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3510 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3511 PyObject * _resultobj;
3512 wxFontMapper * _arg0;
3513 wxString * _arg1;
3514 PyObject * _argo0 = 0;
3515 PyObject * _obj1 = 0;
3516 char *_kwnames[] = { "self","title", NULL };
3517
3518 self = self;
3519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3520 return NULL;
3521 if (_argo0) {
3522 if (_argo0 == Py_None) { _arg0 = NULL; }
3523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3525 return NULL;
3526 }
3527 }
3528 {
3529 #if PYTHON_API_VERSION >= 1009
3530 char* tmpPtr; int tmpSize;
3531 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3533 return NULL;
3534 }
3535 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3536 return NULL;
3537 _arg1 = new wxString(tmpPtr, tmpSize);
3538 #else
3539 if (!PyString_Check(_obj1)) {
3540 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3541 return NULL;
3542 }
3543 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3544 #endif
3545 }
3546 {
3547 PyThreadState* __tstate = wxPyBeginAllowThreads();
3548 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
3549
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) return NULL;
3552 } Py_INCREF(Py_None);
3553 _resultobj = Py_None;
3554 {
3555 if (_obj1)
3556 delete _arg1;
3557 }
3558 return _resultobj;
3559 }
3560
3561 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3562 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3563 PyObject * _resultobj;
3564 wxFontMapper * _arg0;
3565 wxConfigBase * _arg1;
3566 PyObject * _argo0 = 0;
3567 PyObject * _argo1 = 0;
3568 char *_kwnames[] = { "self","config", NULL };
3569
3570 self = self;
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3572 return NULL;
3573 if (_argo0) {
3574 if (_argo0 == Py_None) { _arg0 = NULL; }
3575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3577 return NULL;
3578 }
3579 }
3580 if (_argo1) {
3581 if (_argo1 == Py_None) { _arg1 = NULL; }
3582 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3583 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3584 return NULL;
3585 }
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 wxFontMapper_SetConfig(_arg0,_arg1);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) return NULL;
3593 } Py_INCREF(Py_None);
3594 _resultobj = Py_None;
3595 return _resultobj;
3596 }
3597
3598 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3599 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3600 PyObject * _resultobj;
3601 wxFontMapper * _arg0;
3602 wxString * _arg1;
3603 PyObject * _argo0 = 0;
3604 PyObject * _obj1 = 0;
3605 char *_kwnames[] = { "self","prefix", NULL };
3606
3607 self = self;
3608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3609 return NULL;
3610 if (_argo0) {
3611 if (_argo0 == Py_None) { _arg0 = NULL; }
3612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3614 return NULL;
3615 }
3616 }
3617 {
3618 #if PYTHON_API_VERSION >= 1009
3619 char* tmpPtr; int tmpSize;
3620 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3621 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3622 return NULL;
3623 }
3624 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3625 return NULL;
3626 _arg1 = new wxString(tmpPtr, tmpSize);
3627 #else
3628 if (!PyString_Check(_obj1)) {
3629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3630 return NULL;
3631 }
3632 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3633 #endif
3634 }
3635 {
3636 PyThreadState* __tstate = wxPyBeginAllowThreads();
3637 wxFontMapper_SetConfigPath(_arg0,*_arg1);
3638
3639 wxPyEndAllowThreads(__tstate);
3640 if (PyErr_Occurred()) return NULL;
3641 } Py_INCREF(Py_None);
3642 _resultobj = Py_None;
3643 {
3644 if (_obj1)
3645 delete _arg1;
3646 }
3647 return _resultobj;
3648 }
3649
3650 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3651 PyObject * _resultobj;
3652 wxChar * _result;
3653 char *_kwnames[] = { NULL };
3654
3655 self = self;
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3657 return NULL;
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
3661
3662 wxPyEndAllowThreads(__tstate);
3663 if (PyErr_Occurred()) return NULL;
3664 } _resultobj = Py_BuildValue("s", _result);
3665 return _resultobj;
3666 }
3667
3668 static void *SwigwxFontTowxGDIObject(void *ptr) {
3669 wxFont *src;
3670 wxGDIObject *dest;
3671 src = (wxFont *) ptr;
3672 dest = (wxGDIObject *) src;
3673 return (void *) dest;
3674 }
3675
3676 static void *SwigwxFontTowxObject(void *ptr) {
3677 wxFont *src;
3678 wxObject *dest;
3679 src = (wxFont *) ptr;
3680 dest = (wxObject *) src;
3681 return (void *) dest;
3682 }
3683
3684 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3685 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3686 PyObject * _resultobj;
3687 wxFont * _result;
3688 int _arg0;
3689 int _arg1;
3690 int _arg2;
3691 int _arg3;
3692 int _arg4 = (int ) FALSE;
3693 char * _arg5 = (char *) "";
3694 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3695 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3696 char _ptemp[128];
3697
3698 self = self;
3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3700 return NULL;
3701 {
3702 PyThreadState* __tstate = wxPyBeginAllowThreads();
3703 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3704
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) return NULL;
3707 } if (_result) {
3708 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3709 _resultobj = Py_BuildValue("s",_ptemp);
3710 } else {
3711 Py_INCREF(Py_None);
3712 _resultobj = Py_None;
3713 }
3714 return _resultobj;
3715 }
3716
3717 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3718 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3719 PyObject * _resultobj;
3720 wxFont * _result;
3721 wxNativeFontInfo * _arg0;
3722 PyObject * _argo0 = 0;
3723 char *_kwnames[] = { "info", NULL };
3724 char _ptemp[128];
3725
3726 self = self;
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3728 return NULL;
3729 if (_argo0) {
3730 if (_argo0 == Py_None) { _arg0 = NULL; }
3731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3733 return NULL;
3734 }
3735 }
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) return NULL;
3742 } if (_result) {
3743 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3744 _resultobj = Py_BuildValue("s",_ptemp);
3745 } else {
3746 Py_INCREF(Py_None);
3747 _resultobj = Py_None;
3748 }
3749 return _resultobj;
3750 }
3751
3752 #define delete_wxFont(_swigobj) (delete _swigobj)
3753 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3754 PyObject * _resultobj;
3755 wxFont * _arg0;
3756 PyObject * _argo0 = 0;
3757 char *_kwnames[] = { "self", NULL };
3758
3759 self = self;
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3761 return NULL;
3762 if (_argo0) {
3763 if (_argo0 == Py_None) { _arg0 = NULL; }
3764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3766 return NULL;
3767 }
3768 }
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 delete_wxFont(_arg0);
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) return NULL;
3775 } Py_INCREF(Py_None);
3776 _resultobj = Py_None;
3777 return _resultobj;
3778 }
3779
3780 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3781 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3782 PyObject * _resultobj;
3783 bool _result;
3784 wxFont * _arg0;
3785 PyObject * _argo0 = 0;
3786 char *_kwnames[] = { "self", NULL };
3787
3788 self = self;
3789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3790 return NULL;
3791 if (_argo0) {
3792 if (_argo0 == Py_None) { _arg0 = NULL; }
3793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3795 return NULL;
3796 }
3797 }
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 _result = (bool )wxFont_Ok(_arg0);
3801
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) return NULL;
3804 } _resultobj = Py_BuildValue("i",_result);
3805 return _resultobj;
3806 }
3807
3808 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3809 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject * _resultobj;
3811 int _result;
3812 wxFont * _arg0;
3813 PyObject * _argo0 = 0;
3814 char *_kwnames[] = { "self", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3823 return NULL;
3824 }
3825 }
3826 {
3827 PyThreadState* __tstate = wxPyBeginAllowThreads();
3828 _result = (int )wxFont_GetPointSize(_arg0);
3829
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) return NULL;
3832 } _resultobj = Py_BuildValue("i",_result);
3833 return _resultobj;
3834 }
3835
3836 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3837 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject * _resultobj;
3839 int _result;
3840 wxFont * _arg0;
3841 PyObject * _argo0 = 0;
3842 char *_kwnames[] = { "self", NULL };
3843
3844 self = self;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3846 return NULL;
3847 if (_argo0) {
3848 if (_argo0 == Py_None) { _arg0 = NULL; }
3849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3851 return NULL;
3852 }
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 _result = (int )wxFont_GetFamily(_arg0);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) return NULL;
3860 } _resultobj = Py_BuildValue("i",_result);
3861 return _resultobj;
3862 }
3863
3864 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3865 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject * _resultobj;
3867 int _result;
3868 wxFont * _arg0;
3869 PyObject * _argo0 = 0;
3870 char *_kwnames[] = { "self", NULL };
3871
3872 self = self;
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3874 return NULL;
3875 if (_argo0) {
3876 if (_argo0 == Py_None) { _arg0 = NULL; }
3877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3879 return NULL;
3880 }
3881 }
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 _result = (int )wxFont_GetStyle(_arg0);
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) return NULL;
3888 } _resultobj = Py_BuildValue("i",_result);
3889 return _resultobj;
3890 }
3891
3892 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3893 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3894 PyObject * _resultobj;
3895 int _result;
3896 wxFont * _arg0;
3897 PyObject * _argo0 = 0;
3898 char *_kwnames[] = { "self", NULL };
3899
3900 self = self;
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3902 return NULL;
3903 if (_argo0) {
3904 if (_argo0 == Py_None) { _arg0 = NULL; }
3905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3907 return NULL;
3908 }
3909 }
3910 {
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 _result = (int )wxFont_GetWeight(_arg0);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) return NULL;
3916 } _resultobj = Py_BuildValue("i",_result);
3917 return _resultobj;
3918 }
3919
3920 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3921 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject * _resultobj;
3923 bool _result;
3924 wxFont * _arg0;
3925 PyObject * _argo0 = 0;
3926 char *_kwnames[] = { "self", NULL };
3927
3928 self = self;
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3930 return NULL;
3931 if (_argo0) {
3932 if (_argo0 == Py_None) { _arg0 = NULL; }
3933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3935 return NULL;
3936 }
3937 }
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 _result = (bool )wxFont_GetUnderlined(_arg0);
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) return NULL;
3944 } _resultobj = Py_BuildValue("i",_result);
3945 return _resultobj;
3946 }
3947
3948 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3949 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3950 PyObject * _resultobj;
3951 wxString * _result;
3952 wxFont * _arg0;
3953 PyObject * _argo0 = 0;
3954 char *_kwnames[] = { "self", NULL };
3955
3956 self = self;
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3958 return NULL;
3959 if (_argo0) {
3960 if (_argo0 == Py_None) { _arg0 = NULL; }
3961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3963 return NULL;
3964 }
3965 }
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 _result = new wxString (wxFont_GetFaceName(_arg0));
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) return NULL;
3972 }{
3973 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3974 }
3975 {
3976 delete _result;
3977 }
3978 return _resultobj;
3979 }
3980
3981 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3982 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3983 PyObject * _resultobj;
3984 wxFontEncoding _result;
3985 wxFont * _arg0;
3986 PyObject * _argo0 = 0;
3987 char *_kwnames[] = { "self", NULL };
3988
3989 self = self;
3990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
3991 return NULL;
3992 if (_argo0) {
3993 if (_argo0 == Py_None) { _arg0 = NULL; }
3994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3996 return NULL;
3997 }
3998 }
3999 {
4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
4001 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4002
4003 wxPyEndAllowThreads(__tstate);
4004 if (PyErr_Occurred()) return NULL;
4005 } _resultobj = Py_BuildValue("i",_result);
4006 return _resultobj;
4007 }
4008
4009 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4010 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4011 PyObject * _resultobj;
4012 bool _result;
4013 wxFont * _arg0;
4014 PyObject * _argo0 = 0;
4015 char *_kwnames[] = { "self", NULL };
4016
4017 self = self;
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
4019 return NULL;
4020 if (_argo0) {
4021 if (_argo0 == Py_None) { _arg0 = NULL; }
4022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4024 return NULL;
4025 }
4026 }
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 _result = (bool )wxFont_IsFixedWidth(_arg0);
4030
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) return NULL;
4033 } _resultobj = Py_BuildValue("i",_result);
4034 return _resultobj;
4035 }
4036
4037 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4038 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4039 PyObject * _resultobj;
4040 wxNativeFontInfo * _result;
4041 wxFont * _arg0;
4042 PyObject * _argo0 = 0;
4043 char *_kwnames[] = { "self", NULL };
4044 char _ptemp[128];
4045
4046 self = self;
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4048 return NULL;
4049 if (_argo0) {
4050 if (_argo0 == Py_None) { _arg0 = NULL; }
4051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4053 return NULL;
4054 }
4055 }
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4059
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) return NULL;
4062 } if (_result) {
4063 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4064 _resultobj = Py_BuildValue("s",_ptemp);
4065 } else {
4066 Py_INCREF(Py_None);
4067 _resultobj = Py_None;
4068 }
4069 return _resultobj;
4070 }
4071
4072 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4073 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject * _resultobj;
4075 wxString * _result;
4076 wxFont * _arg0;
4077 PyObject * _argo0 = 0;
4078 char *_kwnames[] = { "self", NULL };
4079
4080 self = self;
4081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4082 return NULL;
4083 if (_argo0) {
4084 if (_argo0 == Py_None) { _arg0 = NULL; }
4085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4087 return NULL;
4088 }
4089 }
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) return NULL;
4096 }{
4097 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4098 }
4099 {
4100 delete _result;
4101 }
4102 return _resultobj;
4103 }
4104
4105 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4106 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4107 PyObject * _resultobj;
4108 wxString * _result;
4109 wxFont * _arg0;
4110 PyObject * _argo0 = 0;
4111 char *_kwnames[] = { "self", NULL };
4112
4113 self = self;
4114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4115 return NULL;
4116 if (_argo0) {
4117 if (_argo0 == Py_None) { _arg0 = NULL; }
4118 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4119 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4120 return NULL;
4121 }
4122 }
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) return NULL;
4129 }{
4130 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4131 }
4132 {
4133 delete _result;
4134 }
4135 return _resultobj;
4136 }
4137
4138 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4139 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4140 PyObject * _resultobj;
4141 wxFont * _arg0;
4142 int _arg1;
4143 PyObject * _argo0 = 0;
4144 char *_kwnames[] = { "self","pointSize", NULL };
4145
4146 self = self;
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4148 return NULL;
4149 if (_argo0) {
4150 if (_argo0 == Py_None) { _arg0 = NULL; }
4151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4153 return NULL;
4154 }
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 wxFont_SetPointSize(_arg0,_arg1);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) return NULL;
4162 } Py_INCREF(Py_None);
4163 _resultobj = Py_None;
4164 return _resultobj;
4165 }
4166
4167 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4168 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4169 PyObject * _resultobj;
4170 wxFont * _arg0;
4171 int _arg1;
4172 PyObject * _argo0 = 0;
4173 char *_kwnames[] = { "self","family", NULL };
4174
4175 self = self;
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4177 return NULL;
4178 if (_argo0) {
4179 if (_argo0 == Py_None) { _arg0 = NULL; }
4180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4182 return NULL;
4183 }
4184 }
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 wxFont_SetFamily(_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 wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4197 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4198 PyObject * _resultobj;
4199 wxFont * _arg0;
4200 int _arg1;
4201 PyObject * _argo0 = 0;
4202 char *_kwnames[] = { "self","style", NULL };
4203
4204 self = self;
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4206 return NULL;
4207 if (_argo0) {
4208 if (_argo0 == Py_None) { _arg0 = NULL; }
4209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4211 return NULL;
4212 }
4213 }
4214 {
4215 PyThreadState* __tstate = wxPyBeginAllowThreads();
4216 wxFont_SetStyle(_arg0,_arg1);
4217
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) return NULL;
4220 } Py_INCREF(Py_None);
4221 _resultobj = Py_None;
4222 return _resultobj;
4223 }
4224
4225 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4226 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject * _resultobj;
4228 wxFont * _arg0;
4229 int _arg1;
4230 PyObject * _argo0 = 0;
4231 char *_kwnames[] = { "self","weight", NULL };
4232
4233 self = self;
4234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4235 return NULL;
4236 if (_argo0) {
4237 if (_argo0 == Py_None) { _arg0 = NULL; }
4238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4240 return NULL;
4241 }
4242 }
4243 {
4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
4245 wxFont_SetWeight(_arg0,_arg1);
4246
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) return NULL;
4249 } Py_INCREF(Py_None);
4250 _resultobj = Py_None;
4251 return _resultobj;
4252 }
4253
4254 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4255 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject * _resultobj;
4257 wxFont * _arg0;
4258 wxString * _arg1;
4259 PyObject * _argo0 = 0;
4260 PyObject * _obj1 = 0;
4261 char *_kwnames[] = { "self","faceName", NULL };
4262
4263 self = self;
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4265 return NULL;
4266 if (_argo0) {
4267 if (_argo0 == Py_None) { _arg0 = NULL; }
4268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4270 return NULL;
4271 }
4272 }
4273 {
4274 #if PYTHON_API_VERSION >= 1009
4275 char* tmpPtr; int tmpSize;
4276 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4277 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4278 return NULL;
4279 }
4280 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4281 return NULL;
4282 _arg1 = new wxString(tmpPtr, tmpSize);
4283 #else
4284 if (!PyString_Check(_obj1)) {
4285 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4286 return NULL;
4287 }
4288 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4289 #endif
4290 }
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 wxFont_SetFaceName(_arg0,*_arg1);
4294
4295 wxPyEndAllowThreads(__tstate);
4296 if (PyErr_Occurred()) return NULL;
4297 } Py_INCREF(Py_None);
4298 _resultobj = Py_None;
4299 {
4300 if (_obj1)
4301 delete _arg1;
4302 }
4303 return _resultobj;
4304 }
4305
4306 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4307 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4308 PyObject * _resultobj;
4309 wxFont * _arg0;
4310 bool _arg1;
4311 PyObject * _argo0 = 0;
4312 int tempbool1;
4313 char *_kwnames[] = { "self","underlined", NULL };
4314
4315 self = self;
4316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4317 return NULL;
4318 if (_argo0) {
4319 if (_argo0 == Py_None) { _arg0 = NULL; }
4320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4322 return NULL;
4323 }
4324 }
4325 _arg1 = (bool ) tempbool1;
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 wxFont_SetUnderlined(_arg0,_arg1);
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) return NULL;
4332 } Py_INCREF(Py_None);
4333 _resultobj = Py_None;
4334 return _resultobj;
4335 }
4336
4337 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4338 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject * _resultobj;
4340 wxFont * _arg0;
4341 wxFontEncoding _arg1;
4342 PyObject * _argo0 = 0;
4343 char *_kwnames[] = { "self","encoding", NULL };
4344
4345 self = self;
4346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
4347 return NULL;
4348 if (_argo0) {
4349 if (_argo0 == Py_None) { _arg0 = NULL; }
4350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4352 return NULL;
4353 }
4354 }
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 wxFont_SetEncoding(_arg0,_arg1);
4358
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) return NULL;
4361 } Py_INCREF(Py_None);
4362 _resultobj = Py_None;
4363 return _resultobj;
4364 }
4365
4366 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4367 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4368 PyObject * _resultobj;
4369 wxFont * _arg0;
4370 wxNativeFontInfo * _arg1;
4371 PyObject * _argo0 = 0;
4372 PyObject * _argo1 = 0;
4373 char *_kwnames[] = { "self","info", NULL };
4374
4375 self = self;
4376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
4377 return NULL;
4378 if (_argo0) {
4379 if (_argo0 == Py_None) { _arg0 = NULL; }
4380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4382 return NULL;
4383 }
4384 }
4385 if (_argo1) {
4386 if (_argo1 == Py_None) { _arg1 = NULL; }
4387 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4388 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4389 return NULL;
4390 }
4391 }
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 wxFont_SetNativeFontInfo(_arg0,*_arg1);
4395
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) return NULL;
4398 } Py_INCREF(Py_None);
4399 _resultobj = Py_None;
4400 return _resultobj;
4401 }
4402
4403 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4404 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4405 PyObject * _resultobj;
4406 wxFont * _arg0;
4407 wxString * _arg1;
4408 PyObject * _argo0 = 0;
4409 PyObject * _obj1 = 0;
4410 char *_kwnames[] = { "self","info", NULL };
4411
4412 self = self;
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4414 return NULL;
4415 if (_argo0) {
4416 if (_argo0 == Py_None) { _arg0 = NULL; }
4417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4419 return NULL;
4420 }
4421 }
4422 {
4423 #if PYTHON_API_VERSION >= 1009
4424 char* tmpPtr; int tmpSize;
4425 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4426 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4427 return NULL;
4428 }
4429 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4430 return NULL;
4431 _arg1 = new wxString(tmpPtr, tmpSize);
4432 #else
4433 if (!PyString_Check(_obj1)) {
4434 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4435 return NULL;
4436 }
4437 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4438 #endif
4439 }
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) return NULL;
4446 } Py_INCREF(Py_None);
4447 _resultobj = Py_None;
4448 {
4449 if (_obj1)
4450 delete _arg1;
4451 }
4452 return _resultobj;
4453 }
4454
4455 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4456 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject * _resultobj;
4458 wxString * _result;
4459 wxFont * _arg0;
4460 PyObject * _argo0 = 0;
4461 char *_kwnames[] = { "self", NULL };
4462
4463 self = self;
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4465 return NULL;
4466 if (_argo0) {
4467 if (_argo0 == Py_None) { _arg0 = NULL; }
4468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4470 return NULL;
4471 }
4472 }
4473 {
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
4475 _result = new wxString (wxFont_GetFamilyString(_arg0));
4476
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) return NULL;
4479 }{
4480 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4481 }
4482 {
4483 delete _result;
4484 }
4485 return _resultobj;
4486 }
4487
4488 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4489 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4490 PyObject * _resultobj;
4491 wxString * _result;
4492 wxFont * _arg0;
4493 PyObject * _argo0 = 0;
4494 char *_kwnames[] = { "self", NULL };
4495
4496 self = self;
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4498 return NULL;
4499 if (_argo0) {
4500 if (_argo0 == Py_None) { _arg0 = NULL; }
4501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4503 return NULL;
4504 }
4505 }
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 _result = new wxString (wxFont_GetStyleString(_arg0));
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) return NULL;
4512 }{
4513 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4514 }
4515 {
4516 delete _result;
4517 }
4518 return _resultobj;
4519 }
4520
4521 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4522 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject * _resultobj;
4524 wxString * _result;
4525 wxFont * _arg0;
4526 PyObject * _argo0 = 0;
4527 char *_kwnames[] = { "self", NULL };
4528
4529 self = self;
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4531 return NULL;
4532 if (_argo0) {
4533 if (_argo0 == Py_None) { _arg0 = NULL; }
4534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4536 return NULL;
4537 }
4538 }
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
4541 _result = new wxString (wxFont_GetWeightString(_arg0));
4542
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) return NULL;
4545 }{
4546 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4547 }
4548 {
4549 delete _result;
4550 }
4551 return _resultobj;
4552 }
4553
4554 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject * _resultobj;
4556 wxFontEncoding _result;
4557 char *_kwnames[] = { NULL };
4558
4559 self = self;
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4561 return NULL;
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) return NULL;
4568 } _resultobj = Py_BuildValue("i",_result);
4569 return _resultobj;
4570 }
4571
4572 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4573 PyObject * _resultobj;
4574 wxFontEncoding _arg0;
4575 char *_kwnames[] = { "encoding", NULL };
4576
4577 self = self;
4578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4579 return NULL;
4580 {
4581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4582 wxFont::SetDefaultEncoding(_arg0);
4583
4584 wxPyEndAllowThreads(__tstate);
4585 if (PyErr_Occurred()) return NULL;
4586 } Py_INCREF(Py_None);
4587 _resultobj = Py_None;
4588 return _resultobj;
4589 }
4590
4591 static void *SwigwxFontListTowxObject(void *ptr) {
4592 wxFontList *src;
4593 wxObject *dest;
4594 src = (wxFontList *) ptr;
4595 dest = (wxObject *) src;
4596 return (void *) dest;
4597 }
4598
4599 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4600 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject * _resultobj;
4602 wxFontList * _arg0;
4603 wxFont * _arg1;
4604 PyObject * _argo0 = 0;
4605 PyObject * _argo1 = 0;
4606 char *_kwnames[] = { "self","font", NULL };
4607
4608 self = self;
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4610 return NULL;
4611 if (_argo0) {
4612 if (_argo0 == Py_None) { _arg0 = NULL; }
4613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4615 return NULL;
4616 }
4617 }
4618 if (_argo1) {
4619 if (_argo1 == Py_None) { _arg1 = NULL; }
4620 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4621 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4622 return NULL;
4623 }
4624 }
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 wxFontList_AddFont(_arg0,_arg1);
4628
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) return NULL;
4631 } Py_INCREF(Py_None);
4632 _resultobj = Py_None;
4633 return _resultobj;
4634 }
4635
4636 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4637 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4638 PyObject * _resultobj;
4639 wxFont * _result;
4640 wxFontList * _arg0;
4641 int _arg1;
4642 int _arg2;
4643 int _arg3;
4644 int _arg4;
4645 bool _arg5 = (bool ) FALSE;
4646 char * _arg6 = (char *) NULL;
4647 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4648 PyObject * _argo0 = 0;
4649 int tempbool5 = (int) FALSE;
4650 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4651 char _ptemp[128];
4652
4653 self = self;
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4655 return NULL;
4656 if (_argo0) {
4657 if (_argo0 == Py_None) { _arg0 = NULL; }
4658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4660 return NULL;
4661 }
4662 }
4663 _arg5 = (bool ) tempbool5;
4664 {
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
4667
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) return NULL;
4670 } if (_result) {
4671 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4672 _resultobj = Py_BuildValue("s",_ptemp);
4673 } else {
4674 Py_INCREF(Py_None);
4675 _resultobj = Py_None;
4676 }
4677 return _resultobj;
4678 }
4679
4680 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4681 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4682 PyObject * _resultobj;
4683 wxFontList * _arg0;
4684 wxFont * _arg1;
4685 PyObject * _argo0 = 0;
4686 PyObject * _argo1 = 0;
4687 char *_kwnames[] = { "self","font", NULL };
4688
4689 self = self;
4690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4691 return NULL;
4692 if (_argo0) {
4693 if (_argo0 == Py_None) { _arg0 = NULL; }
4694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4696 return NULL;
4697 }
4698 }
4699 if (_argo1) {
4700 if (_argo1 == Py_None) { _arg1 = NULL; }
4701 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4702 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4703 return NULL;
4704 }
4705 }
4706 {
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 wxFontList_RemoveFont(_arg0,_arg1);
4709
4710 wxPyEndAllowThreads(__tstate);
4711 if (PyErr_Occurred()) return NULL;
4712 } Py_INCREF(Py_None);
4713 _resultobj = Py_None;
4714 return _resultobj;
4715 }
4716
4717 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4718 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject * _resultobj;
4720 int _result;
4721 wxFontList * _arg0;
4722 PyObject * _argo0 = 0;
4723 char *_kwnames[] = { "self", NULL };
4724
4725 self = self;
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4727 return NULL;
4728 if (_argo0) {
4729 if (_argo0 == Py_None) { _arg0 = NULL; }
4730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4732 return NULL;
4733 }
4734 }
4735 {
4736 PyThreadState* __tstate = wxPyBeginAllowThreads();
4737 _result = (int )wxFontList_GetCount(_arg0);
4738
4739 wxPyEndAllowThreads(__tstate);
4740 if (PyErr_Occurred()) return NULL;
4741 } _resultobj = Py_BuildValue("i",_result);
4742 return _resultobj;
4743 }
4744
4745 static void *SwigwxColourTowxObject(void *ptr) {
4746 wxColour *src;
4747 wxObject *dest;
4748 src = (wxColour *) ptr;
4749 dest = (wxObject *) src;
4750 return (void *) dest;
4751 }
4752
4753 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4754 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject * _resultobj;
4756 wxColour * _result;
4757 unsigned char _arg0 = (unsigned char ) 0;
4758 unsigned char _arg1 = (unsigned char ) 0;
4759 unsigned char _arg2 = (unsigned char ) 0;
4760 char *_kwnames[] = { "red","green","blue", NULL };
4761 char _ptemp[128];
4762
4763 self = self;
4764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
4765 return NULL;
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
4769
4770 wxPyEndAllowThreads(__tstate);
4771 if (PyErr_Occurred()) return NULL;
4772 } if (_result) {
4773 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4774 _resultobj = Py_BuildValue("s",_ptemp);
4775 } else {
4776 Py_INCREF(Py_None);
4777 _resultobj = Py_None;
4778 }
4779 return _resultobj;
4780 }
4781
4782 #define delete_wxColour(_swigobj) (delete _swigobj)
4783 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject * _resultobj;
4785 wxColour * _arg0;
4786 wxColour temp;
4787 PyObject * _obj0 = 0;
4788 char *_kwnames[] = { "self", NULL };
4789
4790 self = self;
4791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
4792 return NULL;
4793 {
4794 _arg0 = &temp;
4795 if (! wxColour_helper(_obj0, &_arg0))
4796 return NULL;
4797 }
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 delete_wxColour(_arg0);
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) return NULL;
4804 } Py_INCREF(Py_None);
4805 _resultobj = Py_None;
4806 return _resultobj;
4807 }
4808
4809 #define wxColour_Red(_swigobj) (_swigobj->Red())
4810 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject * _resultobj;
4812 unsigned char _result;
4813 wxColour * _arg0;
4814 wxColour temp;
4815 PyObject * _obj0 = 0;
4816 char *_kwnames[] = { "self", NULL };
4817
4818 self = self;
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
4820 return NULL;
4821 {
4822 _arg0 = &temp;
4823 if (! wxColour_helper(_obj0, &_arg0))
4824 return NULL;
4825 }
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 _result = (unsigned char )wxColour_Red(_arg0);
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) return NULL;
4832 } _resultobj = Py_BuildValue("b",_result);
4833 return _resultobj;
4834 }
4835
4836 #define wxColour_Green(_swigobj) (_swigobj->Green())
4837 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject * _resultobj;
4839 unsigned char _result;
4840 wxColour * _arg0;
4841 wxColour temp;
4842 PyObject * _obj0 = 0;
4843 char *_kwnames[] = { "self", NULL };
4844
4845 self = self;
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
4847 return NULL;
4848 {
4849 _arg0 = &temp;
4850 if (! wxColour_helper(_obj0, &_arg0))
4851 return NULL;
4852 }
4853 {
4854 PyThreadState* __tstate = wxPyBeginAllowThreads();
4855 _result = (unsigned char )wxColour_Green(_arg0);
4856
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) return NULL;
4859 } _resultobj = Py_BuildValue("b",_result);
4860 return _resultobj;
4861 }
4862
4863 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4864 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject * _resultobj;
4866 unsigned char _result;
4867 wxColour * _arg0;
4868 wxColour temp;
4869 PyObject * _obj0 = 0;
4870 char *_kwnames[] = { "self", NULL };
4871
4872 self = self;
4873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
4874 return NULL;
4875 {
4876 _arg0 = &temp;
4877 if (! wxColour_helper(_obj0, &_arg0))
4878 return NULL;
4879 }
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 _result = (unsigned char )wxColour_Blue(_arg0);
4883
4884 wxPyEndAllowThreads(__tstate);
4885 if (PyErr_Occurred()) return NULL;
4886 } _resultobj = Py_BuildValue("b",_result);
4887 return _resultobj;
4888 }
4889
4890 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4891 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4892 PyObject * _resultobj;
4893 bool _result;
4894 wxColour * _arg0;
4895 wxColour temp;
4896 PyObject * _obj0 = 0;
4897 char *_kwnames[] = { "self", NULL };
4898
4899 self = self;
4900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
4901 return NULL;
4902 {
4903 _arg0 = &temp;
4904 if (! wxColour_helper(_obj0, &_arg0))
4905 return NULL;
4906 }
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 _result = (bool )wxColour_Ok(_arg0);
4910
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) return NULL;
4913 } _resultobj = Py_BuildValue("i",_result);
4914 return _resultobj;
4915 }
4916
4917 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4918 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4919 PyObject * _resultobj;
4920 wxColour * _arg0;
4921 unsigned char _arg1;
4922 unsigned char _arg2;
4923 unsigned char _arg3;
4924 wxColour temp;
4925 PyObject * _obj0 = 0;
4926 char *_kwnames[] = { "self","red","green","blue", NULL };
4927
4928 self = self;
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
4930 return NULL;
4931 {
4932 _arg0 = &temp;
4933 if (! wxColour_helper(_obj0, &_arg0))
4934 return NULL;
4935 }
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4939
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) return NULL;
4942 } Py_INCREF(Py_None);
4943 _resultobj = Py_None;
4944 return _resultobj;
4945 }
4946
4947 static PyObject * wxColour_Get(wxColour *self) {
4948 PyObject* rv = PyTuple_New(3);
4949 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4950 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4951 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4952 return rv;
4953 }
4954 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject * _resultobj;
4956 PyObject * _result;
4957 wxColour * _arg0;
4958 wxColour temp;
4959 PyObject * _obj0 = 0;
4960 char *_kwnames[] = { "self", NULL };
4961
4962 self = self;
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
4964 return NULL;
4965 {
4966 _arg0 = &temp;
4967 if (! wxColour_helper(_obj0, &_arg0))
4968 return NULL;
4969 }
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 _result = (PyObject *)wxColour_Get(_arg0);
4973
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) return NULL;
4976 }{
4977 _resultobj = _result;
4978 }
4979 return _resultobj;
4980 }
4981
4982 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4983 wxColourDatabase *src;
4984 wxObject *dest;
4985 src = (wxColourDatabase *) ptr;
4986 dest = (wxObject *) src;
4987 return (void *) dest;
4988 }
4989
4990 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4991 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4992 PyObject * _resultobj;
4993 wxColour * _result;
4994 wxColourDatabase * _arg0;
4995 wxString * _arg1;
4996 PyObject * _argo0 = 0;
4997 PyObject * _obj1 = 0;
4998 char *_kwnames[] = { "self","colour", NULL };
4999 char _ptemp[128];
5000
5001 self = self;
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5003 return NULL;
5004 if (_argo0) {
5005 if (_argo0 == Py_None) { _arg0 = NULL; }
5006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5008 return NULL;
5009 }
5010 }
5011 {
5012 #if PYTHON_API_VERSION >= 1009
5013 char* tmpPtr; int tmpSize;
5014 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5015 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5016 return NULL;
5017 }
5018 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5019 return NULL;
5020 _arg1 = new wxString(tmpPtr, tmpSize);
5021 #else
5022 if (!PyString_Check(_obj1)) {
5023 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5024 return NULL;
5025 }
5026 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5027 #endif
5028 }
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5032
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) return NULL;
5035 } if (_result) {
5036 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5037 _resultobj = Py_BuildValue("s",_ptemp);
5038 } else {
5039 Py_INCREF(Py_None);
5040 _resultobj = Py_None;
5041 }
5042 {
5043 if (_obj1)
5044 delete _arg1;
5045 }
5046 return _resultobj;
5047 }
5048
5049 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5050 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5051 PyObject * _resultobj;
5052 wxString * _result;
5053 wxColourDatabase * _arg0;
5054 wxColour * _arg1;
5055 PyObject * _argo0 = 0;
5056 wxColour temp;
5057 PyObject * _obj1 = 0;
5058 char *_kwnames[] = { "self","colour", NULL };
5059
5060 self = self;
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5062 return NULL;
5063 if (_argo0) {
5064 if (_argo0 == Py_None) { _arg0 = NULL; }
5065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5067 return NULL;
5068 }
5069 }
5070 {
5071 _arg1 = &temp;
5072 if (! wxColour_helper(_obj1, &_arg1))
5073 return NULL;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5078
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) return NULL;
5081 }{
5082 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5083 }
5084 {
5085 delete _result;
5086 }
5087 return _resultobj;
5088 }
5089
5090 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5091 // first see if the name is already there
5092 wxString cName = name;
5093 cName.MakeUpper();
5094 wxString cName2 = cName;
5095 if ( !cName2.Replace("GRAY", "GREY") )
5096 cName2.clear();
5097
5098 wxNode *node = self->First();
5099 while ( node ) {
5100 const wxChar *key = node->GetKeyString();
5101 if ( cName == key || cName2 == key ) {
5102 wxColour* c = (wxColour *)node->Data();
5103 c->Set(red, green, blue);
5104 return;
5105 }
5106 node = node->Next();
5107 }
5108
5109 // otherwise append the new colour
5110 self->Append(name.c_str(), new wxColour(red, green, blue));
5111 }
5112 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5113 PyObject * _resultobj;
5114 wxColourDatabase * _arg0;
5115 wxString * _arg1;
5116 int _arg2;
5117 int _arg3;
5118 int _arg4;
5119 PyObject * _argo0 = 0;
5120 PyObject * _obj1 = 0;
5121 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5122
5123 self = self;
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5125 return NULL;
5126 if (_argo0) {
5127 if (_argo0 == Py_None) { _arg0 = NULL; }
5128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5130 return NULL;
5131 }
5132 }
5133 {
5134 #if PYTHON_API_VERSION >= 1009
5135 char* tmpPtr; int tmpSize;
5136 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5137 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5138 return NULL;
5139 }
5140 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5141 return NULL;
5142 _arg1 = new wxString(tmpPtr, tmpSize);
5143 #else
5144 if (!PyString_Check(_obj1)) {
5145 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5146 return NULL;
5147 }
5148 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5149 #endif
5150 }
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) return NULL;
5157 } Py_INCREF(Py_None);
5158 _resultobj = Py_None;
5159 {
5160 if (_obj1)
5161 delete _arg1;
5162 }
5163 return _resultobj;
5164 }
5165
5166 static void *SwigwxPenTowxGDIObject(void *ptr) {
5167 wxPen *src;
5168 wxGDIObject *dest;
5169 src = (wxPen *) ptr;
5170 dest = (wxGDIObject *) src;
5171 return (void *) dest;
5172 }
5173
5174 static void *SwigwxPenTowxObject(void *ptr) {
5175 wxPen *src;
5176 wxObject *dest;
5177 src = (wxPen *) ptr;
5178 dest = (wxObject *) src;
5179 return (void *) dest;
5180 }
5181
5182 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5183 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5184 PyObject * _resultobj;
5185 wxPen * _result;
5186 wxColour * _arg0;
5187 int _arg1 = (int ) 1;
5188 int _arg2 = (int ) wxSOLID;
5189 wxColour temp;
5190 PyObject * _obj0 = 0;
5191 char *_kwnames[] = { "colour","width","style", NULL };
5192 char _ptemp[128];
5193
5194 self = self;
5195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5196 return NULL;
5197 {
5198 _arg0 = &temp;
5199 if (! wxColour_helper(_obj0, &_arg0))
5200 return NULL;
5201 }
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) return NULL;
5208 } if (_result) {
5209 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5210 _resultobj = Py_BuildValue("s",_ptemp);
5211 } else {
5212 Py_INCREF(Py_None);
5213 _resultobj = Py_None;
5214 }
5215 return _resultobj;
5216 }
5217
5218 #define delete_wxPen(_swigobj) (delete _swigobj)
5219 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5220 PyObject * _resultobj;
5221 wxPen * _arg0;
5222 PyObject * _argo0 = 0;
5223 char *_kwnames[] = { "self", NULL };
5224
5225 self = self;
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5227 return NULL;
5228 if (_argo0) {
5229 if (_argo0 == Py_None) { _arg0 = NULL; }
5230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5232 return NULL;
5233 }
5234 }
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 delete_wxPen(_arg0);
5238
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) return NULL;
5241 } Py_INCREF(Py_None);
5242 _resultobj = Py_None;
5243 return _resultobj;
5244 }
5245
5246 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5247 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject * _resultobj;
5249 int _result;
5250 wxPen * _arg0;
5251 PyObject * _argo0 = 0;
5252 char *_kwnames[] = { "self", NULL };
5253
5254 self = self;
5255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5256 return NULL;
5257 if (_argo0) {
5258 if (_argo0 == Py_None) { _arg0 = NULL; }
5259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5261 return NULL;
5262 }
5263 }
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 _result = (int )wxPen_GetCap(_arg0);
5267
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) return NULL;
5270 } _resultobj = Py_BuildValue("i",_result);
5271 return _resultobj;
5272 }
5273
5274 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5275 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5276 PyObject * _resultobj;
5277 wxColour * _result;
5278 wxPen * _arg0;
5279 PyObject * _argo0 = 0;
5280 char *_kwnames[] = { "self", NULL };
5281 char _ptemp[128];
5282
5283 self = self;
5284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5285 return NULL;
5286 if (_argo0) {
5287 if (_argo0 == Py_None) { _arg0 = NULL; }
5288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5290 return NULL;
5291 }
5292 }
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 _result = new wxColour (wxPen_GetColour(_arg0));
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) return NULL;
5299 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5300 _resultobj = Py_BuildValue("s",_ptemp);
5301 return _resultobj;
5302 }
5303
5304 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5305 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5306 PyObject * _resultobj;
5307 int _result;
5308 wxPen * _arg0;
5309 PyObject * _argo0 = 0;
5310 char *_kwnames[] = { "self", NULL };
5311
5312 self = self;
5313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5314 return NULL;
5315 if (_argo0) {
5316 if (_argo0 == Py_None) { _arg0 = NULL; }
5317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5319 return NULL;
5320 }
5321 }
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 _result = (int )wxPen_GetJoin(_arg0);
5325
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) return NULL;
5328 } _resultobj = Py_BuildValue("i",_result);
5329 return _resultobj;
5330 }
5331
5332 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5333 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5334 PyObject * _resultobj;
5335 int _result;
5336 wxPen * _arg0;
5337 PyObject * _argo0 = 0;
5338 char *_kwnames[] = { "self", NULL };
5339
5340 self = self;
5341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5342 return NULL;
5343 if (_argo0) {
5344 if (_argo0 == Py_None) { _arg0 = NULL; }
5345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5347 return NULL;
5348 }
5349 }
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 _result = (int )wxPen_GetStyle(_arg0);
5353
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) return NULL;
5356 } _resultobj = Py_BuildValue("i",_result);
5357 return _resultobj;
5358 }
5359
5360 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5361 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject * _resultobj;
5363 int _result;
5364 wxPen * _arg0;
5365 PyObject * _argo0 = 0;
5366 char *_kwnames[] = { "self", NULL };
5367
5368 self = self;
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5370 return NULL;
5371 if (_argo0) {
5372 if (_argo0 == Py_None) { _arg0 = NULL; }
5373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5375 return NULL;
5376 }
5377 }
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 _result = (int )wxPen_GetWidth(_arg0);
5381
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) return NULL;
5384 } _resultobj = Py_BuildValue("i",_result);
5385 return _resultobj;
5386 }
5387
5388 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5389 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5390 PyObject * _resultobj;
5391 bool _result;
5392 wxPen * _arg0;
5393 PyObject * _argo0 = 0;
5394 char *_kwnames[] = { "self", NULL };
5395
5396 self = self;
5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5398 return NULL;
5399 if (_argo0) {
5400 if (_argo0 == Py_None) { _arg0 = NULL; }
5401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5403 return NULL;
5404 }
5405 }
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 _result = (bool )wxPen_Ok(_arg0);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) return NULL;
5412 } _resultobj = Py_BuildValue("i",_result);
5413 return _resultobj;
5414 }
5415
5416 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5417 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject * _resultobj;
5419 wxPen * _arg0;
5420 int _arg1;
5421 PyObject * _argo0 = 0;
5422 char *_kwnames[] = { "self","cap_style", NULL };
5423
5424 self = self;
5425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5426 return NULL;
5427 if (_argo0) {
5428 if (_argo0 == Py_None) { _arg0 = NULL; }
5429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5431 return NULL;
5432 }
5433 }
5434 {
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 wxPen_SetCap(_arg0,_arg1);
5437
5438 wxPyEndAllowThreads(__tstate);
5439 if (PyErr_Occurred()) return NULL;
5440 } Py_INCREF(Py_None);
5441 _resultobj = Py_None;
5442 return _resultobj;
5443 }
5444
5445 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5446 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5447 PyObject * _resultobj;
5448 wxPen * _arg0;
5449 wxColour * _arg1;
5450 PyObject * _argo0 = 0;
5451 wxColour temp;
5452 PyObject * _obj1 = 0;
5453 char *_kwnames[] = { "self","colour", NULL };
5454
5455 self = self;
5456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
5457 return NULL;
5458 if (_argo0) {
5459 if (_argo0 == Py_None) { _arg0 = NULL; }
5460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5462 return NULL;
5463 }
5464 }
5465 {
5466 _arg1 = &temp;
5467 if (! wxColour_helper(_obj1, &_arg1))
5468 return NULL;
5469 }
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 wxPen_SetColour(_arg0,*_arg1);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) return NULL;
5476 } Py_INCREF(Py_None);
5477 _resultobj = Py_None;
5478 return _resultobj;
5479 }
5480
5481 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5482 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5483 PyObject * _resultobj;
5484 wxPen * _arg0;
5485 int _arg1;
5486 PyObject * _argo0 = 0;
5487 char *_kwnames[] = { "self","join_style", NULL };
5488
5489 self = self;
5490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
5491 return NULL;
5492 if (_argo0) {
5493 if (_argo0 == Py_None) { _arg0 = NULL; }
5494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5496 return NULL;
5497 }
5498 }
5499 {
5500 PyThreadState* __tstate = wxPyBeginAllowThreads();
5501 wxPen_SetJoin(_arg0,_arg1);
5502
5503 wxPyEndAllowThreads(__tstate);
5504 if (PyErr_Occurred()) return NULL;
5505 } Py_INCREF(Py_None);
5506 _resultobj = Py_None;
5507 return _resultobj;
5508 }
5509
5510 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5511 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5512 PyObject * _resultobj;
5513 wxPen * _arg0;
5514 int _arg1;
5515 PyObject * _argo0 = 0;
5516 char *_kwnames[] = { "self","style", NULL };
5517
5518 self = self;
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
5520 return NULL;
5521 if (_argo0) {
5522 if (_argo0 == Py_None) { _arg0 = NULL; }
5523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5525 return NULL;
5526 }
5527 }
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 wxPen_SetStyle(_arg0,_arg1);
5531
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) return NULL;
5534 } Py_INCREF(Py_None);
5535 _resultobj = Py_None;
5536 return _resultobj;
5537 }
5538
5539 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5540 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5541 PyObject * _resultobj;
5542 wxPen * _arg0;
5543 int _arg1;
5544 PyObject * _argo0 = 0;
5545 char *_kwnames[] = { "self","width", NULL };
5546
5547 self = self;
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
5549 return NULL;
5550 if (_argo0) {
5551 if (_argo0 == Py_None) { _arg0 = NULL; }
5552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5554 return NULL;
5555 }
5556 }
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 wxPen_SetWidth(_arg0,_arg1);
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) return NULL;
5563 } Py_INCREF(Py_None);
5564 _resultobj = Py_None;
5565 return _resultobj;
5566 }
5567
5568 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5569 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5570 PyObject * _resultobj;
5571 wxPen * _arg0;
5572 int _arg1;
5573 wxDash * _arg2;
5574 PyObject * _argo0 = 0;
5575 PyObject * _obj2 = 0;
5576 char *_kwnames[] = { "self","choices", NULL };
5577
5578 self = self;
5579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
5580 return NULL;
5581 if (_argo0) {
5582 if (_argo0 == Py_None) { _arg0 = NULL; }
5583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5585 return NULL;
5586 }
5587 }
5588 if (_obj2)
5589 {
5590 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5591 if (_arg2 == NULL) {
5592 return NULL;
5593 }
5594 }
5595 {
5596 if (_obj2) {
5597 _arg1 = PyList_Size(_obj2);
5598 }
5599 else {
5600 _arg1 = 0;
5601 }
5602 }
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 wxPen_SetDashes(_arg0,_arg1,_arg2);
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) return NULL;
5609 } Py_INCREF(Py_None);
5610 _resultobj = Py_None;
5611 {
5612 delete [] _arg2;
5613 }
5614 return _resultobj;
5615 }
5616
5617 static void *SwigwxPyPenTowxPen(void *ptr) {
5618 wxPyPen *src;
5619 wxPen *dest;
5620 src = (wxPyPen *) ptr;
5621 dest = (wxPen *) src;
5622 return (void *) dest;
5623 }
5624
5625 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5626 wxPyPen *src;
5627 wxGDIObject *dest;
5628 src = (wxPyPen *) ptr;
5629 dest = (wxGDIObject *) src;
5630 return (void *) dest;
5631 }
5632
5633 static void *SwigwxPyPenTowxObject(void *ptr) {
5634 wxPyPen *src;
5635 wxObject *dest;
5636 src = (wxPyPen *) ptr;
5637 dest = (wxObject *) src;
5638 return (void *) dest;
5639 }
5640
5641 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5642 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject * _resultobj;
5644 wxPyPen * _result;
5645 wxColour * _arg0;
5646 int _arg1 = (int ) 1;
5647 int _arg2 = (int ) wxSOLID;
5648 wxColour temp;
5649 PyObject * _obj0 = 0;
5650 char *_kwnames[] = { "colour","width","style", NULL };
5651 char _ptemp[128];
5652
5653 self = self;
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5655 return NULL;
5656 {
5657 _arg0 = &temp;
5658 if (! wxColour_helper(_obj0, &_arg0))
5659 return NULL;
5660 }
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5664
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) return NULL;
5667 } if (_result) {
5668 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5669 _resultobj = Py_BuildValue("s",_ptemp);
5670 } else {
5671 Py_INCREF(Py_None);
5672 _resultobj = Py_None;
5673 }
5674 return _resultobj;
5675 }
5676
5677 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5678 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject * _resultobj;
5680 wxPyPen * _arg0;
5681 PyObject * _argo0 = 0;
5682 char *_kwnames[] = { "self", NULL };
5683
5684 self = self;
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5686 return NULL;
5687 if (_argo0) {
5688 if (_argo0 == Py_None) { _arg0 = NULL; }
5689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5691 return NULL;
5692 }
5693 }
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 delete_wxPyPen(_arg0);
5697
5698 wxPyEndAllowThreads(__tstate);
5699 if (PyErr_Occurred()) return NULL;
5700 } Py_INCREF(Py_None);
5701 _resultobj = Py_None;
5702 return _resultobj;
5703 }
5704
5705 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5706 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject * _resultobj;
5708 wxPyPen * _arg0;
5709 int _arg1;
5710 wxDash * _arg2;
5711 PyObject * _argo0 = 0;
5712 PyObject * _obj2 = 0;
5713 char *_kwnames[] = { "self","choices", NULL };
5714
5715 self = self;
5716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
5717 return NULL;
5718 if (_argo0) {
5719 if (_argo0 == Py_None) { _arg0 = NULL; }
5720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5722 return NULL;
5723 }
5724 }
5725 if (_obj2)
5726 {
5727 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5728 if (_arg2 == NULL) {
5729 return NULL;
5730 }
5731 }
5732 {
5733 if (_obj2) {
5734 _arg1 = PyList_Size(_obj2);
5735 }
5736 else {
5737 _arg1 = 0;
5738 }
5739 }
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5743
5744 wxPyEndAllowThreads(__tstate);
5745 if (PyErr_Occurred()) return NULL;
5746 } Py_INCREF(Py_None);
5747 _resultobj = Py_None;
5748 {
5749 delete [] _arg2;
5750 }
5751 return _resultobj;
5752 }
5753
5754 static void *SwigwxPenListTowxObject(void *ptr) {
5755 wxPenList *src;
5756 wxObject *dest;
5757 src = (wxPenList *) ptr;
5758 dest = (wxObject *) src;
5759 return (void *) dest;
5760 }
5761
5762 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5763 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject * _resultobj;
5765 wxPenList * _arg0;
5766 wxPen * _arg1;
5767 PyObject * _argo0 = 0;
5768 PyObject * _argo1 = 0;
5769 char *_kwnames[] = { "self","pen", NULL };
5770
5771 self = self;
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5773 return NULL;
5774 if (_argo0) {
5775 if (_argo0 == Py_None) { _arg0 = NULL; }
5776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5778 return NULL;
5779 }
5780 }
5781 if (_argo1) {
5782 if (_argo1 == Py_None) { _arg1 = NULL; }
5783 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5784 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5785 return NULL;
5786 }
5787 }
5788 {
5789 PyThreadState* __tstate = wxPyBeginAllowThreads();
5790 wxPenList_AddPen(_arg0,_arg1);
5791
5792 wxPyEndAllowThreads(__tstate);
5793 if (PyErr_Occurred()) return NULL;
5794 } Py_INCREF(Py_None);
5795 _resultobj = Py_None;
5796 return _resultobj;
5797 }
5798
5799 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5800 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5801 PyObject * _resultobj;
5802 wxPen * _result;
5803 wxPenList * _arg0;
5804 wxColour * _arg1;
5805 int _arg2;
5806 int _arg3;
5807 PyObject * _argo0 = 0;
5808 wxColour temp;
5809 PyObject * _obj1 = 0;
5810 char *_kwnames[] = { "self","colour","width","style", NULL };
5811 char _ptemp[128];
5812
5813 self = self;
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5815 return NULL;
5816 if (_argo0) {
5817 if (_argo0 == Py_None) { _arg0 = NULL; }
5818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5820 return NULL;
5821 }
5822 }
5823 {
5824 _arg1 = &temp;
5825 if (! wxColour_helper(_obj1, &_arg1))
5826 return NULL;
5827 }
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) return NULL;
5834 } if (_result) {
5835 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5836 _resultobj = Py_BuildValue("s",_ptemp);
5837 } else {
5838 Py_INCREF(Py_None);
5839 _resultobj = Py_None;
5840 }
5841 return _resultobj;
5842 }
5843
5844 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5845 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5846 PyObject * _resultobj;
5847 wxPenList * _arg0;
5848 wxPen * _arg1;
5849 PyObject * _argo0 = 0;
5850 PyObject * _argo1 = 0;
5851 char *_kwnames[] = { "self","pen", NULL };
5852
5853 self = self;
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5855 return NULL;
5856 if (_argo0) {
5857 if (_argo0 == Py_None) { _arg0 = NULL; }
5858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5860 return NULL;
5861 }
5862 }
5863 if (_argo1) {
5864 if (_argo1 == Py_None) { _arg1 = NULL; }
5865 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5866 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5867 return NULL;
5868 }
5869 }
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 wxPenList_RemovePen(_arg0,_arg1);
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) return NULL;
5876 } Py_INCREF(Py_None);
5877 _resultobj = Py_None;
5878 return _resultobj;
5879 }
5880
5881 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5882 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5883 PyObject * _resultobj;
5884 int _result;
5885 wxPenList * _arg0;
5886 PyObject * _argo0 = 0;
5887 char *_kwnames[] = { "self", NULL };
5888
5889 self = self;
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5891 return NULL;
5892 if (_argo0) {
5893 if (_argo0 == Py_None) { _arg0 = NULL; }
5894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5896 return NULL;
5897 }
5898 }
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 _result = (int )wxPenList_GetCount(_arg0);
5902
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) return NULL;
5905 } _resultobj = Py_BuildValue("i",_result);
5906 return _resultobj;
5907 }
5908
5909 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5910 wxBrush *src;
5911 wxGDIObject *dest;
5912 src = (wxBrush *) ptr;
5913 dest = (wxGDIObject *) src;
5914 return (void *) dest;
5915 }
5916
5917 static void *SwigwxBrushTowxObject(void *ptr) {
5918 wxBrush *src;
5919 wxObject *dest;
5920 src = (wxBrush *) ptr;
5921 dest = (wxObject *) src;
5922 return (void *) dest;
5923 }
5924
5925 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5926 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject * _resultobj;
5928 wxBrush * _result;
5929 wxColour * _arg0;
5930 int _arg1 = (int ) wxSOLID;
5931 wxColour temp;
5932 PyObject * _obj0 = 0;
5933 char *_kwnames[] = { "colour","style", NULL };
5934 char _ptemp[128];
5935
5936 self = self;
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5938 return NULL;
5939 {
5940 _arg0 = &temp;
5941 if (! wxColour_helper(_obj0, &_arg0))
5942 return NULL;
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) return NULL;
5950 } if (_result) {
5951 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5952 _resultobj = Py_BuildValue("s",_ptemp);
5953 } else {
5954 Py_INCREF(Py_None);
5955 _resultobj = Py_None;
5956 }
5957 return _resultobj;
5958 }
5959
5960 #define delete_wxBrush(_swigobj) (delete _swigobj)
5961 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject * _resultobj;
5963 wxBrush * _arg0;
5964 PyObject * _argo0 = 0;
5965 char *_kwnames[] = { "self", NULL };
5966
5967 self = self;
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5969 return NULL;
5970 if (_argo0) {
5971 if (_argo0 == Py_None) { _arg0 = NULL; }
5972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5974 return NULL;
5975 }
5976 }
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 delete_wxBrush(_arg0);
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) return NULL;
5983 } Py_INCREF(Py_None);
5984 _resultobj = Py_None;
5985 return _resultobj;
5986 }
5987
5988 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5989 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5990 PyObject * _resultobj;
5991 wxColour * _result;
5992 wxBrush * _arg0;
5993 PyObject * _argo0 = 0;
5994 char *_kwnames[] = { "self", NULL };
5995 char _ptemp[128];
5996
5997 self = self;
5998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5999 return NULL;
6000 if (_argo0) {
6001 if (_argo0 == Py_None) { _arg0 = NULL; }
6002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6004 return NULL;
6005 }
6006 }
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 _result = new wxColour (wxBrush_GetColour(_arg0));
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) return NULL;
6013 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6014 _resultobj = Py_BuildValue("s",_ptemp);
6015 return _resultobj;
6016 }
6017
6018 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6019 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject * _resultobj;
6021 wxBitmap * _result;
6022 wxBrush * _arg0;
6023 PyObject * _argo0 = 0;
6024 char *_kwnames[] = { "self", NULL };
6025 char _ptemp[128];
6026
6027 self = self;
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6029 return NULL;
6030 if (_argo0) {
6031 if (_argo0 == Py_None) { _arg0 = NULL; }
6032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6034 return NULL;
6035 }
6036 }
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) return NULL;
6043 } if (_result) {
6044 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6045 _resultobj = Py_BuildValue("s",_ptemp);
6046 } else {
6047 Py_INCREF(Py_None);
6048 _resultobj = Py_None;
6049 }
6050 return _resultobj;
6051 }
6052
6053 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6054 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6055 PyObject * _resultobj;
6056 int _result;
6057 wxBrush * _arg0;
6058 PyObject * _argo0 = 0;
6059 char *_kwnames[] = { "self", NULL };
6060
6061 self = self;
6062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6063 return NULL;
6064 if (_argo0) {
6065 if (_argo0 == Py_None) { _arg0 = NULL; }
6066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6068 return NULL;
6069 }
6070 }
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 _result = (int )wxBrush_GetStyle(_arg0);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) return NULL;
6077 } _resultobj = Py_BuildValue("i",_result);
6078 return _resultobj;
6079 }
6080
6081 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6082 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject * _resultobj;
6084 bool _result;
6085 wxBrush * _arg0;
6086 PyObject * _argo0 = 0;
6087 char *_kwnames[] = { "self", NULL };
6088
6089 self = self;
6090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6091 return NULL;
6092 if (_argo0) {
6093 if (_argo0 == Py_None) { _arg0 = NULL; }
6094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6096 return NULL;
6097 }
6098 }
6099 {
6100 PyThreadState* __tstate = wxPyBeginAllowThreads();
6101 _result = (bool )wxBrush_Ok(_arg0);
6102
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) return NULL;
6105 } _resultobj = Py_BuildValue("i",_result);
6106 return _resultobj;
6107 }
6108
6109 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6110 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6111 PyObject * _resultobj;
6112 wxBrush * _arg0;
6113 wxColour * _arg1;
6114 PyObject * _argo0 = 0;
6115 wxColour temp;
6116 PyObject * _obj1 = 0;
6117 char *_kwnames[] = { "self","colour", NULL };
6118
6119 self = self;
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6121 return NULL;
6122 if (_argo0) {
6123 if (_argo0 == Py_None) { _arg0 = NULL; }
6124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6126 return NULL;
6127 }
6128 }
6129 {
6130 _arg1 = &temp;
6131 if (! wxColour_helper(_obj1, &_arg1))
6132 return NULL;
6133 }
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 wxBrush_SetColour(_arg0,*_arg1);
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) return NULL;
6140 } Py_INCREF(Py_None);
6141 _resultobj = Py_None;
6142 return _resultobj;
6143 }
6144
6145 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6146 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6147 PyObject * _resultobj;
6148 wxBrush * _arg0;
6149 wxBitmap * _arg1;
6150 PyObject * _argo0 = 0;
6151 PyObject * _argo1 = 0;
6152 char *_kwnames[] = { "self","bitmap", NULL };
6153
6154 self = self;
6155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6156 return NULL;
6157 if (_argo0) {
6158 if (_argo0 == Py_None) { _arg0 = NULL; }
6159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6161 return NULL;
6162 }
6163 }
6164 if (_argo1) {
6165 if (_argo1 == Py_None) { _arg1 = NULL; }
6166 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6167 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6168 return NULL;
6169 }
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 wxBrush_SetStipple(_arg0,*_arg1);
6174
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) return NULL;
6177 } Py_INCREF(Py_None);
6178 _resultobj = Py_None;
6179 return _resultobj;
6180 }
6181
6182 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6183 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6184 PyObject * _resultobj;
6185 wxBrush * _arg0;
6186 int _arg1;
6187 PyObject * _argo0 = 0;
6188 char *_kwnames[] = { "self","style", NULL };
6189
6190 self = self;
6191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6192 return NULL;
6193 if (_argo0) {
6194 if (_argo0 == Py_None) { _arg0 = NULL; }
6195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6197 return NULL;
6198 }
6199 }
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 wxBrush_SetStyle(_arg0,_arg1);
6203
6204 wxPyEndAllowThreads(__tstate);
6205 if (PyErr_Occurred()) return NULL;
6206 } Py_INCREF(Py_None);
6207 _resultobj = Py_None;
6208 return _resultobj;
6209 }
6210
6211 static void *SwigwxBrushListTowxObject(void *ptr) {
6212 wxBrushList *src;
6213 wxObject *dest;
6214 src = (wxBrushList *) ptr;
6215 dest = (wxObject *) src;
6216 return (void *) dest;
6217 }
6218
6219 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6220 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6221 PyObject * _resultobj;
6222 wxBrushList * _arg0;
6223 wxBrush * _arg1;
6224 PyObject * _argo0 = 0;
6225 PyObject * _argo1 = 0;
6226 char *_kwnames[] = { "self","brush", NULL };
6227
6228 self = self;
6229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6230 return NULL;
6231 if (_argo0) {
6232 if (_argo0 == Py_None) { _arg0 = NULL; }
6233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6235 return NULL;
6236 }
6237 }
6238 if (_argo1) {
6239 if (_argo1 == Py_None) { _arg1 = NULL; }
6240 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6241 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6242 return NULL;
6243 }
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 wxBrushList_AddBrush(_arg0,_arg1);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) return NULL;
6251 } Py_INCREF(Py_None);
6252 _resultobj = Py_None;
6253 return _resultobj;
6254 }
6255
6256 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6257 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject * _resultobj;
6259 wxBrush * _result;
6260 wxBrushList * _arg0;
6261 wxColour * _arg1;
6262 int _arg2;
6263 PyObject * _argo0 = 0;
6264 wxColour temp;
6265 PyObject * _obj1 = 0;
6266 char *_kwnames[] = { "self","colour","style", NULL };
6267 char _ptemp[128];
6268
6269 self = self;
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6271 return NULL;
6272 if (_argo0) {
6273 if (_argo0 == Py_None) { _arg0 = NULL; }
6274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6276 return NULL;
6277 }
6278 }
6279 {
6280 _arg1 = &temp;
6281 if (! wxColour_helper(_obj1, &_arg1))
6282 return NULL;
6283 }
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6287
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) return NULL;
6290 } if (_result) {
6291 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6292 _resultobj = Py_BuildValue("s",_ptemp);
6293 } else {
6294 Py_INCREF(Py_None);
6295 _resultobj = Py_None;
6296 }
6297 return _resultobj;
6298 }
6299
6300 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6301 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6302 PyObject * _resultobj;
6303 wxBrushList * _arg0;
6304 wxBrush * _arg1;
6305 PyObject * _argo0 = 0;
6306 PyObject * _argo1 = 0;
6307 char *_kwnames[] = { "self","brush", NULL };
6308
6309 self = self;
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6311 return NULL;
6312 if (_argo0) {
6313 if (_argo0 == Py_None) { _arg0 = NULL; }
6314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6316 return NULL;
6317 }
6318 }
6319 if (_argo1) {
6320 if (_argo1 == Py_None) { _arg1 = NULL; }
6321 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6322 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6323 return NULL;
6324 }
6325 }
6326 {
6327 PyThreadState* __tstate = wxPyBeginAllowThreads();
6328 wxBrushList_RemoveBrush(_arg0,_arg1);
6329
6330 wxPyEndAllowThreads(__tstate);
6331 if (PyErr_Occurred()) return NULL;
6332 } Py_INCREF(Py_None);
6333 _resultobj = Py_None;
6334 return _resultobj;
6335 }
6336
6337 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6338 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6339 PyObject * _resultobj;
6340 int _result;
6341 wxBrushList * _arg0;
6342 PyObject * _argo0 = 0;
6343 char *_kwnames[] = { "self", NULL };
6344
6345 self = self;
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6347 return NULL;
6348 if (_argo0) {
6349 if (_argo0 == Py_None) { _arg0 = NULL; }
6350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6352 return NULL;
6353 }
6354 }
6355 {
6356 PyThreadState* __tstate = wxPyBeginAllowThreads();
6357 _result = (int )wxBrushList_GetCount(_arg0);
6358
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) return NULL;
6361 } _resultobj = Py_BuildValue("i",_result);
6362 return _resultobj;
6363 }
6364
6365 static void *SwigwxDCTowxObject(void *ptr) {
6366 wxDC *src;
6367 wxObject *dest;
6368 src = (wxDC *) ptr;
6369 dest = (wxObject *) src;
6370 return (void *) dest;
6371 }
6372
6373 #define delete_wxDC(_swigobj) (delete _swigobj)
6374 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject * _resultobj;
6376 wxDC * _arg0;
6377 PyObject * _argo0 = 0;
6378 char *_kwnames[] = { "self", NULL };
6379
6380 self = self;
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
6382 return NULL;
6383 if (_argo0) {
6384 if (_argo0 == Py_None) { _arg0 = NULL; }
6385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6387 return NULL;
6388 }
6389 }
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 delete_wxDC(_arg0);
6393
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) return NULL;
6396 } Py_INCREF(Py_None);
6397 _resultobj = Py_None;
6398 return _resultobj;
6399 }
6400
6401 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6402 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6403 PyObject * _resultobj;
6404 wxDC * _arg0;
6405 PyObject * _argo0 = 0;
6406 char *_kwnames[] = { "self", NULL };
6407
6408 self = self;
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
6410 return NULL;
6411 if (_argo0) {
6412 if (_argo0 == Py_None) { _arg0 = NULL; }
6413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6415 return NULL;
6416 }
6417 }
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 wxDC_BeginDrawing(_arg0);
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) return NULL;
6424 } Py_INCREF(Py_None);
6425 _resultobj = Py_None;
6426 return _resultobj;
6427 }
6428
6429 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6430 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject * _resultobj;
6432 bool _result;
6433 wxDC * _arg0;
6434 long _arg1;
6435 long _arg2;
6436 long _arg3;
6437 long _arg4;
6438 wxDC * _arg5;
6439 long _arg6;
6440 long _arg7;
6441 int _arg8 = (int ) wxCOPY;
6442 int _arg9 = (int ) FALSE;
6443 PyObject * _argo0 = 0;
6444 PyObject * _argo5 = 0;
6445 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
6446
6447 self = self;
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
6449 return NULL;
6450 if (_argo0) {
6451 if (_argo0 == Py_None) { _arg0 = NULL; }
6452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6454 return NULL;
6455 }
6456 }
6457 if (_argo5) {
6458 if (_argo5 == Py_None) { _arg5 = NULL; }
6459 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6461 return NULL;
6462 }
6463 }
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) return NULL;
6470 } _resultobj = Py_BuildValue("i",_result);
6471 return _resultobj;
6472 }
6473
6474 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6475 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6476 PyObject * _resultobj;
6477 wxDC * _arg0;
6478 PyObject * _argo0 = 0;
6479 char *_kwnames[] = { "self", NULL };
6480
6481 self = self;
6482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
6483 return NULL;
6484 if (_argo0) {
6485 if (_argo0 == Py_None) { _arg0 = NULL; }
6486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6488 return NULL;
6489 }
6490 }
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 wxDC_Clear(_arg0);
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) return NULL;
6497 } Py_INCREF(Py_None);
6498 _resultobj = Py_None;
6499 return _resultobj;
6500 }
6501
6502 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6503 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject * _resultobj;
6505 wxDC * _arg0;
6506 long _arg1;
6507 long _arg2;
6508 PyObject * _argo0 = 0;
6509 char *_kwnames[] = { "self","x","y", NULL };
6510
6511 self = self;
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
6513 return NULL;
6514 if (_argo0) {
6515 if (_argo0 == Py_None) { _arg0 = NULL; }
6516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6518 return NULL;
6519 }
6520 }
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 wxDC_CrossHair(_arg0,_arg1,_arg2);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) return NULL;
6527 } Py_INCREF(Py_None);
6528 _resultobj = Py_None;
6529 return _resultobj;
6530 }
6531
6532 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6533 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6534 PyObject * _resultobj;
6535 wxDC * _arg0;
6536 PyObject * _argo0 = 0;
6537 char *_kwnames[] = { "self", NULL };
6538
6539 self = self;
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
6541 return NULL;
6542 if (_argo0) {
6543 if (_argo0 == Py_None) { _arg0 = NULL; }
6544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6546 return NULL;
6547 }
6548 }
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 wxDC_DestroyClippingRegion(_arg0);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) return NULL;
6555 } Py_INCREF(Py_None);
6556 _resultobj = Py_None;
6557 return _resultobj;
6558 }
6559
6560 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6561 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject * _resultobj;
6563 long _result;
6564 wxDC * _arg0;
6565 long _arg1;
6566 PyObject * _argo0 = 0;
6567 char *_kwnames[] = { "self","x", NULL };
6568
6569 self = self;
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
6571 return NULL;
6572 if (_argo0) {
6573 if (_argo0 == Py_None) { _arg0 = NULL; }
6574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6576 return NULL;
6577 }
6578 }
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6582
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) return NULL;
6585 } _resultobj = Py_BuildValue("l",_result);
6586 return _resultobj;
6587 }
6588
6589 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6590 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6591 PyObject * _resultobj;
6592 long _result;
6593 wxDC * _arg0;
6594 long _arg1;
6595 PyObject * _argo0 = 0;
6596 char *_kwnames[] = { "self","x", NULL };
6597
6598 self = self;
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
6600 return NULL;
6601 if (_argo0) {
6602 if (_argo0 == Py_None) { _arg0 = NULL; }
6603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6605 return NULL;
6606 }
6607 }
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6611
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) return NULL;
6614 } _resultobj = Py_BuildValue("l",_result);
6615 return _resultobj;
6616 }
6617
6618 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6619 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
6620 PyObject * _resultobj;
6621 long _result;
6622 wxDC * _arg0;
6623 long _arg1;
6624 PyObject * _argo0 = 0;
6625 char *_kwnames[] = { "self","y", NULL };
6626
6627 self = self;
6628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
6629 return NULL;
6630 if (_argo0) {
6631 if (_argo0 == Py_None) { _arg0 = NULL; }
6632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6634 return NULL;
6635 }
6636 }
6637 {
6638 PyThreadState* __tstate = wxPyBeginAllowThreads();
6639 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6640
6641 wxPyEndAllowThreads(__tstate);
6642 if (PyErr_Occurred()) return NULL;
6643 } _resultobj = Py_BuildValue("l",_result);
6644 return _resultobj;
6645 }
6646
6647 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6648 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6649 PyObject * _resultobj;
6650 long _result;
6651 wxDC * _arg0;
6652 long _arg1;
6653 PyObject * _argo0 = 0;
6654 char *_kwnames[] = { "self","y", NULL };
6655
6656 self = self;
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
6658 return NULL;
6659 if (_argo0) {
6660 if (_argo0 == Py_None) { _arg0 = NULL; }
6661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6663 return NULL;
6664 }
6665 }
6666 {
6667 PyThreadState* __tstate = wxPyBeginAllowThreads();
6668 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6669
6670 wxPyEndAllowThreads(__tstate);
6671 if (PyErr_Occurred()) return NULL;
6672 } _resultobj = Py_BuildValue("l",_result);
6673 return _resultobj;
6674 }
6675
6676 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6677 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6678 PyObject * _resultobj;
6679 wxDC * _arg0;
6680 long _arg1;
6681 long _arg2;
6682 long _arg3;
6683 long _arg4;
6684 long _arg5;
6685 long _arg6;
6686 PyObject * _argo0 = 0;
6687 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
6688
6689 self = self;
6690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6691 return NULL;
6692 if (_argo0) {
6693 if (_argo0 == Py_None) { _arg0 = NULL; }
6694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6696 return NULL;
6697 }
6698 }
6699 {
6700 PyThreadState* __tstate = wxPyBeginAllowThreads();
6701 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6702
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) return NULL;
6705 } Py_INCREF(Py_None);
6706 _resultobj = Py_None;
6707 return _resultobj;
6708 }
6709
6710 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6711 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
6712 PyObject * _resultobj;
6713 wxDC * _arg0;
6714 long _arg1;
6715 long _arg2;
6716 long _arg3;
6717 PyObject * _argo0 = 0;
6718 char *_kwnames[] = { "self","x","y","radius", NULL };
6719
6720 self = self;
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
6722 return NULL;
6723 if (_argo0) {
6724 if (_argo0 == Py_None) { _arg0 = NULL; }
6725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6727 return NULL;
6728 }
6729 }
6730 {
6731 PyThreadState* __tstate = wxPyBeginAllowThreads();
6732 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6733
6734 wxPyEndAllowThreads(__tstate);
6735 if (PyErr_Occurred()) return NULL;
6736 } Py_INCREF(Py_None);
6737 _resultobj = Py_None;
6738 return _resultobj;
6739 }
6740
6741 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6742 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6743 PyObject * _resultobj;
6744 wxDC * _arg0;
6745 long _arg1;
6746 long _arg2;
6747 long _arg3;
6748 long _arg4;
6749 PyObject * _argo0 = 0;
6750 char *_kwnames[] = { "self","x","y","width","height", NULL };
6751
6752 self = self;
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6754 return NULL;
6755 if (_argo0) {
6756 if (_argo0 == Py_None) { _arg0 = NULL; }
6757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6759 return NULL;
6760 }
6761 }
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) return NULL;
6768 } Py_INCREF(Py_None);
6769 _resultobj = Py_None;
6770 return _resultobj;
6771 }
6772
6773 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6774 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6775 PyObject * _resultobj;
6776 wxDC * _arg0;
6777 long _arg1;
6778 long _arg2;
6779 long _arg3;
6780 long _arg4;
6781 long _arg5;
6782 long _arg6;
6783 PyObject * _argo0 = 0;
6784 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6785
6786 self = self;
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6788 return NULL;
6789 if (_argo0) {
6790 if (_argo0 == Py_None) { _arg0 = NULL; }
6791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6793 return NULL;
6794 }
6795 }
6796 {
6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
6798 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6799
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) return NULL;
6802 } Py_INCREF(Py_None);
6803 _resultobj = Py_None;
6804 return _resultobj;
6805 }
6806
6807 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6808 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject * _resultobj;
6810 wxDC * _arg0;
6811 wxIcon * _arg1;
6812 long _arg2;
6813 long _arg3;
6814 PyObject * _argo0 = 0;
6815 PyObject * _argo1 = 0;
6816 char *_kwnames[] = { "self","icon","x","y", NULL };
6817
6818 self = self;
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6820 return NULL;
6821 if (_argo0) {
6822 if (_argo0 == Py_None) { _arg0 = NULL; }
6823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6825 return NULL;
6826 }
6827 }
6828 if (_argo1) {
6829 if (_argo1 == Py_None) { _arg1 = NULL; }
6830 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6831 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6832 return NULL;
6833 }
6834 }
6835 {
6836 PyThreadState* __tstate = wxPyBeginAllowThreads();
6837 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6838
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) return NULL;
6841 } Py_INCREF(Py_None);
6842 _resultobj = Py_None;
6843 return _resultobj;
6844 }
6845
6846 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6847 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6848 PyObject * _resultobj;
6849 wxDC * _arg0;
6850 wxString * _arg1;
6851 wxRect * _arg2;
6852 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6853 int _arg4 = (int ) -1;
6854 PyObject * _argo0 = 0;
6855 PyObject * _obj1 = 0;
6856 wxRect temp;
6857 PyObject * _obj2 = 0;
6858 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6859
6860 self = self;
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6862 return NULL;
6863 if (_argo0) {
6864 if (_argo0 == Py_None) { _arg0 = NULL; }
6865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6867 return NULL;
6868 }
6869 }
6870 {
6871 #if PYTHON_API_VERSION >= 1009
6872 char* tmpPtr; int tmpSize;
6873 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6874 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6875 return NULL;
6876 }
6877 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6878 return NULL;
6879 _arg1 = new wxString(tmpPtr, tmpSize);
6880 #else
6881 if (!PyString_Check(_obj1)) {
6882 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6883 return NULL;
6884 }
6885 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6886 #endif
6887 }
6888 {
6889 _arg2 = &temp;
6890 if (! wxRect_helper(_obj2, &_arg2))
6891 return NULL;
6892 }
6893 {
6894 PyThreadState* __tstate = wxPyBeginAllowThreads();
6895 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
6896
6897 wxPyEndAllowThreads(__tstate);
6898 if (PyErr_Occurred()) return NULL;
6899 } Py_INCREF(Py_None);
6900 _resultobj = Py_None;
6901 {
6902 if (_obj1)
6903 delete _arg1;
6904 }
6905 return _resultobj;
6906 }
6907
6908 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6909 wxRect rv;
6910 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6911 return rv;
6912 }
6913 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject * _resultobj;
6915 wxRect * _result;
6916 wxDC * _arg0;
6917 wxString * _arg1;
6918 wxBitmap * _arg2;
6919 wxRect * _arg3;
6920 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6921 int _arg5 = (int ) -1;
6922 PyObject * _argo0 = 0;
6923 PyObject * _obj1 = 0;
6924 PyObject * _argo2 = 0;
6925 wxRect temp;
6926 PyObject * _obj3 = 0;
6927 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6928 char _ptemp[128];
6929
6930 self = self;
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6932 return NULL;
6933 if (_argo0) {
6934 if (_argo0 == Py_None) { _arg0 = NULL; }
6935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6937 return NULL;
6938 }
6939 }
6940 {
6941 #if PYTHON_API_VERSION >= 1009
6942 char* tmpPtr; int tmpSize;
6943 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6944 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6945 return NULL;
6946 }
6947 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6948 return NULL;
6949 _arg1 = new wxString(tmpPtr, tmpSize);
6950 #else
6951 if (!PyString_Check(_obj1)) {
6952 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6953 return NULL;
6954 }
6955 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6956 #endif
6957 }
6958 if (_argo2) {
6959 if (_argo2 == Py_None) { _arg2 = NULL; }
6960 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6961 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6962 return NULL;
6963 }
6964 }
6965 {
6966 _arg3 = &temp;
6967 if (! wxRect_helper(_obj3, &_arg3))
6968 return NULL;
6969 }
6970 {
6971 PyThreadState* __tstate = wxPyBeginAllowThreads();
6972 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
6973
6974 wxPyEndAllowThreads(__tstate);
6975 if (PyErr_Occurred()) return NULL;
6976 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6977 _resultobj = Py_BuildValue("s",_ptemp);
6978 {
6979 if (_obj1)
6980 delete _arg1;
6981 }
6982 return _resultobj;
6983 }
6984
6985 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6986 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6987 PyObject * _resultobj;
6988 wxDC * _arg0;
6989 long _arg1;
6990 long _arg2;
6991 long _arg3;
6992 long _arg4;
6993 PyObject * _argo0 = 0;
6994 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6995
6996 self = self;
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6998 return NULL;
6999 if (_argo0) {
7000 if (_argo0 == Py_None) { _arg0 = NULL; }
7001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7003 return NULL;
7004 }
7005 }
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) return NULL;
7012 } Py_INCREF(Py_None);
7013 _resultobj = Py_None;
7014 return _resultobj;
7015 }
7016
7017 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7018 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject * _resultobj;
7020 wxDC * _arg0;
7021 int _arg1;
7022 wxPoint * _arg2;
7023 long _arg3 = (long ) 0;
7024 long _arg4 = (long ) 0;
7025 PyObject * _argo0 = 0;
7026 int NPOINTS;
7027 PyObject * _obj2 = 0;
7028 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7029
7030 self = self;
7031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7032 return NULL;
7033 if (_argo0) {
7034 if (_argo0 == Py_None) { _arg0 = NULL; }
7035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7037 return NULL;
7038 }
7039 }
7040 if (_obj2)
7041 {
7042 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7043 if (_arg2 == NULL) {
7044 return NULL;
7045 }
7046 }
7047 {
7048 _arg1 = NPOINTS;
7049 }
7050 {
7051 PyThreadState* __tstate = wxPyBeginAllowThreads();
7052 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7053
7054 wxPyEndAllowThreads(__tstate);
7055 if (PyErr_Occurred()) return NULL;
7056 } Py_INCREF(Py_None);
7057 _resultobj = Py_None;
7058 {
7059 delete [] _arg2;
7060 }
7061 return _resultobj;
7062 }
7063
7064 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7065 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7066 PyObject * _resultobj;
7067 wxDC * _arg0;
7068 int _arg1;
7069 wxPoint * _arg2;
7070 long _arg3 = (long ) 0;
7071 long _arg4 = (long ) 0;
7072 int _arg5 = (int ) wxODDEVEN_RULE;
7073 PyObject * _argo0 = 0;
7074 int NPOINTS;
7075 PyObject * _obj2 = 0;
7076 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7077
7078 self = self;
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7080 return NULL;
7081 if (_argo0) {
7082 if (_argo0 == Py_None) { _arg0 = NULL; }
7083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7085 return NULL;
7086 }
7087 }
7088 if (_obj2)
7089 {
7090 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7091 if (_arg2 == NULL) {
7092 return NULL;
7093 }
7094 }
7095 {
7096 _arg1 = NPOINTS;
7097 }
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) return NULL;
7104 } Py_INCREF(Py_None);
7105 _resultobj = Py_None;
7106 {
7107 delete [] _arg2;
7108 }
7109 return _resultobj;
7110 }
7111
7112 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7113 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7114 PyObject * _resultobj;
7115 wxDC * _arg0;
7116 long _arg1;
7117 long _arg2;
7118 PyObject * _argo0 = 0;
7119 char *_kwnames[] = { "self","x","y", NULL };
7120
7121 self = self;
7122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7123 return NULL;
7124 if (_argo0) {
7125 if (_argo0 == Py_None) { _arg0 = NULL; }
7126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7128 return NULL;
7129 }
7130 }
7131 {
7132 PyThreadState* __tstate = wxPyBeginAllowThreads();
7133 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7134
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) return NULL;
7137 } Py_INCREF(Py_None);
7138 _resultobj = Py_None;
7139 return _resultobj;
7140 }
7141
7142 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7143 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7144 PyObject * _resultobj;
7145 wxDC * _arg0;
7146 long _arg1;
7147 long _arg2;
7148 long _arg3;
7149 long _arg4;
7150 PyObject * _argo0 = 0;
7151 char *_kwnames[] = { "self","x","y","width","height", NULL };
7152
7153 self = self;
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7155 return NULL;
7156 if (_argo0) {
7157 if (_argo0 == Py_None) { _arg0 = NULL; }
7158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7160 return NULL;
7161 }
7162 }
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7166
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) return NULL;
7169 } Py_INCREF(Py_None);
7170 _resultobj = Py_None;
7171 return _resultobj;
7172 }
7173
7174 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7175 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7176 PyObject * _resultobj;
7177 wxDC * _arg0;
7178 wxString * _arg1;
7179 wxCoord _arg2;
7180 wxCoord _arg3;
7181 double _arg4;
7182 PyObject * _argo0 = 0;
7183 PyObject * _obj1 = 0;
7184 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7185
7186 self = self;
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7188 return NULL;
7189 if (_argo0) {
7190 if (_argo0 == Py_None) { _arg0 = NULL; }
7191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7193 return NULL;
7194 }
7195 }
7196 {
7197 #if PYTHON_API_VERSION >= 1009
7198 char* tmpPtr; int tmpSize;
7199 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7200 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7201 return NULL;
7202 }
7203 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7204 return NULL;
7205 _arg1 = new wxString(tmpPtr, tmpSize);
7206 #else
7207 if (!PyString_Check(_obj1)) {
7208 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7209 return NULL;
7210 }
7211 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7212 #endif
7213 }
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7217
7218 wxPyEndAllowThreads(__tstate);
7219 if (PyErr_Occurred()) return NULL;
7220 } Py_INCREF(Py_None);
7221 _resultobj = Py_None;
7222 {
7223 if (_obj1)
7224 delete _arg1;
7225 }
7226 return _resultobj;
7227 }
7228
7229 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7230 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject * _resultobj;
7232 wxDC * _arg0;
7233 long _arg1;
7234 long _arg2;
7235 long _arg3;
7236 long _arg4;
7237 long _arg5 = (long ) 20;
7238 PyObject * _argo0 = 0;
7239 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7240
7241 self = self;
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7243 return NULL;
7244 if (_argo0) {
7245 if (_argo0 == Py_None) { _arg0 = NULL; }
7246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7248 return NULL;
7249 }
7250 }
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) return NULL;
7257 } Py_INCREF(Py_None);
7258 _resultobj = Py_None;
7259 return _resultobj;
7260 }
7261
7262 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7263 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7264 PyObject * _resultobj;
7265 wxDC * _arg0;
7266 int _arg1;
7267 wxPoint * _arg2;
7268 PyObject * _argo0 = 0;
7269 int NPOINTS;
7270 PyObject * _obj2 = 0;
7271 char *_kwnames[] = { "self","points", NULL };
7272
7273 self = self;
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7275 return NULL;
7276 if (_argo0) {
7277 if (_argo0 == Py_None) { _arg0 = NULL; }
7278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7280 return NULL;
7281 }
7282 }
7283 if (_obj2)
7284 {
7285 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7286 if (_arg2 == NULL) {
7287 return NULL;
7288 }
7289 }
7290 {
7291 _arg1 = NPOINTS;
7292 }
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) return NULL;
7299 } Py_INCREF(Py_None);
7300 _resultobj = Py_None;
7301 {
7302 delete [] _arg2;
7303 }
7304 return _resultobj;
7305 }
7306
7307 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7308 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject * _resultobj;
7310 wxDC * _arg0;
7311 wxString * _arg1;
7312 long _arg2;
7313 long _arg3;
7314 PyObject * _argo0 = 0;
7315 PyObject * _obj1 = 0;
7316 char *_kwnames[] = { "self","text","x","y", NULL };
7317
7318 self = self;
7319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7320 return NULL;
7321 if (_argo0) {
7322 if (_argo0 == Py_None) { _arg0 = NULL; }
7323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7325 return NULL;
7326 }
7327 }
7328 {
7329 #if PYTHON_API_VERSION >= 1009
7330 char* tmpPtr; int tmpSize;
7331 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7332 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7333 return NULL;
7334 }
7335 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7336 return NULL;
7337 _arg1 = new wxString(tmpPtr, tmpSize);
7338 #else
7339 if (!PyString_Check(_obj1)) {
7340 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7341 return NULL;
7342 }
7343 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7344 #endif
7345 }
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) return NULL;
7352 } Py_INCREF(Py_None);
7353 _resultobj = Py_None;
7354 {
7355 if (_obj1)
7356 delete _arg1;
7357 }
7358 return _resultobj;
7359 }
7360
7361 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7362 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject * _resultobj;
7364 wxDC * _arg0;
7365 PyObject * _argo0 = 0;
7366 char *_kwnames[] = { "self", NULL };
7367
7368 self = self;
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7370 return NULL;
7371 if (_argo0) {
7372 if (_argo0 == Py_None) { _arg0 = NULL; }
7373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7375 return NULL;
7376 }
7377 }
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 wxDC_EndDoc(_arg0);
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) return NULL;
7384 } Py_INCREF(Py_None);
7385 _resultobj = Py_None;
7386 return _resultobj;
7387 }
7388
7389 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7390 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7391 PyObject * _resultobj;
7392 wxDC * _arg0;
7393 PyObject * _argo0 = 0;
7394 char *_kwnames[] = { "self", NULL };
7395
7396 self = self;
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7398 return NULL;
7399 if (_argo0) {
7400 if (_argo0 == Py_None) { _arg0 = NULL; }
7401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7403 return NULL;
7404 }
7405 }
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 wxDC_EndDrawing(_arg0);
7409
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) return NULL;
7412 } Py_INCREF(Py_None);
7413 _resultobj = Py_None;
7414 return _resultobj;
7415 }
7416
7417 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7418 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7419 PyObject * _resultobj;
7420 wxDC * _arg0;
7421 PyObject * _argo0 = 0;
7422 char *_kwnames[] = { "self", NULL };
7423
7424 self = self;
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
7426 return NULL;
7427 if (_argo0) {
7428 if (_argo0 == Py_None) { _arg0 = NULL; }
7429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7431 return NULL;
7432 }
7433 }
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 wxDC_EndPage(_arg0);
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) return NULL;
7440 } Py_INCREF(Py_None);
7441 _resultobj = Py_None;
7442 return _resultobj;
7443 }
7444
7445 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7446 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
7447 PyObject * _resultobj;
7448 wxDC * _arg0;
7449 long _arg1;
7450 long _arg2;
7451 wxColour * _arg3;
7452 int _arg4 = (int ) wxFLOOD_SURFACE;
7453 PyObject * _argo0 = 0;
7454 wxColour temp;
7455 PyObject * _obj3 = 0;
7456 char *_kwnames[] = { "self","x","y","colour","style", NULL };
7457
7458 self = self;
7459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
7460 return NULL;
7461 if (_argo0) {
7462 if (_argo0 == Py_None) { _arg0 = NULL; }
7463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7465 return NULL;
7466 }
7467 }
7468 {
7469 _arg3 = &temp;
7470 if (! wxColour_helper(_obj3, &_arg3))
7471 return NULL;
7472 }
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) return NULL;
7479 } Py_INCREF(Py_None);
7480 _resultobj = Py_None;
7481 return _resultobj;
7482 }
7483
7484 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7485 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7486 PyObject * _resultobj;
7487 wxBrush * _result;
7488 wxDC * _arg0;
7489 PyObject * _argo0 = 0;
7490 char *_kwnames[] = { "self", NULL };
7491 char _ptemp[128];
7492
7493 self = self;
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
7495 return NULL;
7496 if (_argo0) {
7497 if (_argo0 == Py_None) { _arg0 = NULL; }
7498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7500 return NULL;
7501 }
7502 }
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 _result = new wxBrush (wxDC_GetBackground(_arg0));
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) return NULL;
7509 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7510 _resultobj = Py_BuildValue("s",_ptemp);
7511 return _resultobj;
7512 }
7513
7514 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7515 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7516 PyObject * _resultobj;
7517 wxBrush * _result;
7518 wxDC * _arg0;
7519 PyObject * _argo0 = 0;
7520 char *_kwnames[] = { "self", NULL };
7521 char _ptemp[128];
7522
7523 self = self;
7524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
7525 return NULL;
7526 if (_argo0) {
7527 if (_argo0 == Py_None) { _arg0 = NULL; }
7528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7530 return NULL;
7531 }
7532 }
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 _result = new wxBrush (wxDC_GetBrush(_arg0));
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) return NULL;
7539 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7540 _resultobj = Py_BuildValue("s",_ptemp);
7541 return _resultobj;
7542 }
7543
7544 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7545 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7546 PyObject * _resultobj;
7547 long _result;
7548 wxDC * _arg0;
7549 PyObject * _argo0 = 0;
7550 char *_kwnames[] = { "self", NULL };
7551
7552 self = self;
7553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
7554 return NULL;
7555 if (_argo0) {
7556 if (_argo0 == Py_None) { _arg0 = NULL; }
7557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7559 return NULL;
7560 }
7561 }
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 _result = (long )wxDC_GetCharHeight(_arg0);
7565
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) return NULL;
7568 } _resultobj = Py_BuildValue("l",_result);
7569 return _resultobj;
7570 }
7571
7572 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7573 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7574 PyObject * _resultobj;
7575 long _result;
7576 wxDC * _arg0;
7577 PyObject * _argo0 = 0;
7578 char *_kwnames[] = { "self", NULL };
7579
7580 self = self;
7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
7582 return NULL;
7583 if (_argo0) {
7584 if (_argo0 == Py_None) { _arg0 = NULL; }
7585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7587 return NULL;
7588 }
7589 }
7590 {
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 _result = (long )wxDC_GetCharWidth(_arg0);
7593
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) return NULL;
7596 } _resultobj = Py_BuildValue("l",_result);
7597 return _resultobj;
7598 }
7599
7600 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7601 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7602 PyObject * _resultobj;
7603 wxDC * _arg0;
7604 long * _arg1;
7605 long temp;
7606 long * _arg2;
7607 long temp0;
7608 long * _arg3;
7609 long temp1;
7610 long * _arg4;
7611 long temp2;
7612 PyObject * _argo0 = 0;
7613 char *_kwnames[] = { "self", NULL };
7614
7615 self = self;
7616 {
7617 _arg1 = &temp;
7618 }
7619 {
7620 _arg2 = &temp0;
7621 }
7622 {
7623 _arg3 = &temp1;
7624 }
7625 {
7626 _arg4 = &temp2;
7627 }
7628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
7629 return NULL;
7630 if (_argo0) {
7631 if (_argo0 == Py_None) { _arg0 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7634 return NULL;
7635 }
7636 }
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7640
7641 wxPyEndAllowThreads(__tstate);
7642 if (PyErr_Occurred()) return NULL;
7643 } Py_INCREF(Py_None);
7644 _resultobj = Py_None;
7645 {
7646 PyObject *o;
7647 o = PyInt_FromLong((long) (*_arg1));
7648 _resultobj = t_output_helper(_resultobj, o);
7649 }
7650 {
7651 PyObject *o;
7652 o = PyInt_FromLong((long) (*_arg2));
7653 _resultobj = t_output_helper(_resultobj, o);
7654 }
7655 {
7656 PyObject *o;
7657 o = PyInt_FromLong((long) (*_arg3));
7658 _resultobj = t_output_helper(_resultobj, o);
7659 }
7660 {
7661 PyObject *o;
7662 o = PyInt_FromLong((long) (*_arg4));
7663 _resultobj = t_output_helper(_resultobj, o);
7664 }
7665 return _resultobj;
7666 }
7667
7668 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7669 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7670 PyObject * _resultobj;
7671 wxFont * _result;
7672 wxDC * _arg0;
7673 PyObject * _argo0 = 0;
7674 char *_kwnames[] = { "self", NULL };
7675 char _ptemp[128];
7676
7677 self = self;
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
7679 return NULL;
7680 if (_argo0) {
7681 if (_argo0 == Py_None) { _arg0 = NULL; }
7682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7684 return NULL;
7685 }
7686 }
7687 {
7688 PyThreadState* __tstate = wxPyBeginAllowThreads();
7689 _result = new wxFont (wxDC_GetFont(_arg0));
7690
7691 wxPyEndAllowThreads(__tstate);
7692 if (PyErr_Occurred()) return NULL;
7693 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7694 _resultobj = Py_BuildValue("s",_ptemp);
7695 return _resultobj;
7696 }
7697
7698 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7699 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7700 PyObject * _resultobj;
7701 int _result;
7702 wxDC * _arg0;
7703 PyObject * _argo0 = 0;
7704 char *_kwnames[] = { "self", NULL };
7705
7706 self = self;
7707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
7708 return NULL;
7709 if (_argo0) {
7710 if (_argo0 == Py_None) { _arg0 = NULL; }
7711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7713 return NULL;
7714 }
7715 }
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 _result = (int )wxDC_GetLogicalFunction(_arg0);
7719
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) return NULL;
7722 } _resultobj = Py_BuildValue("i",_result);
7723 return _resultobj;
7724 }
7725
7726 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7727 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7728 PyObject * _resultobj;
7729 wxDC * _arg0;
7730 double * _arg1;
7731 double temp;
7732 double * _arg2;
7733 double temp0;
7734 PyObject * _argo0 = 0;
7735 char *_kwnames[] = { "self", NULL };
7736
7737 self = self;
7738 {
7739 _arg1 = &temp;
7740 }
7741 {
7742 _arg2 = &temp0;
7743 }
7744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7745 return NULL;
7746 if (_argo0) {
7747 if (_argo0 == Py_None) { _arg0 = NULL; }
7748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7750 return NULL;
7751 }
7752 }
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) return NULL;
7759 } Py_INCREF(Py_None);
7760 _resultobj = Py_None;
7761 {
7762 PyObject *o;
7763 o = PyFloat_FromDouble((double) (*_arg1));
7764 _resultobj = t_output_helper(_resultobj, o);
7765 }
7766 {
7767 PyObject *o;
7768 o = PyFloat_FromDouble((double) (*_arg2));
7769 _resultobj = t_output_helper(_resultobj, o);
7770 }
7771 return _resultobj;
7772 }
7773
7774 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7775 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject * _resultobj;
7777 int _result;
7778 wxDC * _arg0;
7779 PyObject * _argo0 = 0;
7780 char *_kwnames[] = { "self", NULL };
7781
7782 self = self;
7783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7784 return NULL;
7785 if (_argo0) {
7786 if (_argo0 == Py_None) { _arg0 = NULL; }
7787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7789 return NULL;
7790 }
7791 }
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 _result = (int )wxDC_GetMapMode(_arg0);
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) return NULL;
7798 } _resultobj = Py_BuildValue("i",_result);
7799 return _resultobj;
7800 }
7801
7802 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7803 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7804 PyObject * _resultobj;
7805 bool _result;
7806 wxDC * _arg0;
7807 PyObject * _argo0 = 0;
7808 char *_kwnames[] = { "self", NULL };
7809
7810 self = self;
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7812 return NULL;
7813 if (_argo0) {
7814 if (_argo0 == Py_None) { _arg0 = NULL; }
7815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7817 return NULL;
7818 }
7819 }
7820 {
7821 PyThreadState* __tstate = wxPyBeginAllowThreads();
7822 _result = (bool )wxDC_GetOptimization(_arg0);
7823
7824 wxPyEndAllowThreads(__tstate);
7825 if (PyErr_Occurred()) return NULL;
7826 } _resultobj = Py_BuildValue("i",_result);
7827 return _resultobj;
7828 }
7829
7830 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7831 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject * _resultobj;
7833 wxPen * _result;
7834 wxDC * _arg0;
7835 PyObject * _argo0 = 0;
7836 char *_kwnames[] = { "self", NULL };
7837 char _ptemp[128];
7838
7839 self = self;
7840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7841 return NULL;
7842 if (_argo0) {
7843 if (_argo0 == Py_None) { _arg0 = NULL; }
7844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7846 return NULL;
7847 }
7848 }
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 _result = new wxPen (wxDC_GetPen(_arg0));
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) return NULL;
7855 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7856 _resultobj = Py_BuildValue("s",_ptemp);
7857 return _resultobj;
7858 }
7859
7860 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7861 wxColour* wc = new wxColour();
7862 self->GetPixel(x, y, wc);
7863 return wc;
7864 }
7865 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7866 PyObject * _resultobj;
7867 wxColour * _result;
7868 wxDC * _arg0;
7869 long _arg1;
7870 long _arg2;
7871 PyObject * _argo0 = 0;
7872 char *_kwnames[] = { "self","x","y", NULL };
7873 char _ptemp[128];
7874
7875 self = self;
7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7877 return NULL;
7878 if (_argo0) {
7879 if (_argo0 == Py_None) { _arg0 = NULL; }
7880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7882 return NULL;
7883 }
7884 }
7885 {
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7888
7889 wxPyEndAllowThreads(__tstate);
7890 if (PyErr_Occurred()) return NULL;
7891 } if (_result) {
7892 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7893 _resultobj = Py_BuildValue("s",_ptemp);
7894 } else {
7895 Py_INCREF(Py_None);
7896 _resultobj = Py_None;
7897 }
7898 return _resultobj;
7899 }
7900
7901 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7902 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject * _resultobj;
7904 wxDC * _arg0;
7905 int * _arg1;
7906 int temp;
7907 int * _arg2;
7908 int temp0;
7909 PyObject * _argo0 = 0;
7910 char *_kwnames[] = { "self", NULL };
7911
7912 self = self;
7913 {
7914 _arg1 = &temp;
7915 }
7916 {
7917 _arg2 = &temp0;
7918 }
7919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7920 return NULL;
7921 if (_argo0) {
7922 if (_argo0 == Py_None) { _arg0 = NULL; }
7923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7925 return NULL;
7926 }
7927 }
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7931
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) return NULL;
7934 } Py_INCREF(Py_None);
7935 _resultobj = Py_None;
7936 {
7937 PyObject *o;
7938 o = PyInt_FromLong((long) (*_arg1));
7939 _resultobj = t_output_helper(_resultobj, o);
7940 }
7941 {
7942 PyObject *o;
7943 o = PyInt_FromLong((long) (*_arg2));
7944 _resultobj = t_output_helper(_resultobj, o);
7945 }
7946 return _resultobj;
7947 }
7948
7949 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7950 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7951 PyObject * _resultobj;
7952 wxSize * _result;
7953 wxDC * _arg0;
7954 PyObject * _argo0 = 0;
7955 char *_kwnames[] = { "self", NULL };
7956 char _ptemp[128];
7957
7958 self = self;
7959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7960 return NULL;
7961 if (_argo0) {
7962 if (_argo0 == Py_None) { _arg0 = NULL; }
7963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7965 return NULL;
7966 }
7967 }
7968 {
7969 PyThreadState* __tstate = wxPyBeginAllowThreads();
7970 _result = new wxSize (wxDC_GetSize(_arg0));
7971
7972 wxPyEndAllowThreads(__tstate);
7973 if (PyErr_Occurred()) return NULL;
7974 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7975 _resultobj = Py_BuildValue("s",_ptemp);
7976 return _resultobj;
7977 }
7978
7979 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7980 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7981 PyObject * _resultobj;
7982 wxSize * _result;
7983 wxDC * _arg0;
7984 PyObject * _argo0 = 0;
7985 char *_kwnames[] = { "self", NULL };
7986 char _ptemp[128];
7987
7988 self = self;
7989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7990 return NULL;
7991 if (_argo0) {
7992 if (_argo0 == Py_None) { _arg0 = NULL; }
7993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7995 return NULL;
7996 }
7997 }
7998 {
7999 PyThreadState* __tstate = wxPyBeginAllowThreads();
8000 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8001
8002 wxPyEndAllowThreads(__tstate);
8003 if (PyErr_Occurred()) return NULL;
8004 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8005 _resultobj = Py_BuildValue("s",_ptemp);
8006 return _resultobj;
8007 }
8008
8009 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8010 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8011 PyObject * _resultobj;
8012 wxColour * _result;
8013 wxDC * _arg0;
8014 PyObject * _argo0 = 0;
8015 char *_kwnames[] = { "self", NULL };
8016 char _ptemp[128];
8017
8018 self = self;
8019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8020 return NULL;
8021 if (_argo0) {
8022 if (_argo0 == Py_None) { _arg0 = NULL; }
8023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8025 return NULL;
8026 }
8027 }
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8031
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) return NULL;
8034 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8035 _resultobj = Py_BuildValue("s",_ptemp);
8036 return _resultobj;
8037 }
8038
8039 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8040 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject * _resultobj;
8042 wxDC * _arg0;
8043 wxString * _arg1;
8044 long * _arg2;
8045 long temp;
8046 long * _arg3;
8047 long temp0;
8048 PyObject * _argo0 = 0;
8049 PyObject * _obj1 = 0;
8050 char *_kwnames[] = { "self","string", NULL };
8051
8052 self = self;
8053 {
8054 _arg2 = &temp;
8055 }
8056 {
8057 _arg3 = &temp0;
8058 }
8059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8060 return NULL;
8061 if (_argo0) {
8062 if (_argo0 == Py_None) { _arg0 = NULL; }
8063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8065 return NULL;
8066 }
8067 }
8068 {
8069 #if PYTHON_API_VERSION >= 1009
8070 char* tmpPtr; int tmpSize;
8071 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8072 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8073 return NULL;
8074 }
8075 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8076 return NULL;
8077 _arg1 = new wxString(tmpPtr, tmpSize);
8078 #else
8079 if (!PyString_Check(_obj1)) {
8080 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8081 return NULL;
8082 }
8083 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8084 #endif
8085 }
8086 {
8087 PyThreadState* __tstate = wxPyBeginAllowThreads();
8088 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8089
8090 wxPyEndAllowThreads(__tstate);
8091 if (PyErr_Occurred()) return NULL;
8092 } Py_INCREF(Py_None);
8093 _resultobj = Py_None;
8094 {
8095 PyObject *o;
8096 o = PyInt_FromLong((long) (*_arg2));
8097 _resultobj = t_output_helper(_resultobj, o);
8098 }
8099 {
8100 PyObject *o;
8101 o = PyInt_FromLong((long) (*_arg3));
8102 _resultobj = t_output_helper(_resultobj, o);
8103 }
8104 {
8105 if (_obj1)
8106 delete _arg1;
8107 }
8108 return _resultobj;
8109 }
8110
8111 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8112 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject * _resultobj;
8114 wxDC * _arg0;
8115 wxString * _arg1;
8116 long * _arg2;
8117 long temp;
8118 long * _arg3;
8119 long temp0;
8120 long * _arg4;
8121 long temp1;
8122 long * _arg5;
8123 long temp2;
8124 wxFont * _arg6 = (wxFont *) NULL;
8125 PyObject * _argo0 = 0;
8126 PyObject * _obj1 = 0;
8127 PyObject * _argo6 = 0;
8128 char *_kwnames[] = { "self","string","font", NULL };
8129
8130 self = self;
8131 {
8132 _arg2 = &temp;
8133 }
8134 {
8135 _arg3 = &temp0;
8136 }
8137 {
8138 _arg4 = &temp1;
8139 }
8140 {
8141 _arg5 = &temp2;
8142 }
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8144 return NULL;
8145 if (_argo0) {
8146 if (_argo0 == Py_None) { _arg0 = NULL; }
8147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8149 return NULL;
8150 }
8151 }
8152 {
8153 #if PYTHON_API_VERSION >= 1009
8154 char* tmpPtr; int tmpSize;
8155 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8156 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8157 return NULL;
8158 }
8159 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8160 return NULL;
8161 _arg1 = new wxString(tmpPtr, tmpSize);
8162 #else
8163 if (!PyString_Check(_obj1)) {
8164 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8165 return NULL;
8166 }
8167 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8168 #endif
8169 }
8170 if (_argo6) {
8171 if (_argo6 == Py_None) { _arg6 = NULL; }
8172 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8173 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8174 return NULL;
8175 }
8176 }
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) return NULL;
8183 } Py_INCREF(Py_None);
8184 _resultobj = Py_None;
8185 {
8186 PyObject *o;
8187 o = PyInt_FromLong((long) (*_arg2));
8188 _resultobj = t_output_helper(_resultobj, o);
8189 }
8190 {
8191 PyObject *o;
8192 o = PyInt_FromLong((long) (*_arg3));
8193 _resultobj = t_output_helper(_resultobj, o);
8194 }
8195 {
8196 PyObject *o;
8197 o = PyInt_FromLong((long) (*_arg4));
8198 _resultobj = t_output_helper(_resultobj, o);
8199 }
8200 {
8201 PyObject *o;
8202 o = PyInt_FromLong((long) (*_arg5));
8203 _resultobj = t_output_helper(_resultobj, o);
8204 }
8205 {
8206 if (_obj1)
8207 delete _arg1;
8208 }
8209 return _resultobj;
8210 }
8211
8212 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8213 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8214 PyObject * _resultobj;
8215 wxColour * _result;
8216 wxDC * _arg0;
8217 PyObject * _argo0 = 0;
8218 char *_kwnames[] = { "self", NULL };
8219 char _ptemp[128];
8220
8221 self = self;
8222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8223 return NULL;
8224 if (_argo0) {
8225 if (_argo0 == Py_None) { _arg0 = NULL; }
8226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8228 return NULL;
8229 }
8230 }
8231 {
8232 PyThreadState* __tstate = wxPyBeginAllowThreads();
8233 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8234
8235 wxPyEndAllowThreads(__tstate);
8236 if (PyErr_Occurred()) return NULL;
8237 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8238 _resultobj = Py_BuildValue("s",_ptemp);
8239 return _resultobj;
8240 }
8241
8242 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8243 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8244 PyObject * _resultobj;
8245 wxDC * _arg0;
8246 double * _arg1;
8247 double temp;
8248 double * _arg2;
8249 double temp0;
8250 PyObject * _argo0 = 0;
8251 char *_kwnames[] = { "self", NULL };
8252
8253 self = self;
8254 {
8255 _arg1 = &temp;
8256 }
8257 {
8258 _arg2 = &temp0;
8259 }
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8261 return NULL;
8262 if (_argo0) {
8263 if (_argo0 == Py_None) { _arg0 = NULL; }
8264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8266 return NULL;
8267 }
8268 }
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) return NULL;
8275 } Py_INCREF(Py_None);
8276 _resultobj = Py_None;
8277 {
8278 PyObject *o;
8279 o = PyFloat_FromDouble((double) (*_arg1));
8280 _resultobj = t_output_helper(_resultobj, o);
8281 }
8282 {
8283 PyObject *o;
8284 o = PyFloat_FromDouble((double) (*_arg2));
8285 _resultobj = t_output_helper(_resultobj, o);
8286 }
8287 return _resultobj;
8288 }
8289
8290 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8291 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8292 PyObject * _resultobj;
8293 long _result;
8294 wxDC * _arg0;
8295 long _arg1;
8296 PyObject * _argo0 = 0;
8297 char *_kwnames[] = { "self","x", NULL };
8298
8299 self = self;
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8301 return NULL;
8302 if (_argo0) {
8303 if (_argo0 == Py_None) { _arg0 = NULL; }
8304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8306 return NULL;
8307 }
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8312
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) return NULL;
8315 } _resultobj = Py_BuildValue("l",_result);
8316 return _resultobj;
8317 }
8318
8319 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8320 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject * _resultobj;
8322 long _result;
8323 wxDC * _arg0;
8324 long _arg1;
8325 PyObject * _argo0 = 0;
8326 char *_kwnames[] = { "self","x", NULL };
8327
8328 self = self;
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8330 return NULL;
8331 if (_argo0) {
8332 if (_argo0 == Py_None) { _arg0 = NULL; }
8333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8335 return NULL;
8336 }
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) return NULL;
8344 } _resultobj = Py_BuildValue("l",_result);
8345 return _resultobj;
8346 }
8347
8348 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8349 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject * _resultobj;
8351 long _result;
8352 wxDC * _arg0;
8353 long _arg1;
8354 PyObject * _argo0 = 0;
8355 char *_kwnames[] = { "self","y", NULL };
8356
8357 self = self;
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8359 return NULL;
8360 if (_argo0) {
8361 if (_argo0 == Py_None) { _arg0 = NULL; }
8362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8364 return NULL;
8365 }
8366 }
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) return NULL;
8373 } _resultobj = Py_BuildValue("l",_result);
8374 return _resultobj;
8375 }
8376
8377 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8378 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8379 PyObject * _resultobj;
8380 long _result;
8381 wxDC * _arg0;
8382 long _arg1;
8383 PyObject * _argo0 = 0;
8384 char *_kwnames[] = { "self","y", NULL };
8385
8386 self = self;
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
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_LogicalToDeviceYRel. Expected _wxDC_p.");
8393 return NULL;
8394 }
8395 }
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8399
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) return NULL;
8402 } _resultobj = Py_BuildValue("l",_result);
8403 return _resultobj;
8404 }
8405
8406 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8407 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8408 PyObject * _resultobj;
8409 long _result;
8410 wxDC * _arg0;
8411 PyObject * _argo0 = 0;
8412 char *_kwnames[] = { "self", NULL };
8413
8414 self = self;
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8416 return NULL;
8417 if (_argo0) {
8418 if (_argo0 == Py_None) { _arg0 = NULL; }
8419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8421 return NULL;
8422 }
8423 }
8424 {
8425 PyThreadState* __tstate = wxPyBeginAllowThreads();
8426 _result = (long )wxDC_MaxX(_arg0);
8427
8428 wxPyEndAllowThreads(__tstate);
8429 if (PyErr_Occurred()) return NULL;
8430 } _resultobj = Py_BuildValue("l",_result);
8431 return _resultobj;
8432 }
8433
8434 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8435 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject * _resultobj;
8437 long _result;
8438 wxDC * _arg0;
8439 PyObject * _argo0 = 0;
8440 char *_kwnames[] = { "self", NULL };
8441
8442 self = self;
8443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8444 return NULL;
8445 if (_argo0) {
8446 if (_argo0 == Py_None) { _arg0 = NULL; }
8447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8449 return NULL;
8450 }
8451 }
8452 {
8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
8454 _result = (long )wxDC_MaxY(_arg0);
8455
8456 wxPyEndAllowThreads(__tstate);
8457 if (PyErr_Occurred()) return NULL;
8458 } _resultobj = Py_BuildValue("l",_result);
8459 return _resultobj;
8460 }
8461
8462 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8463 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
8464 PyObject * _resultobj;
8465 long _result;
8466 wxDC * _arg0;
8467 PyObject * _argo0 = 0;
8468 char *_kwnames[] = { "self", NULL };
8469
8470 self = self;
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
8472 return NULL;
8473 if (_argo0) {
8474 if (_argo0 == Py_None) { _arg0 = NULL; }
8475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8477 return NULL;
8478 }
8479 }
8480 {
8481 PyThreadState* __tstate = wxPyBeginAllowThreads();
8482 _result = (long )wxDC_MinX(_arg0);
8483
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) return NULL;
8486 } _resultobj = Py_BuildValue("l",_result);
8487 return _resultobj;
8488 }
8489
8490 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8491 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
8492 PyObject * _resultobj;
8493 long _result;
8494 wxDC * _arg0;
8495 PyObject * _argo0 = 0;
8496 char *_kwnames[] = { "self", NULL };
8497
8498 self = self;
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
8500 return NULL;
8501 if (_argo0) {
8502 if (_argo0 == Py_None) { _arg0 = NULL; }
8503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8505 return NULL;
8506 }
8507 }
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 _result = (long )wxDC_MinY(_arg0);
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) return NULL;
8514 } _resultobj = Py_BuildValue("l",_result);
8515 return _resultobj;
8516 }
8517
8518 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8519 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8520 PyObject * _resultobj;
8521 bool _result;
8522 wxDC * _arg0;
8523 PyObject * _argo0 = 0;
8524 char *_kwnames[] = { "self", NULL };
8525
8526 self = self;
8527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
8528 return NULL;
8529 if (_argo0) {
8530 if (_argo0 == Py_None) { _arg0 = NULL; }
8531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8533 return NULL;
8534 }
8535 }
8536 {
8537 PyThreadState* __tstate = wxPyBeginAllowThreads();
8538 _result = (bool )wxDC_Ok(_arg0);
8539
8540 wxPyEndAllowThreads(__tstate);
8541 if (PyErr_Occurred()) return NULL;
8542 } _resultobj = Py_BuildValue("i",_result);
8543 return _resultobj;
8544 }
8545
8546 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8547 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8548 PyObject * _resultobj;
8549 wxDC * _arg0;
8550 long _arg1;
8551 long _arg2;
8552 PyObject * _argo0 = 0;
8553 char *_kwnames[] = { "self","x","y", NULL };
8554
8555 self = self;
8556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8557 return NULL;
8558 if (_argo0) {
8559 if (_argo0 == Py_None) { _arg0 = NULL; }
8560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8562 return NULL;
8563 }
8564 }
8565 {
8566 PyThreadState* __tstate = wxPyBeginAllowThreads();
8567 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8568
8569 wxPyEndAllowThreads(__tstate);
8570 if (PyErr_Occurred()) return NULL;
8571 } Py_INCREF(Py_None);
8572 _resultobj = Py_None;
8573 return _resultobj;
8574 }
8575
8576 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8577 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8578 PyObject * _resultobj;
8579 wxDC * _arg0;
8580 wxBrush * _arg1;
8581 PyObject * _argo0 = 0;
8582 PyObject * _argo1 = 0;
8583 char *_kwnames[] = { "self","brush", NULL };
8584
8585 self = self;
8586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
8587 return NULL;
8588 if (_argo0) {
8589 if (_argo0 == Py_None) { _arg0 = NULL; }
8590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8592 return NULL;
8593 }
8594 }
8595 if (_argo1) {
8596 if (_argo1 == Py_None) { _arg1 = NULL; }
8597 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8598 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8599 return NULL;
8600 }
8601 }
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 wxDC_SetBackground(_arg0,*_arg1);
8605
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) return NULL;
8608 } Py_INCREF(Py_None);
8609 _resultobj = Py_None;
8610 return _resultobj;
8611 }
8612
8613 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8614 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8615 PyObject * _resultobj;
8616 wxDC * _arg0;
8617 int _arg1;
8618 PyObject * _argo0 = 0;
8619 char *_kwnames[] = { "self","mode", NULL };
8620
8621 self = self;
8622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
8623 return NULL;
8624 if (_argo0) {
8625 if (_argo0 == Py_None) { _arg0 = NULL; }
8626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8628 return NULL;
8629 }
8630 }
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 wxDC_SetBackgroundMode(_arg0,_arg1);
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) return NULL;
8637 } Py_INCREF(Py_None);
8638 _resultobj = Py_None;
8639 return _resultobj;
8640 }
8641
8642 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8643 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject * _resultobj;
8645 wxDC * _arg0;
8646 long _arg1;
8647 long _arg2;
8648 long _arg3;
8649 long _arg4;
8650 PyObject * _argo0 = 0;
8651 char *_kwnames[] = { "self","x","y","width","height", NULL };
8652
8653 self = self;
8654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8655 return NULL;
8656 if (_argo0) {
8657 if (_argo0 == Py_None) { _arg0 = NULL; }
8658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8660 return NULL;
8661 }
8662 }
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8666
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) return NULL;
8669 } Py_INCREF(Py_None);
8670 _resultobj = Py_None;
8671 return _resultobj;
8672 }
8673
8674 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8675 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject * _resultobj;
8677 wxDC * _arg0;
8678 wxRegion * _arg1;
8679 PyObject * _argo0 = 0;
8680 PyObject * _argo1 = 0;
8681 char *_kwnames[] = { "self","region", NULL };
8682
8683 self = self;
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8685 return NULL;
8686 if (_argo0) {
8687 if (_argo0 == Py_None) { _arg0 = NULL; }
8688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8690 return NULL;
8691 }
8692 }
8693 if (_argo1) {
8694 if (_argo1 == Py_None) { _arg1 = NULL; }
8695 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8696 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8697 return NULL;
8698 }
8699 }
8700 {
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8703
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) return NULL;
8706 } Py_INCREF(Py_None);
8707 _resultobj = Py_None;
8708 return _resultobj;
8709 }
8710
8711 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8712 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8713 PyObject * _resultobj;
8714 wxDC * _arg0;
8715 wxPalette * _arg1;
8716 PyObject * _argo0 = 0;
8717 PyObject * _argo1 = 0;
8718 char *_kwnames[] = { "self","colourMap", NULL };
8719
8720 self = self;
8721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8722 return NULL;
8723 if (_argo0) {
8724 if (_argo0 == Py_None) { _arg0 = NULL; }
8725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8727 return NULL;
8728 }
8729 }
8730 if (_argo1) {
8731 if (_argo1 == Py_None) { _arg1 = NULL; }
8732 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8733 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8734 return NULL;
8735 }
8736 }
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 wxDC_SetPalette(_arg0,*_arg1);
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) return NULL;
8743 } Py_INCREF(Py_None);
8744 _resultobj = Py_None;
8745 return _resultobj;
8746 }
8747
8748 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8749 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8750 PyObject * _resultobj;
8751 wxDC * _arg0;
8752 wxBrush * _arg1;
8753 PyObject * _argo0 = 0;
8754 PyObject * _argo1 = 0;
8755 char *_kwnames[] = { "self","brush", NULL };
8756
8757 self = self;
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8759 return NULL;
8760 if (_argo0) {
8761 if (_argo0 == Py_None) { _arg0 = NULL; }
8762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8764 return NULL;
8765 }
8766 }
8767 if (_argo1) {
8768 if (_argo1 == Py_None) { _arg1 = NULL; }
8769 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8770 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8771 return NULL;
8772 }
8773 }
8774 {
8775 PyThreadState* __tstate = wxPyBeginAllowThreads();
8776 wxDC_SetBrush(_arg0,*_arg1);
8777
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) return NULL;
8780 } Py_INCREF(Py_None);
8781 _resultobj = Py_None;
8782 return _resultobj;
8783 }
8784
8785 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8786 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8787 PyObject * _resultobj;
8788 wxDC * _arg0;
8789 wxFont * _arg1;
8790 PyObject * _argo0 = 0;
8791 PyObject * _argo1 = 0;
8792 char *_kwnames[] = { "self","font", NULL };
8793
8794 self = self;
8795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8796 return NULL;
8797 if (_argo0) {
8798 if (_argo0 == Py_None) { _arg0 = NULL; }
8799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8801 return NULL;
8802 }
8803 }
8804 if (_argo1) {
8805 if (_argo1 == Py_None) { _arg1 = NULL; }
8806 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8807 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8808 return NULL;
8809 }
8810 }
8811 {
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 wxDC_SetFont(_arg0,*_arg1);
8814
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) return NULL;
8817 } Py_INCREF(Py_None);
8818 _resultobj = Py_None;
8819 return _resultobj;
8820 }
8821
8822 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8823 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject * _resultobj;
8825 wxDC * _arg0;
8826 int _arg1;
8827 PyObject * _argo0 = 0;
8828 char *_kwnames[] = { "self","function", NULL };
8829
8830 self = self;
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8832 return NULL;
8833 if (_argo0) {
8834 if (_argo0 == Py_None) { _arg0 = NULL; }
8835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8837 return NULL;
8838 }
8839 }
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 wxDC_SetLogicalFunction(_arg0,_arg1);
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) return NULL;
8846 } Py_INCREF(Py_None);
8847 _resultobj = Py_None;
8848 return _resultobj;
8849 }
8850
8851 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8852 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8853 PyObject * _resultobj;
8854 wxDC * _arg0;
8855 double _arg1;
8856 double _arg2;
8857 PyObject * _argo0 = 0;
8858 char *_kwnames[] = { "self","x","y", NULL };
8859
8860 self = self;
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8862 return NULL;
8863 if (_argo0) {
8864 if (_argo0 == Py_None) { _arg0 = NULL; }
8865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8867 return NULL;
8868 }
8869 }
8870 {
8871 PyThreadState* __tstate = wxPyBeginAllowThreads();
8872 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8873
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) return NULL;
8876 } Py_INCREF(Py_None);
8877 _resultobj = Py_None;
8878 return _resultobj;
8879 }
8880
8881 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8882 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject * _resultobj;
8884 wxDC * _arg0;
8885 int _arg1;
8886 PyObject * _argo0 = 0;
8887 char *_kwnames[] = { "self","mode", NULL };
8888
8889 self = self;
8890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8891 return NULL;
8892 if (_argo0) {
8893 if (_argo0 == Py_None) { _arg0 = NULL; }
8894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8896 return NULL;
8897 }
8898 }
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 wxDC_SetMapMode(_arg0,_arg1);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) return NULL;
8905 } Py_INCREF(Py_None);
8906 _resultobj = Py_None;
8907 return _resultobj;
8908 }
8909
8910 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8911 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8912 PyObject * _resultobj;
8913 wxDC * _arg0;
8914 bool _arg1;
8915 PyObject * _argo0 = 0;
8916 int tempbool1;
8917 char *_kwnames[] = { "self","optimize", NULL };
8918
8919 self = self;
8920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8921 return NULL;
8922 if (_argo0) {
8923 if (_argo0 == Py_None) { _arg0 = NULL; }
8924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8926 return NULL;
8927 }
8928 }
8929 _arg1 = (bool ) tempbool1;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 wxDC_SetOptimization(_arg0,_arg1);
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) return NULL;
8936 } Py_INCREF(Py_None);
8937 _resultobj = Py_None;
8938 return _resultobj;
8939 }
8940
8941 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8942 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8943 PyObject * _resultobj;
8944 wxDC * _arg0;
8945 wxPen * _arg1;
8946 PyObject * _argo0 = 0;
8947 PyObject * _argo1 = 0;
8948 char *_kwnames[] = { "self","pen", NULL };
8949
8950 self = self;
8951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8952 return NULL;
8953 if (_argo0) {
8954 if (_argo0 == Py_None) { _arg0 = NULL; }
8955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8957 return NULL;
8958 }
8959 }
8960 if (_argo1) {
8961 if (_argo1 == Py_None) { _arg1 = NULL; }
8962 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8963 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8964 return NULL;
8965 }
8966 }
8967 {
8968 PyThreadState* __tstate = wxPyBeginAllowThreads();
8969 wxDC_SetPen(_arg0,*_arg1);
8970
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) return NULL;
8973 } Py_INCREF(Py_None);
8974 _resultobj = Py_None;
8975 return _resultobj;
8976 }
8977
8978 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8979 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8980 PyObject * _resultobj;
8981 wxDC * _arg0;
8982 wxColour * _arg1;
8983 PyObject * _argo0 = 0;
8984 wxColour temp;
8985 PyObject * _obj1 = 0;
8986 char *_kwnames[] = { "self","colour", NULL };
8987
8988 self = self;
8989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8990 return NULL;
8991 if (_argo0) {
8992 if (_argo0 == Py_None) { _arg0 = NULL; }
8993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8995 return NULL;
8996 }
8997 }
8998 {
8999 _arg1 = &temp;
9000 if (! wxColour_helper(_obj1, &_arg1))
9001 return NULL;
9002 }
9003 {
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 wxDC_SetTextBackground(_arg0,*_arg1);
9006
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) return NULL;
9009 } Py_INCREF(Py_None);
9010 _resultobj = Py_None;
9011 return _resultobj;
9012 }
9013
9014 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9015 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9016 PyObject * _resultobj;
9017 wxDC * _arg0;
9018 wxColour * _arg1;
9019 PyObject * _argo0 = 0;
9020 wxColour temp;
9021 PyObject * _obj1 = 0;
9022 char *_kwnames[] = { "self","colour", NULL };
9023
9024 self = self;
9025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9026 return NULL;
9027 if (_argo0) {
9028 if (_argo0 == Py_None) { _arg0 = NULL; }
9029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9031 return NULL;
9032 }
9033 }
9034 {
9035 _arg1 = &temp;
9036 if (! wxColour_helper(_obj1, &_arg1))
9037 return NULL;
9038 }
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 wxDC_SetTextForeground(_arg0,*_arg1);
9042
9043 wxPyEndAllowThreads(__tstate);
9044 if (PyErr_Occurred()) return NULL;
9045 } Py_INCREF(Py_None);
9046 _resultobj = Py_None;
9047 return _resultobj;
9048 }
9049
9050 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9051 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9052 PyObject * _resultobj;
9053 wxDC * _arg0;
9054 double _arg1;
9055 double _arg2;
9056 PyObject * _argo0 = 0;
9057 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9058
9059 self = self;
9060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
9061 return NULL;
9062 if (_argo0) {
9063 if (_argo0 == Py_None) { _arg0 = NULL; }
9064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9066 return NULL;
9067 }
9068 }
9069 {
9070 PyThreadState* __tstate = wxPyBeginAllowThreads();
9071 wxDC_SetUserScale(_arg0,_arg1,_arg2);
9072
9073 wxPyEndAllowThreads(__tstate);
9074 if (PyErr_Occurred()) return NULL;
9075 } Py_INCREF(Py_None);
9076 _resultobj = Py_None;
9077 return _resultobj;
9078 }
9079
9080 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9081 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9082 PyObject * _resultobj;
9083 bool _result;
9084 wxDC * _arg0;
9085 wxString * _arg1;
9086 PyObject * _argo0 = 0;
9087 PyObject * _obj1 = 0;
9088 char *_kwnames[] = { "self","message", NULL };
9089
9090 self = self;
9091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9092 return NULL;
9093 if (_argo0) {
9094 if (_argo0 == Py_None) { _arg0 = NULL; }
9095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9097 return NULL;
9098 }
9099 }
9100 {
9101 #if PYTHON_API_VERSION >= 1009
9102 char* tmpPtr; int tmpSize;
9103 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9104 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9105 return NULL;
9106 }
9107 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9108 return NULL;
9109 _arg1 = new wxString(tmpPtr, tmpSize);
9110 #else
9111 if (!PyString_Check(_obj1)) {
9112 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9113 return NULL;
9114 }
9115 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9116 #endif
9117 }
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) return NULL;
9124 } _resultobj = Py_BuildValue("i",_result);
9125 {
9126 if (_obj1)
9127 delete _arg1;
9128 }
9129 return _resultobj;
9130 }
9131
9132 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9133 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9134 PyObject * _resultobj;
9135 wxDC * _arg0;
9136 PyObject * _argo0 = 0;
9137 char *_kwnames[] = { "self", NULL };
9138
9139 self = self;
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9141 return NULL;
9142 if (_argo0) {
9143 if (_argo0 == Py_None) { _arg0 = NULL; }
9144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9146 return NULL;
9147 }
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 wxDC_StartPage(_arg0);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) return NULL;
9155 } Py_INCREF(Py_None);
9156 _resultobj = Py_None;
9157 return _resultobj;
9158 }
9159
9160 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9161 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9162 PyObject * _resultobj;
9163 wxDC * _arg0;
9164 wxBitmap * _arg1;
9165 long _arg2;
9166 long _arg3;
9167 int _arg4 = (int ) FALSE;
9168 PyObject * _argo0 = 0;
9169 PyObject * _argo1 = 0;
9170 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9171
9172 self = self;
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9174 return NULL;
9175 if (_argo0) {
9176 if (_argo0 == Py_None) { _arg0 = NULL; }
9177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9179 return NULL;
9180 }
9181 }
9182 if (_argo1) {
9183 if (_argo1 == Py_None) { _arg1 = NULL; }
9184 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9185 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9186 return NULL;
9187 }
9188 }
9189 {
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9192
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) return NULL;
9195 } Py_INCREF(Py_None);
9196 _resultobj = Py_None;
9197 return _resultobj;
9198 }
9199
9200 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9201 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject * _resultobj;
9203 bool _result;
9204 wxDC * _arg0;
9205 PyObject * _argo0 = 0;
9206 char *_kwnames[] = { "self", NULL };
9207
9208 self = self;
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9210 return NULL;
9211 if (_argo0) {
9212 if (_argo0 == Py_None) { _arg0 = NULL; }
9213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9215 return NULL;
9216 }
9217 }
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9221
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) return NULL;
9224 } _resultobj = Py_BuildValue("i",_result);
9225 return _resultobj;
9226 }
9227
9228 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9229 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9230 PyObject * _resultobj;
9231 bool _result;
9232 wxDC * _arg0;
9233 PyObject * _argo0 = 0;
9234 char *_kwnames[] = { "self", NULL };
9235
9236 self = self;
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9238 return NULL;
9239 if (_argo0) {
9240 if (_argo0 == Py_None) { _arg0 = NULL; }
9241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9243 return NULL;
9244 }
9245 }
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) return NULL;
9252 } _resultobj = Py_BuildValue("i",_result);
9253 return _resultobj;
9254 }
9255
9256 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9257 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9258 PyObject * _resultobj;
9259 int _result;
9260 wxDC * _arg0;
9261 PyObject * _argo0 = 0;
9262 char *_kwnames[] = { "self", NULL };
9263
9264 self = self;
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9266 return NULL;
9267 if (_argo0) {
9268 if (_argo0 == Py_None) { _arg0 = NULL; }
9269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9271 return NULL;
9272 }
9273 }
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 _result = (int )wxDC_GetDepth(_arg0);
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) return NULL;
9280 } _resultobj = Py_BuildValue("i",_result);
9281 return _resultobj;
9282 }
9283
9284 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9285 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9286 PyObject * _resultobj;
9287 wxSize * _result;
9288 wxDC * _arg0;
9289 PyObject * _argo0 = 0;
9290 char *_kwnames[] = { "self", NULL };
9291 char _ptemp[128];
9292
9293 self = self;
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9295 return NULL;
9296 if (_argo0) {
9297 if (_argo0 == Py_None) { _arg0 = NULL; }
9298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9300 return NULL;
9301 }
9302 }
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 _result = new wxSize (wxDC_GetPPI(_arg0));
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) return NULL;
9309 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9310 _resultobj = Py_BuildValue("s",_ptemp);
9311 return _resultobj;
9312 }
9313
9314 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9315 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9316 PyObject * _resultobj;
9317 wxDC * _arg0;
9318 int * _arg1;
9319 int temp;
9320 int * _arg2;
9321 int temp0;
9322 PyObject * _argo0 = 0;
9323 char *_kwnames[] = { "self", NULL };
9324
9325 self = self;
9326 {
9327 _arg1 = &temp;
9328 }
9329 {
9330 _arg2 = &temp0;
9331 }
9332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9333 return NULL;
9334 if (_argo0) {
9335 if (_argo0 == Py_None) { _arg0 = NULL; }
9336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9338 return NULL;
9339 }
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) return NULL;
9347 } Py_INCREF(Py_None);
9348 _resultobj = Py_None;
9349 {
9350 PyObject *o;
9351 o = PyInt_FromLong((long) (*_arg1));
9352 _resultobj = t_output_helper(_resultobj, o);
9353 }
9354 {
9355 PyObject *o;
9356 o = PyInt_FromLong((long) (*_arg2));
9357 _resultobj = t_output_helper(_resultobj, o);
9358 }
9359 return _resultobj;
9360 }
9361
9362 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9363 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9364 PyObject * _resultobj;
9365 wxDC * _arg0;
9366 int _arg1;
9367 int _arg2;
9368 PyObject * _argo0 = 0;
9369 char *_kwnames[] = { "self","x","y", NULL };
9370
9371 self = self;
9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9373 return NULL;
9374 if (_argo0) {
9375 if (_argo0 == Py_None) { _arg0 = NULL; }
9376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9378 return NULL;
9379 }
9380 }
9381 {
9382 PyThreadState* __tstate = wxPyBeginAllowThreads();
9383 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9384
9385 wxPyEndAllowThreads(__tstate);
9386 if (PyErr_Occurred()) return NULL;
9387 } Py_INCREF(Py_None);
9388 _resultobj = Py_None;
9389 return _resultobj;
9390 }
9391
9392 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9393 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9394 PyObject * _resultobj;
9395 wxDC * _arg0;
9396 int * _arg1;
9397 int temp;
9398 int * _arg2;
9399 int temp0;
9400 PyObject * _argo0 = 0;
9401 char *_kwnames[] = { "self", NULL };
9402
9403 self = self;
9404 {
9405 _arg1 = &temp;
9406 }
9407 {
9408 _arg2 = &temp0;
9409 }
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9411 return NULL;
9412 if (_argo0) {
9413 if (_argo0 == Py_None) { _arg0 = NULL; }
9414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9416 return NULL;
9417 }
9418 }
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) return NULL;
9425 } Py_INCREF(Py_None);
9426 _resultobj = Py_None;
9427 {
9428 PyObject *o;
9429 o = PyInt_FromLong((long) (*_arg1));
9430 _resultobj = t_output_helper(_resultobj, o);
9431 }
9432 {
9433 PyObject *o;
9434 o = PyInt_FromLong((long) (*_arg2));
9435 _resultobj = t_output_helper(_resultobj, o);
9436 }
9437 return _resultobj;
9438 }
9439
9440 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9441 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9442 PyObject * _resultobj;
9443 wxDC * _arg0;
9444 bool _arg1;
9445 bool _arg2;
9446 PyObject * _argo0 = 0;
9447 int tempbool1;
9448 int tempbool2;
9449 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9450
9451 self = self;
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9453 return NULL;
9454 if (_argo0) {
9455 if (_argo0 == Py_None) { _arg0 = NULL; }
9456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9458 return NULL;
9459 }
9460 }
9461 _arg1 = (bool ) tempbool1;
9462 _arg2 = (bool ) tempbool2;
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9466
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) return NULL;
9469 } Py_INCREF(Py_None);
9470 _resultobj = Py_None;
9471 return _resultobj;
9472 }
9473
9474 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9475 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject * _resultobj;
9477 wxDC * _arg0;
9478 int _arg1;
9479 int _arg2;
9480 PyObject * _argo0 = 0;
9481 char *_kwnames[] = { "self","x","y", NULL };
9482
9483 self = self;
9484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9485 return NULL;
9486 if (_argo0) {
9487 if (_argo0 == Py_None) { _arg0 = NULL; }
9488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9490 return NULL;
9491 }
9492 }
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) return NULL;
9499 } Py_INCREF(Py_None);
9500 _resultobj = Py_None;
9501 return _resultobj;
9502 }
9503
9504 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9505 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9506 PyObject * _resultobj;
9507 wxDC * _arg0;
9508 PyObject * _argo0 = 0;
9509 char *_kwnames[] = { "self", NULL };
9510
9511 self = self;
9512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9513 return NULL;
9514 if (_argo0) {
9515 if (_argo0 == Py_None) { _arg0 = NULL; }
9516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9518 return NULL;
9519 }
9520 }
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 wxDC_ResetBoundingBox(_arg0);
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) return NULL;
9527 } Py_INCREF(Py_None);
9528 _resultobj = Py_None;
9529 return _resultobj;
9530 }
9531
9532 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9533 PyObject * _resultobj;
9534 wxDC * _arg0;
9535 int * _arg1;
9536 int temp;
9537 int * _arg2;
9538 int temp0;
9539 int * _arg3;
9540 int temp1;
9541 int * _arg4;
9542 int temp2;
9543 PyObject * _argo0 = 0;
9544 char *_kwnames[] = { "self", NULL };
9545
9546 self = self;
9547 {
9548 _arg1 = &temp;
9549 }
9550 {
9551 _arg2 = &temp0;
9552 }
9553 {
9554 _arg3 = &temp1;
9555 }
9556 {
9557 _arg4 = &temp2;
9558 }
9559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9560 return NULL;
9561 if (_argo0) {
9562 if (_argo0 == Py_None) { _arg0 = NULL; }
9563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9565 return NULL;
9566 }
9567 }
9568 {
9569 PyThreadState* __tstate = wxPyBeginAllowThreads();
9570 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9571
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) return NULL;
9574 } Py_INCREF(Py_None);
9575 _resultobj = Py_None;
9576 {
9577 PyObject *o;
9578 o = PyInt_FromLong((long) (*_arg1));
9579 _resultobj = t_output_helper(_resultobj, o);
9580 }
9581 {
9582 PyObject *o;
9583 o = PyInt_FromLong((long) (*_arg2));
9584 _resultobj = t_output_helper(_resultobj, o);
9585 }
9586 {
9587 PyObject *o;
9588 o = PyInt_FromLong((long) (*_arg3));
9589 _resultobj = t_output_helper(_resultobj, o);
9590 }
9591 {
9592 PyObject *o;
9593 o = PyInt_FromLong((long) (*_arg4));
9594 _resultobj = t_output_helper(_resultobj, o);
9595 }
9596 return _resultobj;
9597 }
9598
9599 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9600 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9601 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9602 int numObjs = 0;
9603 int numPens = 0;
9604 wxPen* pen;
9605 PyObject* obj;
9606 int x1, y1;
9607 int i = 0;
9608
9609 if (!PySequence_Check(pyPoints)) {
9610 goto err0;
9611 }
9612 if (!PySequence_Check(pyPens)) {
9613 goto err1;
9614 }
9615 numObjs = PySequence_Length(pyPoints);
9616 numPens = PySequence_Length(pyPens);
9617
9618 for (i = 0; i < numObjs; i++) {
9619 // Use a new pen?
9620 if (i < numPens) {
9621 if (isFastPens) {
9622 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9623 }
9624 else {
9625 obj = PySequence_GetItem(pyPens, i);
9626 }
9627 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9628 if (!isFastPens)
9629 Py_DECREF(obj);
9630 goto err1;
9631 }
9632
9633 self->SetPen(*pen);
9634 if (!isFastPens)
9635 Py_DECREF(obj);
9636 }
9637
9638 // Get the point coordinants
9639 if (isFastSeq) {
9640 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9641 }
9642 else {
9643 obj = PySequence_GetItem(pyPoints, i);
9644 }
9645 if (! _2int_seq_helper(obj, &x1, &y1)) {
9646 if (!isFastPens)
9647 Py_DECREF(obj);
9648 goto err0;
9649 }
9650
9651 // Now draw the point
9652 self->DrawPoint(x1, y1);
9653
9654 if (!isFastSeq)
9655 Py_DECREF(obj);
9656 }
9657
9658 Py_INCREF(Py_None);
9659 return Py_None;
9660
9661 err1:
9662 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9663 return NULL;
9664 err0:
9665 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9666 return NULL;
9667 }
9668 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject * _resultobj;
9670 PyObject * _result;
9671 wxDC * _arg0;
9672 PyObject * _arg1;
9673 PyObject * _arg2;
9674 PyObject * _argo0 = 0;
9675 PyObject * _obj1 = 0;
9676 PyObject * _obj2 = 0;
9677 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9678
9679 self = self;
9680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9681 return NULL;
9682 if (_argo0) {
9683 if (_argo0 == Py_None) { _arg0 = NULL; }
9684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9686 return NULL;
9687 }
9688 }
9689 {
9690 _arg1 = _obj1;
9691 }
9692 {
9693 _arg2 = _obj2;
9694 }
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) return NULL;
9701 }{
9702 _resultobj = _result;
9703 }
9704 return _resultobj;
9705 }
9706
9707 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9708 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9709 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9710 int numObjs = 0;
9711 int numPens = 0;
9712 wxPen* pen;
9713 PyObject* obj;
9714 int x1, y1, x2, y2;
9715 int i = 0;
9716
9717 if (!PySequence_Check(pyLines)) {
9718 goto err0;
9719 }
9720 if (!PySequence_Check(pyPens)) {
9721 goto err1;
9722 }
9723 numObjs = PySequence_Length(pyLines);
9724 numPens = PySequence_Length(pyPens);
9725
9726 for (i = 0; i < numObjs; i++) {
9727 // Use a new pen?
9728 if (i < numPens) {
9729 if (isFastPens) {
9730 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9731 }
9732 else {
9733 obj = PySequence_GetItem(pyPens, i);
9734 }
9735 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9736 if (!isFastPens)
9737 Py_DECREF(obj);
9738 goto err1;
9739 }
9740
9741 self->SetPen(*pen);
9742 if (!isFastPens)
9743 Py_DECREF(obj);
9744 }
9745
9746 // Get the line coordinants
9747 if (isFastSeq) {
9748 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9749 }
9750 else {
9751 obj = PySequence_GetItem(pyLines, i);
9752 }
9753 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9754 if (!isFastPens)
9755 Py_DECREF(obj);
9756 goto err0;
9757 }
9758
9759 // Now draw the line
9760 self->DrawLine(x1, y1, x2, y2);
9761
9762 if (!isFastSeq)
9763 Py_DECREF(obj);
9764 }
9765
9766 Py_INCREF(Py_None);
9767 return Py_None;
9768
9769 err1:
9770 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9771 return NULL;
9772 err0:
9773 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9774 return NULL;
9775 }
9776 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9777 PyObject * _resultobj;
9778 PyObject * _result;
9779 wxDC * _arg0;
9780 PyObject * _arg1;
9781 PyObject * _arg2;
9782 PyObject * _argo0 = 0;
9783 PyObject * _obj1 = 0;
9784 PyObject * _obj2 = 0;
9785 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9786
9787 self = self;
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9789 return NULL;
9790 if (_argo0) {
9791 if (_argo0 == Py_None) { _arg0 = NULL; }
9792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9794 return NULL;
9795 }
9796 }
9797 {
9798 _arg1 = _obj1;
9799 }
9800 {
9801 _arg2 = _obj2;
9802 }
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9806
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) return NULL;
9809 }{
9810 _resultobj = _result;
9811 }
9812 return _resultobj;
9813 }
9814
9815 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9816 wxMemoryDC *src;
9817 wxDC *dest;
9818 src = (wxMemoryDC *) ptr;
9819 dest = (wxDC *) src;
9820 return (void *) dest;
9821 }
9822
9823 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9824 wxMemoryDC *src;
9825 wxObject *dest;
9826 src = (wxMemoryDC *) ptr;
9827 dest = (wxObject *) src;
9828 return (void *) dest;
9829 }
9830
9831 #define new_wxMemoryDC() (new wxMemoryDC())
9832 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject * _resultobj;
9834 wxMemoryDC * _result;
9835 char *_kwnames[] = { NULL };
9836 char _ptemp[128];
9837
9838 self = self;
9839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9840 return NULL;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 _result = (wxMemoryDC *)new_wxMemoryDC();
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) return NULL;
9847 } if (_result) {
9848 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9849 _resultobj = Py_BuildValue("s",_ptemp);
9850 } else {
9851 Py_INCREF(Py_None);
9852 _resultobj = Py_None;
9853 }
9854 return _resultobj;
9855 }
9856
9857 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9858 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject * _resultobj;
9860 wxMemoryDC * _arg0;
9861 wxBitmap * _arg1;
9862 PyObject * _argo0 = 0;
9863 PyObject * _argo1 = 0;
9864 char *_kwnames[] = { "self","bitmap", NULL };
9865
9866 self = self;
9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9868 return NULL;
9869 if (_argo0) {
9870 if (_argo0 == Py_None) { _arg0 = NULL; }
9871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9873 return NULL;
9874 }
9875 }
9876 if (_argo1) {
9877 if (_argo1 == Py_None) { _arg1 = NULL; }
9878 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9879 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9880 return NULL;
9881 }
9882 }
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 wxMemoryDC_SelectObject(_arg0,*_arg1);
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) return NULL;
9889 } Py_INCREF(Py_None);
9890 _resultobj = Py_None;
9891 return _resultobj;
9892 }
9893
9894 static void *SwigwxScreenDCTowxDC(void *ptr) {
9895 wxScreenDC *src;
9896 wxDC *dest;
9897 src = (wxScreenDC *) ptr;
9898 dest = (wxDC *) src;
9899 return (void *) dest;
9900 }
9901
9902 static void *SwigwxScreenDCTowxObject(void *ptr) {
9903 wxScreenDC *src;
9904 wxObject *dest;
9905 src = (wxScreenDC *) ptr;
9906 dest = (wxObject *) src;
9907 return (void *) dest;
9908 }
9909
9910 #define new_wxScreenDC() (new wxScreenDC())
9911 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9912 PyObject * _resultobj;
9913 wxScreenDC * _result;
9914 char *_kwnames[] = { NULL };
9915 char _ptemp[128];
9916
9917 self = self;
9918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9919 return NULL;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 _result = (wxScreenDC *)new_wxScreenDC();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) return NULL;
9926 } if (_result) {
9927 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9928 _resultobj = Py_BuildValue("s",_ptemp);
9929 } else {
9930 Py_INCREF(Py_None);
9931 _resultobj = Py_None;
9932 }
9933 return _resultobj;
9934 }
9935
9936 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9937 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9938 PyObject * _resultobj;
9939 bool _result;
9940 wxScreenDC * _arg0;
9941 wxWindow * _arg1;
9942 PyObject * _argo0 = 0;
9943 PyObject * _argo1 = 0;
9944 char *_kwnames[] = { "self","window", NULL };
9945
9946 self = self;
9947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9948 return NULL;
9949 if (_argo0) {
9950 if (_argo0 == Py_None) { _arg0 = NULL; }
9951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9953 return NULL;
9954 }
9955 }
9956 if (_argo1) {
9957 if (_argo1 == Py_None) { _arg1 = NULL; }
9958 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9959 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9960 return NULL;
9961 }
9962 }
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9966
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) return NULL;
9969 } _resultobj = Py_BuildValue("i",_result);
9970 return _resultobj;
9971 }
9972
9973 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9974 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9975 PyObject * _resultobj;
9976 bool _result;
9977 wxScreenDC * _arg0;
9978 wxRect * _arg1 = (wxRect *) NULL;
9979 PyObject * _argo0 = 0;
9980 wxRect temp;
9981 PyObject * _obj1 = 0;
9982 char *_kwnames[] = { "self","rect", NULL };
9983
9984 self = self;
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9986 return NULL;
9987 if (_argo0) {
9988 if (_argo0 == Py_None) { _arg0 = NULL; }
9989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9991 return NULL;
9992 }
9993 }
9994 if (_obj1)
9995 {
9996 _arg1 = &temp;
9997 if (! wxRect_helper(_obj1, &_arg1))
9998 return NULL;
9999 }
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) return NULL;
10006 } _resultobj = Py_BuildValue("i",_result);
10007 return _resultobj;
10008 }
10009
10010 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10011 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10012 PyObject * _resultobj;
10013 bool _result;
10014 wxScreenDC * _arg0;
10015 PyObject * _argo0 = 0;
10016 char *_kwnames[] = { "self", NULL };
10017
10018 self = self;
10019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
10020 return NULL;
10021 if (_argo0) {
10022 if (_argo0 == Py_None) { _arg0 = NULL; }
10023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10025 return NULL;
10026 }
10027 }
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
10031
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) return NULL;
10034 } _resultobj = Py_BuildValue("i",_result);
10035 return _resultobj;
10036 }
10037
10038 static void *SwigwxClientDCTowxDC(void *ptr) {
10039 wxClientDC *src;
10040 wxDC *dest;
10041 src = (wxClientDC *) ptr;
10042 dest = (wxDC *) src;
10043 return (void *) dest;
10044 }
10045
10046 static void *SwigwxClientDCTowxObject(void *ptr) {
10047 wxClientDC *src;
10048 wxObject *dest;
10049 src = (wxClientDC *) ptr;
10050 dest = (wxObject *) src;
10051 return (void *) dest;
10052 }
10053
10054 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10055 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10056 PyObject * _resultobj;
10057 wxClientDC * _result;
10058 wxWindow * _arg0;
10059 PyObject * _argo0 = 0;
10060 char *_kwnames[] = { "win", NULL };
10061 char _ptemp[128];
10062
10063 self = self;
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10065 return NULL;
10066 if (_argo0) {
10067 if (_argo0 == Py_None) { _arg0 = NULL; }
10068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10070 return NULL;
10071 }
10072 }
10073 {
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 _result = (wxClientDC *)new_wxClientDC(_arg0);
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) return NULL;
10079 } if (_result) {
10080 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10081 _resultobj = Py_BuildValue("s",_ptemp);
10082 } else {
10083 Py_INCREF(Py_None);
10084 _resultobj = Py_None;
10085 }
10086 return _resultobj;
10087 }
10088
10089 static void *SwigwxPaintDCTowxDC(void *ptr) {
10090 wxPaintDC *src;
10091 wxDC *dest;
10092 src = (wxPaintDC *) ptr;
10093 dest = (wxDC *) src;
10094 return (void *) dest;
10095 }
10096
10097 static void *SwigwxPaintDCTowxObject(void *ptr) {
10098 wxPaintDC *src;
10099 wxObject *dest;
10100 src = (wxPaintDC *) ptr;
10101 dest = (wxObject *) src;
10102 return (void *) dest;
10103 }
10104
10105 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10106 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10107 PyObject * _resultobj;
10108 wxPaintDC * _result;
10109 wxWindow * _arg0;
10110 PyObject * _argo0 = 0;
10111 char *_kwnames[] = { "win", NULL };
10112 char _ptemp[128];
10113
10114 self = self;
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10116 return NULL;
10117 if (_argo0) {
10118 if (_argo0 == Py_None) { _arg0 = NULL; }
10119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10121 return NULL;
10122 }
10123 }
10124 {
10125 PyThreadState* __tstate = wxPyBeginAllowThreads();
10126 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10127
10128 wxPyEndAllowThreads(__tstate);
10129 if (PyErr_Occurred()) return NULL;
10130 } if (_result) {
10131 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10132 _resultobj = Py_BuildValue("s",_ptemp);
10133 } else {
10134 Py_INCREF(Py_None);
10135 _resultobj = Py_None;
10136 }
10137 return _resultobj;
10138 }
10139
10140 static void *SwigwxWindowDCTowxDC(void *ptr) {
10141 wxWindowDC *src;
10142 wxDC *dest;
10143 src = (wxWindowDC *) ptr;
10144 dest = (wxDC *) src;
10145 return (void *) dest;
10146 }
10147
10148 static void *SwigwxWindowDCTowxObject(void *ptr) {
10149 wxWindowDC *src;
10150 wxObject *dest;
10151 src = (wxWindowDC *) ptr;
10152 dest = (wxObject *) src;
10153 return (void *) dest;
10154 }
10155
10156 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10157 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject * _resultobj;
10159 wxWindowDC * _result;
10160 wxWindow * _arg0;
10161 PyObject * _argo0 = 0;
10162 char *_kwnames[] = { "win", NULL };
10163 char _ptemp[128];
10164
10165 self = self;
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10167 return NULL;
10168 if (_argo0) {
10169 if (_argo0 == Py_None) { _arg0 = NULL; }
10170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10172 return NULL;
10173 }
10174 }
10175 {
10176 PyThreadState* __tstate = wxPyBeginAllowThreads();
10177 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10178
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) return NULL;
10181 } if (_result) {
10182 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10183 _resultobj = Py_BuildValue("s",_ptemp);
10184 } else {
10185 Py_INCREF(Py_None);
10186 _resultobj = Py_None;
10187 }
10188 return _resultobj;
10189 }
10190
10191 static void *SwigwxMetaFileTowxObject(void *ptr) {
10192 wxMetaFile *src;
10193 wxObject *dest;
10194 src = (wxMetaFile *) ptr;
10195 dest = (wxObject *) src;
10196 return (void *) dest;
10197 }
10198
10199 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10200 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10201 PyObject * _resultobj;
10202 wxMetaFile * _result;
10203 wxString * _arg0 = (wxString *) &wxEmptyString;
10204 PyObject * _obj0 = 0;
10205 char *_kwnames[] = { "filename", NULL };
10206 char _ptemp[128];
10207
10208 self = self;
10209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10210 return NULL;
10211 if (_obj0)
10212 {
10213 #if PYTHON_API_VERSION >= 1009
10214 char* tmpPtr; int tmpSize;
10215 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10216 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10217 return NULL;
10218 }
10219 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10220 return NULL;
10221 _arg0 = new wxString(tmpPtr, tmpSize);
10222 #else
10223 if (!PyString_Check(_obj0)) {
10224 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10225 return NULL;
10226 }
10227 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10228 #endif
10229 }
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) return NULL;
10236 } if (_result) {
10237 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10238 _resultobj = Py_BuildValue("s",_ptemp);
10239 } else {
10240 Py_INCREF(Py_None);
10241 _resultobj = Py_None;
10242 }
10243 {
10244 if (_obj0)
10245 delete _arg0;
10246 }
10247 return _resultobj;
10248 }
10249
10250 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10251 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject * _resultobj;
10253 wxMetaFile * _arg0;
10254 PyObject * _argo0 = 0;
10255 char *_kwnames[] = { "self", NULL };
10256
10257 self = self;
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
10259 return NULL;
10260 if (_argo0) {
10261 if (_argo0 == Py_None) { _arg0 = NULL; }
10262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10264 return NULL;
10265 }
10266 }
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 delete_wxMetaFile(_arg0);
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) return NULL;
10273 } Py_INCREF(Py_None);
10274 _resultobj = Py_None;
10275 return _resultobj;
10276 }
10277
10278 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10279 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10280 PyObject * _resultobj;
10281 bool _result;
10282 wxMetaFile * _arg0;
10283 PyObject * _argo0 = 0;
10284 char *_kwnames[] = { "self", NULL };
10285
10286 self = self;
10287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
10288 return NULL;
10289 if (_argo0) {
10290 if (_argo0 == Py_None) { _arg0 = NULL; }
10291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10293 return NULL;
10294 }
10295 }
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 _result = (bool )wxMetaFile_Ok(_arg0);
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) return NULL;
10302 } _resultobj = Py_BuildValue("i",_result);
10303 return _resultobj;
10304 }
10305
10306 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10307 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
10308 PyObject * _resultobj;
10309 bool _result;
10310 wxMetaFile * _arg0;
10311 int _arg1 = (int ) 0;
10312 int _arg2 = (int ) 0;
10313 PyObject * _argo0 = 0;
10314 char *_kwnames[] = { "self","width","height", NULL };
10315
10316 self = self;
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
10318 return NULL;
10319 if (_argo0) {
10320 if (_argo0 == Py_None) { _arg0 = NULL; }
10321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10323 return NULL;
10324 }
10325 }
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10329
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) return NULL;
10332 } _resultobj = Py_BuildValue("i",_result);
10333 return _resultobj;
10334 }
10335
10336 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10337 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10338 PyObject * _resultobj;
10339 wxSize * _result;
10340 wxMetaFile * _arg0;
10341 PyObject * _argo0 = 0;
10342 char *_kwnames[] = { "self", NULL };
10343 char _ptemp[128];
10344
10345 self = self;
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10347 return NULL;
10348 if (_argo0) {
10349 if (_argo0 == Py_None) { _arg0 = NULL; }
10350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10352 return NULL;
10353 }
10354 }
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10358
10359 wxPyEndAllowThreads(__tstate);
10360 if (PyErr_Occurred()) return NULL;
10361 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10362 _resultobj = Py_BuildValue("s",_ptemp);
10363 return _resultobj;
10364 }
10365
10366 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10367 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10368 PyObject * _resultobj;
10369 int _result;
10370 wxMetaFile * _arg0;
10371 PyObject * _argo0 = 0;
10372 char *_kwnames[] = { "self", NULL };
10373
10374 self = self;
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10376 return NULL;
10377 if (_argo0) {
10378 if (_argo0 == Py_None) { _arg0 = NULL; }
10379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10381 return NULL;
10382 }
10383 }
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 _result = (int )wxMetaFile_GetWidth(_arg0);
10387
10388 wxPyEndAllowThreads(__tstate);
10389 if (PyErr_Occurred()) return NULL;
10390 } _resultobj = Py_BuildValue("i",_result);
10391 return _resultobj;
10392 }
10393
10394 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10395 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10396 PyObject * _resultobj;
10397 int _result;
10398 wxMetaFile * _arg0;
10399 PyObject * _argo0 = 0;
10400 char *_kwnames[] = { "self", NULL };
10401
10402 self = self;
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
10404 return NULL;
10405 if (_argo0) {
10406 if (_argo0 == Py_None) { _arg0 = NULL; }
10407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10409 return NULL;
10410 }
10411 }
10412 {
10413 PyThreadState* __tstate = wxPyBeginAllowThreads();
10414 _result = (int )wxMetaFile_GetHeight(_arg0);
10415
10416 wxPyEndAllowThreads(__tstate);
10417 if (PyErr_Occurred()) return NULL;
10418 } _resultobj = Py_BuildValue("i",_result);
10419 return _resultobj;
10420 }
10421
10422 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10423 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
10424 PyObject * _resultobj;
10425 wxString * _result;
10426 wxMetaFile * _arg0;
10427 PyObject * _argo0 = 0;
10428 char *_kwnames[] = { "self", NULL };
10429
10430 self = self;
10431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
10432 return NULL;
10433 if (_argo0) {
10434 if (_argo0 == Py_None) { _arg0 = NULL; }
10435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10437 return NULL;
10438 }
10439 }
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
10443 _result = (wxString *) &_result_ref;
10444
10445 wxPyEndAllowThreads(__tstate);
10446 if (PyErr_Occurred()) return NULL;
10447 }{
10448 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10449 }
10450 return _resultobj;
10451 }
10452
10453 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
10454 wxMetaFileDC *src;
10455 wxDC *dest;
10456 src = (wxMetaFileDC *) ptr;
10457 dest = (wxDC *) src;
10458 return (void *) dest;
10459 }
10460
10461 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
10462 wxMetaFileDC *src;
10463 wxObject *dest;
10464 src = (wxMetaFileDC *) ptr;
10465 dest = (wxObject *) src;
10466 return (void *) dest;
10467 }
10468
10469 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10470 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject * _resultobj;
10472 wxMetaFileDC * _result;
10473 wxString * _arg0 = (wxString *) &wxEmptyString;
10474 int _arg1 = (int ) 0;
10475 int _arg2 = (int ) 0;
10476 wxString * _arg3 = (wxString *) &wxEmptyString;
10477 PyObject * _obj0 = 0;
10478 PyObject * _obj3 = 0;
10479 char *_kwnames[] = { "filename","width","height","description", NULL };
10480 char _ptemp[128];
10481
10482 self = self;
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
10484 return NULL;
10485 if (_obj0)
10486 {
10487 #if PYTHON_API_VERSION >= 1009
10488 char* tmpPtr; int tmpSize;
10489 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10490 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10491 return NULL;
10492 }
10493 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10494 return NULL;
10495 _arg0 = new wxString(tmpPtr, tmpSize);
10496 #else
10497 if (!PyString_Check(_obj0)) {
10498 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10499 return NULL;
10500 }
10501 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10502 #endif
10503 }
10504 if (_obj3)
10505 {
10506 #if PYTHON_API_VERSION >= 1009
10507 char* tmpPtr; int tmpSize;
10508 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
10509 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10510 return NULL;
10511 }
10512 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
10513 return NULL;
10514 _arg3 = new wxString(tmpPtr, tmpSize);
10515 #else
10516 if (!PyString_Check(_obj3)) {
10517 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10518 return NULL;
10519 }
10520 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
10521 #endif
10522 }
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
10526
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) return NULL;
10529 } if (_result) {
10530 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
10531 _resultobj = Py_BuildValue("s",_ptemp);
10532 } else {
10533 Py_INCREF(Py_None);
10534 _resultobj = Py_None;
10535 }
10536 {
10537 if (_obj0)
10538 delete _arg0;
10539 }
10540 {
10541 if (_obj3)
10542 delete _arg3;
10543 }
10544 return _resultobj;
10545 }
10546
10547 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10548 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
10549 PyObject * _resultobj;
10550 wxMetaFile * _result;
10551 wxMetaFileDC * _arg0;
10552 PyObject * _argo0 = 0;
10553 char *_kwnames[] = { "self", NULL };
10554 char _ptemp[128];
10555
10556 self = self;
10557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
10558 return NULL;
10559 if (_argo0) {
10560 if (_argo0 == Py_None) { _arg0 = NULL; }
10561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
10562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10563 return NULL;
10564 }
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) return NULL;
10572 } if (_result) {
10573 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10574 _resultobj = Py_BuildValue("s",_ptemp);
10575 } else {
10576 Py_INCREF(Py_None);
10577 _resultobj = Py_None;
10578 }
10579 return _resultobj;
10580 }
10581
10582 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10583 wxPalette *src;
10584 wxGDIObject *dest;
10585 src = (wxPalette *) ptr;
10586 dest = (wxGDIObject *) src;
10587 return (void *) dest;
10588 }
10589
10590 static void *SwigwxPaletteTowxObject(void *ptr) {
10591 wxPalette *src;
10592 wxObject *dest;
10593 src = (wxPalette *) ptr;
10594 dest = (wxObject *) src;
10595 return (void *) dest;
10596 }
10597
10598 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10599 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject * _resultobj;
10601 wxPalette * _result;
10602 int _arg0;
10603 byte * _arg1;
10604 byte * _arg2;
10605 byte * _arg3;
10606 PyObject * _obj1 = 0;
10607 PyObject * _obj2 = 0;
10608 PyObject * _obj3 = 0;
10609 char *_kwnames[] = { "choices","choices","choices", NULL };
10610 char _ptemp[128];
10611
10612 self = self;
10613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10614 return NULL;
10615 {
10616 _arg1 = byte_LIST_helper(_obj1);
10617 if (_arg1 == NULL) {
10618 return NULL;
10619 }
10620 }
10621 {
10622 _arg2 = byte_LIST_helper(_obj2);
10623 if (_arg2 == NULL) {
10624 return NULL;
10625 }
10626 }
10627 if (_obj3)
10628 {
10629 _arg3 = byte_LIST_helper(_obj3);
10630 if (_arg3 == NULL) {
10631 return NULL;
10632 }
10633 }
10634 {
10635 if (_obj1) {
10636 _arg0 = PyList_Size(_obj1);
10637 }
10638 else {
10639 _arg0 = 0;
10640 }
10641 }
10642 {
10643 PyThreadState* __tstate = wxPyBeginAllowThreads();
10644 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10645
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) return NULL;
10648 } if (_result) {
10649 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10650 _resultobj = Py_BuildValue("s",_ptemp);
10651 } else {
10652 Py_INCREF(Py_None);
10653 _resultobj = Py_None;
10654 }
10655 {
10656 delete [] _arg1;
10657 }
10658 {
10659 delete [] _arg2;
10660 }
10661 {
10662 delete [] _arg3;
10663 }
10664 return _resultobj;
10665 }
10666
10667 #define delete_wxPalette(_swigobj) (delete _swigobj)
10668 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject * _resultobj;
10670 wxPalette * _arg0;
10671 PyObject * _argo0 = 0;
10672 char *_kwnames[] = { "self", NULL };
10673
10674 self = self;
10675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10676 return NULL;
10677 if (_argo0) {
10678 if (_argo0 == Py_None) { _arg0 = NULL; }
10679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10681 return NULL;
10682 }
10683 }
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 delete_wxPalette(_arg0);
10687
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) return NULL;
10690 } Py_INCREF(Py_None);
10691 _resultobj = Py_None;
10692 return _resultobj;
10693 }
10694
10695 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10696 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10697 PyObject * _resultobj;
10698 int _result;
10699 wxPalette * _arg0;
10700 byte _arg1;
10701 byte _arg2;
10702 byte _arg3;
10703 PyObject * _argo0 = 0;
10704 char *_kwnames[] = { "self","red","green","blue", NULL };
10705
10706 self = self;
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10708 return NULL;
10709 if (_argo0) {
10710 if (_argo0 == Py_None) { _arg0 = NULL; }
10711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10713 return NULL;
10714 }
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) return NULL;
10722 } _resultobj = Py_BuildValue("i",_result);
10723 return _resultobj;
10724 }
10725
10726 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10727 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10728 PyObject * _resultobj;
10729 bool _result;
10730 wxPalette * _arg0;
10731 int _arg1;
10732 byte * _arg2;
10733 int temp;
10734 byte * _arg3;
10735 int temp0;
10736 byte * _arg4;
10737 int temp1;
10738 PyObject * _argo0 = 0;
10739 char *_kwnames[] = { "self","pixel", NULL };
10740
10741 self = self;
10742 {
10743 _arg2 = (byte*)&temp;
10744 }
10745 {
10746 _arg3 = (byte*)&temp0;
10747 }
10748 {
10749 _arg4 = (byte*)&temp1;
10750 }
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
10752 return NULL;
10753 if (_argo0) {
10754 if (_argo0 == Py_None) { _arg0 = NULL; }
10755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10757 return NULL;
10758 }
10759 }
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) return NULL;
10766 } _resultobj = Py_BuildValue("i",_result);
10767 {
10768 PyObject *o;
10769 o = PyInt_FromLong((long) (*_arg2));
10770 _resultobj = t_output_helper(_resultobj, o);
10771 }
10772 {
10773 PyObject *o;
10774 o = PyInt_FromLong((long) (*_arg3));
10775 _resultobj = t_output_helper(_resultobj, o);
10776 }
10777 {
10778 PyObject *o;
10779 o = PyInt_FromLong((long) (*_arg4));
10780 _resultobj = t_output_helper(_resultobj, o);
10781 }
10782 return _resultobj;
10783 }
10784
10785 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10786 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10787 PyObject * _resultobj;
10788 bool _result;
10789 wxPalette * _arg0;
10790 PyObject * _argo0 = 0;
10791 char *_kwnames[] = { "self", NULL };
10792
10793 self = self;
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10795 return NULL;
10796 if (_argo0) {
10797 if (_argo0 == Py_None) { _arg0 = NULL; }
10798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10800 return NULL;
10801 }
10802 }
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 _result = (bool )wxPalette_Ok(_arg0);
10806
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) return NULL;
10809 } _resultobj = Py_BuildValue("i",_result);
10810 return _resultobj;
10811 }
10812
10813 static void *SwigwxImageListTowxObject(void *ptr) {
10814 wxImageList *src;
10815 wxObject *dest;
10816 src = (wxImageList *) ptr;
10817 dest = (wxObject *) src;
10818 return (void *) dest;
10819 }
10820
10821 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10822 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject * _resultobj;
10824 wxImageList * _result;
10825 int _arg0;
10826 int _arg1;
10827 int _arg2 = (int ) TRUE;
10828 int _arg3 = (int ) 1;
10829 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10830 char _ptemp[128];
10831
10832 self = self;
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10834 return NULL;
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) return NULL;
10841 } if (_result) {
10842 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10843 _resultobj = Py_BuildValue("s",_ptemp);
10844 } else {
10845 Py_INCREF(Py_None);
10846 _resultobj = Py_None;
10847 }
10848 return _resultobj;
10849 }
10850
10851 #define delete_wxImageList(_swigobj) (delete _swigobj)
10852 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10853 PyObject * _resultobj;
10854 wxImageList * _arg0;
10855 PyObject * _argo0 = 0;
10856 char *_kwnames[] = { "self", NULL };
10857
10858 self = self;
10859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10860 return NULL;
10861 if (_argo0) {
10862 if (_argo0 == Py_None) { _arg0 = NULL; }
10863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10865 return NULL;
10866 }
10867 }
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 delete_wxImageList(_arg0);
10871
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) return NULL;
10874 } Py_INCREF(Py_None);
10875 _resultobj = Py_None;
10876 return _resultobj;
10877 }
10878
10879 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10880 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10881 PyObject * _resultobj;
10882 int _result;
10883 wxImageList * _arg0;
10884 wxBitmap * _arg1;
10885 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10886 PyObject * _argo0 = 0;
10887 PyObject * _argo1 = 0;
10888 PyObject * _argo2 = 0;
10889 char *_kwnames[] = { "self","bitmap","mask", NULL };
10890
10891 self = self;
10892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10893 return NULL;
10894 if (_argo0) {
10895 if (_argo0 == Py_None) { _arg0 = NULL; }
10896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10898 return NULL;
10899 }
10900 }
10901 if (_argo1) {
10902 if (_argo1 == Py_None) { _arg1 = NULL; }
10903 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10904 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10905 return NULL;
10906 }
10907 }
10908 if (_argo2) {
10909 if (_argo2 == Py_None) { _arg2 = NULL; }
10910 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10911 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10912 return NULL;
10913 }
10914 }
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) return NULL;
10921 } _resultobj = Py_BuildValue("i",_result);
10922 return _resultobj;
10923 }
10924
10925 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10926 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject * _resultobj;
10928 int _result;
10929 wxImageList * _arg0;
10930 wxBitmap * _arg1;
10931 wxColour * _arg2;
10932 PyObject * _argo0 = 0;
10933 PyObject * _argo1 = 0;
10934 wxColour temp;
10935 PyObject * _obj2 = 0;
10936 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10937
10938 self = self;
10939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10940 return NULL;
10941 if (_argo0) {
10942 if (_argo0 == Py_None) { _arg0 = NULL; }
10943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10945 return NULL;
10946 }
10947 }
10948 if (_argo1) {
10949 if (_argo1 == Py_None) { _arg1 = NULL; }
10950 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10951 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10952 return NULL;
10953 }
10954 }
10955 {
10956 _arg2 = &temp;
10957 if (! wxColour_helper(_obj2, &_arg2))
10958 return NULL;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) return NULL;
10966 } _resultobj = Py_BuildValue("i",_result);
10967 return _resultobj;
10968 }
10969
10970 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10971 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10972 PyObject * _resultobj;
10973 int _result;
10974 wxImageList * _arg0;
10975 wxIcon * _arg1;
10976 PyObject * _argo0 = 0;
10977 PyObject * _argo1 = 0;
10978 char *_kwnames[] = { "self","icon", NULL };
10979
10980 self = self;
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10982 return NULL;
10983 if (_argo0) {
10984 if (_argo0 == Py_None) { _arg0 = NULL; }
10985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10987 return NULL;
10988 }
10989 }
10990 if (_argo1) {
10991 if (_argo1 == Py_None) { _arg1 = NULL; }
10992 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10993 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10994 return NULL;
10995 }
10996 }
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11000
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) return NULL;
11003 } _resultobj = Py_BuildValue("i",_result);
11004 return _resultobj;
11005 }
11006
11007 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
11008 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11009 PyObject * _resultobj;
11010 bool _result;
11011 wxImageList * _arg0;
11012 int _arg1;
11013 wxBitmap * _arg2;
11014 PyObject * _argo0 = 0;
11015 PyObject * _argo2 = 0;
11016 char *_kwnames[] = { "self","index","bitmap", NULL };
11017
11018 self = self;
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
11020 return NULL;
11021 if (_argo0) {
11022 if (_argo0 == Py_None) { _arg0 = NULL; }
11023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11025 return NULL;
11026 }
11027 }
11028 if (_argo2) {
11029 if (_argo2 == Py_None) { _arg2 = NULL; }
11030 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11031 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11032 return NULL;
11033 }
11034 }
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) return NULL;
11041 } _resultobj = Py_BuildValue("i",_result);
11042 return _resultobj;
11043 }
11044
11045 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11046 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
11047 PyObject * _resultobj;
11048 bool _result;
11049 wxImageList * _arg0;
11050 int _arg1;
11051 wxDC * _arg2;
11052 int _arg3;
11053 int _arg4;
11054 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11055 bool _arg6 = (bool ) FALSE;
11056 PyObject * _argo0 = 0;
11057 PyObject * _argo2 = 0;
11058 int tempbool6 = (int) FALSE;
11059 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11060
11061 self = self;
11062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11063 return NULL;
11064 if (_argo0) {
11065 if (_argo0 == Py_None) { _arg0 = NULL; }
11066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11068 return NULL;
11069 }
11070 }
11071 if (_argo2) {
11072 if (_argo2 == Py_None) { _arg2 = NULL; }
11073 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11074 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11075 return NULL;
11076 }
11077 }
11078 _arg6 = (bool ) tempbool6;
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11082
11083 wxPyEndAllowThreads(__tstate);
11084 if (PyErr_Occurred()) return NULL;
11085 } _resultobj = Py_BuildValue("i",_result);
11086 return _resultobj;
11087 }
11088
11089 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11090 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11091 PyObject * _resultobj;
11092 int _result;
11093 wxImageList * _arg0;
11094 PyObject * _argo0 = 0;
11095 char *_kwnames[] = { "self", NULL };
11096
11097 self = self;
11098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11099 return NULL;
11100 if (_argo0) {
11101 if (_argo0 == Py_None) { _arg0 = NULL; }
11102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11104 return NULL;
11105 }
11106 }
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 _result = (int )wxImageList_GetImageCount(_arg0);
11110
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) return NULL;
11113 } _resultobj = Py_BuildValue("i",_result);
11114 return _resultobj;
11115 }
11116
11117 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11118 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject * _resultobj;
11120 bool _result;
11121 wxImageList * _arg0;
11122 int _arg1;
11123 PyObject * _argo0 = 0;
11124 char *_kwnames[] = { "self","index", NULL };
11125
11126 self = self;
11127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11128 return NULL;
11129 if (_argo0) {
11130 if (_argo0 == Py_None) { _arg0 = NULL; }
11131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11133 return NULL;
11134 }
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) return NULL;
11142 } _resultobj = Py_BuildValue("i",_result);
11143 return _resultobj;
11144 }
11145
11146 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11147 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11148 PyObject * _resultobj;
11149 bool _result;
11150 wxImageList * _arg0;
11151 PyObject * _argo0 = 0;
11152 char *_kwnames[] = { "self", NULL };
11153
11154 self = self;
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11156 return NULL;
11157 if (_argo0) {
11158 if (_argo0 == Py_None) { _arg0 = NULL; }
11159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11161 return NULL;
11162 }
11163 }
11164 {
11165 PyThreadState* __tstate = wxPyBeginAllowThreads();
11166 _result = (bool )wxImageList_RemoveAll(_arg0);
11167
11168 wxPyEndAllowThreads(__tstate);
11169 if (PyErr_Occurred()) return NULL;
11170 } _resultobj = Py_BuildValue("i",_result);
11171 return _resultobj;
11172 }
11173
11174 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11175 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject * _resultobj;
11177 wxImageList * _arg0;
11178 int _arg1;
11179 int * _arg2;
11180 int temp;
11181 int * _arg3;
11182 int temp0;
11183 PyObject * _argo0 = 0;
11184 char *_kwnames[] = { "self","index", NULL };
11185
11186 self = self;
11187 {
11188 _arg2 = &temp;
11189 }
11190 {
11191 _arg3 = &temp0;
11192 }
11193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11194 return NULL;
11195 if (_argo0) {
11196 if (_argo0 == Py_None) { _arg0 = NULL; }
11197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11199 return NULL;
11200 }
11201 }
11202 {
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
11204 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
11205
11206 wxPyEndAllowThreads(__tstate);
11207 if (PyErr_Occurred()) return NULL;
11208 } Py_INCREF(Py_None);
11209 _resultobj = Py_None;
11210 {
11211 PyObject *o;
11212 o = PyInt_FromLong((long) (*_arg2));
11213 _resultobj = t_output_helper(_resultobj, o);
11214 }
11215 {
11216 PyObject *o;
11217 o = PyInt_FromLong((long) (*_arg3));
11218 _resultobj = t_output_helper(_resultobj, o);
11219 }
11220 return _resultobj;
11221 }
11222
11223 static void *SwigwxRegionTowxGDIObject(void *ptr) {
11224 wxRegion *src;
11225 wxGDIObject *dest;
11226 src = (wxRegion *) ptr;
11227 dest = (wxGDIObject *) src;
11228 return (void *) dest;
11229 }
11230
11231 static void *SwigwxRegionTowxObject(void *ptr) {
11232 wxRegion *src;
11233 wxObject *dest;
11234 src = (wxRegion *) ptr;
11235 dest = (wxObject *) src;
11236 return (void *) dest;
11237 }
11238
11239 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11240 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11241 PyObject * _resultobj;
11242 wxRegion * _result;
11243 long _arg0 = (long ) 0;
11244 long _arg1 = (long ) 0;
11245 long _arg2 = (long ) 0;
11246 long _arg3 = (long ) 0;
11247 char *_kwnames[] = { "x","y","width","height", NULL };
11248 char _ptemp[128];
11249
11250 self = self;
11251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11252 return NULL;
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
11256
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) return NULL;
11259 } if (_result) {
11260 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11261 _resultobj = Py_BuildValue("s",_ptemp);
11262 } else {
11263 Py_INCREF(Py_None);
11264 _resultobj = Py_None;
11265 }
11266 return _resultobj;
11267 }
11268
11269 #define delete_wxRegion(_swigobj) (delete _swigobj)
11270 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11271 PyObject * _resultobj;
11272 wxRegion * _arg0;
11273 PyObject * _argo0 = 0;
11274 char *_kwnames[] = { "self", NULL };
11275
11276 self = self;
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11278 return NULL;
11279 if (_argo0) {
11280 if (_argo0 == Py_None) { _arg0 = NULL; }
11281 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11283 return NULL;
11284 }
11285 }
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 delete_wxRegion(_arg0);
11289
11290 wxPyEndAllowThreads(__tstate);
11291 if (PyErr_Occurred()) return NULL;
11292 } Py_INCREF(Py_None);
11293 _resultobj = Py_None;
11294 return _resultobj;
11295 }
11296
11297 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11298 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11299 PyObject * _resultobj;
11300 wxRegion * _arg0;
11301 PyObject * _argo0 = 0;
11302 char *_kwnames[] = { "self", NULL };
11303
11304 self = self;
11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11306 return NULL;
11307 if (_argo0) {
11308 if (_argo0 == Py_None) { _arg0 = NULL; }
11309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11311 return NULL;
11312 }
11313 }
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 wxRegion_Clear(_arg0);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) return NULL;
11320 } Py_INCREF(Py_None);
11321 _resultobj = Py_None;
11322 return _resultobj;
11323 }
11324
11325 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
11326 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
11327 PyObject * _resultobj;
11328 bool _result;
11329 wxRegion * _arg0;
11330 wxCoord _arg1;
11331 wxCoord _arg2;
11332 PyObject * _argo0 = 0;
11333 char *_kwnames[] = { "self","x","y", NULL };
11334
11335 self = self;
11336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
11337 return NULL;
11338 if (_argo0) {
11339 if (_argo0 == Py_None) { _arg0 = NULL; }
11340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
11342 return NULL;
11343 }
11344 }
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
11348
11349 wxPyEndAllowThreads(__tstate);
11350 if (PyErr_Occurred()) return NULL;
11351 } _resultobj = Py_BuildValue("i",_result);
11352 return _resultobj;
11353 }
11354
11355 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11356 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11357 PyObject * _resultobj;
11358 wxRegionContain _result;
11359 wxRegion * _arg0;
11360 long _arg1;
11361 long _arg2;
11362 PyObject * _argo0 = 0;
11363 char *_kwnames[] = { "self","x","y", NULL };
11364
11365 self = self;
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11367 return NULL;
11368 if (_argo0) {
11369 if (_argo0 == Py_None) { _arg0 = NULL; }
11370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11372 return NULL;
11373 }
11374 }
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11378
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) return NULL;
11381 } _resultobj = Py_BuildValue("i",_result);
11382 return _resultobj;
11383 }
11384
11385 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11386 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject * _resultobj;
11388 wxRegionContain _result;
11389 wxRegion * _arg0;
11390 wxPoint * _arg1;
11391 PyObject * _argo0 = 0;
11392 wxPoint temp;
11393 PyObject * _obj1 = 0;
11394 char *_kwnames[] = { "self","pt", NULL };
11395
11396 self = self;
11397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11398 return NULL;
11399 if (_argo0) {
11400 if (_argo0 == Py_None) { _arg0 = NULL; }
11401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11403 return NULL;
11404 }
11405 }
11406 {
11407 _arg1 = &temp;
11408 if (! wxPoint_helper(_obj1, &_arg1))
11409 return NULL;
11410 }
11411 {
11412 PyThreadState* __tstate = wxPyBeginAllowThreads();
11413 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11414
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) return NULL;
11417 } _resultobj = Py_BuildValue("i",_result);
11418 return _resultobj;
11419 }
11420
11421 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11422 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject * _resultobj;
11424 wxRegionContain _result;
11425 wxRegion * _arg0;
11426 wxRect * _arg1;
11427 PyObject * _argo0 = 0;
11428 wxRect temp;
11429 PyObject * _obj1 = 0;
11430 char *_kwnames[] = { "self","rect", NULL };
11431
11432 self = self;
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
11434 return NULL;
11435 if (_argo0) {
11436 if (_argo0 == Py_None) { _arg0 = NULL; }
11437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11439 return NULL;
11440 }
11441 }
11442 {
11443 _arg1 = &temp;
11444 if (! wxRect_helper(_obj1, &_arg1))
11445 return NULL;
11446 }
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
11450
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) return NULL;
11453 } _resultobj = Py_BuildValue("i",_result);
11454 return _resultobj;
11455 }
11456
11457 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11458 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
11459 PyObject * _resultobj;
11460 wxRegionContain _result;
11461 wxRegion * _arg0;
11462 long _arg1;
11463 long _arg2;
11464 long _arg3;
11465 long _arg4;
11466 PyObject * _argo0 = 0;
11467 char *_kwnames[] = { "self","x","y","w","h", NULL };
11468
11469 self = self;
11470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11471 return NULL;
11472 if (_argo0) {
11473 if (_argo0 == Py_None) { _arg0 = NULL; }
11474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11476 return NULL;
11477 }
11478 }
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
11482
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) return NULL;
11485 } _resultobj = Py_BuildValue("i",_result);
11486 return _resultobj;
11487 }
11488
11489 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11490 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11491 PyObject * _resultobj;
11492 wxRect * _result;
11493 wxRegion * _arg0;
11494 PyObject * _argo0 = 0;
11495 char *_kwnames[] = { "self", NULL };
11496 char _ptemp[128];
11497
11498 self = self;
11499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
11500 return NULL;
11501 if (_argo0) {
11502 if (_argo0 == Py_None) { _arg0 = NULL; }
11503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11505 return NULL;
11506 }
11507 }
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 _result = new wxRect (wxRegion_GetBox(_arg0));
11511
11512 wxPyEndAllowThreads(__tstate);
11513 if (PyErr_Occurred()) return NULL;
11514 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11515 _resultobj = Py_BuildValue("s",_ptemp);
11516 return _resultobj;
11517 }
11518
11519 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11520 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
11521 PyObject * _resultobj;
11522 bool _result;
11523 wxRegion * _arg0;
11524 long _arg1;
11525 long _arg2;
11526 long _arg3;
11527 long _arg4;
11528 PyObject * _argo0 = 0;
11529 char *_kwnames[] = { "self","x","y","width","height", NULL };
11530
11531 self = self;
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11533 return NULL;
11534 if (_argo0) {
11535 if (_argo0 == Py_None) { _arg0 = NULL; }
11536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11538 return NULL;
11539 }
11540 }
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
11544
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) return NULL;
11547 } _resultobj = Py_BuildValue("i",_result);
11548 return _resultobj;
11549 }
11550
11551 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11552 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11553 PyObject * _resultobj;
11554 bool _result;
11555 wxRegion * _arg0;
11556 wxRect * _arg1;
11557 PyObject * _argo0 = 0;
11558 wxRect temp;
11559 PyObject * _obj1 = 0;
11560 char *_kwnames[] = { "self","rect", NULL };
11561
11562 self = self;
11563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11564 return NULL;
11565 if (_argo0) {
11566 if (_argo0 == Py_None) { _arg0 = NULL; }
11567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11569 return NULL;
11570 }
11571 }
11572 {
11573 _arg1 = &temp;
11574 if (! wxRect_helper(_obj1, &_arg1))
11575 return NULL;
11576 }
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11580
11581 wxPyEndAllowThreads(__tstate);
11582 if (PyErr_Occurred()) return NULL;
11583 } _resultobj = Py_BuildValue("i",_result);
11584 return _resultobj;
11585 }
11586
11587 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11588 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11589 PyObject * _resultobj;
11590 bool _result;
11591 wxRegion * _arg0;
11592 wxRegion * _arg1;
11593 PyObject * _argo0 = 0;
11594 PyObject * _argo1 = 0;
11595 char *_kwnames[] = { "self","region", NULL };
11596
11597 self = self;
11598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11599 return NULL;
11600 if (_argo0) {
11601 if (_argo0 == Py_None) { _arg0 = NULL; }
11602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11604 return NULL;
11605 }
11606 }
11607 if (_argo1) {
11608 if (_argo1 == Py_None) { _arg1 = NULL; }
11609 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11610 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11611 return NULL;
11612 }
11613 }
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11617
11618 wxPyEndAllowThreads(__tstate);
11619 if (PyErr_Occurred()) return NULL;
11620 } _resultobj = Py_BuildValue("i",_result);
11621 return _resultobj;
11622 }
11623
11624 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11625 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11626 PyObject * _resultobj;
11627 bool _result;
11628 wxRegion * _arg0;
11629 PyObject * _argo0 = 0;
11630 char *_kwnames[] = { "self", NULL };
11631
11632 self = self;
11633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11634 return NULL;
11635 if (_argo0) {
11636 if (_argo0 == Py_None) { _arg0 = NULL; }
11637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11639 return NULL;
11640 }
11641 }
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 _result = (bool )wxRegion_IsEmpty(_arg0);
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) return NULL;
11648 } _resultobj = Py_BuildValue("i",_result);
11649 return _resultobj;
11650 }
11651
11652 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11653 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11654 PyObject * _resultobj;
11655 bool _result;
11656 wxRegion * _arg0;
11657 long _arg1;
11658 long _arg2;
11659 long _arg3;
11660 long _arg4;
11661 PyObject * _argo0 = 0;
11662 char *_kwnames[] = { "self","x","y","width","height", NULL };
11663
11664 self = self;
11665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11666 return NULL;
11667 if (_argo0) {
11668 if (_argo0 == Py_None) { _arg0 = NULL; }
11669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11671 return NULL;
11672 }
11673 }
11674 {
11675 PyThreadState* __tstate = wxPyBeginAllowThreads();
11676 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11677
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) return NULL;
11680 } _resultobj = Py_BuildValue("i",_result);
11681 return _resultobj;
11682 }
11683
11684 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11685 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11686 PyObject * _resultobj;
11687 bool _result;
11688 wxRegion * _arg0;
11689 wxRect * _arg1;
11690 PyObject * _argo0 = 0;
11691 wxRect temp;
11692 PyObject * _obj1 = 0;
11693 char *_kwnames[] = { "self","rect", NULL };
11694
11695 self = self;
11696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11697 return NULL;
11698 if (_argo0) {
11699 if (_argo0 == Py_None) { _arg0 = NULL; }
11700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11702 return NULL;
11703 }
11704 }
11705 {
11706 _arg1 = &temp;
11707 if (! wxRect_helper(_obj1, &_arg1))
11708 return NULL;
11709 }
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11713
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) return NULL;
11716 } _resultobj = Py_BuildValue("i",_result);
11717 return _resultobj;
11718 }
11719
11720 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11721 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11722 PyObject * _resultobj;
11723 bool _result;
11724 wxRegion * _arg0;
11725 wxRegion * _arg1;
11726 PyObject * _argo0 = 0;
11727 PyObject * _argo1 = 0;
11728 char *_kwnames[] = { "self","region", NULL };
11729
11730 self = self;
11731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11732 return NULL;
11733 if (_argo0) {
11734 if (_argo0 == Py_None) { _arg0 = NULL; }
11735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11737 return NULL;
11738 }
11739 }
11740 if (_argo1) {
11741 if (_argo1 == Py_None) { _arg1 = NULL; }
11742 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11743 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11744 return NULL;
11745 }
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) return NULL;
11753 } _resultobj = Py_BuildValue("i",_result);
11754 return _resultobj;
11755 }
11756
11757 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11758 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11759 PyObject * _resultobj;
11760 bool _result;
11761 wxRegion * _arg0;
11762 long _arg1;
11763 long _arg2;
11764 long _arg3;
11765 long _arg4;
11766 PyObject * _argo0 = 0;
11767 char *_kwnames[] = { "self","x","y","width","height", NULL };
11768
11769 self = self;
11770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11771 return NULL;
11772 if (_argo0) {
11773 if (_argo0 == Py_None) { _arg0 = NULL; }
11774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11776 return NULL;
11777 }
11778 }
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) return NULL;
11785 } _resultobj = Py_BuildValue("i",_result);
11786 return _resultobj;
11787 }
11788
11789 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11790 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11791 PyObject * _resultobj;
11792 bool _result;
11793 wxRegion * _arg0;
11794 wxRect * _arg1;
11795 PyObject * _argo0 = 0;
11796 wxRect temp;
11797 PyObject * _obj1 = 0;
11798 char *_kwnames[] = { "self","rect", NULL };
11799
11800 self = self;
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11802 return NULL;
11803 if (_argo0) {
11804 if (_argo0 == Py_None) { _arg0 = NULL; }
11805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11807 return NULL;
11808 }
11809 }
11810 {
11811 _arg1 = &temp;
11812 if (! wxRect_helper(_obj1, &_arg1))
11813 return NULL;
11814 }
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11818
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) return NULL;
11821 } _resultobj = Py_BuildValue("i",_result);
11822 return _resultobj;
11823 }
11824
11825 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11826 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11827 PyObject * _resultobj;
11828 bool _result;
11829 wxRegion * _arg0;
11830 wxRegion * _arg1;
11831 PyObject * _argo0 = 0;
11832 PyObject * _argo1 = 0;
11833 char *_kwnames[] = { "self","region", NULL };
11834
11835 self = self;
11836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11837 return NULL;
11838 if (_argo0) {
11839 if (_argo0 == Py_None) { _arg0 = NULL; }
11840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11842 return NULL;
11843 }
11844 }
11845 if (_argo1) {
11846 if (_argo1 == Py_None) { _arg1 = NULL; }
11847 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11848 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11849 return NULL;
11850 }
11851 }
11852 {
11853 PyThreadState* __tstate = wxPyBeginAllowThreads();
11854 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11855
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) return NULL;
11858 } _resultobj = Py_BuildValue("i",_result);
11859 return _resultobj;
11860 }
11861
11862 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11863 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11864 PyObject * _resultobj;
11865 bool _result;
11866 wxRegion * _arg0;
11867 long _arg1;
11868 long _arg2;
11869 long _arg3;
11870 long _arg4;
11871 PyObject * _argo0 = 0;
11872 char *_kwnames[] = { "self","x","y","width","height", NULL };
11873
11874 self = self;
11875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11876 return NULL;
11877 if (_argo0) {
11878 if (_argo0 == Py_None) { _arg0 = NULL; }
11879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11881 return NULL;
11882 }
11883 }
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11887
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) return NULL;
11890 } _resultobj = Py_BuildValue("i",_result);
11891 return _resultobj;
11892 }
11893
11894 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11895 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11896 PyObject * _resultobj;
11897 bool _result;
11898 wxRegion * _arg0;
11899 wxRect * _arg1;
11900 PyObject * _argo0 = 0;
11901 wxRect temp;
11902 PyObject * _obj1 = 0;
11903 char *_kwnames[] = { "self","rect", NULL };
11904
11905 self = self;
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11907 return NULL;
11908 if (_argo0) {
11909 if (_argo0 == Py_None) { _arg0 = NULL; }
11910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11912 return NULL;
11913 }
11914 }
11915 {
11916 _arg1 = &temp;
11917 if (! wxRect_helper(_obj1, &_arg1))
11918 return NULL;
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) return NULL;
11926 } _resultobj = Py_BuildValue("i",_result);
11927 return _resultobj;
11928 }
11929
11930 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11931 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11932 PyObject * _resultobj;
11933 bool _result;
11934 wxRegion * _arg0;
11935 wxRegion * _arg1;
11936 PyObject * _argo0 = 0;
11937 PyObject * _argo1 = 0;
11938 char *_kwnames[] = { "self","region", NULL };
11939
11940 self = self;
11941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11942 return NULL;
11943 if (_argo0) {
11944 if (_argo0 == Py_None) { _arg0 = NULL; }
11945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11947 return NULL;
11948 }
11949 }
11950 if (_argo1) {
11951 if (_argo1 == Py_None) { _arg1 = NULL; }
11952 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11953 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11954 return NULL;
11955 }
11956 }
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11960
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) return NULL;
11963 } _resultobj = Py_BuildValue("i",_result);
11964 return _resultobj;
11965 }
11966
11967 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11968 wxRegionIterator *src;
11969 wxObject *dest;
11970 src = (wxRegionIterator *) ptr;
11971 dest = (wxObject *) src;
11972 return (void *) dest;
11973 }
11974
11975 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11976 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11977 PyObject * _resultobj;
11978 wxRegionIterator * _result;
11979 wxRegion * _arg0;
11980 PyObject * _argo0 = 0;
11981 char *_kwnames[] = { "region", NULL };
11982 char _ptemp[128];
11983
11984 self = self;
11985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11986 return NULL;
11987 if (_argo0) {
11988 if (_argo0 == Py_None) { _arg0 = NULL; }
11989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11991 return NULL;
11992 }
11993 }
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) return NULL;
12000 } if (_result) {
12001 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12002 _resultobj = Py_BuildValue("s",_ptemp);
12003 } else {
12004 Py_INCREF(Py_None);
12005 _resultobj = Py_None;
12006 }
12007 return _resultobj;
12008 }
12009
12010 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12011 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject * _resultobj;
12013 wxRegionIterator * _arg0;
12014 PyObject * _argo0 = 0;
12015 char *_kwnames[] = { "self", NULL };
12016
12017 self = self;
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12019 return NULL;
12020 if (_argo0) {
12021 if (_argo0 == Py_None) { _arg0 = NULL; }
12022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12024 return NULL;
12025 }
12026 }
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 delete_wxRegionIterator(_arg0);
12030
12031 wxPyEndAllowThreads(__tstate);
12032 if (PyErr_Occurred()) return NULL;
12033 } Py_INCREF(Py_None);
12034 _resultobj = Py_None;
12035 return _resultobj;
12036 }
12037
12038 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12039 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject * _resultobj;
12041 long _result;
12042 wxRegionIterator * _arg0;
12043 PyObject * _argo0 = 0;
12044 char *_kwnames[] = { "self", NULL };
12045
12046 self = self;
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
12048 return NULL;
12049 if (_argo0) {
12050 if (_argo0 == Py_None) { _arg0 = NULL; }
12051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12053 return NULL;
12054 }
12055 }
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 _result = (long )wxRegionIterator_GetX(_arg0);
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) return NULL;
12062 } _resultobj = Py_BuildValue("l",_result);
12063 return _resultobj;
12064 }
12065
12066 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12067 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
12068 PyObject * _resultobj;
12069 long _result;
12070 wxRegionIterator * _arg0;
12071 PyObject * _argo0 = 0;
12072 char *_kwnames[] = { "self", NULL };
12073
12074 self = self;
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
12076 return NULL;
12077 if (_argo0) {
12078 if (_argo0 == Py_None) { _arg0 = NULL; }
12079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12081 return NULL;
12082 }
12083 }
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 _result = (long )wxRegionIterator_GetY(_arg0);
12087
12088 wxPyEndAllowThreads(__tstate);
12089 if (PyErr_Occurred()) return NULL;
12090 } _resultobj = Py_BuildValue("l",_result);
12091 return _resultobj;
12092 }
12093
12094 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12095 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12096 PyObject * _resultobj;
12097 long _result;
12098 wxRegionIterator * _arg0;
12099 PyObject * _argo0 = 0;
12100 char *_kwnames[] = { "self", NULL };
12101
12102 self = self;
12103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12104 return NULL;
12105 if (_argo0) {
12106 if (_argo0 == Py_None) { _arg0 = NULL; }
12107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12109 return NULL;
12110 }
12111 }
12112 {
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 _result = (long )wxRegionIterator_GetW(_arg0);
12115
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) return NULL;
12118 } _resultobj = Py_BuildValue("l",_result);
12119 return _resultobj;
12120 }
12121
12122 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12123 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12124 PyObject * _resultobj;
12125 long _result;
12126 wxRegionIterator * _arg0;
12127 PyObject * _argo0 = 0;
12128 char *_kwnames[] = { "self", NULL };
12129
12130 self = self;
12131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12132 return NULL;
12133 if (_argo0) {
12134 if (_argo0 == Py_None) { _arg0 = NULL; }
12135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12137 return NULL;
12138 }
12139 }
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 _result = (long )wxRegionIterator_GetWidth(_arg0);
12143
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) return NULL;
12146 } _resultobj = Py_BuildValue("l",_result);
12147 return _resultobj;
12148 }
12149
12150 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12151 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12152 PyObject * _resultobj;
12153 long _result;
12154 wxRegionIterator * _arg0;
12155 PyObject * _argo0 = 0;
12156 char *_kwnames[] = { "self", NULL };
12157
12158 self = self;
12159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12160 return NULL;
12161 if (_argo0) {
12162 if (_argo0 == Py_None) { _arg0 = NULL; }
12163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12165 return NULL;
12166 }
12167 }
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 _result = (long )wxRegionIterator_GetH(_arg0);
12171
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) return NULL;
12174 } _resultobj = Py_BuildValue("l",_result);
12175 return _resultobj;
12176 }
12177
12178 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12179 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject * _resultobj;
12181 long _result;
12182 wxRegionIterator * _arg0;
12183 PyObject * _argo0 = 0;
12184 char *_kwnames[] = { "self", NULL };
12185
12186 self = self;
12187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12188 return NULL;
12189 if (_argo0) {
12190 if (_argo0 == Py_None) { _arg0 = NULL; }
12191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12193 return NULL;
12194 }
12195 }
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 _result = (long )wxRegionIterator_GetHeight(_arg0);
12199
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) return NULL;
12202 } _resultobj = Py_BuildValue("l",_result);
12203 return _resultobj;
12204 }
12205
12206 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12207 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject * _resultobj;
12209 wxRect * _result;
12210 wxRegionIterator * _arg0;
12211 PyObject * _argo0 = 0;
12212 char *_kwnames[] = { "self", NULL };
12213 char _ptemp[128];
12214
12215 self = self;
12216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12217 return NULL;
12218 if (_argo0) {
12219 if (_argo0 == Py_None) { _arg0 = NULL; }
12220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12222 return NULL;
12223 }
12224 }
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) return NULL;
12231 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12232 _resultobj = Py_BuildValue("s",_ptemp);
12233 return _resultobj;
12234 }
12235
12236 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12237 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12238 PyObject * _resultobj;
12239 bool _result;
12240 wxRegionIterator * _arg0;
12241 PyObject * _argo0 = 0;
12242 char *_kwnames[] = { "self", NULL };
12243
12244 self = self;
12245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12246 return NULL;
12247 if (_argo0) {
12248 if (_argo0 == Py_None) { _arg0 = NULL; }
12249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12251 return NULL;
12252 }
12253 }
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12257
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) return NULL;
12260 } _resultobj = Py_BuildValue("i",_result);
12261 return _resultobj;
12262 }
12263
12264 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12265 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12266 PyObject * _resultobj;
12267 wxRegionIterator * _arg0;
12268 PyObject * _argo0 = 0;
12269 char *_kwnames[] = { "self", NULL };
12270
12271 self = self;
12272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12273 return NULL;
12274 if (_argo0) {
12275 if (_argo0 == Py_None) { _arg0 = NULL; }
12276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12278 return NULL;
12279 }
12280 }
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 wxRegionIterator_Reset(_arg0);
12284
12285 wxPyEndAllowThreads(__tstate);
12286 if (PyErr_Occurred()) return NULL;
12287 } Py_INCREF(Py_None);
12288 _resultobj = Py_None;
12289 return _resultobj;
12290 }
12291
12292 static void wxRegionIterator_Next(wxRegionIterator *self) {
12293 (*self) ++;
12294 }
12295 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12296 PyObject * _resultobj;
12297 wxRegionIterator * _arg0;
12298 PyObject * _argo0 = 0;
12299 char *_kwnames[] = { "self", NULL };
12300
12301 self = self;
12302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12303 return NULL;
12304 if (_argo0) {
12305 if (_argo0 == Py_None) { _arg0 = NULL; }
12306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12308 return NULL;
12309 }
12310 }
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 wxRegionIterator_Next(_arg0);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) return NULL;
12317 } Py_INCREF(Py_None);
12318 _resultobj = Py_None;
12319 return _resultobj;
12320 }
12321
12322 static PyMethodDef gdicMethods[] = {
12323 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12324 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12325 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12326 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12327 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12328 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12329 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12330 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12331 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12332 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12333 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12334 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12335 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12336 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12337 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12338 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12339 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12340 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12341 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12342 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12343 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12344 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12345 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12346 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12347 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12348 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12349 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12350 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12351 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12352 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12353 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
12354 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12355 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12356 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12357 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12358 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12359 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12360 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12361 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12362 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12363 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12364 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12365 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12366 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12367 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12368 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12369 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12370 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12371 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12372 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12373 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12374 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12375 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12376 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12377 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12378 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12379 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12380 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12381 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12382 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12383 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12384 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12385 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12386 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12387 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12388 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12389 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12390 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12391 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12392 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12393 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12394 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12395 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12396 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12397 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12398 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12399 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12400 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12401 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12402 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12403 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12404 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12405 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12406 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12407 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12408 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12409 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12410 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12411 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12412 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12413 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12414 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12415 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12416 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12417 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12418 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12419 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12420 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
12421 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
12422 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
12423 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12424 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
12425 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
12426 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
12427 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
12428 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
12429 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
12430 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
12431 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
12432 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
12433 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
12434 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
12435 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12436 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12437 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
12438 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
12439 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
12440 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12441 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
12442 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
12443 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
12444 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
12445 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12446 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12447 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
12448 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
12449 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12450 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12451 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
12452 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
12453 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
12454 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
12455 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
12456 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
12457 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
12458 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
12459 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
12460 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
12461 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
12462 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
12463 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
12464 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
12465 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
12466 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
12467 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
12468 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
12469 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
12470 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
12471 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
12472 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
12473 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
12474 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
12475 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
12476 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
12477 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
12478 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
12479 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
12480 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
12481 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
12482 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
12483 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
12484 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
12485 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
12486 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
12487 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
12488 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
12489 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
12490 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
12491 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
12492 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
12493 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
12494 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
12495 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
12496 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
12497 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
12498 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
12499 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
12500 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12501 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12502 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12503 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12504 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
12505 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
12506 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
12507 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
12508 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
12509 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
12510 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
12511 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
12512 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
12513 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
12514 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
12515 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
12516 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
12517 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
12518 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
12519 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
12520 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
12521 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
12522 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
12523 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
12524 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
12525 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
12526 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
12527 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
12528 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
12529 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
12530 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
12531 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
12532 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12533 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12534 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
12535 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
12536 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
12537 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
12538 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12539 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
12540 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
12541 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
12542 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
12543 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
12544 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
12545 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
12546 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
12547 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
12548 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12549 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
12550 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
12551 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
12552 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
12553 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
12554 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
12555 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
12556 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
12557 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
12558 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
12559 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
12560 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
12561 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
12562 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
12563 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
12564 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
12565 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
12566 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
12567 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
12568 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
12569 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
12570 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
12571 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12572 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12573 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
12574 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
12575 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
12576 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
12577 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
12578 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
12579 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
12580 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
12581 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
12582 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
12583 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
12584 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
12585 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
12586 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
12587 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
12588 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
12589 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
12590 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
12591 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
12592 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
12593 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12594 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12595 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12596 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12597 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12598 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12599 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12600 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12601 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12602 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12603 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12604 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12605 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12606 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12607 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12608 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12609 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12610 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12611 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12612 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12613 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12614 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12615 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12616 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12617 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12618 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12619 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12620 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12621 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12622 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12623 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12624 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12625 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12626 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12627 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12628 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12629 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12630 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12631 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12632 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12633 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12634 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12635 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12636 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12637 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12638 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12639 { NULL, NULL }
12640 };
12641 #ifdef __cplusplus
12642 }
12643 #endif
12644 /*
12645 * This table is used by the pointer type-checker
12646 */
12647 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12648 { "_signed_long","_long",0},
12649 { "_wxPrintQuality","_wxCoord",0},
12650 { "_wxPrintQuality","_int",0},
12651 { "_wxPrintQuality","_signed_int",0},
12652 { "_wxPrintQuality","_unsigned_int",0},
12653 { "_wxPrintQuality","_wxWindowID",0},
12654 { "_wxPrintQuality","_uint",0},
12655 { "_wxPrintQuality","_EBool",0},
12656 { "_wxPrintQuality","_size_t",0},
12657 { "_wxPrintQuality","_time_t",0},
12658 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12659 { "_byte","_unsigned_char",0},
12660 { "_long","_unsigned_long",0},
12661 { "_long","_signed_long",0},
12662 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12663 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12664 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12665 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12666 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12667 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
12668 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12669 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12670 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12671 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
12672 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12673 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12674 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12675 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12676 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12677 { "_size_t","_wxCoord",0},
12678 { "_size_t","_wxPrintQuality",0},
12679 { "_size_t","_time_t",0},
12680 { "_size_t","_unsigned_int",0},
12681 { "_size_t","_int",0},
12682 { "_size_t","_wxWindowID",0},
12683 { "_size_t","_uint",0},
12684 { "_uint","_wxCoord",0},
12685 { "_uint","_wxPrintQuality",0},
12686 { "_uint","_time_t",0},
12687 { "_uint","_size_t",0},
12688 { "_uint","_unsigned_int",0},
12689 { "_uint","_int",0},
12690 { "_uint","_wxWindowID",0},
12691 { "_wxChar","_char",0},
12692 { "_char","_wxChar",0},
12693 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12694 { "_EBool","_wxCoord",0},
12695 { "_EBool","_wxPrintQuality",0},
12696 { "_EBool","_signed_int",0},
12697 { "_EBool","_int",0},
12698 { "_EBool","_wxWindowID",0},
12699 { "_unsigned_long","_long",0},
12700 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12701 { "_signed_int","_wxCoord",0},
12702 { "_signed_int","_wxPrintQuality",0},
12703 { "_signed_int","_EBool",0},
12704 { "_signed_int","_wxWindowID",0},
12705 { "_signed_int","_int",0},
12706 { "_WXTYPE","_short",0},
12707 { "_WXTYPE","_signed_short",0},
12708 { "_WXTYPE","_unsigned_short",0},
12709 { "_unsigned_short","_WXTYPE",0},
12710 { "_unsigned_short","_short",0},
12711 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12712 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12713 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12714 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12715 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
12716 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
12717 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12718 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12719 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12720 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12721 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12722 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12723 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12724 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12725 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12726 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12727 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12728 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12729 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12730 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
12731 { "_wxObject","_wxFont",SwigwxFontTowxObject},
12732 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12733 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12734 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12735 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12736 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12737 { "_signed_short","_WXTYPE",0},
12738 { "_signed_short","_short",0},
12739 { "_unsigned_char","_byte",0},
12740 { "_unsigned_int","_wxCoord",0},
12741 { "_unsigned_int","_wxPrintQuality",0},
12742 { "_unsigned_int","_time_t",0},
12743 { "_unsigned_int","_size_t",0},
12744 { "_unsigned_int","_uint",0},
12745 { "_unsigned_int","_wxWindowID",0},
12746 { "_unsigned_int","_int",0},
12747 { "_short","_WXTYPE",0},
12748 { "_short","_unsigned_short",0},
12749 { "_short","_signed_short",0},
12750 { "_wxWindowID","_wxCoord",0},
12751 { "_wxWindowID","_wxPrintQuality",0},
12752 { "_wxWindowID","_time_t",0},
12753 { "_wxWindowID","_size_t",0},
12754 { "_wxWindowID","_EBool",0},
12755 { "_wxWindowID","_uint",0},
12756 { "_wxWindowID","_int",0},
12757 { "_wxWindowID","_signed_int",0},
12758 { "_wxWindowID","_unsigned_int",0},
12759 { "_int","_wxCoord",0},
12760 { "_int","_wxPrintQuality",0},
12761 { "_int","_time_t",0},
12762 { "_int","_size_t",0},
12763 { "_int","_EBool",0},
12764 { "_int","_uint",0},
12765 { "_int","_wxWindowID",0},
12766 { "_int","_unsigned_int",0},
12767 { "_int","_signed_int",0},
12768 { "_time_t","_wxCoord",0},
12769 { "_time_t","_wxPrintQuality",0},
12770 { "_time_t","_unsigned_int",0},
12771 { "_time_t","_int",0},
12772 { "_time_t","_wxWindowID",0},
12773 { "_time_t","_uint",0},
12774 { "_time_t","_size_t",0},
12775 { "_wxCoord","_int",0},
12776 { "_wxCoord","_signed_int",0},
12777 { "_wxCoord","_unsigned_int",0},
12778 { "_wxCoord","_wxWindowID",0},
12779 { "_wxCoord","_uint",0},
12780 { "_wxCoord","_EBool",0},
12781 { "_wxCoord","_size_t",0},
12782 { "_wxCoord","_time_t",0},
12783 { "_wxCoord","_wxPrintQuality",0},
12784 {0,0,0}};
12785
12786 static PyObject *SWIG_globals;
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 SWIGEXPORT(void) initgdic() {
12791 PyObject *m, *d;
12792 SWIG_globals = SWIG_newvarlink();
12793 m = Py_InitModule("gdic", gdicMethods);
12794 d = PyModule_GetDict(m);
12795 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12796 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12797 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12798 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12799 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12800 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12801 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12802 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
12803 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
12804 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12805 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12806 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12807 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12808 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12809 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12810 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12811 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
12812 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12813 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12814 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12815 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12816 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12817 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12818 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12819 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12820 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12821 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12822 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12823 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12824 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12825 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12826 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12827 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12828 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
12829 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
12830 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12831 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12832 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12833 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12834 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12835 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12836 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12837 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
12838 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
12839 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12840 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12841 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12842 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
12843 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12844 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12845 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
12846 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12847 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12848 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12849 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12850 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12851 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12852 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12853 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12854 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
12855 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
12856 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12857 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12858 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12859 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12860 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12861 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12862 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12863 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12864 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12865 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12866 PyDict_SetItemString(d,"cvar", SWIG_globals);
12867 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12868 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12869 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12870 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12871 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12872 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12873 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12874 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12875 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12876 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12877 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12878 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12879 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12880 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12881 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12882 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12883 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12884 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12885 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12886 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12887 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12888 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12889 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12890 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12891 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12892 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12893 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12894 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12895 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12896 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12897 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12898 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12899 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12900 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12901 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12902 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12903 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12904 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12905 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12906 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12907 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12908 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12909 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12910 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12911 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12912 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12913 {
12914 int i;
12915 for (i = 0; _swig_mapping[i].n1; i++)
12916 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12917 }
12918 }