]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi.cpp
applied doc patch for wxPostEvent().
[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
98 static wxString wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
100
101 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
102 return new wxBitmap(width, height, depth);
103 }
104
105 static char** ConvertListOfStrings(PyObject* listOfStrings) {
106 char** cArray = NULL;
107 int count;
108
109 if (!PyList_Check(listOfStrings)) {
110 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
111 return NULL;
112 }
113 count = PyList_Size(listOfStrings);
114 cArray = new char*[count];
115
116 for(int x=0; x<count; x++) {
117 // TODO: Need some validation and error checking here
118 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
119 }
120 return cArray;
121 }
122
123
124 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 wxBitmap* bmp;
127
128 cArray = ConvertListOfStrings(listOfStrings);
129 if (! cArray)
130 return NULL;
131 bmp = new wxBitmap(cArray);
132 delete [] cArray;
133 return bmp;
134 }
135
136
137 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
138 return new wxBitmap(icon);
139 }
140
141
142 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
143 return new wxBitmap(bits, width, height, depth);
144 }
145
146
147 // #ifdef __WXMSW__
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return NULL;
153 // }
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155 // }
156 // #endif
157
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
176 }
177 // Alternate 'constructor'
178 wxCursor* wxPyStockCursor(int id) {
179 return new wxCursor(id);
180 }
181 // Alternate 'constructor'
182 wxColour* wxNamedColour(const wxString& colorName) {
183 return new wxColour(colorName);
184 }
185
186 class wxPyPen : public wxPen {
187 public:
188 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
189 : wxPen(colour, width, style)
190 { m_dash = NULL; }
191 ~wxPyPen() {
192 if (m_dash)
193 delete [] m_dash;
194 }
195
196 void SetDashes(int nb_dashes, const wxDash *dash) {
197 if (m_dash)
198 delete [] m_dash;
199 m_dash = new wxDash[nb_dashes];
200 for (int i=0; i<nb_dashes; i++) {
201 m_dash[i] = dash[i];
202 }
203 wxPen::SetDashes(nb_dashes, m_dash);
204 }
205
206 private:
207 wxDash* m_dash;
208 };
209
210 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
211 *x1 = dc->MinX();
212 *y1 = dc->MinY();
213 *x2 = dc->MaxX();
214 *y2 = dc->MaxY();
215 }
216 // Alternate 'constructor'
217 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
218 return new wxMemoryDC(oldDC);
219 }
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 self->Append(name.c_str(), new wxColour(red, green, blue));
5092 }
5093 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5094 PyObject * _resultobj;
5095 wxColourDatabase * _arg0;
5096 wxString * _arg1;
5097 int _arg2;
5098 int _arg3;
5099 int _arg4;
5100 PyObject * _argo0 = 0;
5101 PyObject * _obj1 = 0;
5102 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5103
5104 self = self;
5105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5106 return NULL;
5107 if (_argo0) {
5108 if (_argo0 == Py_None) { _arg0 = NULL; }
5109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5111 return NULL;
5112 }
5113 }
5114 {
5115 #if PYTHON_API_VERSION >= 1009
5116 char* tmpPtr; int tmpSize;
5117 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5118 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5119 return NULL;
5120 }
5121 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5122 return NULL;
5123 _arg1 = new wxString(tmpPtr, tmpSize);
5124 #else
5125 if (!PyString_Check(_obj1)) {
5126 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5127 return NULL;
5128 }
5129 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5130 #endif
5131 }
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) return NULL;
5138 } Py_INCREF(Py_None);
5139 _resultobj = Py_None;
5140 {
5141 if (_obj1)
5142 delete _arg1;
5143 }
5144 return _resultobj;
5145 }
5146
5147 static void *SwigwxPenTowxGDIObject(void *ptr) {
5148 wxPen *src;
5149 wxGDIObject *dest;
5150 src = (wxPen *) ptr;
5151 dest = (wxGDIObject *) src;
5152 return (void *) dest;
5153 }
5154
5155 static void *SwigwxPenTowxObject(void *ptr) {
5156 wxPen *src;
5157 wxObject *dest;
5158 src = (wxPen *) ptr;
5159 dest = (wxObject *) src;
5160 return (void *) dest;
5161 }
5162
5163 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5164 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5165 PyObject * _resultobj;
5166 wxPen * _result;
5167 wxColour * _arg0;
5168 int _arg1 = (int ) 1;
5169 int _arg2 = (int ) wxSOLID;
5170 wxColour temp;
5171 PyObject * _obj0 = 0;
5172 char *_kwnames[] = { "colour","width","style", NULL };
5173 char _ptemp[128];
5174
5175 self = self;
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5177 return NULL;
5178 {
5179 _arg0 = &temp;
5180 if (! wxColour_helper(_obj0, &_arg0))
5181 return NULL;
5182 }
5183 {
5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
5185 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5186
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) return NULL;
5189 } if (_result) {
5190 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5191 _resultobj = Py_BuildValue("s",_ptemp);
5192 } else {
5193 Py_INCREF(Py_None);
5194 _resultobj = Py_None;
5195 }
5196 return _resultobj;
5197 }
5198
5199 #define delete_wxPen(_swigobj) (delete _swigobj)
5200 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5201 PyObject * _resultobj;
5202 wxPen * _arg0;
5203 PyObject * _argo0 = 0;
5204 char *_kwnames[] = { "self", NULL };
5205
5206 self = self;
5207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5208 return NULL;
5209 if (_argo0) {
5210 if (_argo0 == Py_None) { _arg0 = NULL; }
5211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5213 return NULL;
5214 }
5215 }
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 delete_wxPen(_arg0);
5219
5220 wxPyEndAllowThreads(__tstate);
5221 if (PyErr_Occurred()) return NULL;
5222 } Py_INCREF(Py_None);
5223 _resultobj = Py_None;
5224 return _resultobj;
5225 }
5226
5227 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5228 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5229 PyObject * _resultobj;
5230 int _result;
5231 wxPen * _arg0;
5232 PyObject * _argo0 = 0;
5233 char *_kwnames[] = { "self", NULL };
5234
5235 self = self;
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5237 return NULL;
5238 if (_argo0) {
5239 if (_argo0 == Py_None) { _arg0 = NULL; }
5240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5242 return NULL;
5243 }
5244 }
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 _result = (int )wxPen_GetCap(_arg0);
5248
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) return NULL;
5251 } _resultobj = Py_BuildValue("i",_result);
5252 return _resultobj;
5253 }
5254
5255 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5256 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5257 PyObject * _resultobj;
5258 wxColour * _result;
5259 wxPen * _arg0;
5260 PyObject * _argo0 = 0;
5261 char *_kwnames[] = { "self", NULL };
5262 char _ptemp[128];
5263
5264 self = self;
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5266 return NULL;
5267 if (_argo0) {
5268 if (_argo0 == Py_None) { _arg0 = NULL; }
5269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5271 return NULL;
5272 }
5273 }
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 _result = new wxColour (wxPen_GetColour(_arg0));
5277
5278 wxPyEndAllowThreads(__tstate);
5279 if (PyErr_Occurred()) return NULL;
5280 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5281 _resultobj = Py_BuildValue("s",_ptemp);
5282 return _resultobj;
5283 }
5284
5285 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5286 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject * _resultobj;
5288 int _result;
5289 wxPen * _arg0;
5290 PyObject * _argo0 = 0;
5291 char *_kwnames[] = { "self", NULL };
5292
5293 self = self;
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5295 return NULL;
5296 if (_argo0) {
5297 if (_argo0 == Py_None) { _arg0 = NULL; }
5298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5300 return NULL;
5301 }
5302 }
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 _result = (int )wxPen_GetJoin(_arg0);
5306
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) return NULL;
5309 } _resultobj = Py_BuildValue("i",_result);
5310 return _resultobj;
5311 }
5312
5313 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5314 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5315 PyObject * _resultobj;
5316 int _result;
5317 wxPen * _arg0;
5318 PyObject * _argo0 = 0;
5319 char *_kwnames[] = { "self", NULL };
5320
5321 self = self;
5322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5323 return NULL;
5324 if (_argo0) {
5325 if (_argo0 == Py_None) { _arg0 = NULL; }
5326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5328 return NULL;
5329 }
5330 }
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 _result = (int )wxPen_GetStyle(_arg0);
5334
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) return NULL;
5337 } _resultobj = Py_BuildValue("i",_result);
5338 return _resultobj;
5339 }
5340
5341 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5342 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject * _resultobj;
5344 int _result;
5345 wxPen * _arg0;
5346 PyObject * _argo0 = 0;
5347 char *_kwnames[] = { "self", NULL };
5348
5349 self = self;
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5351 return NULL;
5352 if (_argo0) {
5353 if (_argo0 == Py_None) { _arg0 = NULL; }
5354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5356 return NULL;
5357 }
5358 }
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 _result = (int )wxPen_GetWidth(_arg0);
5362
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) return NULL;
5365 } _resultobj = Py_BuildValue("i",_result);
5366 return _resultobj;
5367 }
5368
5369 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5370 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5371 PyObject * _resultobj;
5372 bool _result;
5373 wxPen * _arg0;
5374 PyObject * _argo0 = 0;
5375 char *_kwnames[] = { "self", NULL };
5376
5377 self = self;
5378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5379 return NULL;
5380 if (_argo0) {
5381 if (_argo0 == Py_None) { _arg0 = NULL; }
5382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5384 return NULL;
5385 }
5386 }
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 _result = (bool )wxPen_Ok(_arg0);
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) return NULL;
5393 } _resultobj = Py_BuildValue("i",_result);
5394 return _resultobj;
5395 }
5396
5397 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5398 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject * _resultobj;
5400 wxPen * _arg0;
5401 int _arg1;
5402 PyObject * _argo0 = 0;
5403 char *_kwnames[] = { "self","cap_style", NULL };
5404
5405 self = self;
5406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5407 return NULL;
5408 if (_argo0) {
5409 if (_argo0 == Py_None) { _arg0 = NULL; }
5410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5412 return NULL;
5413 }
5414 }
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 wxPen_SetCap(_arg0,_arg1);
5418
5419 wxPyEndAllowThreads(__tstate);
5420 if (PyErr_Occurred()) return NULL;
5421 } Py_INCREF(Py_None);
5422 _resultobj = Py_None;
5423 return _resultobj;
5424 }
5425
5426 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5427 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject * _resultobj;
5429 wxPen * _arg0;
5430 wxColour * _arg1;
5431 PyObject * _argo0 = 0;
5432 wxColour temp;
5433 PyObject * _obj1 = 0;
5434 char *_kwnames[] = { "self","colour", NULL };
5435
5436 self = self;
5437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
5438 return NULL;
5439 if (_argo0) {
5440 if (_argo0 == Py_None) { _arg0 = NULL; }
5441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5443 return NULL;
5444 }
5445 }
5446 {
5447 _arg1 = &temp;
5448 if (! wxColour_helper(_obj1, &_arg1))
5449 return NULL;
5450 }
5451 {
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 wxPen_SetColour(_arg0,*_arg1);
5454
5455 wxPyEndAllowThreads(__tstate);
5456 if (PyErr_Occurred()) return NULL;
5457 } Py_INCREF(Py_None);
5458 _resultobj = Py_None;
5459 return _resultobj;
5460 }
5461
5462 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5463 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject * _resultobj;
5465 wxPen * _arg0;
5466 int _arg1;
5467 PyObject * _argo0 = 0;
5468 char *_kwnames[] = { "self","join_style", NULL };
5469
5470 self = self;
5471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
5472 return NULL;
5473 if (_argo0) {
5474 if (_argo0 == Py_None) { _arg0 = NULL; }
5475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5477 return NULL;
5478 }
5479 }
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 wxPen_SetJoin(_arg0,_arg1);
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) return NULL;
5486 } Py_INCREF(Py_None);
5487 _resultobj = Py_None;
5488 return _resultobj;
5489 }
5490
5491 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5492 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5493 PyObject * _resultobj;
5494 wxPen * _arg0;
5495 int _arg1;
5496 PyObject * _argo0 = 0;
5497 char *_kwnames[] = { "self","style", NULL };
5498
5499 self = self;
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
5501 return NULL;
5502 if (_argo0) {
5503 if (_argo0 == Py_None) { _arg0 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5506 return NULL;
5507 }
5508 }
5509 {
5510 PyThreadState* __tstate = wxPyBeginAllowThreads();
5511 wxPen_SetStyle(_arg0,_arg1);
5512
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) return NULL;
5515 } Py_INCREF(Py_None);
5516 _resultobj = Py_None;
5517 return _resultobj;
5518 }
5519
5520 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5521 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject * _resultobj;
5523 wxPen * _arg0;
5524 int _arg1;
5525 PyObject * _argo0 = 0;
5526 char *_kwnames[] = { "self","width", NULL };
5527
5528 self = self;
5529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
5530 return NULL;
5531 if (_argo0) {
5532 if (_argo0 == Py_None) { _arg0 = NULL; }
5533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5535 return NULL;
5536 }
5537 }
5538 {
5539 PyThreadState* __tstate = wxPyBeginAllowThreads();
5540 wxPen_SetWidth(_arg0,_arg1);
5541
5542 wxPyEndAllowThreads(__tstate);
5543 if (PyErr_Occurred()) return NULL;
5544 } Py_INCREF(Py_None);
5545 _resultobj = Py_None;
5546 return _resultobj;
5547 }
5548
5549 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5550 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5551 PyObject * _resultobj;
5552 wxPen * _arg0;
5553 int _arg1;
5554 wxDash * _arg2;
5555 PyObject * _argo0 = 0;
5556 PyObject * _obj2 = 0;
5557 char *_kwnames[] = { "self","choices", NULL };
5558
5559 self = self;
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
5561 return NULL;
5562 if (_argo0) {
5563 if (_argo0 == Py_None) { _arg0 = NULL; }
5564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5566 return NULL;
5567 }
5568 }
5569 if (_obj2)
5570 {
5571 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5572 if (_arg2 == NULL) {
5573 return NULL;
5574 }
5575 }
5576 {
5577 if (_obj2) {
5578 _arg1 = PyList_Size(_obj2);
5579 }
5580 else {
5581 _arg1 = 0;
5582 }
5583 }
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 wxPen_SetDashes(_arg0,_arg1,_arg2);
5587
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) return NULL;
5590 } Py_INCREF(Py_None);
5591 _resultobj = Py_None;
5592 {
5593 delete [] _arg2;
5594 }
5595 return _resultobj;
5596 }
5597
5598 static void *SwigwxPyPenTowxPen(void *ptr) {
5599 wxPyPen *src;
5600 wxPen *dest;
5601 src = (wxPyPen *) ptr;
5602 dest = (wxPen *) src;
5603 return (void *) dest;
5604 }
5605
5606 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5607 wxPyPen *src;
5608 wxGDIObject *dest;
5609 src = (wxPyPen *) ptr;
5610 dest = (wxGDIObject *) src;
5611 return (void *) dest;
5612 }
5613
5614 static void *SwigwxPyPenTowxObject(void *ptr) {
5615 wxPyPen *src;
5616 wxObject *dest;
5617 src = (wxPyPen *) ptr;
5618 dest = (wxObject *) src;
5619 return (void *) dest;
5620 }
5621
5622 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5623 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5624 PyObject * _resultobj;
5625 wxPyPen * _result;
5626 wxColour * _arg0;
5627 int _arg1 = (int ) 1;
5628 int _arg2 = (int ) wxSOLID;
5629 wxColour temp;
5630 PyObject * _obj0 = 0;
5631 char *_kwnames[] = { "colour","width","style", NULL };
5632 char _ptemp[128];
5633
5634 self = self;
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5636 return NULL;
5637 {
5638 _arg0 = &temp;
5639 if (! wxColour_helper(_obj0, &_arg0))
5640 return NULL;
5641 }
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) return NULL;
5648 } if (_result) {
5649 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5650 _resultobj = Py_BuildValue("s",_ptemp);
5651 } else {
5652 Py_INCREF(Py_None);
5653 _resultobj = Py_None;
5654 }
5655 return _resultobj;
5656 }
5657
5658 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5659 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject * _resultobj;
5661 wxPyPen * _arg0;
5662 PyObject * _argo0 = 0;
5663 char *_kwnames[] = { "self", NULL };
5664
5665 self = self;
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5667 return NULL;
5668 if (_argo0) {
5669 if (_argo0 == Py_None) { _arg0 = NULL; }
5670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5672 return NULL;
5673 }
5674 }
5675 {
5676 PyThreadState* __tstate = wxPyBeginAllowThreads();
5677 delete_wxPyPen(_arg0);
5678
5679 wxPyEndAllowThreads(__tstate);
5680 if (PyErr_Occurred()) return NULL;
5681 } Py_INCREF(Py_None);
5682 _resultobj = Py_None;
5683 return _resultobj;
5684 }
5685
5686 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5687 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5688 PyObject * _resultobj;
5689 wxPyPen * _arg0;
5690 int _arg1;
5691 wxDash * _arg2;
5692 PyObject * _argo0 = 0;
5693 PyObject * _obj2 = 0;
5694 char *_kwnames[] = { "self","choices", NULL };
5695
5696 self = self;
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
5698 return NULL;
5699 if (_argo0) {
5700 if (_argo0 == Py_None) { _arg0 = NULL; }
5701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5703 return NULL;
5704 }
5705 }
5706 if (_obj2)
5707 {
5708 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5709 if (_arg2 == NULL) {
5710 return NULL;
5711 }
5712 }
5713 {
5714 if (_obj2) {
5715 _arg1 = PyList_Size(_obj2);
5716 }
5717 else {
5718 _arg1 = 0;
5719 }
5720 }
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) return NULL;
5727 } Py_INCREF(Py_None);
5728 _resultobj = Py_None;
5729 {
5730 delete [] _arg2;
5731 }
5732 return _resultobj;
5733 }
5734
5735 static void *SwigwxPenListTowxObject(void *ptr) {
5736 wxPenList *src;
5737 wxObject *dest;
5738 src = (wxPenList *) ptr;
5739 dest = (wxObject *) src;
5740 return (void *) dest;
5741 }
5742
5743 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5744 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5745 PyObject * _resultobj;
5746 wxPenList * _arg0;
5747 wxPen * _arg1;
5748 PyObject * _argo0 = 0;
5749 PyObject * _argo1 = 0;
5750 char *_kwnames[] = { "self","pen", NULL };
5751
5752 self = self;
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5754 return NULL;
5755 if (_argo0) {
5756 if (_argo0 == Py_None) { _arg0 = NULL; }
5757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5759 return NULL;
5760 }
5761 }
5762 if (_argo1) {
5763 if (_argo1 == Py_None) { _arg1 = NULL; }
5764 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5765 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5766 return NULL;
5767 }
5768 }
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 wxPenList_AddPen(_arg0,_arg1);
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) return NULL;
5775 } Py_INCREF(Py_None);
5776 _resultobj = Py_None;
5777 return _resultobj;
5778 }
5779
5780 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5781 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5782 PyObject * _resultobj;
5783 wxPen * _result;
5784 wxPenList * _arg0;
5785 wxColour * _arg1;
5786 int _arg2;
5787 int _arg3;
5788 PyObject * _argo0 = 0;
5789 wxColour temp;
5790 PyObject * _obj1 = 0;
5791 char *_kwnames[] = { "self","colour","width","style", NULL };
5792 char _ptemp[128];
5793
5794 self = self;
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5796 return NULL;
5797 if (_argo0) {
5798 if (_argo0 == Py_None) { _arg0 = NULL; }
5799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5801 return NULL;
5802 }
5803 }
5804 {
5805 _arg1 = &temp;
5806 if (! wxColour_helper(_obj1, &_arg1))
5807 return NULL;
5808 }
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) return NULL;
5815 } if (_result) {
5816 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5817 _resultobj = Py_BuildValue("s",_ptemp);
5818 } else {
5819 Py_INCREF(Py_None);
5820 _resultobj = Py_None;
5821 }
5822 return _resultobj;
5823 }
5824
5825 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5826 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5827 PyObject * _resultobj;
5828 wxPenList * _arg0;
5829 wxPen * _arg1;
5830 PyObject * _argo0 = 0;
5831 PyObject * _argo1 = 0;
5832 char *_kwnames[] = { "self","pen", NULL };
5833
5834 self = self;
5835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5836 return NULL;
5837 if (_argo0) {
5838 if (_argo0 == Py_None) { _arg0 = NULL; }
5839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5841 return NULL;
5842 }
5843 }
5844 if (_argo1) {
5845 if (_argo1 == Py_None) { _arg1 = NULL; }
5846 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5847 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5848 return NULL;
5849 }
5850 }
5851 {
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 wxPenList_RemovePen(_arg0,_arg1);
5854
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) return NULL;
5857 } Py_INCREF(Py_None);
5858 _resultobj = Py_None;
5859 return _resultobj;
5860 }
5861
5862 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5863 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject * _resultobj;
5865 int _result;
5866 wxPenList * _arg0;
5867 PyObject * _argo0 = 0;
5868 char *_kwnames[] = { "self", NULL };
5869
5870 self = self;
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5872 return NULL;
5873 if (_argo0) {
5874 if (_argo0 == Py_None) { _arg0 = NULL; }
5875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5877 return NULL;
5878 }
5879 }
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 _result = (int )wxPenList_GetCount(_arg0);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) return NULL;
5886 } _resultobj = Py_BuildValue("i",_result);
5887 return _resultobj;
5888 }
5889
5890 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5891 wxBrush *src;
5892 wxGDIObject *dest;
5893 src = (wxBrush *) ptr;
5894 dest = (wxGDIObject *) src;
5895 return (void *) dest;
5896 }
5897
5898 static void *SwigwxBrushTowxObject(void *ptr) {
5899 wxBrush *src;
5900 wxObject *dest;
5901 src = (wxBrush *) ptr;
5902 dest = (wxObject *) src;
5903 return (void *) dest;
5904 }
5905
5906 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5907 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject * _resultobj;
5909 wxBrush * _result;
5910 wxColour * _arg0;
5911 int _arg1 = (int ) wxSOLID;
5912 wxColour temp;
5913 PyObject * _obj0 = 0;
5914 char *_kwnames[] = { "colour","style", NULL };
5915 char _ptemp[128];
5916
5917 self = self;
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5919 return NULL;
5920 {
5921 _arg0 = &temp;
5922 if (! wxColour_helper(_obj0, &_arg0))
5923 return NULL;
5924 }
5925 {
5926 PyThreadState* __tstate = wxPyBeginAllowThreads();
5927 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5928
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) return NULL;
5931 } if (_result) {
5932 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5933 _resultobj = Py_BuildValue("s",_ptemp);
5934 } else {
5935 Py_INCREF(Py_None);
5936 _resultobj = Py_None;
5937 }
5938 return _resultobj;
5939 }
5940
5941 #define delete_wxBrush(_swigobj) (delete _swigobj)
5942 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5943 PyObject * _resultobj;
5944 wxBrush * _arg0;
5945 PyObject * _argo0 = 0;
5946 char *_kwnames[] = { "self", NULL };
5947
5948 self = self;
5949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5950 return NULL;
5951 if (_argo0) {
5952 if (_argo0 == Py_None) { _arg0 = NULL; }
5953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5955 return NULL;
5956 }
5957 }
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 delete_wxBrush(_arg0);
5961
5962 wxPyEndAllowThreads(__tstate);
5963 if (PyErr_Occurred()) return NULL;
5964 } Py_INCREF(Py_None);
5965 _resultobj = Py_None;
5966 return _resultobj;
5967 }
5968
5969 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5970 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5971 PyObject * _resultobj;
5972 wxColour * _result;
5973 wxBrush * _arg0;
5974 PyObject * _argo0 = 0;
5975 char *_kwnames[] = { "self", NULL };
5976 char _ptemp[128];
5977
5978 self = self;
5979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5980 return NULL;
5981 if (_argo0) {
5982 if (_argo0 == Py_None) { _arg0 = NULL; }
5983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5985 return NULL;
5986 }
5987 }
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 _result = new wxColour (wxBrush_GetColour(_arg0));
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) return NULL;
5994 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5995 _resultobj = Py_BuildValue("s",_ptemp);
5996 return _resultobj;
5997 }
5998
5999 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6000 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6001 PyObject * _resultobj;
6002 wxBitmap * _result;
6003 wxBrush * _arg0;
6004 PyObject * _argo0 = 0;
6005 char *_kwnames[] = { "self", NULL };
6006 char _ptemp[128];
6007
6008 self = self;
6009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6010 return NULL;
6011 if (_argo0) {
6012 if (_argo0 == Py_None) { _arg0 = NULL; }
6013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6015 return NULL;
6016 }
6017 }
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6021
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) return NULL;
6024 } if (_result) {
6025 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6026 _resultobj = Py_BuildValue("s",_ptemp);
6027 } else {
6028 Py_INCREF(Py_None);
6029 _resultobj = Py_None;
6030 }
6031 return _resultobj;
6032 }
6033
6034 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6035 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6036 PyObject * _resultobj;
6037 int _result;
6038 wxBrush * _arg0;
6039 PyObject * _argo0 = 0;
6040 char *_kwnames[] = { "self", NULL };
6041
6042 self = self;
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6044 return NULL;
6045 if (_argo0) {
6046 if (_argo0 == Py_None) { _arg0 = NULL; }
6047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6049 return NULL;
6050 }
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 _result = (int )wxBrush_GetStyle(_arg0);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) return NULL;
6058 } _resultobj = Py_BuildValue("i",_result);
6059 return _resultobj;
6060 }
6061
6062 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6063 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject * _resultobj;
6065 bool _result;
6066 wxBrush * _arg0;
6067 PyObject * _argo0 = 0;
6068 char *_kwnames[] = { "self", NULL };
6069
6070 self = self;
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6072 return NULL;
6073 if (_argo0) {
6074 if (_argo0 == Py_None) { _arg0 = NULL; }
6075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6077 return NULL;
6078 }
6079 }
6080 {
6081 PyThreadState* __tstate = wxPyBeginAllowThreads();
6082 _result = (bool )wxBrush_Ok(_arg0);
6083
6084 wxPyEndAllowThreads(__tstate);
6085 if (PyErr_Occurred()) return NULL;
6086 } _resultobj = Py_BuildValue("i",_result);
6087 return _resultobj;
6088 }
6089
6090 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6091 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6092 PyObject * _resultobj;
6093 wxBrush * _arg0;
6094 wxColour * _arg1;
6095 PyObject * _argo0 = 0;
6096 wxColour temp;
6097 PyObject * _obj1 = 0;
6098 char *_kwnames[] = { "self","colour", NULL };
6099
6100 self = self;
6101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6102 return NULL;
6103 if (_argo0) {
6104 if (_argo0 == Py_None) { _arg0 = NULL; }
6105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6107 return NULL;
6108 }
6109 }
6110 {
6111 _arg1 = &temp;
6112 if (! wxColour_helper(_obj1, &_arg1))
6113 return NULL;
6114 }
6115 {
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 wxBrush_SetColour(_arg0,*_arg1);
6118
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) return NULL;
6121 } Py_INCREF(Py_None);
6122 _resultobj = Py_None;
6123 return _resultobj;
6124 }
6125
6126 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6127 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6128 PyObject * _resultobj;
6129 wxBrush * _arg0;
6130 wxBitmap * _arg1;
6131 PyObject * _argo0 = 0;
6132 PyObject * _argo1 = 0;
6133 char *_kwnames[] = { "self","bitmap", NULL };
6134
6135 self = self;
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6137 return NULL;
6138 if (_argo0) {
6139 if (_argo0 == Py_None) { _arg0 = NULL; }
6140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6142 return NULL;
6143 }
6144 }
6145 if (_argo1) {
6146 if (_argo1 == Py_None) { _arg1 = NULL; }
6147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6149 return NULL;
6150 }
6151 }
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 wxBrush_SetStipple(_arg0,*_arg1);
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) return NULL;
6158 } Py_INCREF(Py_None);
6159 _resultobj = Py_None;
6160 return _resultobj;
6161 }
6162
6163 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6164 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6165 PyObject * _resultobj;
6166 wxBrush * _arg0;
6167 int _arg1;
6168 PyObject * _argo0 = 0;
6169 char *_kwnames[] = { "self","style", NULL };
6170
6171 self = self;
6172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6173 return NULL;
6174 if (_argo0) {
6175 if (_argo0 == Py_None) { _arg0 = NULL; }
6176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6178 return NULL;
6179 }
6180 }
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 wxBrush_SetStyle(_arg0,_arg1);
6184
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) return NULL;
6187 } Py_INCREF(Py_None);
6188 _resultobj = Py_None;
6189 return _resultobj;
6190 }
6191
6192 static void *SwigwxBrushListTowxObject(void *ptr) {
6193 wxBrushList *src;
6194 wxObject *dest;
6195 src = (wxBrushList *) ptr;
6196 dest = (wxObject *) src;
6197 return (void *) dest;
6198 }
6199
6200 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6201 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject * _resultobj;
6203 wxBrushList * _arg0;
6204 wxBrush * _arg1;
6205 PyObject * _argo0 = 0;
6206 PyObject * _argo1 = 0;
6207 char *_kwnames[] = { "self","brush", NULL };
6208
6209 self = self;
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6211 return NULL;
6212 if (_argo0) {
6213 if (_argo0 == Py_None) { _arg0 = NULL; }
6214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6216 return NULL;
6217 }
6218 }
6219 if (_argo1) {
6220 if (_argo1 == Py_None) { _arg1 = NULL; }
6221 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6222 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6223 return NULL;
6224 }
6225 }
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 wxBrushList_AddBrush(_arg0,_arg1);
6229
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) return NULL;
6232 } Py_INCREF(Py_None);
6233 _resultobj = Py_None;
6234 return _resultobj;
6235 }
6236
6237 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6238 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject * _resultobj;
6240 wxBrush * _result;
6241 wxBrushList * _arg0;
6242 wxColour * _arg1;
6243 int _arg2;
6244 PyObject * _argo0 = 0;
6245 wxColour temp;
6246 PyObject * _obj1 = 0;
6247 char *_kwnames[] = { "self","colour","style", NULL };
6248 char _ptemp[128];
6249
6250 self = self;
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6252 return NULL;
6253 if (_argo0) {
6254 if (_argo0 == Py_None) { _arg0 = NULL; }
6255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6257 return NULL;
6258 }
6259 }
6260 {
6261 _arg1 = &temp;
6262 if (! wxColour_helper(_obj1, &_arg1))
6263 return NULL;
6264 }
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) return NULL;
6271 } if (_result) {
6272 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6273 _resultobj = Py_BuildValue("s",_ptemp);
6274 } else {
6275 Py_INCREF(Py_None);
6276 _resultobj = Py_None;
6277 }
6278 return _resultobj;
6279 }
6280
6281 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6282 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6283 PyObject * _resultobj;
6284 wxBrushList * _arg0;
6285 wxBrush * _arg1;
6286 PyObject * _argo0 = 0;
6287 PyObject * _argo1 = 0;
6288 char *_kwnames[] = { "self","brush", NULL };
6289
6290 self = self;
6291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6292 return NULL;
6293 if (_argo0) {
6294 if (_argo0 == Py_None) { _arg0 = NULL; }
6295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6297 return NULL;
6298 }
6299 }
6300 if (_argo1) {
6301 if (_argo1 == Py_None) { _arg1 = NULL; }
6302 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6303 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6304 return NULL;
6305 }
6306 }
6307 {
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 wxBrushList_RemoveBrush(_arg0,_arg1);
6310
6311 wxPyEndAllowThreads(__tstate);
6312 if (PyErr_Occurred()) return NULL;
6313 } Py_INCREF(Py_None);
6314 _resultobj = Py_None;
6315 return _resultobj;
6316 }
6317
6318 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6319 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6320 PyObject * _resultobj;
6321 int _result;
6322 wxBrushList * _arg0;
6323 PyObject * _argo0 = 0;
6324 char *_kwnames[] = { "self", NULL };
6325
6326 self = self;
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6328 return NULL;
6329 if (_argo0) {
6330 if (_argo0 == Py_None) { _arg0 = NULL; }
6331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6333 return NULL;
6334 }
6335 }
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 _result = (int )wxBrushList_GetCount(_arg0);
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) return NULL;
6342 } _resultobj = Py_BuildValue("i",_result);
6343 return _resultobj;
6344 }
6345
6346 static void *SwigwxDCTowxObject(void *ptr) {
6347 wxDC *src;
6348 wxObject *dest;
6349 src = (wxDC *) ptr;
6350 dest = (wxObject *) src;
6351 return (void *) dest;
6352 }
6353
6354 #define delete_wxDC(_swigobj) (delete _swigobj)
6355 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6356 PyObject * _resultobj;
6357 wxDC * _arg0;
6358 PyObject * _argo0 = 0;
6359 char *_kwnames[] = { "self", NULL };
6360
6361 self = self;
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
6363 return NULL;
6364 if (_argo0) {
6365 if (_argo0 == Py_None) { _arg0 = NULL; }
6366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6368 return NULL;
6369 }
6370 }
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 delete_wxDC(_arg0);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) return NULL;
6377 } Py_INCREF(Py_None);
6378 _resultobj = Py_None;
6379 return _resultobj;
6380 }
6381
6382 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6383 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject * _resultobj;
6385 wxDC * _arg0;
6386 PyObject * _argo0 = 0;
6387 char *_kwnames[] = { "self", NULL };
6388
6389 self = self;
6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
6391 return NULL;
6392 if (_argo0) {
6393 if (_argo0 == Py_None) { _arg0 = NULL; }
6394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6396 return NULL;
6397 }
6398 }
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 wxDC_BeginDrawing(_arg0);
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) return NULL;
6405 } Py_INCREF(Py_None);
6406 _resultobj = Py_None;
6407 return _resultobj;
6408 }
6409
6410 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6411 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
6412 PyObject * _resultobj;
6413 bool _result;
6414 wxDC * _arg0;
6415 long _arg1;
6416 long _arg2;
6417 long _arg3;
6418 long _arg4;
6419 wxDC * _arg5;
6420 long _arg6;
6421 long _arg7;
6422 int _arg8 = (int ) wxCOPY;
6423 int _arg9 = (int ) FALSE;
6424 PyObject * _argo0 = 0;
6425 PyObject * _argo5 = 0;
6426 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
6427
6428 self = self;
6429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
6430 return NULL;
6431 if (_argo0) {
6432 if (_argo0 == Py_None) { _arg0 = NULL; }
6433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6435 return NULL;
6436 }
6437 }
6438 if (_argo5) {
6439 if (_argo5 == Py_None) { _arg5 = NULL; }
6440 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
6441 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6442 return NULL;
6443 }
6444 }
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
6448
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) return NULL;
6451 } _resultobj = Py_BuildValue("i",_result);
6452 return _resultobj;
6453 }
6454
6455 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6456 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject * _resultobj;
6458 wxDC * _arg0;
6459 PyObject * _argo0 = 0;
6460 char *_kwnames[] = { "self", NULL };
6461
6462 self = self;
6463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
6464 return NULL;
6465 if (_argo0) {
6466 if (_argo0 == Py_None) { _arg0 = NULL; }
6467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6469 return NULL;
6470 }
6471 }
6472 {
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 wxDC_Clear(_arg0);
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) return NULL;
6478 } Py_INCREF(Py_None);
6479 _resultobj = Py_None;
6480 return _resultobj;
6481 }
6482
6483 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6484 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
6485 PyObject * _resultobj;
6486 wxDC * _arg0;
6487 long _arg1;
6488 long _arg2;
6489 PyObject * _argo0 = 0;
6490 char *_kwnames[] = { "self","x","y", NULL };
6491
6492 self = self;
6493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
6494 return NULL;
6495 if (_argo0) {
6496 if (_argo0 == Py_None) { _arg0 = NULL; }
6497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6499 return NULL;
6500 }
6501 }
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 wxDC_CrossHair(_arg0,_arg1,_arg2);
6505
6506 wxPyEndAllowThreads(__tstate);
6507 if (PyErr_Occurred()) return NULL;
6508 } Py_INCREF(Py_None);
6509 _resultobj = Py_None;
6510 return _resultobj;
6511 }
6512
6513 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6514 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6515 PyObject * _resultobj;
6516 wxDC * _arg0;
6517 PyObject * _argo0 = 0;
6518 char *_kwnames[] = { "self", NULL };
6519
6520 self = self;
6521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
6522 return NULL;
6523 if (_argo0) {
6524 if (_argo0 == Py_None) { _arg0 = NULL; }
6525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6527 return NULL;
6528 }
6529 }
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 wxDC_DestroyClippingRegion(_arg0);
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) return NULL;
6536 } Py_INCREF(Py_None);
6537 _resultobj = Py_None;
6538 return _resultobj;
6539 }
6540
6541 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6542 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
6543 PyObject * _resultobj;
6544 long _result;
6545 wxDC * _arg0;
6546 long _arg1;
6547 PyObject * _argo0 = 0;
6548 char *_kwnames[] = { "self","x", NULL };
6549
6550 self = self;
6551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
6552 return NULL;
6553 if (_argo0) {
6554 if (_argo0 == Py_None) { _arg0 = NULL; }
6555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6557 return NULL;
6558 }
6559 }
6560 {
6561 PyThreadState* __tstate = wxPyBeginAllowThreads();
6562 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6563
6564 wxPyEndAllowThreads(__tstate);
6565 if (PyErr_Occurred()) return NULL;
6566 } _resultobj = Py_BuildValue("l",_result);
6567 return _resultobj;
6568 }
6569
6570 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6571 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject * _resultobj;
6573 long _result;
6574 wxDC * _arg0;
6575 long _arg1;
6576 PyObject * _argo0 = 0;
6577 char *_kwnames[] = { "self","x", NULL };
6578
6579 self = self;
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
6581 return NULL;
6582 if (_argo0) {
6583 if (_argo0 == Py_None) { _arg0 = NULL; }
6584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6586 return NULL;
6587 }
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) return NULL;
6595 } _resultobj = Py_BuildValue("l",_result);
6596 return _resultobj;
6597 }
6598
6599 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6600 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
6601 PyObject * _resultobj;
6602 long _result;
6603 wxDC * _arg0;
6604 long _arg1;
6605 PyObject * _argo0 = 0;
6606 char *_kwnames[] = { "self","y", NULL };
6607
6608 self = self;
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
6610 return NULL;
6611 if (_argo0) {
6612 if (_argo0 == Py_None) { _arg0 = NULL; }
6613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6615 return NULL;
6616 }
6617 }
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6621
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) return NULL;
6624 } _resultobj = Py_BuildValue("l",_result);
6625 return _resultobj;
6626 }
6627
6628 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6629 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6630 PyObject * _resultobj;
6631 long _result;
6632 wxDC * _arg0;
6633 long _arg1;
6634 PyObject * _argo0 = 0;
6635 char *_kwnames[] = { "self","y", NULL };
6636
6637 self = self;
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
6639 return NULL;
6640 if (_argo0) {
6641 if (_argo0 == Py_None) { _arg0 = NULL; }
6642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6644 return NULL;
6645 }
6646 }
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6650
6651 wxPyEndAllowThreads(__tstate);
6652 if (PyErr_Occurred()) return NULL;
6653 } _resultobj = Py_BuildValue("l",_result);
6654 return _resultobj;
6655 }
6656
6657 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6658 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject * _resultobj;
6660 wxDC * _arg0;
6661 long _arg1;
6662 long _arg2;
6663 long _arg3;
6664 long _arg4;
6665 long _arg5;
6666 long _arg6;
6667 PyObject * _argo0 = 0;
6668 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
6669
6670 self = self;
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6672 return NULL;
6673 if (_argo0) {
6674 if (_argo0 == Py_None) { _arg0 = NULL; }
6675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6677 return NULL;
6678 }
6679 }
6680 {
6681 PyThreadState* __tstate = wxPyBeginAllowThreads();
6682 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6683
6684 wxPyEndAllowThreads(__tstate);
6685 if (PyErr_Occurred()) return NULL;
6686 } Py_INCREF(Py_None);
6687 _resultobj = Py_None;
6688 return _resultobj;
6689 }
6690
6691 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6692 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject * _resultobj;
6694 wxDC * _arg0;
6695 long _arg1;
6696 long _arg2;
6697 long _arg3;
6698 PyObject * _argo0 = 0;
6699 char *_kwnames[] = { "self","x","y","radius", NULL };
6700
6701 self = self;
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
6703 return NULL;
6704 if (_argo0) {
6705 if (_argo0 == Py_None) { _arg0 = NULL; }
6706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6708 return NULL;
6709 }
6710 }
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) return NULL;
6717 } Py_INCREF(Py_None);
6718 _resultobj = Py_None;
6719 return _resultobj;
6720 }
6721
6722 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6723 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject * _resultobj;
6725 wxDC * _arg0;
6726 long _arg1;
6727 long _arg2;
6728 long _arg3;
6729 long _arg4;
6730 PyObject * _argo0 = 0;
6731 char *_kwnames[] = { "self","x","y","width","height", NULL };
6732
6733 self = self;
6734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6735 return NULL;
6736 if (_argo0) {
6737 if (_argo0 == Py_None) { _arg0 = NULL; }
6738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6740 return NULL;
6741 }
6742 }
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6746
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) return NULL;
6749 } Py_INCREF(Py_None);
6750 _resultobj = Py_None;
6751 return _resultobj;
6752 }
6753
6754 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6755 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6756 PyObject * _resultobj;
6757 wxDC * _arg0;
6758 long _arg1;
6759 long _arg2;
6760 long _arg3;
6761 long _arg4;
6762 long _arg5;
6763 long _arg6;
6764 PyObject * _argo0 = 0;
6765 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6766
6767 self = self;
6768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6769 return NULL;
6770 if (_argo0) {
6771 if (_argo0 == Py_None) { _arg0 = NULL; }
6772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6774 return NULL;
6775 }
6776 }
6777 {
6778 PyThreadState* __tstate = wxPyBeginAllowThreads();
6779 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6780
6781 wxPyEndAllowThreads(__tstate);
6782 if (PyErr_Occurred()) return NULL;
6783 } Py_INCREF(Py_None);
6784 _resultobj = Py_None;
6785 return _resultobj;
6786 }
6787
6788 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6789 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6790 PyObject * _resultobj;
6791 wxDC * _arg0;
6792 wxIcon * _arg1;
6793 long _arg2;
6794 long _arg3;
6795 PyObject * _argo0 = 0;
6796 PyObject * _argo1 = 0;
6797 char *_kwnames[] = { "self","icon","x","y", NULL };
6798
6799 self = self;
6800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6801 return NULL;
6802 if (_argo0) {
6803 if (_argo0 == Py_None) { _arg0 = NULL; }
6804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6806 return NULL;
6807 }
6808 }
6809 if (_argo1) {
6810 if (_argo1 == Py_None) { _arg1 = NULL; }
6811 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6812 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6813 return NULL;
6814 }
6815 }
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6819
6820 wxPyEndAllowThreads(__tstate);
6821 if (PyErr_Occurred()) return NULL;
6822 } Py_INCREF(Py_None);
6823 _resultobj = Py_None;
6824 return _resultobj;
6825 }
6826
6827 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6828 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject * _resultobj;
6830 wxDC * _arg0;
6831 long _arg1;
6832 long _arg2;
6833 long _arg3;
6834 long _arg4;
6835 PyObject * _argo0 = 0;
6836 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6837
6838 self = self;
6839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6840 return NULL;
6841 if (_argo0) {
6842 if (_argo0 == Py_None) { _arg0 = NULL; }
6843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6845 return NULL;
6846 }
6847 }
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) return NULL;
6854 } Py_INCREF(Py_None);
6855 _resultobj = Py_None;
6856 return _resultobj;
6857 }
6858
6859 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6860 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject * _resultobj;
6862 wxDC * _arg0;
6863 int _arg1;
6864 wxPoint * _arg2;
6865 long _arg3 = (long ) 0;
6866 long _arg4 = (long ) 0;
6867 PyObject * _argo0 = 0;
6868 int NPOINTS;
6869 PyObject * _obj2 = 0;
6870 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6871
6872 self = self;
6873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6874 return NULL;
6875 if (_argo0) {
6876 if (_argo0 == Py_None) { _arg0 = NULL; }
6877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6879 return NULL;
6880 }
6881 }
6882 if (_obj2)
6883 {
6884 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6885 if (_arg2 == NULL) {
6886 return NULL;
6887 }
6888 }
6889 {
6890 _arg1 = NPOINTS;
6891 }
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) return NULL;
6898 } Py_INCREF(Py_None);
6899 _resultobj = Py_None;
6900 {
6901 delete [] _arg2;
6902 }
6903 return _resultobj;
6904 }
6905
6906 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6907 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6908 PyObject * _resultobj;
6909 wxDC * _arg0;
6910 int _arg1;
6911 wxPoint * _arg2;
6912 long _arg3 = (long ) 0;
6913 long _arg4 = (long ) 0;
6914 int _arg5 = (int ) wxODDEVEN_RULE;
6915 PyObject * _argo0 = 0;
6916 int NPOINTS;
6917 PyObject * _obj2 = 0;
6918 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6919
6920 self = self;
6921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6922 return NULL;
6923 if (_argo0) {
6924 if (_argo0 == Py_None) { _arg0 = NULL; }
6925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6927 return NULL;
6928 }
6929 }
6930 if (_obj2)
6931 {
6932 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6933 if (_arg2 == NULL) {
6934 return NULL;
6935 }
6936 }
6937 {
6938 _arg1 = NPOINTS;
6939 }
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) return NULL;
6946 } Py_INCREF(Py_None);
6947 _resultobj = Py_None;
6948 {
6949 delete [] _arg2;
6950 }
6951 return _resultobj;
6952 }
6953
6954 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6955 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6956 PyObject * _resultobj;
6957 wxDC * _arg0;
6958 long _arg1;
6959 long _arg2;
6960 PyObject * _argo0 = 0;
6961 char *_kwnames[] = { "self","x","y", NULL };
6962
6963 self = self;
6964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6965 return NULL;
6966 if (_argo0) {
6967 if (_argo0 == Py_None) { _arg0 = NULL; }
6968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6970 return NULL;
6971 }
6972 }
6973 {
6974 PyThreadState* __tstate = wxPyBeginAllowThreads();
6975 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6976
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) return NULL;
6979 } Py_INCREF(Py_None);
6980 _resultobj = Py_None;
6981 return _resultobj;
6982 }
6983
6984 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6985 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6986 PyObject * _resultobj;
6987 wxDC * _arg0;
6988 long _arg1;
6989 long _arg2;
6990 long _arg3;
6991 long _arg4;
6992 PyObject * _argo0 = 0;
6993 char *_kwnames[] = { "self","x","y","width","height", NULL };
6994
6995 self = self;
6996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6997 return NULL;
6998 if (_argo0) {
6999 if (_argo0 == Py_None) { _arg0 = NULL; }
7000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7002 return NULL;
7003 }
7004 }
7005 {
7006 PyThreadState* __tstate = wxPyBeginAllowThreads();
7007 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7008
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) return NULL;
7011 } Py_INCREF(Py_None);
7012 _resultobj = Py_None;
7013 return _resultobj;
7014 }
7015
7016 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7017 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7018 PyObject * _resultobj;
7019 wxDC * _arg0;
7020 wxString * _arg1;
7021 wxCoord _arg2;
7022 wxCoord _arg3;
7023 double _arg4;
7024 PyObject * _argo0 = 0;
7025 PyObject * _obj1 = 0;
7026 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7027
7028 self = self;
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7030 return NULL;
7031 if (_argo0) {
7032 if (_argo0 == Py_None) { _arg0 = NULL; }
7033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7035 return NULL;
7036 }
7037 }
7038 {
7039 #if PYTHON_API_VERSION >= 1009
7040 char* tmpPtr; int tmpSize;
7041 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7042 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7043 return NULL;
7044 }
7045 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7046 return NULL;
7047 _arg1 = new wxString(tmpPtr, tmpSize);
7048 #else
7049 if (!PyString_Check(_obj1)) {
7050 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7051 return NULL;
7052 }
7053 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7054 #endif
7055 }
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) return NULL;
7062 } Py_INCREF(Py_None);
7063 _resultobj = Py_None;
7064 {
7065 if (_obj1)
7066 delete _arg1;
7067 }
7068 return _resultobj;
7069 }
7070
7071 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7072 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7073 PyObject * _resultobj;
7074 wxDC * _arg0;
7075 long _arg1;
7076 long _arg2;
7077 long _arg3;
7078 long _arg4;
7079 long _arg5 = (long ) 20;
7080 PyObject * _argo0 = 0;
7081 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7082
7083 self = self;
7084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7085 return NULL;
7086 if (_argo0) {
7087 if (_argo0 == Py_None) { _arg0 = NULL; }
7088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7090 return NULL;
7091 }
7092 }
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) return NULL;
7099 } Py_INCREF(Py_None);
7100 _resultobj = Py_None;
7101 return _resultobj;
7102 }
7103
7104 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7105 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7106 PyObject * _resultobj;
7107 wxDC * _arg0;
7108 int _arg1;
7109 wxPoint * _arg2;
7110 PyObject * _argo0 = 0;
7111 int NPOINTS;
7112 PyObject * _obj2 = 0;
7113 char *_kwnames[] = { "self","points", NULL };
7114
7115 self = self;
7116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7117 return NULL;
7118 if (_argo0) {
7119 if (_argo0 == Py_None) { _arg0 = NULL; }
7120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7122 return NULL;
7123 }
7124 }
7125 if (_obj2)
7126 {
7127 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7128 if (_arg2 == NULL) {
7129 return NULL;
7130 }
7131 }
7132 {
7133 _arg1 = NPOINTS;
7134 }
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7138
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) return NULL;
7141 } Py_INCREF(Py_None);
7142 _resultobj = Py_None;
7143 {
7144 delete [] _arg2;
7145 }
7146 return _resultobj;
7147 }
7148
7149 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7150 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7151 PyObject * _resultobj;
7152 wxDC * _arg0;
7153 wxString * _arg1;
7154 long _arg2;
7155 long _arg3;
7156 PyObject * _argo0 = 0;
7157 PyObject * _obj1 = 0;
7158 char *_kwnames[] = { "self","text","x","y", NULL };
7159
7160 self = self;
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7162 return NULL;
7163 if (_argo0) {
7164 if (_argo0 == Py_None) { _arg0 = NULL; }
7165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7167 return NULL;
7168 }
7169 }
7170 {
7171 #if PYTHON_API_VERSION >= 1009
7172 char* tmpPtr; int tmpSize;
7173 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7174 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7175 return NULL;
7176 }
7177 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7178 return NULL;
7179 _arg1 = new wxString(tmpPtr, tmpSize);
7180 #else
7181 if (!PyString_Check(_obj1)) {
7182 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7183 return NULL;
7184 }
7185 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7186 #endif
7187 }
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7191
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) return NULL;
7194 } Py_INCREF(Py_None);
7195 _resultobj = Py_None;
7196 {
7197 if (_obj1)
7198 delete _arg1;
7199 }
7200 return _resultobj;
7201 }
7202
7203 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7204 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject * _resultobj;
7206 wxDC * _arg0;
7207 PyObject * _argo0 = 0;
7208 char *_kwnames[] = { "self", NULL };
7209
7210 self = self;
7211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7212 return NULL;
7213 if (_argo0) {
7214 if (_argo0 == Py_None) { _arg0 = NULL; }
7215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7217 return NULL;
7218 }
7219 }
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 wxDC_EndDoc(_arg0);
7223
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) return NULL;
7226 } Py_INCREF(Py_None);
7227 _resultobj = Py_None;
7228 return _resultobj;
7229 }
7230
7231 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7232 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject * _resultobj;
7234 wxDC * _arg0;
7235 PyObject * _argo0 = 0;
7236 char *_kwnames[] = { "self", NULL };
7237
7238 self = self;
7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7240 return NULL;
7241 if (_argo0) {
7242 if (_argo0 == Py_None) { _arg0 = NULL; }
7243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7245 return NULL;
7246 }
7247 }
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 wxDC_EndDrawing(_arg0);
7251
7252 wxPyEndAllowThreads(__tstate);
7253 if (PyErr_Occurred()) return NULL;
7254 } Py_INCREF(Py_None);
7255 _resultobj = Py_None;
7256 return _resultobj;
7257 }
7258
7259 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7260 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7261 PyObject * _resultobj;
7262 wxDC * _arg0;
7263 PyObject * _argo0 = 0;
7264 char *_kwnames[] = { "self", NULL };
7265
7266 self = self;
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
7268 return NULL;
7269 if (_argo0) {
7270 if (_argo0 == Py_None) { _arg0 = NULL; }
7271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7273 return NULL;
7274 }
7275 }
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 wxDC_EndPage(_arg0);
7279
7280 wxPyEndAllowThreads(__tstate);
7281 if (PyErr_Occurred()) return NULL;
7282 } Py_INCREF(Py_None);
7283 _resultobj = Py_None;
7284 return _resultobj;
7285 }
7286
7287 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7288 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject * _resultobj;
7290 wxDC * _arg0;
7291 long _arg1;
7292 long _arg2;
7293 wxColour * _arg3;
7294 int _arg4 = (int ) wxFLOOD_SURFACE;
7295 PyObject * _argo0 = 0;
7296 wxColour temp;
7297 PyObject * _obj3 = 0;
7298 char *_kwnames[] = { "self","x","y","colour","style", NULL };
7299
7300 self = self;
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
7302 return NULL;
7303 if (_argo0) {
7304 if (_argo0 == Py_None) { _arg0 = NULL; }
7305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7307 return NULL;
7308 }
7309 }
7310 {
7311 _arg3 = &temp;
7312 if (! wxColour_helper(_obj3, &_arg3))
7313 return NULL;
7314 }
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) return NULL;
7321 } Py_INCREF(Py_None);
7322 _resultobj = Py_None;
7323 return _resultobj;
7324 }
7325
7326 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7327 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject * _resultobj;
7329 wxBrush * _result;
7330 wxDC * _arg0;
7331 PyObject * _argo0 = 0;
7332 char *_kwnames[] = { "self", NULL };
7333 char _ptemp[128];
7334
7335 self = self;
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
7337 return NULL;
7338 if (_argo0) {
7339 if (_argo0 == Py_None) { _arg0 = NULL; }
7340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7342 return NULL;
7343 }
7344 }
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 _result = new wxBrush (wxDC_GetBackground(_arg0));
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) return NULL;
7351 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7352 _resultobj = Py_BuildValue("s",_ptemp);
7353 return _resultobj;
7354 }
7355
7356 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7357 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject * _resultobj;
7359 wxBrush * _result;
7360 wxDC * _arg0;
7361 PyObject * _argo0 = 0;
7362 char *_kwnames[] = { "self", NULL };
7363 char _ptemp[128];
7364
7365 self = self;
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
7367 return NULL;
7368 if (_argo0) {
7369 if (_argo0 == Py_None) { _arg0 = NULL; }
7370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7372 return NULL;
7373 }
7374 }
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 _result = new wxBrush (wxDC_GetBrush(_arg0));
7378
7379 wxPyEndAllowThreads(__tstate);
7380 if (PyErr_Occurred()) return NULL;
7381 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7382 _resultobj = Py_BuildValue("s",_ptemp);
7383 return _resultobj;
7384 }
7385
7386 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7387 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject * _resultobj;
7389 long _result;
7390 wxDC * _arg0;
7391 PyObject * _argo0 = 0;
7392 char *_kwnames[] = { "self", NULL };
7393
7394 self = self;
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
7396 return NULL;
7397 if (_argo0) {
7398 if (_argo0 == Py_None) { _arg0 = NULL; }
7399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7401 return NULL;
7402 }
7403 }
7404 {
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 _result = (long )wxDC_GetCharHeight(_arg0);
7407
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) return NULL;
7410 } _resultobj = Py_BuildValue("l",_result);
7411 return _resultobj;
7412 }
7413
7414 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7415 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject * _resultobj;
7417 long _result;
7418 wxDC * _arg0;
7419 PyObject * _argo0 = 0;
7420 char *_kwnames[] = { "self", NULL };
7421
7422 self = self;
7423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
7424 return NULL;
7425 if (_argo0) {
7426 if (_argo0 == Py_None) { _arg0 = NULL; }
7427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7429 return NULL;
7430 }
7431 }
7432 {
7433 PyThreadState* __tstate = wxPyBeginAllowThreads();
7434 _result = (long )wxDC_GetCharWidth(_arg0);
7435
7436 wxPyEndAllowThreads(__tstate);
7437 if (PyErr_Occurred()) return NULL;
7438 } _resultobj = Py_BuildValue("l",_result);
7439 return _resultobj;
7440 }
7441
7442 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7443 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject * _resultobj;
7445 wxDC * _arg0;
7446 long * _arg1;
7447 long temp;
7448 long * _arg2;
7449 long temp0;
7450 long * _arg3;
7451 long temp1;
7452 long * _arg4;
7453 long temp2;
7454 PyObject * _argo0 = 0;
7455 char *_kwnames[] = { "self", NULL };
7456
7457 self = self;
7458 {
7459 _arg1 = &temp;
7460 }
7461 {
7462 _arg2 = &temp0;
7463 }
7464 {
7465 _arg3 = &temp1;
7466 }
7467 {
7468 _arg4 = &temp2;
7469 }
7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
7471 return NULL;
7472 if (_argo0) {
7473 if (_argo0 == Py_None) { _arg0 = NULL; }
7474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7476 return NULL;
7477 }
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) return NULL;
7485 } Py_INCREF(Py_None);
7486 _resultobj = Py_None;
7487 {
7488 PyObject *o;
7489 o = PyInt_FromLong((long) (*_arg1));
7490 _resultobj = t_output_helper(_resultobj, o);
7491 }
7492 {
7493 PyObject *o;
7494 o = PyInt_FromLong((long) (*_arg2));
7495 _resultobj = t_output_helper(_resultobj, o);
7496 }
7497 {
7498 PyObject *o;
7499 o = PyInt_FromLong((long) (*_arg3));
7500 _resultobj = t_output_helper(_resultobj, o);
7501 }
7502 {
7503 PyObject *o;
7504 o = PyInt_FromLong((long) (*_arg4));
7505 _resultobj = t_output_helper(_resultobj, o);
7506 }
7507 return _resultobj;
7508 }
7509
7510 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7511 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7512 PyObject * _resultobj;
7513 wxFont * _result;
7514 wxDC * _arg0;
7515 PyObject * _argo0 = 0;
7516 char *_kwnames[] = { "self", NULL };
7517 char _ptemp[128];
7518
7519 self = self;
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
7521 return NULL;
7522 if (_argo0) {
7523 if (_argo0 == Py_None) { _arg0 = NULL; }
7524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7526 return NULL;
7527 }
7528 }
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 _result = new wxFont (wxDC_GetFont(_arg0));
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) return NULL;
7535 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7536 _resultobj = Py_BuildValue("s",_ptemp);
7537 return _resultobj;
7538 }
7539
7540 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7541 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7542 PyObject * _resultobj;
7543 int _result;
7544 wxDC * _arg0;
7545 PyObject * _argo0 = 0;
7546 char *_kwnames[] = { "self", NULL };
7547
7548 self = self;
7549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
7550 return NULL;
7551 if (_argo0) {
7552 if (_argo0 == Py_None) { _arg0 = NULL; }
7553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7555 return NULL;
7556 }
7557 }
7558 {
7559 PyThreadState* __tstate = wxPyBeginAllowThreads();
7560 _result = (int )wxDC_GetLogicalFunction(_arg0);
7561
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) return NULL;
7564 } _resultobj = Py_BuildValue("i",_result);
7565 return _resultobj;
7566 }
7567
7568 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7569 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject * _resultobj;
7571 wxDC * _arg0;
7572 double * _arg1;
7573 double temp;
7574 double * _arg2;
7575 double temp0;
7576 PyObject * _argo0 = 0;
7577 char *_kwnames[] = { "self", NULL };
7578
7579 self = self;
7580 {
7581 _arg1 = &temp;
7582 }
7583 {
7584 _arg2 = &temp0;
7585 }
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7587 return NULL;
7588 if (_argo0) {
7589 if (_argo0 == Py_None) { _arg0 = NULL; }
7590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7592 return NULL;
7593 }
7594 }
7595 {
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7598
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) return NULL;
7601 } Py_INCREF(Py_None);
7602 _resultobj = Py_None;
7603 {
7604 PyObject *o;
7605 o = PyFloat_FromDouble((double) (*_arg1));
7606 _resultobj = t_output_helper(_resultobj, o);
7607 }
7608 {
7609 PyObject *o;
7610 o = PyFloat_FromDouble((double) (*_arg2));
7611 _resultobj = t_output_helper(_resultobj, o);
7612 }
7613 return _resultobj;
7614 }
7615
7616 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7617 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7618 PyObject * _resultobj;
7619 int _result;
7620 wxDC * _arg0;
7621 PyObject * _argo0 = 0;
7622 char *_kwnames[] = { "self", NULL };
7623
7624 self = self;
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7626 return NULL;
7627 if (_argo0) {
7628 if (_argo0 == Py_None) { _arg0 = NULL; }
7629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7631 return NULL;
7632 }
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 _result = (int )wxDC_GetMapMode(_arg0);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) return NULL;
7640 } _resultobj = Py_BuildValue("i",_result);
7641 return _resultobj;
7642 }
7643
7644 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7645 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject * _resultobj;
7647 bool _result;
7648 wxDC * _arg0;
7649 PyObject * _argo0 = 0;
7650 char *_kwnames[] = { "self", NULL };
7651
7652 self = self;
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7654 return NULL;
7655 if (_argo0) {
7656 if (_argo0 == Py_None) { _arg0 = NULL; }
7657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7659 return NULL;
7660 }
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 _result = (bool )wxDC_GetOptimization(_arg0);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) return NULL;
7668 } _resultobj = Py_BuildValue("i",_result);
7669 return _resultobj;
7670 }
7671
7672 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7673 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7674 PyObject * _resultobj;
7675 wxPen * _result;
7676 wxDC * _arg0;
7677 PyObject * _argo0 = 0;
7678 char *_kwnames[] = { "self", NULL };
7679 char _ptemp[128];
7680
7681 self = self;
7682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7683 return NULL;
7684 if (_argo0) {
7685 if (_argo0 == Py_None) { _arg0 = NULL; }
7686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7688 return NULL;
7689 }
7690 }
7691 {
7692 PyThreadState* __tstate = wxPyBeginAllowThreads();
7693 _result = new wxPen (wxDC_GetPen(_arg0));
7694
7695 wxPyEndAllowThreads(__tstate);
7696 if (PyErr_Occurred()) return NULL;
7697 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7698 _resultobj = Py_BuildValue("s",_ptemp);
7699 return _resultobj;
7700 }
7701
7702 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7703 wxColour* wc = new wxColour();
7704 self->GetPixel(x, y, wc);
7705 return wc;
7706 }
7707 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7708 PyObject * _resultobj;
7709 wxColour * _result;
7710 wxDC * _arg0;
7711 long _arg1;
7712 long _arg2;
7713 PyObject * _argo0 = 0;
7714 char *_kwnames[] = { "self","x","y", NULL };
7715 char _ptemp[128];
7716
7717 self = self;
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7719 return NULL;
7720 if (_argo0) {
7721 if (_argo0 == Py_None) { _arg0 = NULL; }
7722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7724 return NULL;
7725 }
7726 }
7727 {
7728 PyThreadState* __tstate = wxPyBeginAllowThreads();
7729 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7730
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) return NULL;
7733 } if (_result) {
7734 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7735 _resultobj = Py_BuildValue("s",_ptemp);
7736 } else {
7737 Py_INCREF(Py_None);
7738 _resultobj = Py_None;
7739 }
7740 return _resultobj;
7741 }
7742
7743 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7744 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7745 PyObject * _resultobj;
7746 wxDC * _arg0;
7747 int * _arg1;
7748 int temp;
7749 int * _arg2;
7750 int temp0;
7751 PyObject * _argo0 = 0;
7752 char *_kwnames[] = { "self", NULL };
7753
7754 self = self;
7755 {
7756 _arg1 = &temp;
7757 }
7758 {
7759 _arg2 = &temp0;
7760 }
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7762 return NULL;
7763 if (_argo0) {
7764 if (_argo0 == Py_None) { _arg0 = NULL; }
7765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7767 return NULL;
7768 }
7769 }
7770 {
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7773
7774 wxPyEndAllowThreads(__tstate);
7775 if (PyErr_Occurred()) return NULL;
7776 } Py_INCREF(Py_None);
7777 _resultobj = Py_None;
7778 {
7779 PyObject *o;
7780 o = PyInt_FromLong((long) (*_arg1));
7781 _resultobj = t_output_helper(_resultobj, o);
7782 }
7783 {
7784 PyObject *o;
7785 o = PyInt_FromLong((long) (*_arg2));
7786 _resultobj = t_output_helper(_resultobj, o);
7787 }
7788 return _resultobj;
7789 }
7790
7791 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7792 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7793 PyObject * _resultobj;
7794 wxSize * _result;
7795 wxDC * _arg0;
7796 PyObject * _argo0 = 0;
7797 char *_kwnames[] = { "self", NULL };
7798 char _ptemp[128];
7799
7800 self = self;
7801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7802 return NULL;
7803 if (_argo0) {
7804 if (_argo0 == Py_None) { _arg0 = NULL; }
7805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7807 return NULL;
7808 }
7809 }
7810 {
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 _result = new wxSize (wxDC_GetSize(_arg0));
7813
7814 wxPyEndAllowThreads(__tstate);
7815 if (PyErr_Occurred()) return NULL;
7816 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7817 _resultobj = Py_BuildValue("s",_ptemp);
7818 return _resultobj;
7819 }
7820
7821 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7822 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject * _resultobj;
7824 wxSize * _result;
7825 wxDC * _arg0;
7826 PyObject * _argo0 = 0;
7827 char *_kwnames[] = { "self", NULL };
7828 char _ptemp[128];
7829
7830 self = self;
7831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7832 return NULL;
7833 if (_argo0) {
7834 if (_argo0 == Py_None) { _arg0 = NULL; }
7835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7837 return NULL;
7838 }
7839 }
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) return NULL;
7846 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7847 _resultobj = Py_BuildValue("s",_ptemp);
7848 return _resultobj;
7849 }
7850
7851 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7852 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject * _resultobj;
7854 wxColour * _result;
7855 wxDC * _arg0;
7856 PyObject * _argo0 = 0;
7857 char *_kwnames[] = { "self", NULL };
7858 char _ptemp[128];
7859
7860 self = self;
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7862 return NULL;
7863 if (_argo0) {
7864 if (_argo0 == Py_None) { _arg0 = NULL; }
7865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7867 return NULL;
7868 }
7869 }
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) return NULL;
7876 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7877 _resultobj = Py_BuildValue("s",_ptemp);
7878 return _resultobj;
7879 }
7880
7881 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7882 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject * _resultobj;
7884 wxDC * _arg0;
7885 wxString * _arg1;
7886 long * _arg2;
7887 long temp;
7888 long * _arg3;
7889 long temp0;
7890 PyObject * _argo0 = 0;
7891 PyObject * _obj1 = 0;
7892 char *_kwnames[] = { "self","string", NULL };
7893
7894 self = self;
7895 {
7896 _arg2 = &temp;
7897 }
7898 {
7899 _arg3 = &temp0;
7900 }
7901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7902 return NULL;
7903 if (_argo0) {
7904 if (_argo0 == Py_None) { _arg0 = NULL; }
7905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7907 return NULL;
7908 }
7909 }
7910 {
7911 #if PYTHON_API_VERSION >= 1009
7912 char* tmpPtr; int tmpSize;
7913 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7914 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7915 return NULL;
7916 }
7917 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7918 return NULL;
7919 _arg1 = new wxString(tmpPtr, tmpSize);
7920 #else
7921 if (!PyString_Check(_obj1)) {
7922 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7923 return NULL;
7924 }
7925 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7926 #endif
7927 }
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
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) (*_arg2));
7939 _resultobj = t_output_helper(_resultobj, o);
7940 }
7941 {
7942 PyObject *o;
7943 o = PyInt_FromLong((long) (*_arg3));
7944 _resultobj = t_output_helper(_resultobj, o);
7945 }
7946 {
7947 if (_obj1)
7948 delete _arg1;
7949 }
7950 return _resultobj;
7951 }
7952
7953 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7954 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7955 PyObject * _resultobj;
7956 wxDC * _arg0;
7957 wxString * _arg1;
7958 long * _arg2;
7959 long temp;
7960 long * _arg3;
7961 long temp0;
7962 long * _arg4;
7963 long temp1;
7964 long * _arg5;
7965 long temp2;
7966 wxFont * _arg6 = (wxFont *) NULL;
7967 PyObject * _argo0 = 0;
7968 PyObject * _obj1 = 0;
7969 PyObject * _argo6 = 0;
7970 char *_kwnames[] = { "self","string","font", NULL };
7971
7972 self = self;
7973 {
7974 _arg2 = &temp;
7975 }
7976 {
7977 _arg3 = &temp0;
7978 }
7979 {
7980 _arg4 = &temp1;
7981 }
7982 {
7983 _arg5 = &temp2;
7984 }
7985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7986 return NULL;
7987 if (_argo0) {
7988 if (_argo0 == Py_None) { _arg0 = NULL; }
7989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7991 return NULL;
7992 }
7993 }
7994 {
7995 #if PYTHON_API_VERSION >= 1009
7996 char* tmpPtr; int tmpSize;
7997 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7998 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7999 return NULL;
8000 }
8001 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8002 return NULL;
8003 _arg1 = new wxString(tmpPtr, tmpSize);
8004 #else
8005 if (!PyString_Check(_obj1)) {
8006 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8007 return NULL;
8008 }
8009 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8010 #endif
8011 }
8012 if (_argo6) {
8013 if (_argo6 == Py_None) { _arg6 = NULL; }
8014 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8015 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8016 return NULL;
8017 }
8018 }
8019 {
8020 PyThreadState* __tstate = wxPyBeginAllowThreads();
8021 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8022
8023 wxPyEndAllowThreads(__tstate);
8024 if (PyErr_Occurred()) return NULL;
8025 } Py_INCREF(Py_None);
8026 _resultobj = Py_None;
8027 {
8028 PyObject *o;
8029 o = PyInt_FromLong((long) (*_arg2));
8030 _resultobj = t_output_helper(_resultobj, o);
8031 }
8032 {
8033 PyObject *o;
8034 o = PyInt_FromLong((long) (*_arg3));
8035 _resultobj = t_output_helper(_resultobj, o);
8036 }
8037 {
8038 PyObject *o;
8039 o = PyInt_FromLong((long) (*_arg4));
8040 _resultobj = t_output_helper(_resultobj, o);
8041 }
8042 {
8043 PyObject *o;
8044 o = PyInt_FromLong((long) (*_arg5));
8045 _resultobj = t_output_helper(_resultobj, o);
8046 }
8047 {
8048 if (_obj1)
8049 delete _arg1;
8050 }
8051 return _resultobj;
8052 }
8053
8054 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8055 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8056 PyObject * _resultobj;
8057 wxColour * _result;
8058 wxDC * _arg0;
8059 PyObject * _argo0 = 0;
8060 char *_kwnames[] = { "self", NULL };
8061 char _ptemp[128];
8062
8063 self = self;
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8065 return NULL;
8066 if (_argo0) {
8067 if (_argo0 == Py_None) { _arg0 = NULL; }
8068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8070 return NULL;
8071 }
8072 }
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) return NULL;
8079 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8080 _resultobj = Py_BuildValue("s",_ptemp);
8081 return _resultobj;
8082 }
8083
8084 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8085 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject * _resultobj;
8087 wxDC * _arg0;
8088 double * _arg1;
8089 double temp;
8090 double * _arg2;
8091 double temp0;
8092 PyObject * _argo0 = 0;
8093 char *_kwnames[] = { "self", NULL };
8094
8095 self = self;
8096 {
8097 _arg1 = &temp;
8098 }
8099 {
8100 _arg2 = &temp0;
8101 }
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8103 return NULL;
8104 if (_argo0) {
8105 if (_argo0 == Py_None) { _arg0 = NULL; }
8106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8108 return NULL;
8109 }
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) return NULL;
8117 } Py_INCREF(Py_None);
8118 _resultobj = Py_None;
8119 {
8120 PyObject *o;
8121 o = PyFloat_FromDouble((double) (*_arg1));
8122 _resultobj = t_output_helper(_resultobj, o);
8123 }
8124 {
8125 PyObject *o;
8126 o = PyFloat_FromDouble((double) (*_arg2));
8127 _resultobj = t_output_helper(_resultobj, o);
8128 }
8129 return _resultobj;
8130 }
8131
8132 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8133 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject * _resultobj;
8135 long _result;
8136 wxDC * _arg0;
8137 long _arg1;
8138 PyObject * _argo0 = 0;
8139 char *_kwnames[] = { "self","x", NULL };
8140
8141 self = self;
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8143 return NULL;
8144 if (_argo0) {
8145 if (_argo0 == Py_None) { _arg0 = NULL; }
8146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8148 return NULL;
8149 }
8150 }
8151 {
8152 PyThreadState* __tstate = wxPyBeginAllowThreads();
8153 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8154
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) return NULL;
8157 } _resultobj = Py_BuildValue("l",_result);
8158 return _resultobj;
8159 }
8160
8161 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8162 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject * _resultobj;
8164 long _result;
8165 wxDC * _arg0;
8166 long _arg1;
8167 PyObject * _argo0 = 0;
8168 char *_kwnames[] = { "self","x", NULL };
8169
8170 self = self;
8171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8172 return NULL;
8173 if (_argo0) {
8174 if (_argo0 == Py_None) { _arg0 = NULL; }
8175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8177 return NULL;
8178 }
8179 }
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) return NULL;
8186 } _resultobj = Py_BuildValue("l",_result);
8187 return _resultobj;
8188 }
8189
8190 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8191 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8192 PyObject * _resultobj;
8193 long _result;
8194 wxDC * _arg0;
8195 long _arg1;
8196 PyObject * _argo0 = 0;
8197 char *_kwnames[] = { "self","y", NULL };
8198
8199 self = self;
8200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8201 return NULL;
8202 if (_argo0) {
8203 if (_argo0 == Py_None) { _arg0 = NULL; }
8204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8206 return NULL;
8207 }
8208 }
8209 {
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8212
8213 wxPyEndAllowThreads(__tstate);
8214 if (PyErr_Occurred()) return NULL;
8215 } _resultobj = Py_BuildValue("l",_result);
8216 return _resultobj;
8217 }
8218
8219 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8220 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject * _resultobj;
8222 long _result;
8223 wxDC * _arg0;
8224 long _arg1;
8225 PyObject * _argo0 = 0;
8226 char *_kwnames[] = { "self","y", NULL };
8227
8228 self = self;
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8230 return NULL;
8231 if (_argo0) {
8232 if (_argo0 == Py_None) { _arg0 = NULL; }
8233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8235 return NULL;
8236 }
8237 }
8238 {
8239 PyThreadState* __tstate = wxPyBeginAllowThreads();
8240 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8241
8242 wxPyEndAllowThreads(__tstate);
8243 if (PyErr_Occurred()) return NULL;
8244 } _resultobj = Py_BuildValue("l",_result);
8245 return _resultobj;
8246 }
8247
8248 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8249 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8250 PyObject * _resultobj;
8251 long _result;
8252 wxDC * _arg0;
8253 PyObject * _argo0 = 0;
8254 char *_kwnames[] = { "self", NULL };
8255
8256 self = self;
8257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8258 return NULL;
8259 if (_argo0) {
8260 if (_argo0 == Py_None) { _arg0 = NULL; }
8261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8263 return NULL;
8264 }
8265 }
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 _result = (long )wxDC_MaxX(_arg0);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) return NULL;
8272 } _resultobj = Py_BuildValue("l",_result);
8273 return _resultobj;
8274 }
8275
8276 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8277 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8278 PyObject * _resultobj;
8279 long _result;
8280 wxDC * _arg0;
8281 PyObject * _argo0 = 0;
8282 char *_kwnames[] = { "self", NULL };
8283
8284 self = self;
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8286 return NULL;
8287 if (_argo0) {
8288 if (_argo0 == Py_None) { _arg0 = NULL; }
8289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8291 return NULL;
8292 }
8293 }
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 _result = (long )wxDC_MaxY(_arg0);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) return NULL;
8300 } _resultobj = Py_BuildValue("l",_result);
8301 return _resultobj;
8302 }
8303
8304 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8305 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
8306 PyObject * _resultobj;
8307 long _result;
8308 wxDC * _arg0;
8309 PyObject * _argo0 = 0;
8310 char *_kwnames[] = { "self", NULL };
8311
8312 self = self;
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
8314 return NULL;
8315 if (_argo0) {
8316 if (_argo0 == Py_None) { _arg0 = NULL; }
8317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8319 return NULL;
8320 }
8321 }
8322 {
8323 PyThreadState* __tstate = wxPyBeginAllowThreads();
8324 _result = (long )wxDC_MinX(_arg0);
8325
8326 wxPyEndAllowThreads(__tstate);
8327 if (PyErr_Occurred()) return NULL;
8328 } _resultobj = Py_BuildValue("l",_result);
8329 return _resultobj;
8330 }
8331
8332 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8333 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
8334 PyObject * _resultobj;
8335 long _result;
8336 wxDC * _arg0;
8337 PyObject * _argo0 = 0;
8338 char *_kwnames[] = { "self", NULL };
8339
8340 self = self;
8341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
8342 return NULL;
8343 if (_argo0) {
8344 if (_argo0 == Py_None) { _arg0 = NULL; }
8345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8347 return NULL;
8348 }
8349 }
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 _result = (long )wxDC_MinY(_arg0);
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) return NULL;
8356 } _resultobj = Py_BuildValue("l",_result);
8357 return _resultobj;
8358 }
8359
8360 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8361 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8362 PyObject * _resultobj;
8363 bool _result;
8364 wxDC * _arg0;
8365 PyObject * _argo0 = 0;
8366 char *_kwnames[] = { "self", NULL };
8367
8368 self = self;
8369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
8370 return NULL;
8371 if (_argo0) {
8372 if (_argo0 == Py_None) { _arg0 = NULL; }
8373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8375 return NULL;
8376 }
8377 }
8378 {
8379 PyThreadState* __tstate = wxPyBeginAllowThreads();
8380 _result = (bool )wxDC_Ok(_arg0);
8381
8382 wxPyEndAllowThreads(__tstate);
8383 if (PyErr_Occurred()) return NULL;
8384 } _resultobj = Py_BuildValue("i",_result);
8385 return _resultobj;
8386 }
8387
8388 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8389 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8390 PyObject * _resultobj;
8391 wxDC * _arg0;
8392 long _arg1;
8393 long _arg2;
8394 PyObject * _argo0 = 0;
8395 char *_kwnames[] = { "self","x","y", NULL };
8396
8397 self = self;
8398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8399 return NULL;
8400 if (_argo0) {
8401 if (_argo0 == Py_None) { _arg0 = NULL; }
8402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8404 return NULL;
8405 }
8406 }
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) return NULL;
8413 } Py_INCREF(Py_None);
8414 _resultobj = Py_None;
8415 return _resultobj;
8416 }
8417
8418 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8419 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject * _resultobj;
8421 wxDC * _arg0;
8422 wxBrush * _arg1;
8423 PyObject * _argo0 = 0;
8424 PyObject * _argo1 = 0;
8425 char *_kwnames[] = { "self","brush", NULL };
8426
8427 self = self;
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
8429 return NULL;
8430 if (_argo0) {
8431 if (_argo0 == Py_None) { _arg0 = NULL; }
8432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8434 return NULL;
8435 }
8436 }
8437 if (_argo1) {
8438 if (_argo1 == Py_None) { _arg1 = NULL; }
8439 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8440 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8441 return NULL;
8442 }
8443 }
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 wxDC_SetBackground(_arg0,*_arg1);
8447
8448 wxPyEndAllowThreads(__tstate);
8449 if (PyErr_Occurred()) return NULL;
8450 } Py_INCREF(Py_None);
8451 _resultobj = Py_None;
8452 return _resultobj;
8453 }
8454
8455 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8456 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8457 PyObject * _resultobj;
8458 wxDC * _arg0;
8459 int _arg1;
8460 PyObject * _argo0 = 0;
8461 char *_kwnames[] = { "self","mode", NULL };
8462
8463 self = self;
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
8465 return NULL;
8466 if (_argo0) {
8467 if (_argo0 == Py_None) { _arg0 = NULL; }
8468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8470 return NULL;
8471 }
8472 }
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 wxDC_SetBackgroundMode(_arg0,_arg1);
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) return NULL;
8479 } Py_INCREF(Py_None);
8480 _resultobj = Py_None;
8481 return _resultobj;
8482 }
8483
8484 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8485 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8486 PyObject * _resultobj;
8487 wxDC * _arg0;
8488 long _arg1;
8489 long _arg2;
8490 long _arg3;
8491 long _arg4;
8492 PyObject * _argo0 = 0;
8493 char *_kwnames[] = { "self","x","y","width","height", NULL };
8494
8495 self = self;
8496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8497 return NULL;
8498 if (_argo0) {
8499 if (_argo0 == Py_None) { _arg0 = NULL; }
8500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8502 return NULL;
8503 }
8504 }
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) return NULL;
8511 } Py_INCREF(Py_None);
8512 _resultobj = Py_None;
8513 return _resultobj;
8514 }
8515
8516 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8517 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8518 PyObject * _resultobj;
8519 wxDC * _arg0;
8520 wxRegion * _arg1;
8521 PyObject * _argo0 = 0;
8522 PyObject * _argo1 = 0;
8523 char *_kwnames[] = { "self","region", NULL };
8524
8525 self = self;
8526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8527 return NULL;
8528 if (_argo0) {
8529 if (_argo0 == Py_None) { _arg0 = NULL; }
8530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8532 return NULL;
8533 }
8534 }
8535 if (_argo1) {
8536 if (_argo1 == Py_None) { _arg1 = NULL; }
8537 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8538 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8539 return NULL;
8540 }
8541 }
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8545
8546 wxPyEndAllowThreads(__tstate);
8547 if (PyErr_Occurred()) return NULL;
8548 } Py_INCREF(Py_None);
8549 _resultobj = Py_None;
8550 return _resultobj;
8551 }
8552
8553 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8554 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8555 PyObject * _resultobj;
8556 wxDC * _arg0;
8557 wxPalette * _arg1;
8558 PyObject * _argo0 = 0;
8559 PyObject * _argo1 = 0;
8560 char *_kwnames[] = { "self","colourMap", NULL };
8561
8562 self = self;
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8564 return NULL;
8565 if (_argo0) {
8566 if (_argo0 == Py_None) { _arg0 = NULL; }
8567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8569 return NULL;
8570 }
8571 }
8572 if (_argo1) {
8573 if (_argo1 == Py_None) { _arg1 = NULL; }
8574 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8575 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8576 return NULL;
8577 }
8578 }
8579 {
8580 PyThreadState* __tstate = wxPyBeginAllowThreads();
8581 wxDC_SetPalette(_arg0,*_arg1);
8582
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) return NULL;
8585 } Py_INCREF(Py_None);
8586 _resultobj = Py_None;
8587 return _resultobj;
8588 }
8589
8590 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8591 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject * _resultobj;
8593 wxDC * _arg0;
8594 wxBrush * _arg1;
8595 PyObject * _argo0 = 0;
8596 PyObject * _argo1 = 0;
8597 char *_kwnames[] = { "self","brush", NULL };
8598
8599 self = self;
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8601 return NULL;
8602 if (_argo0) {
8603 if (_argo0 == Py_None) { _arg0 = NULL; }
8604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8606 return NULL;
8607 }
8608 }
8609 if (_argo1) {
8610 if (_argo1 == Py_None) { _arg1 = NULL; }
8611 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8612 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8613 return NULL;
8614 }
8615 }
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 wxDC_SetBrush(_arg0,*_arg1);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) return NULL;
8622 } Py_INCREF(Py_None);
8623 _resultobj = Py_None;
8624 return _resultobj;
8625 }
8626
8627 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8628 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8629 PyObject * _resultobj;
8630 wxDC * _arg0;
8631 wxFont * _arg1;
8632 PyObject * _argo0 = 0;
8633 PyObject * _argo1 = 0;
8634 char *_kwnames[] = { "self","font", NULL };
8635
8636 self = self;
8637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8638 return NULL;
8639 if (_argo0) {
8640 if (_argo0 == Py_None) { _arg0 = NULL; }
8641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8643 return NULL;
8644 }
8645 }
8646 if (_argo1) {
8647 if (_argo1 == Py_None) { _arg1 = NULL; }
8648 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8649 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8650 return NULL;
8651 }
8652 }
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 wxDC_SetFont(_arg0,*_arg1);
8656
8657 wxPyEndAllowThreads(__tstate);
8658 if (PyErr_Occurred()) return NULL;
8659 } Py_INCREF(Py_None);
8660 _resultobj = Py_None;
8661 return _resultobj;
8662 }
8663
8664 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8665 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8666 PyObject * _resultobj;
8667 wxDC * _arg0;
8668 int _arg1;
8669 PyObject * _argo0 = 0;
8670 char *_kwnames[] = { "self","function", NULL };
8671
8672 self = self;
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8674 return NULL;
8675 if (_argo0) {
8676 if (_argo0 == Py_None) { _arg0 = NULL; }
8677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8679 return NULL;
8680 }
8681 }
8682 {
8683 PyThreadState* __tstate = wxPyBeginAllowThreads();
8684 wxDC_SetLogicalFunction(_arg0,_arg1);
8685
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) return NULL;
8688 } Py_INCREF(Py_None);
8689 _resultobj = Py_None;
8690 return _resultobj;
8691 }
8692
8693 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8694 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8695 PyObject * _resultobj;
8696 wxDC * _arg0;
8697 double _arg1;
8698 double _arg2;
8699 PyObject * _argo0 = 0;
8700 char *_kwnames[] = { "self","x","y", NULL };
8701
8702 self = self;
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8704 return NULL;
8705 if (_argo0) {
8706 if (_argo0 == Py_None) { _arg0 = NULL; }
8707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8709 return NULL;
8710 }
8711 }
8712 {
8713 PyThreadState* __tstate = wxPyBeginAllowThreads();
8714 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8715
8716 wxPyEndAllowThreads(__tstate);
8717 if (PyErr_Occurred()) return NULL;
8718 } Py_INCREF(Py_None);
8719 _resultobj = Py_None;
8720 return _resultobj;
8721 }
8722
8723 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8724 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8725 PyObject * _resultobj;
8726 wxDC * _arg0;
8727 int _arg1;
8728 PyObject * _argo0 = 0;
8729 char *_kwnames[] = { "self","mode", NULL };
8730
8731 self = self;
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8733 return NULL;
8734 if (_argo0) {
8735 if (_argo0 == Py_None) { _arg0 = NULL; }
8736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8738 return NULL;
8739 }
8740 }
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 wxDC_SetMapMode(_arg0,_arg1);
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) return NULL;
8747 } Py_INCREF(Py_None);
8748 _resultobj = Py_None;
8749 return _resultobj;
8750 }
8751
8752 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8753 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject * _resultobj;
8755 wxDC * _arg0;
8756 bool _arg1;
8757 PyObject * _argo0 = 0;
8758 int tempbool1;
8759 char *_kwnames[] = { "self","optimize", NULL };
8760
8761 self = self;
8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8763 return NULL;
8764 if (_argo0) {
8765 if (_argo0 == Py_None) { _arg0 = NULL; }
8766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8768 return NULL;
8769 }
8770 }
8771 _arg1 = (bool ) tempbool1;
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 wxDC_SetOptimization(_arg0,_arg1);
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) return NULL;
8778 } Py_INCREF(Py_None);
8779 _resultobj = Py_None;
8780 return _resultobj;
8781 }
8782
8783 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8784 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8785 PyObject * _resultobj;
8786 wxDC * _arg0;
8787 wxPen * _arg1;
8788 PyObject * _argo0 = 0;
8789 PyObject * _argo1 = 0;
8790 char *_kwnames[] = { "self","pen", NULL };
8791
8792 self = self;
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8794 return NULL;
8795 if (_argo0) {
8796 if (_argo0 == Py_None) { _arg0 = NULL; }
8797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8799 return NULL;
8800 }
8801 }
8802 if (_argo1) {
8803 if (_argo1 == Py_None) { _arg1 = NULL; }
8804 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8805 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8806 return NULL;
8807 }
8808 }
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 wxDC_SetPen(_arg0,*_arg1);
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) return NULL;
8815 } Py_INCREF(Py_None);
8816 _resultobj = Py_None;
8817 return _resultobj;
8818 }
8819
8820 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8821 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject * _resultobj;
8823 wxDC * _arg0;
8824 wxColour * _arg1;
8825 PyObject * _argo0 = 0;
8826 wxColour temp;
8827 PyObject * _obj1 = 0;
8828 char *_kwnames[] = { "self","colour", NULL };
8829
8830 self = self;
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
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_SetTextBackground. Expected _wxDC_p.");
8837 return NULL;
8838 }
8839 }
8840 {
8841 _arg1 = &temp;
8842 if (! wxColour_helper(_obj1, &_arg1))
8843 return NULL;
8844 }
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 wxDC_SetTextBackground(_arg0,*_arg1);
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) return NULL;
8851 } Py_INCREF(Py_None);
8852 _resultobj = Py_None;
8853 return _resultobj;
8854 }
8855
8856 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8857 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8858 PyObject * _resultobj;
8859 wxDC * _arg0;
8860 wxColour * _arg1;
8861 PyObject * _argo0 = 0;
8862 wxColour temp;
8863 PyObject * _obj1 = 0;
8864 char *_kwnames[] = { "self","colour", NULL };
8865
8866 self = self;
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8868 return NULL;
8869 if (_argo0) {
8870 if (_argo0 == Py_None) { _arg0 = NULL; }
8871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8873 return NULL;
8874 }
8875 }
8876 {
8877 _arg1 = &temp;
8878 if (! wxColour_helper(_obj1, &_arg1))
8879 return NULL;
8880 }
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 wxDC_SetTextForeground(_arg0,*_arg1);
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) return NULL;
8887 } Py_INCREF(Py_None);
8888 _resultobj = Py_None;
8889 return _resultobj;
8890 }
8891
8892 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8893 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject * _resultobj;
8895 wxDC * _arg0;
8896 double _arg1;
8897 double _arg2;
8898 PyObject * _argo0 = 0;
8899 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8900
8901 self = self;
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8903 return NULL;
8904 if (_argo0) {
8905 if (_argo0 == Py_None) { _arg0 = NULL; }
8906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8908 return NULL;
8909 }
8910 }
8911 {
8912 PyThreadState* __tstate = wxPyBeginAllowThreads();
8913 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8914
8915 wxPyEndAllowThreads(__tstate);
8916 if (PyErr_Occurred()) return NULL;
8917 } Py_INCREF(Py_None);
8918 _resultobj = Py_None;
8919 return _resultobj;
8920 }
8921
8922 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8923 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject * _resultobj;
8925 bool _result;
8926 wxDC * _arg0;
8927 wxString * _arg1;
8928 PyObject * _argo0 = 0;
8929 PyObject * _obj1 = 0;
8930 char *_kwnames[] = { "self","message", NULL };
8931
8932 self = self;
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
8934 return NULL;
8935 if (_argo0) {
8936 if (_argo0 == Py_None) { _arg0 = NULL; }
8937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8939 return NULL;
8940 }
8941 }
8942 {
8943 #if PYTHON_API_VERSION >= 1009
8944 char* tmpPtr; int tmpSize;
8945 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8946 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8947 return NULL;
8948 }
8949 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8950 return NULL;
8951 _arg1 = new wxString(tmpPtr, tmpSize);
8952 #else
8953 if (!PyString_Check(_obj1)) {
8954 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8955 return NULL;
8956 }
8957 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8958 #endif
8959 }
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) return NULL;
8966 } _resultobj = Py_BuildValue("i",_result);
8967 {
8968 if (_obj1)
8969 delete _arg1;
8970 }
8971 return _resultobj;
8972 }
8973
8974 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8975 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8976 PyObject * _resultobj;
8977 wxDC * _arg0;
8978 PyObject * _argo0 = 0;
8979 char *_kwnames[] = { "self", NULL };
8980
8981 self = self;
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
8983 return NULL;
8984 if (_argo0) {
8985 if (_argo0 == Py_None) { _arg0 = NULL; }
8986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8988 return NULL;
8989 }
8990 }
8991 {
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
8993 wxDC_StartPage(_arg0);
8994
8995 wxPyEndAllowThreads(__tstate);
8996 if (PyErr_Occurred()) return NULL;
8997 } Py_INCREF(Py_None);
8998 _resultobj = Py_None;
8999 return _resultobj;
9000 }
9001
9002 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9003 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9004 PyObject * _resultobj;
9005 wxDC * _arg0;
9006 wxBitmap * _arg1;
9007 long _arg2;
9008 long _arg3;
9009 int _arg4 = (int ) FALSE;
9010 PyObject * _argo0 = 0;
9011 PyObject * _argo1 = 0;
9012 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9013
9014 self = self;
9015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9016 return NULL;
9017 if (_argo0) {
9018 if (_argo0 == Py_None) { _arg0 = NULL; }
9019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9021 return NULL;
9022 }
9023 }
9024 if (_argo1) {
9025 if (_argo1 == Py_None) { _arg1 = NULL; }
9026 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9027 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9028 return NULL;
9029 }
9030 }
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) return NULL;
9037 } Py_INCREF(Py_None);
9038 _resultobj = Py_None;
9039 return _resultobj;
9040 }
9041
9042 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9043 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9044 PyObject * _resultobj;
9045 bool _result;
9046 wxDC * _arg0;
9047 PyObject * _argo0 = 0;
9048 char *_kwnames[] = { "self", NULL };
9049
9050 self = self;
9051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9052 return NULL;
9053 if (_argo0) {
9054 if (_argo0 == Py_None) { _arg0 = NULL; }
9055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9057 return NULL;
9058 }
9059 }
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) return NULL;
9066 } _resultobj = Py_BuildValue("i",_result);
9067 return _resultobj;
9068 }
9069
9070 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9071 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9072 PyObject * _resultobj;
9073 bool _result;
9074 wxDC * _arg0;
9075 PyObject * _argo0 = 0;
9076 char *_kwnames[] = { "self", NULL };
9077
9078 self = self;
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9080 return NULL;
9081 if (_argo0) {
9082 if (_argo0 == Py_None) { _arg0 = NULL; }
9083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9085 return NULL;
9086 }
9087 }
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9091
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) return NULL;
9094 } _resultobj = Py_BuildValue("i",_result);
9095 return _resultobj;
9096 }
9097
9098 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9099 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9100 PyObject * _resultobj;
9101 int _result;
9102 wxDC * _arg0;
9103 PyObject * _argo0 = 0;
9104 char *_kwnames[] = { "self", NULL };
9105
9106 self = self;
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9108 return NULL;
9109 if (_argo0) {
9110 if (_argo0 == Py_None) { _arg0 = NULL; }
9111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9113 return NULL;
9114 }
9115 }
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 _result = (int )wxDC_GetDepth(_arg0);
9119
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) return NULL;
9122 } _resultobj = Py_BuildValue("i",_result);
9123 return _resultobj;
9124 }
9125
9126 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9127 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9128 PyObject * _resultobj;
9129 wxSize * _result;
9130 wxDC * _arg0;
9131 PyObject * _argo0 = 0;
9132 char *_kwnames[] = { "self", NULL };
9133 char _ptemp[128];
9134
9135 self = self;
9136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9137 return NULL;
9138 if (_argo0) {
9139 if (_argo0 == Py_None) { _arg0 = NULL; }
9140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9142 return NULL;
9143 }
9144 }
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 _result = new wxSize (wxDC_GetPPI(_arg0));
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) return NULL;
9151 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9152 _resultobj = Py_BuildValue("s",_ptemp);
9153 return _resultobj;
9154 }
9155
9156 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9157 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject * _resultobj;
9159 wxDC * _arg0;
9160 int * _arg1;
9161 int temp;
9162 int * _arg2;
9163 int temp0;
9164 PyObject * _argo0 = 0;
9165 char *_kwnames[] = { "self", NULL };
9166
9167 self = self;
9168 {
9169 _arg1 = &temp;
9170 }
9171 {
9172 _arg2 = &temp0;
9173 }
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9175 return NULL;
9176 if (_argo0) {
9177 if (_argo0 == Py_None) { _arg0 = NULL; }
9178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9180 return NULL;
9181 }
9182 }
9183 {
9184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9185 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9186
9187 wxPyEndAllowThreads(__tstate);
9188 if (PyErr_Occurred()) return NULL;
9189 } Py_INCREF(Py_None);
9190 _resultobj = Py_None;
9191 {
9192 PyObject *o;
9193 o = PyInt_FromLong((long) (*_arg1));
9194 _resultobj = t_output_helper(_resultobj, o);
9195 }
9196 {
9197 PyObject *o;
9198 o = PyInt_FromLong((long) (*_arg2));
9199 _resultobj = t_output_helper(_resultobj, o);
9200 }
9201 return _resultobj;
9202 }
9203
9204 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9205 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject * _resultobj;
9207 wxDC * _arg0;
9208 int _arg1;
9209 int _arg2;
9210 PyObject * _argo0 = 0;
9211 char *_kwnames[] = { "self","x","y", NULL };
9212
9213 self = self;
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9215 return NULL;
9216 if (_argo0) {
9217 if (_argo0 == Py_None) { _arg0 = NULL; }
9218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9220 return NULL;
9221 }
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) return NULL;
9229 } Py_INCREF(Py_None);
9230 _resultobj = Py_None;
9231 return _resultobj;
9232 }
9233
9234 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9235 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject * _resultobj;
9237 wxDC * _arg0;
9238 int * _arg1;
9239 int temp;
9240 int * _arg2;
9241 int temp0;
9242 PyObject * _argo0 = 0;
9243 char *_kwnames[] = { "self", NULL };
9244
9245 self = self;
9246 {
9247 _arg1 = &temp;
9248 }
9249 {
9250 _arg2 = &temp0;
9251 }
9252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9253 return NULL;
9254 if (_argo0) {
9255 if (_argo0 == Py_None) { _arg0 = NULL; }
9256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9258 return NULL;
9259 }
9260 }
9261 {
9262 PyThreadState* __tstate = wxPyBeginAllowThreads();
9263 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9264
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) return NULL;
9267 } Py_INCREF(Py_None);
9268 _resultobj = Py_None;
9269 {
9270 PyObject *o;
9271 o = PyInt_FromLong((long) (*_arg1));
9272 _resultobj = t_output_helper(_resultobj, o);
9273 }
9274 {
9275 PyObject *o;
9276 o = PyInt_FromLong((long) (*_arg2));
9277 _resultobj = t_output_helper(_resultobj, o);
9278 }
9279 return _resultobj;
9280 }
9281
9282 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9283 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9284 PyObject * _resultobj;
9285 wxDC * _arg0;
9286 bool _arg1;
9287 bool _arg2;
9288 PyObject * _argo0 = 0;
9289 int tempbool1;
9290 int tempbool2;
9291 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9292
9293 self = self;
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
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_SetAxisOrientation. Expected _wxDC_p.");
9300 return NULL;
9301 }
9302 }
9303 _arg1 = (bool ) tempbool1;
9304 _arg2 = (bool ) tempbool2;
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) return NULL;
9311 } Py_INCREF(Py_None);
9312 _resultobj = Py_None;
9313 return _resultobj;
9314 }
9315
9316 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9317 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9318 PyObject * _resultobj;
9319 wxDC * _arg0;
9320 int _arg1;
9321 int _arg2;
9322 PyObject * _argo0 = 0;
9323 char *_kwnames[] = { "self","x","y", NULL };
9324
9325 self = self;
9326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9327 return NULL;
9328 if (_argo0) {
9329 if (_argo0 == Py_None) { _arg0 = NULL; }
9330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9332 return NULL;
9333 }
9334 }
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) return NULL;
9341 } Py_INCREF(Py_None);
9342 _resultobj = Py_None;
9343 return _resultobj;
9344 }
9345
9346 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9347 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject * _resultobj;
9349 wxDC * _arg0;
9350 PyObject * _argo0 = 0;
9351 char *_kwnames[] = { "self", NULL };
9352
9353 self = self;
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9355 return NULL;
9356 if (_argo0) {
9357 if (_argo0 == Py_None) { _arg0 = NULL; }
9358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9360 return NULL;
9361 }
9362 }
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
9365 wxDC_ResetBoundingBox(_arg0);
9366
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) return NULL;
9369 } Py_INCREF(Py_None);
9370 _resultobj = Py_None;
9371 return _resultobj;
9372 }
9373
9374 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject * _resultobj;
9376 wxDC * _arg0;
9377 int * _arg1;
9378 int temp;
9379 int * _arg2;
9380 int temp0;
9381 int * _arg3;
9382 int temp1;
9383 int * _arg4;
9384 int temp2;
9385 PyObject * _argo0 = 0;
9386 char *_kwnames[] = { "self", NULL };
9387
9388 self = self;
9389 {
9390 _arg1 = &temp;
9391 }
9392 {
9393 _arg2 = &temp0;
9394 }
9395 {
9396 _arg3 = &temp1;
9397 }
9398 {
9399 _arg4 = &temp2;
9400 }
9401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9402 return NULL;
9403 if (_argo0) {
9404 if (_argo0 == Py_None) { _arg0 = NULL; }
9405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9407 return NULL;
9408 }
9409 }
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9413
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) return NULL;
9416 } Py_INCREF(Py_None);
9417 _resultobj = Py_None;
9418 {
9419 PyObject *o;
9420 o = PyInt_FromLong((long) (*_arg1));
9421 _resultobj = t_output_helper(_resultobj, o);
9422 }
9423 {
9424 PyObject *o;
9425 o = PyInt_FromLong((long) (*_arg2));
9426 _resultobj = t_output_helper(_resultobj, o);
9427 }
9428 {
9429 PyObject *o;
9430 o = PyInt_FromLong((long) (*_arg3));
9431 _resultobj = t_output_helper(_resultobj, o);
9432 }
9433 {
9434 PyObject *o;
9435 o = PyInt_FromLong((long) (*_arg4));
9436 _resultobj = t_output_helper(_resultobj, o);
9437 }
9438 return _resultobj;
9439 }
9440
9441 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9442 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9443 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9444 int numObjs = 0;
9445 int numPens = 0;
9446 wxPen* pen;
9447 PyObject* obj;
9448 int x1, y1;
9449 int i = 0;
9450
9451 if (!PySequence_Check(pyPoints)) {
9452 goto err0;
9453 }
9454 if (!PySequence_Check(pyPens)) {
9455 goto err1;
9456 }
9457 numObjs = PySequence_Length(pyPoints);
9458 numPens = PySequence_Length(pyPens);
9459
9460 for (i = 0; i < numObjs; i++) {
9461 // Use a new pen?
9462 if (i < numPens) {
9463 if (isFastPens) {
9464 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9465 }
9466 else {
9467 obj = PySequence_GetItem(pyPens, i);
9468 }
9469 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9470 if (!isFastPens)
9471 Py_DECREF(obj);
9472 goto err1;
9473 }
9474
9475 self->SetPen(*pen);
9476 if (!isFastPens)
9477 Py_DECREF(obj);
9478 }
9479
9480 // Get the point coordinants
9481 if (isFastSeq) {
9482 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9483 }
9484 else {
9485 obj = PySequence_GetItem(pyPoints, i);
9486 }
9487 if (! _2int_seq_helper(obj, &x1, &y1)) {
9488 if (!isFastPens)
9489 Py_DECREF(obj);
9490 goto err0;
9491 }
9492
9493 // Now draw the point
9494 self->DrawPoint(x1, y1);
9495
9496 if (!isFastSeq)
9497 Py_DECREF(obj);
9498 }
9499
9500 Py_INCREF(Py_None);
9501 return Py_None;
9502
9503 err1:
9504 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9505 return NULL;
9506 err0:
9507 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9508 return NULL;
9509 }
9510 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject * _resultobj;
9512 PyObject * _result;
9513 wxDC * _arg0;
9514 PyObject * _arg1;
9515 PyObject * _arg2;
9516 PyObject * _argo0 = 0;
9517 PyObject * _obj1 = 0;
9518 PyObject * _obj2 = 0;
9519 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9520
9521 self = self;
9522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9523 return NULL;
9524 if (_argo0) {
9525 if (_argo0 == Py_None) { _arg0 = NULL; }
9526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9528 return NULL;
9529 }
9530 }
9531 {
9532 _arg1 = _obj1;
9533 }
9534 {
9535 _arg2 = _obj2;
9536 }
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9540
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) return NULL;
9543 }{
9544 _resultobj = _result;
9545 }
9546 return _resultobj;
9547 }
9548
9549 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9550 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9551 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9552 int numObjs = 0;
9553 int numPens = 0;
9554 wxPen* pen;
9555 PyObject* obj;
9556 int x1, y1, x2, y2;
9557 int i = 0;
9558
9559 if (!PySequence_Check(pyLines)) {
9560 goto err0;
9561 }
9562 if (!PySequence_Check(pyPens)) {
9563 goto err1;
9564 }
9565 numObjs = PySequence_Length(pyLines);
9566 numPens = PySequence_Length(pyPens);
9567
9568 for (i = 0; i < numObjs; i++) {
9569 // Use a new pen?
9570 if (i < numPens) {
9571 if (isFastPens) {
9572 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9573 }
9574 else {
9575 obj = PySequence_GetItem(pyPens, i);
9576 }
9577 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9578 if (!isFastPens)
9579 Py_DECREF(obj);
9580 goto err1;
9581 }
9582
9583 self->SetPen(*pen);
9584 if (!isFastPens)
9585 Py_DECREF(obj);
9586 }
9587
9588 // Get the line coordinants
9589 if (isFastSeq) {
9590 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9591 }
9592 else {
9593 obj = PySequence_GetItem(pyLines, i);
9594 }
9595 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9596 if (!isFastPens)
9597 Py_DECREF(obj);
9598 goto err0;
9599 }
9600
9601 // Now draw the line
9602 self->DrawLine(x1, y1, x2, y2);
9603
9604 if (!isFastSeq)
9605 Py_DECREF(obj);
9606 }
9607
9608 Py_INCREF(Py_None);
9609 return Py_None;
9610
9611 err1:
9612 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9613 return NULL;
9614 err0:
9615 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9616 return NULL;
9617 }
9618 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9619 PyObject * _resultobj;
9620 PyObject * _result;
9621 wxDC * _arg0;
9622 PyObject * _arg1;
9623 PyObject * _arg2;
9624 PyObject * _argo0 = 0;
9625 PyObject * _obj1 = 0;
9626 PyObject * _obj2 = 0;
9627 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9628
9629 self = self;
9630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9631 return NULL;
9632 if (_argo0) {
9633 if (_argo0 == Py_None) { _arg0 = NULL; }
9634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9636 return NULL;
9637 }
9638 }
9639 {
9640 _arg1 = _obj1;
9641 }
9642 {
9643 _arg2 = _obj2;
9644 }
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9648
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) return NULL;
9651 }{
9652 _resultobj = _result;
9653 }
9654 return _resultobj;
9655 }
9656
9657 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9658 wxMemoryDC *src;
9659 wxDC *dest;
9660 src = (wxMemoryDC *) ptr;
9661 dest = (wxDC *) src;
9662 return (void *) dest;
9663 }
9664
9665 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9666 wxMemoryDC *src;
9667 wxObject *dest;
9668 src = (wxMemoryDC *) ptr;
9669 dest = (wxObject *) src;
9670 return (void *) dest;
9671 }
9672
9673 #define new_wxMemoryDC() (new wxMemoryDC())
9674 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9675 PyObject * _resultobj;
9676 wxMemoryDC * _result;
9677 char *_kwnames[] = { NULL };
9678 char _ptemp[128];
9679
9680 self = self;
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9682 return NULL;
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 _result = (wxMemoryDC *)new_wxMemoryDC();
9686
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) return NULL;
9689 } if (_result) {
9690 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9691 _resultobj = Py_BuildValue("s",_ptemp);
9692 } else {
9693 Py_INCREF(Py_None);
9694 _resultobj = Py_None;
9695 }
9696 return _resultobj;
9697 }
9698
9699 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9700 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject * _resultobj;
9702 wxMemoryDC * _arg0;
9703 wxBitmap * _arg1;
9704 PyObject * _argo0 = 0;
9705 PyObject * _argo1 = 0;
9706 char *_kwnames[] = { "self","bitmap", NULL };
9707
9708 self = self;
9709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9710 return NULL;
9711 if (_argo0) {
9712 if (_argo0 == Py_None) { _arg0 = NULL; }
9713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9715 return NULL;
9716 }
9717 }
9718 if (_argo1) {
9719 if (_argo1 == Py_None) { _arg1 = NULL; }
9720 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9721 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9722 return NULL;
9723 }
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 wxMemoryDC_SelectObject(_arg0,*_arg1);
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) return NULL;
9731 } Py_INCREF(Py_None);
9732 _resultobj = Py_None;
9733 return _resultobj;
9734 }
9735
9736 static void *SwigwxScreenDCTowxDC(void *ptr) {
9737 wxScreenDC *src;
9738 wxDC *dest;
9739 src = (wxScreenDC *) ptr;
9740 dest = (wxDC *) src;
9741 return (void *) dest;
9742 }
9743
9744 static void *SwigwxScreenDCTowxObject(void *ptr) {
9745 wxScreenDC *src;
9746 wxObject *dest;
9747 src = (wxScreenDC *) ptr;
9748 dest = (wxObject *) src;
9749 return (void *) dest;
9750 }
9751
9752 #define new_wxScreenDC() (new wxScreenDC())
9753 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9754 PyObject * _resultobj;
9755 wxScreenDC * _result;
9756 char *_kwnames[] = { NULL };
9757 char _ptemp[128];
9758
9759 self = self;
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9761 return NULL;
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 _result = (wxScreenDC *)new_wxScreenDC();
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) return NULL;
9768 } if (_result) {
9769 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9770 _resultobj = Py_BuildValue("s",_ptemp);
9771 } else {
9772 Py_INCREF(Py_None);
9773 _resultobj = Py_None;
9774 }
9775 return _resultobj;
9776 }
9777
9778 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9779 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9780 PyObject * _resultobj;
9781 bool _result;
9782 wxScreenDC * _arg0;
9783 wxWindow * _arg1;
9784 PyObject * _argo0 = 0;
9785 PyObject * _argo1 = 0;
9786 char *_kwnames[] = { "self","window", NULL };
9787
9788 self = self;
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9790 return NULL;
9791 if (_argo0) {
9792 if (_argo0 == Py_None) { _arg0 = NULL; }
9793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9795 return NULL;
9796 }
9797 }
9798 if (_argo1) {
9799 if (_argo1 == Py_None) { _arg1 = NULL; }
9800 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9801 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9802 return NULL;
9803 }
9804 }
9805 {
9806 PyThreadState* __tstate = wxPyBeginAllowThreads();
9807 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9808
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) return NULL;
9811 } _resultobj = Py_BuildValue("i",_result);
9812 return _resultobj;
9813 }
9814
9815 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9816 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9817 PyObject * _resultobj;
9818 bool _result;
9819 wxScreenDC * _arg0;
9820 wxRect * _arg1 = (wxRect *) NULL;
9821 PyObject * _argo0 = 0;
9822 wxRect temp;
9823 PyObject * _obj1 = 0;
9824 char *_kwnames[] = { "self","rect", NULL };
9825
9826 self = self;
9827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9828 return NULL;
9829 if (_argo0) {
9830 if (_argo0 == Py_None) { _arg0 = NULL; }
9831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9833 return NULL;
9834 }
9835 }
9836 if (_obj1)
9837 {
9838 _arg1 = &temp;
9839 if (! wxRect_helper(_obj1, &_arg1))
9840 return NULL;
9841 }
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) return NULL;
9848 } _resultobj = Py_BuildValue("i",_result);
9849 return _resultobj;
9850 }
9851
9852 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9853 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9854 PyObject * _resultobj;
9855 bool _result;
9856 wxScreenDC * _arg0;
9857 PyObject * _argo0 = 0;
9858 char *_kwnames[] = { "self", NULL };
9859
9860 self = self;
9861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9862 return NULL;
9863 if (_argo0) {
9864 if (_argo0 == Py_None) { _arg0 = NULL; }
9865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9867 return NULL;
9868 }
9869 }
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) return NULL;
9876 } _resultobj = Py_BuildValue("i",_result);
9877 return _resultobj;
9878 }
9879
9880 static void *SwigwxClientDCTowxDC(void *ptr) {
9881 wxClientDC *src;
9882 wxDC *dest;
9883 src = (wxClientDC *) ptr;
9884 dest = (wxDC *) src;
9885 return (void *) dest;
9886 }
9887
9888 static void *SwigwxClientDCTowxObject(void *ptr) {
9889 wxClientDC *src;
9890 wxObject *dest;
9891 src = (wxClientDC *) ptr;
9892 dest = (wxObject *) src;
9893 return (void *) dest;
9894 }
9895
9896 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9897 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9898 PyObject * _resultobj;
9899 wxClientDC * _result;
9900 wxWindow * _arg0;
9901 PyObject * _argo0 = 0;
9902 char *_kwnames[] = { "win", NULL };
9903 char _ptemp[128];
9904
9905 self = self;
9906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
9907 return NULL;
9908 if (_argo0) {
9909 if (_argo0 == Py_None) { _arg0 = NULL; }
9910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9912 return NULL;
9913 }
9914 }
9915 {
9916 PyThreadState* __tstate = wxPyBeginAllowThreads();
9917 _result = (wxClientDC *)new_wxClientDC(_arg0);
9918
9919 wxPyEndAllowThreads(__tstate);
9920 if (PyErr_Occurred()) return NULL;
9921 } if (_result) {
9922 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9923 _resultobj = Py_BuildValue("s",_ptemp);
9924 } else {
9925 Py_INCREF(Py_None);
9926 _resultobj = Py_None;
9927 }
9928 return _resultobj;
9929 }
9930
9931 static void *SwigwxPaintDCTowxDC(void *ptr) {
9932 wxPaintDC *src;
9933 wxDC *dest;
9934 src = (wxPaintDC *) ptr;
9935 dest = (wxDC *) src;
9936 return (void *) dest;
9937 }
9938
9939 static void *SwigwxPaintDCTowxObject(void *ptr) {
9940 wxPaintDC *src;
9941 wxObject *dest;
9942 src = (wxPaintDC *) ptr;
9943 dest = (wxObject *) src;
9944 return (void *) dest;
9945 }
9946
9947 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9948 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9949 PyObject * _resultobj;
9950 wxPaintDC * _result;
9951 wxWindow * _arg0;
9952 PyObject * _argo0 = 0;
9953 char *_kwnames[] = { "win", NULL };
9954 char _ptemp[128];
9955
9956 self = self;
9957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
9958 return NULL;
9959 if (_argo0) {
9960 if (_argo0 == Py_None) { _arg0 = NULL; }
9961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9963 return NULL;
9964 }
9965 }
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9969
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) return NULL;
9972 } if (_result) {
9973 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9974 _resultobj = Py_BuildValue("s",_ptemp);
9975 } else {
9976 Py_INCREF(Py_None);
9977 _resultobj = Py_None;
9978 }
9979 return _resultobj;
9980 }
9981
9982 static void *SwigwxWindowDCTowxDC(void *ptr) {
9983 wxWindowDC *src;
9984 wxDC *dest;
9985 src = (wxWindowDC *) ptr;
9986 dest = (wxDC *) src;
9987 return (void *) dest;
9988 }
9989
9990 static void *SwigwxWindowDCTowxObject(void *ptr) {
9991 wxWindowDC *src;
9992 wxObject *dest;
9993 src = (wxWindowDC *) ptr;
9994 dest = (wxObject *) src;
9995 return (void *) dest;
9996 }
9997
9998 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9999 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10000 PyObject * _resultobj;
10001 wxWindowDC * _result;
10002 wxWindow * _arg0;
10003 PyObject * _argo0 = 0;
10004 char *_kwnames[] = { "win", NULL };
10005 char _ptemp[128];
10006
10007 self = self;
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10009 return NULL;
10010 if (_argo0) {
10011 if (_argo0 == Py_None) { _arg0 = NULL; }
10012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10014 return NULL;
10015 }
10016 }
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10020
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) return NULL;
10023 } if (_result) {
10024 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10025 _resultobj = Py_BuildValue("s",_ptemp);
10026 } else {
10027 Py_INCREF(Py_None);
10028 _resultobj = Py_None;
10029 }
10030 return _resultobj;
10031 }
10032
10033 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10034 wxPalette *src;
10035 wxGDIObject *dest;
10036 src = (wxPalette *) ptr;
10037 dest = (wxGDIObject *) src;
10038 return (void *) dest;
10039 }
10040
10041 static void *SwigwxPaletteTowxObject(void *ptr) {
10042 wxPalette *src;
10043 wxObject *dest;
10044 src = (wxPalette *) ptr;
10045 dest = (wxObject *) src;
10046 return (void *) dest;
10047 }
10048
10049 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10050 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10051 PyObject * _resultobj;
10052 wxPalette * _result;
10053 int _arg0;
10054 byte * _arg1;
10055 byte * _arg2;
10056 byte * _arg3;
10057 PyObject * _obj1 = 0;
10058 PyObject * _obj2 = 0;
10059 PyObject * _obj3 = 0;
10060 char *_kwnames[] = { "choices","choices","choices", NULL };
10061 char _ptemp[128];
10062
10063 self = self;
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10065 return NULL;
10066 {
10067 _arg1 = byte_LIST_helper(_obj1);
10068 if (_arg1 == NULL) {
10069 return NULL;
10070 }
10071 }
10072 {
10073 _arg2 = byte_LIST_helper(_obj2);
10074 if (_arg2 == NULL) {
10075 return NULL;
10076 }
10077 }
10078 if (_obj3)
10079 {
10080 _arg3 = byte_LIST_helper(_obj3);
10081 if (_arg3 == NULL) {
10082 return NULL;
10083 }
10084 }
10085 {
10086 if (_obj1) {
10087 _arg0 = PyList_Size(_obj1);
10088 }
10089 else {
10090 _arg0 = 0;
10091 }
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) return NULL;
10099 } if (_result) {
10100 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10101 _resultobj = Py_BuildValue("s",_ptemp);
10102 } else {
10103 Py_INCREF(Py_None);
10104 _resultobj = Py_None;
10105 }
10106 {
10107 delete [] _arg1;
10108 }
10109 {
10110 delete [] _arg2;
10111 }
10112 {
10113 delete [] _arg3;
10114 }
10115 return _resultobj;
10116 }
10117
10118 #define delete_wxPalette(_swigobj) (delete _swigobj)
10119 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject * _resultobj;
10121 wxPalette * _arg0;
10122 PyObject * _argo0 = 0;
10123 char *_kwnames[] = { "self", NULL };
10124
10125 self = self;
10126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10127 return NULL;
10128 if (_argo0) {
10129 if (_argo0 == Py_None) { _arg0 = NULL; }
10130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10132 return NULL;
10133 }
10134 }
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 delete_wxPalette(_arg0);
10138
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) return NULL;
10141 } Py_INCREF(Py_None);
10142 _resultobj = Py_None;
10143 return _resultobj;
10144 }
10145
10146 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10147 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10148 PyObject * _resultobj;
10149 int _result;
10150 wxPalette * _arg0;
10151 byte _arg1;
10152 byte _arg2;
10153 byte _arg3;
10154 PyObject * _argo0 = 0;
10155 char *_kwnames[] = { "self","red","green","blue", NULL };
10156
10157 self = self;
10158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10159 return NULL;
10160 if (_argo0) {
10161 if (_argo0 == Py_None) { _arg0 = NULL; }
10162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10164 return NULL;
10165 }
10166 }
10167 {
10168 PyThreadState* __tstate = wxPyBeginAllowThreads();
10169 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10170
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) return NULL;
10173 } _resultobj = Py_BuildValue("i",_result);
10174 return _resultobj;
10175 }
10176
10177 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10178 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10179 PyObject * _resultobj;
10180 bool _result;
10181 wxPalette * _arg0;
10182 int _arg1;
10183 byte * _arg2;
10184 byte * _arg3;
10185 byte * _arg4;
10186 PyObject * _argo0 = 0;
10187 PyObject * _argo2 = 0;
10188 PyObject * _argo3 = 0;
10189 PyObject * _argo4 = 0;
10190 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
10191
10192 self = self;
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
10194 return NULL;
10195 if (_argo0) {
10196 if (_argo0 == Py_None) { _arg0 = NULL; }
10197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10199 return NULL;
10200 }
10201 }
10202 if (_argo2) {
10203 if (_argo2 == Py_None) { _arg2 = NULL; }
10204 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
10205 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10206 return NULL;
10207 }
10208 }
10209 if (_argo3) {
10210 if (_argo3 == Py_None) { _arg3 = NULL; }
10211 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
10212 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10213 return NULL;
10214 }
10215 }
10216 if (_argo4) {
10217 if (_argo4 == Py_None) { _arg4 = NULL; }
10218 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
10219 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10220 return NULL;
10221 }
10222 }
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) return NULL;
10229 } _resultobj = Py_BuildValue("i",_result);
10230 return _resultobj;
10231 }
10232
10233 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10234 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject * _resultobj;
10236 bool _result;
10237 wxPalette * _arg0;
10238 PyObject * _argo0 = 0;
10239 char *_kwnames[] = { "self", NULL };
10240
10241 self = self;
10242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10243 return NULL;
10244 if (_argo0) {
10245 if (_argo0 == Py_None) { _arg0 = NULL; }
10246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10248 return NULL;
10249 }
10250 }
10251 {
10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
10253 _result = (bool )wxPalette_Ok(_arg0);
10254
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) return NULL;
10257 } _resultobj = Py_BuildValue("i",_result);
10258 return _resultobj;
10259 }
10260
10261 static void *SwigwxImageListTowxObject(void *ptr) {
10262 wxImageList *src;
10263 wxObject *dest;
10264 src = (wxImageList *) ptr;
10265 dest = (wxObject *) src;
10266 return (void *) dest;
10267 }
10268
10269 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10270 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10271 PyObject * _resultobj;
10272 wxImageList * _result;
10273 int _arg0;
10274 int _arg1;
10275 int _arg2 = (int ) TRUE;
10276 int _arg3 = (int ) 1;
10277 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10278 char _ptemp[128];
10279
10280 self = self;
10281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10282 return NULL;
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10286
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) return NULL;
10289 } if (_result) {
10290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10291 _resultobj = Py_BuildValue("s",_ptemp);
10292 } else {
10293 Py_INCREF(Py_None);
10294 _resultobj = Py_None;
10295 }
10296 return _resultobj;
10297 }
10298
10299 #define delete_wxImageList(_swigobj) (delete _swigobj)
10300 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10301 PyObject * _resultobj;
10302 wxImageList * _arg0;
10303 PyObject * _argo0 = 0;
10304 char *_kwnames[] = { "self", NULL };
10305
10306 self = self;
10307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10308 return NULL;
10309 if (_argo0) {
10310 if (_argo0 == Py_None) { _arg0 = NULL; }
10311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10313 return NULL;
10314 }
10315 }
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 delete_wxImageList(_arg0);
10319
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) return NULL;
10322 } Py_INCREF(Py_None);
10323 _resultobj = Py_None;
10324 return _resultobj;
10325 }
10326
10327 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10328 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10329 PyObject * _resultobj;
10330 int _result;
10331 wxImageList * _arg0;
10332 wxBitmap * _arg1;
10333 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10334 PyObject * _argo0 = 0;
10335 PyObject * _argo1 = 0;
10336 PyObject * _argo2 = 0;
10337 char *_kwnames[] = { "self","bitmap","mask", NULL };
10338
10339 self = self;
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10341 return NULL;
10342 if (_argo0) {
10343 if (_argo0 == Py_None) { _arg0 = NULL; }
10344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10346 return NULL;
10347 }
10348 }
10349 if (_argo1) {
10350 if (_argo1 == Py_None) { _arg1 = NULL; }
10351 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10352 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10353 return NULL;
10354 }
10355 }
10356 if (_argo2) {
10357 if (_argo2 == Py_None) { _arg2 = NULL; }
10358 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10359 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10360 return NULL;
10361 }
10362 }
10363 {
10364 PyThreadState* __tstate = wxPyBeginAllowThreads();
10365 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10366
10367 wxPyEndAllowThreads(__tstate);
10368 if (PyErr_Occurred()) return NULL;
10369 } _resultobj = Py_BuildValue("i",_result);
10370 return _resultobj;
10371 }
10372
10373 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10374 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10375 PyObject * _resultobj;
10376 int _result;
10377 wxImageList * _arg0;
10378 wxBitmap * _arg1;
10379 wxColour * _arg2;
10380 PyObject * _argo0 = 0;
10381 PyObject * _argo1 = 0;
10382 wxColour temp;
10383 PyObject * _obj2 = 0;
10384 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10385
10386 self = self;
10387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10388 return NULL;
10389 if (_argo0) {
10390 if (_argo0 == Py_None) { _arg0 = NULL; }
10391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10393 return NULL;
10394 }
10395 }
10396 if (_argo1) {
10397 if (_argo1 == Py_None) { _arg1 = NULL; }
10398 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10399 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10400 return NULL;
10401 }
10402 }
10403 {
10404 _arg2 = &temp;
10405 if (! wxColour_helper(_obj2, &_arg2))
10406 return NULL;
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) return NULL;
10414 } _resultobj = Py_BuildValue("i",_result);
10415 return _resultobj;
10416 }
10417
10418 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10419 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10420 PyObject * _resultobj;
10421 int _result;
10422 wxImageList * _arg0;
10423 wxIcon * _arg1;
10424 PyObject * _argo0 = 0;
10425 PyObject * _argo1 = 0;
10426 char *_kwnames[] = { "self","icon", NULL };
10427
10428 self = self;
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10430 return NULL;
10431 if (_argo0) {
10432 if (_argo0 == Py_None) { _arg0 = NULL; }
10433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10435 return NULL;
10436 }
10437 }
10438 if (_argo1) {
10439 if (_argo1 == Py_None) { _arg1 = NULL; }
10440 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10441 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10442 return NULL;
10443 }
10444 }
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10448
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) return NULL;
10451 } _resultobj = Py_BuildValue("i",_result);
10452 return _resultobj;
10453 }
10454
10455 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10456 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10457 PyObject * _resultobj;
10458 bool _result;
10459 wxImageList * _arg0;
10460 int _arg1;
10461 wxBitmap * _arg2;
10462 PyObject * _argo0 = 0;
10463 PyObject * _argo2 = 0;
10464 char *_kwnames[] = { "self","index","bitmap", NULL };
10465
10466 self = self;
10467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
10468 return NULL;
10469 if (_argo0) {
10470 if (_argo0 == Py_None) { _arg0 = NULL; }
10471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10473 return NULL;
10474 }
10475 }
10476 if (_argo2) {
10477 if (_argo2 == Py_None) { _arg2 = NULL; }
10478 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10479 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10480 return NULL;
10481 }
10482 }
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
10486
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) return NULL;
10489 } _resultobj = Py_BuildValue("i",_result);
10490 return _resultobj;
10491 }
10492
10493 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10494 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10495 PyObject * _resultobj;
10496 bool _result;
10497 wxImageList * _arg0;
10498 int _arg1;
10499 wxDC * _arg2;
10500 int _arg3;
10501 int _arg4;
10502 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10503 bool _arg6 = (bool ) FALSE;
10504 PyObject * _argo0 = 0;
10505 PyObject * _argo2 = 0;
10506 int tempbool6 = (int) FALSE;
10507 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
10508
10509 self = self;
10510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
10511 return NULL;
10512 if (_argo0) {
10513 if (_argo0 == Py_None) { _arg0 = NULL; }
10514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10516 return NULL;
10517 }
10518 }
10519 if (_argo2) {
10520 if (_argo2 == Py_None) { _arg2 = NULL; }
10521 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10522 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10523 return NULL;
10524 }
10525 }
10526 _arg6 = (bool ) tempbool6;
10527 {
10528 PyThreadState* __tstate = wxPyBeginAllowThreads();
10529 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10530
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) return NULL;
10533 } _resultobj = Py_BuildValue("i",_result);
10534 return _resultobj;
10535 }
10536
10537 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10538 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10539 PyObject * _resultobj;
10540 int _result;
10541 wxImageList * _arg0;
10542 PyObject * _argo0 = 0;
10543 char *_kwnames[] = { "self", NULL };
10544
10545 self = self;
10546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
10547 return NULL;
10548 if (_argo0) {
10549 if (_argo0 == Py_None) { _arg0 = NULL; }
10550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10552 return NULL;
10553 }
10554 }
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 _result = (int )wxImageList_GetImageCount(_arg0);
10558
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) return NULL;
10561 } _resultobj = Py_BuildValue("i",_result);
10562 return _resultobj;
10563 }
10564
10565 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10566 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10567 PyObject * _resultobj;
10568 bool _result;
10569 wxImageList * _arg0;
10570 int _arg1;
10571 PyObject * _argo0 = 0;
10572 char *_kwnames[] = { "self","index", NULL };
10573
10574 self = self;
10575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
10576 return NULL;
10577 if (_argo0) {
10578 if (_argo0 == Py_None) { _arg0 = NULL; }
10579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10581 return NULL;
10582 }
10583 }
10584 {
10585 PyThreadState* __tstate = wxPyBeginAllowThreads();
10586 _result = (bool )wxImageList_Remove(_arg0,_arg1);
10587
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) return NULL;
10590 } _resultobj = Py_BuildValue("i",_result);
10591 return _resultobj;
10592 }
10593
10594 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10595 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
10596 PyObject * _resultobj;
10597 bool _result;
10598 wxImageList * _arg0;
10599 PyObject * _argo0 = 0;
10600 char *_kwnames[] = { "self", NULL };
10601
10602 self = self;
10603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
10604 return NULL;
10605 if (_argo0) {
10606 if (_argo0 == Py_None) { _arg0 = NULL; }
10607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10609 return NULL;
10610 }
10611 }
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 _result = (bool )wxImageList_RemoveAll(_arg0);
10615
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) return NULL;
10618 } _resultobj = Py_BuildValue("i",_result);
10619 return _resultobj;
10620 }
10621
10622 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10623 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10624 PyObject * _resultobj;
10625 wxImageList * _arg0;
10626 int _arg1;
10627 int * _arg2;
10628 int temp;
10629 int * _arg3;
10630 int temp0;
10631 PyObject * _argo0 = 0;
10632 char *_kwnames[] = { "self","index", NULL };
10633
10634 self = self;
10635 {
10636 _arg2 = &temp;
10637 }
10638 {
10639 _arg3 = &temp0;
10640 }
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10642 return NULL;
10643 if (_argo0) {
10644 if (_argo0 == Py_None) { _arg0 = NULL; }
10645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10647 return NULL;
10648 }
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) return NULL;
10656 } Py_INCREF(Py_None);
10657 _resultobj = Py_None;
10658 {
10659 PyObject *o;
10660 o = PyInt_FromLong((long) (*_arg2));
10661 _resultobj = t_output_helper(_resultobj, o);
10662 }
10663 {
10664 PyObject *o;
10665 o = PyInt_FromLong((long) (*_arg3));
10666 _resultobj = t_output_helper(_resultobj, o);
10667 }
10668 return _resultobj;
10669 }
10670
10671 static void *SwigwxRegionTowxGDIObject(void *ptr) {
10672 wxRegion *src;
10673 wxGDIObject *dest;
10674 src = (wxRegion *) ptr;
10675 dest = (wxGDIObject *) src;
10676 return (void *) dest;
10677 }
10678
10679 static void *SwigwxRegionTowxObject(void *ptr) {
10680 wxRegion *src;
10681 wxObject *dest;
10682 src = (wxRegion *) ptr;
10683 dest = (wxObject *) src;
10684 return (void *) dest;
10685 }
10686
10687 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10688 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10689 PyObject * _resultobj;
10690 wxRegion * _result;
10691 long _arg0 = (long ) 0;
10692 long _arg1 = (long ) 0;
10693 long _arg2 = (long ) 0;
10694 long _arg3 = (long ) 0;
10695 char *_kwnames[] = { "x","y","width","height", NULL };
10696 char _ptemp[128];
10697
10698 self = self;
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10700 return NULL;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) return NULL;
10707 } if (_result) {
10708 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10709 _resultobj = Py_BuildValue("s",_ptemp);
10710 } else {
10711 Py_INCREF(Py_None);
10712 _resultobj = Py_None;
10713 }
10714 return _resultobj;
10715 }
10716
10717 #define delete_wxRegion(_swigobj) (delete _swigobj)
10718 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10719 PyObject * _resultobj;
10720 wxRegion * _arg0;
10721 PyObject * _argo0 = 0;
10722 char *_kwnames[] = { "self", NULL };
10723
10724 self = self;
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
10726 return NULL;
10727 if (_argo0) {
10728 if (_argo0 == Py_None) { _arg0 = NULL; }
10729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10731 return NULL;
10732 }
10733 }
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 delete_wxRegion(_arg0);
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) return NULL;
10740 } Py_INCREF(Py_None);
10741 _resultobj = Py_None;
10742 return _resultobj;
10743 }
10744
10745 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10746 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10747 PyObject * _resultobj;
10748 wxRegion * _arg0;
10749 PyObject * _argo0 = 0;
10750 char *_kwnames[] = { "self", NULL };
10751
10752 self = self;
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10754 return NULL;
10755 if (_argo0) {
10756 if (_argo0 == Py_None) { _arg0 = NULL; }
10757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10759 return NULL;
10760 }
10761 }
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 wxRegion_Clear(_arg0);
10765
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) return NULL;
10768 } Py_INCREF(Py_None);
10769 _resultobj = Py_None;
10770 return _resultobj;
10771 }
10772
10773 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10774 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10775 PyObject * _resultobj;
10776 wxRegionContain _result;
10777 wxRegion * _arg0;
10778 long _arg1;
10779 long _arg2;
10780 PyObject * _argo0 = 0;
10781 char *_kwnames[] = { "self","x","y", NULL };
10782
10783 self = self;
10784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
10785 return NULL;
10786 if (_argo0) {
10787 if (_argo0 == Py_None) { _arg0 = NULL; }
10788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10790 return NULL;
10791 }
10792 }
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
10796
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) return NULL;
10799 } _resultobj = Py_BuildValue("i",_result);
10800 return _resultobj;
10801 }
10802
10803 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10804 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10805 PyObject * _resultobj;
10806 wxRegionContain _result;
10807 wxRegion * _arg0;
10808 wxPoint * _arg1;
10809 PyObject * _argo0 = 0;
10810 wxPoint temp;
10811 PyObject * _obj1 = 0;
10812 char *_kwnames[] = { "self","pt", NULL };
10813
10814 self = self;
10815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10816 return NULL;
10817 if (_argo0) {
10818 if (_argo0 == Py_None) { _arg0 = NULL; }
10819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10821 return NULL;
10822 }
10823 }
10824 {
10825 _arg1 = &temp;
10826 if (! wxPoint_helper(_obj1, &_arg1))
10827 return NULL;
10828 }
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
10832
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) return NULL;
10835 } _resultobj = Py_BuildValue("i",_result);
10836 return _resultobj;
10837 }
10838
10839 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10840 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10841 PyObject * _resultobj;
10842 wxRegionContain _result;
10843 wxRegion * _arg0;
10844 wxRect * _arg1;
10845 PyObject * _argo0 = 0;
10846 wxRect temp;
10847 PyObject * _obj1 = 0;
10848 char *_kwnames[] = { "self","rect", NULL };
10849
10850 self = self;
10851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10852 return NULL;
10853 if (_argo0) {
10854 if (_argo0 == Py_None) { _arg0 = NULL; }
10855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10857 return NULL;
10858 }
10859 }
10860 {
10861 _arg1 = &temp;
10862 if (! wxRect_helper(_obj1, &_arg1))
10863 return NULL;
10864 }
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) return NULL;
10871 } _resultobj = Py_BuildValue("i",_result);
10872 return _resultobj;
10873 }
10874
10875 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10876 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10877 PyObject * _resultobj;
10878 wxRegionContain _result;
10879 wxRegion * _arg0;
10880 long _arg1;
10881 long _arg2;
10882 long _arg3;
10883 long _arg4;
10884 PyObject * _argo0 = 0;
10885 char *_kwnames[] = { "self","x","y","w","h", NULL };
10886
10887 self = self;
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10889 return NULL;
10890 if (_argo0) {
10891 if (_argo0 == Py_None) { _arg0 = NULL; }
10892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10894 return NULL;
10895 }
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) return NULL;
10903 } _resultobj = Py_BuildValue("i",_result);
10904 return _resultobj;
10905 }
10906
10907 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10908 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject * _resultobj;
10910 wxRect * _result;
10911 wxRegion * _arg0;
10912 PyObject * _argo0 = 0;
10913 char *_kwnames[] = { "self", NULL };
10914 char _ptemp[128];
10915
10916 self = self;
10917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10918 return NULL;
10919 if (_argo0) {
10920 if (_argo0 == Py_None) { _arg0 = NULL; }
10921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10923 return NULL;
10924 }
10925 }
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 _result = new wxRect (wxRegion_GetBox(_arg0));
10929
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) return NULL;
10932 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10933 _resultobj = Py_BuildValue("s",_ptemp);
10934 return _resultobj;
10935 }
10936
10937 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10938 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10939 PyObject * _resultobj;
10940 bool _result;
10941 wxRegion * _arg0;
10942 long _arg1;
10943 long _arg2;
10944 long _arg3;
10945 long _arg4;
10946 PyObject * _argo0 = 0;
10947 char *_kwnames[] = { "self","x","y","width","height", NULL };
10948
10949 self = self;
10950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10951 return NULL;
10952 if (_argo0) {
10953 if (_argo0 == Py_None) { _arg0 = NULL; }
10954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10956 return NULL;
10957 }
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
10962
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) return NULL;
10965 } _resultobj = Py_BuildValue("i",_result);
10966 return _resultobj;
10967 }
10968
10969 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10970 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject * _resultobj;
10972 bool _result;
10973 wxRegion * _arg0;
10974 wxRect * _arg1;
10975 PyObject * _argo0 = 0;
10976 wxRect temp;
10977 PyObject * _obj1 = 0;
10978 char *_kwnames[] = { "self","rect", NULL };
10979
10980 self = self;
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
10982 return NULL;
10983 if (_argo0) {
10984 if (_argo0 == Py_None) { _arg0 = NULL; }
10985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10987 return NULL;
10988 }
10989 }
10990 {
10991 _arg1 = &temp;
10992 if (! wxRect_helper(_obj1, &_arg1))
10993 return NULL;
10994 }
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) return NULL;
11001 } _resultobj = Py_BuildValue("i",_result);
11002 return _resultobj;
11003 }
11004
11005 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11006 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11007 PyObject * _resultobj;
11008 bool _result;
11009 wxRegion * _arg0;
11010 wxRegion * _arg1;
11011 PyObject * _argo0 = 0;
11012 PyObject * _argo1 = 0;
11013 char *_kwnames[] = { "self","region", NULL };
11014
11015 self = self;
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11017 return NULL;
11018 if (_argo0) {
11019 if (_argo0 == Py_None) { _arg0 = NULL; }
11020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11022 return NULL;
11023 }
11024 }
11025 if (_argo1) {
11026 if (_argo1 == Py_None) { _arg1 = NULL; }
11027 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11028 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11029 return NULL;
11030 }
11031 }
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) return NULL;
11038 } _resultobj = Py_BuildValue("i",_result);
11039 return _resultobj;
11040 }
11041
11042 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11043 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11044 PyObject * _resultobj;
11045 bool _result;
11046 wxRegion * _arg0;
11047 PyObject * _argo0 = 0;
11048 char *_kwnames[] = { "self", NULL };
11049
11050 self = self;
11051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11052 return NULL;
11053 if (_argo0) {
11054 if (_argo0 == Py_None) { _arg0 = NULL; }
11055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11057 return NULL;
11058 }
11059 }
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 _result = (bool )wxRegion_IsEmpty(_arg0);
11063
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) return NULL;
11066 } _resultobj = Py_BuildValue("i",_result);
11067 return _resultobj;
11068 }
11069
11070 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11071 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11072 PyObject * _resultobj;
11073 bool _result;
11074 wxRegion * _arg0;
11075 long _arg1;
11076 long _arg2;
11077 long _arg3;
11078 long _arg4;
11079 PyObject * _argo0 = 0;
11080 char *_kwnames[] = { "self","x","y","width","height", NULL };
11081
11082 self = self;
11083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11084 return NULL;
11085 if (_argo0) {
11086 if (_argo0 == Py_None) { _arg0 = NULL; }
11087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11089 return NULL;
11090 }
11091 }
11092 {
11093 PyThreadState* __tstate = wxPyBeginAllowThreads();
11094 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11095
11096 wxPyEndAllowThreads(__tstate);
11097 if (PyErr_Occurred()) return NULL;
11098 } _resultobj = Py_BuildValue("i",_result);
11099 return _resultobj;
11100 }
11101
11102 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11103 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject * _resultobj;
11105 bool _result;
11106 wxRegion * _arg0;
11107 wxRect * _arg1;
11108 PyObject * _argo0 = 0;
11109 wxRect temp;
11110 PyObject * _obj1 = 0;
11111 char *_kwnames[] = { "self","rect", NULL };
11112
11113 self = self;
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11115 return NULL;
11116 if (_argo0) {
11117 if (_argo0 == Py_None) { _arg0 = NULL; }
11118 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11119 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11120 return NULL;
11121 }
11122 }
11123 {
11124 _arg1 = &temp;
11125 if (! wxRect_helper(_obj1, &_arg1))
11126 return NULL;
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) return NULL;
11134 } _resultobj = Py_BuildValue("i",_result);
11135 return _resultobj;
11136 }
11137
11138 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11139 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11140 PyObject * _resultobj;
11141 bool _result;
11142 wxRegion * _arg0;
11143 wxRegion * _arg1;
11144 PyObject * _argo0 = 0;
11145 PyObject * _argo1 = 0;
11146 char *_kwnames[] = { "self","region", NULL };
11147
11148 self = self;
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11150 return NULL;
11151 if (_argo0) {
11152 if (_argo0 == Py_None) { _arg0 = NULL; }
11153 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11154 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11155 return NULL;
11156 }
11157 }
11158 if (_argo1) {
11159 if (_argo1 == Py_None) { _arg1 = NULL; }
11160 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11161 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11162 return NULL;
11163 }
11164 }
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11168
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) return NULL;
11171 } _resultobj = Py_BuildValue("i",_result);
11172 return _resultobj;
11173 }
11174
11175 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11176 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11177 PyObject * _resultobj;
11178 bool _result;
11179 wxRegion * _arg0;
11180 long _arg1;
11181 long _arg2;
11182 long _arg3;
11183 long _arg4;
11184 PyObject * _argo0 = 0;
11185 char *_kwnames[] = { "self","x","y","width","height", NULL };
11186
11187 self = self;
11188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11189 return NULL;
11190 if (_argo0) {
11191 if (_argo0 == Py_None) { _arg0 = NULL; }
11192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11194 return NULL;
11195 }
11196 }
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) return NULL;
11203 } _resultobj = Py_BuildValue("i",_result);
11204 return _resultobj;
11205 }
11206
11207 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11208 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11209 PyObject * _resultobj;
11210 bool _result;
11211 wxRegion * _arg0;
11212 wxRect * _arg1;
11213 PyObject * _argo0 = 0;
11214 wxRect temp;
11215 PyObject * _obj1 = 0;
11216 char *_kwnames[] = { "self","rect", NULL };
11217
11218 self = self;
11219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11220 return NULL;
11221 if (_argo0) {
11222 if (_argo0 == Py_None) { _arg0 = NULL; }
11223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11225 return NULL;
11226 }
11227 }
11228 {
11229 _arg1 = &temp;
11230 if (! wxRect_helper(_obj1, &_arg1))
11231 return NULL;
11232 }
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11236
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) return NULL;
11239 } _resultobj = Py_BuildValue("i",_result);
11240 return _resultobj;
11241 }
11242
11243 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11244 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11245 PyObject * _resultobj;
11246 bool _result;
11247 wxRegion * _arg0;
11248 wxRegion * _arg1;
11249 PyObject * _argo0 = 0;
11250 PyObject * _argo1 = 0;
11251 char *_kwnames[] = { "self","region", NULL };
11252
11253 self = self;
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11255 return NULL;
11256 if (_argo0) {
11257 if (_argo0 == Py_None) { _arg0 = NULL; }
11258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11260 return NULL;
11261 }
11262 }
11263 if (_argo1) {
11264 if (_argo1 == Py_None) { _arg1 = NULL; }
11265 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11266 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11267 return NULL;
11268 }
11269 }
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) return NULL;
11276 } _resultobj = Py_BuildValue("i",_result);
11277 return _resultobj;
11278 }
11279
11280 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11281 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11282 PyObject * _resultobj;
11283 bool _result;
11284 wxRegion * _arg0;
11285 long _arg1;
11286 long _arg2;
11287 long _arg3;
11288 long _arg4;
11289 PyObject * _argo0 = 0;
11290 char *_kwnames[] = { "self","x","y","width","height", NULL };
11291
11292 self = self;
11293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11294 return NULL;
11295 if (_argo0) {
11296 if (_argo0 == Py_None) { _arg0 = NULL; }
11297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11299 return NULL;
11300 }
11301 }
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11305
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) return NULL;
11308 } _resultobj = Py_BuildValue("i",_result);
11309 return _resultobj;
11310 }
11311
11312 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11313 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11314 PyObject * _resultobj;
11315 bool _result;
11316 wxRegion * _arg0;
11317 wxRect * _arg1;
11318 PyObject * _argo0 = 0;
11319 wxRect temp;
11320 PyObject * _obj1 = 0;
11321 char *_kwnames[] = { "self","rect", NULL };
11322
11323 self = self;
11324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11325 return NULL;
11326 if (_argo0) {
11327 if (_argo0 == Py_None) { _arg0 = NULL; }
11328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11330 return NULL;
11331 }
11332 }
11333 {
11334 _arg1 = &temp;
11335 if (! wxRect_helper(_obj1, &_arg1))
11336 return NULL;
11337 }
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11341
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) return NULL;
11344 } _resultobj = Py_BuildValue("i",_result);
11345 return _resultobj;
11346 }
11347
11348 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11349 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11350 PyObject * _resultobj;
11351 bool _result;
11352 wxRegion * _arg0;
11353 wxRegion * _arg1;
11354 PyObject * _argo0 = 0;
11355 PyObject * _argo1 = 0;
11356 char *_kwnames[] = { "self","region", NULL };
11357
11358 self = self;
11359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11360 return NULL;
11361 if (_argo0) {
11362 if (_argo0 == Py_None) { _arg0 = NULL; }
11363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11365 return NULL;
11366 }
11367 }
11368 if (_argo1) {
11369 if (_argo1 == Py_None) { _arg1 = NULL; }
11370 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11371 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11372 return NULL;
11373 }
11374 }
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11378
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) return NULL;
11381 } _resultobj = Py_BuildValue("i",_result);
11382 return _resultobj;
11383 }
11384
11385 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11386 wxRegionIterator *src;
11387 wxObject *dest;
11388 src = (wxRegionIterator *) ptr;
11389 dest = (wxObject *) src;
11390 return (void *) dest;
11391 }
11392
11393 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11394 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11395 PyObject * _resultobj;
11396 wxRegionIterator * _result;
11397 wxRegion * _arg0;
11398 PyObject * _argo0 = 0;
11399 char *_kwnames[] = { "region", NULL };
11400 char _ptemp[128];
11401
11402 self = self;
11403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11404 return NULL;
11405 if (_argo0) {
11406 if (_argo0 == Py_None) { _arg0 = NULL; }
11407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11409 return NULL;
11410 }
11411 }
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11415
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) return NULL;
11418 } if (_result) {
11419 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11420 _resultobj = Py_BuildValue("s",_ptemp);
11421 } else {
11422 Py_INCREF(Py_None);
11423 _resultobj = Py_None;
11424 }
11425 return _resultobj;
11426 }
11427
11428 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11429 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11430 PyObject * _resultobj;
11431 wxRegionIterator * _arg0;
11432 PyObject * _argo0 = 0;
11433 char *_kwnames[] = { "self", NULL };
11434
11435 self = self;
11436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11437 return NULL;
11438 if (_argo0) {
11439 if (_argo0 == Py_None) { _arg0 = NULL; }
11440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11442 return NULL;
11443 }
11444 }
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 delete_wxRegionIterator(_arg0);
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) return NULL;
11451 } Py_INCREF(Py_None);
11452 _resultobj = Py_None;
11453 return _resultobj;
11454 }
11455
11456 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11457 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11458 PyObject * _resultobj;
11459 long _result;
11460 wxRegionIterator * _arg0;
11461 PyObject * _argo0 = 0;
11462 char *_kwnames[] = { "self", NULL };
11463
11464 self = self;
11465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11466 return NULL;
11467 if (_argo0) {
11468 if (_argo0 == Py_None) { _arg0 = NULL; }
11469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11471 return NULL;
11472 }
11473 }
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 _result = (long )wxRegionIterator_GetX(_arg0);
11477
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) return NULL;
11480 } _resultobj = Py_BuildValue("l",_result);
11481 return _resultobj;
11482 }
11483
11484 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11485 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11486 PyObject * _resultobj;
11487 long _result;
11488 wxRegionIterator * _arg0;
11489 PyObject * _argo0 = 0;
11490 char *_kwnames[] = { "self", NULL };
11491
11492 self = self;
11493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11494 return NULL;
11495 if (_argo0) {
11496 if (_argo0 == Py_None) { _arg0 = NULL; }
11497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11499 return NULL;
11500 }
11501 }
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 _result = (long )wxRegionIterator_GetY(_arg0);
11505
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) return NULL;
11508 } _resultobj = Py_BuildValue("l",_result);
11509 return _resultobj;
11510 }
11511
11512 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11513 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11514 PyObject * _resultobj;
11515 long _result;
11516 wxRegionIterator * _arg0;
11517 PyObject * _argo0 = 0;
11518 char *_kwnames[] = { "self", NULL };
11519
11520 self = self;
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11522 return NULL;
11523 if (_argo0) {
11524 if (_argo0 == Py_None) { _arg0 = NULL; }
11525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11527 return NULL;
11528 }
11529 }
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 _result = (long )wxRegionIterator_GetW(_arg0);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) return NULL;
11536 } _resultobj = Py_BuildValue("l",_result);
11537 return _resultobj;
11538 }
11539
11540 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11541 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11542 PyObject * _resultobj;
11543 long _result;
11544 wxRegionIterator * _arg0;
11545 PyObject * _argo0 = 0;
11546 char *_kwnames[] = { "self", NULL };
11547
11548 self = self;
11549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11550 return NULL;
11551 if (_argo0) {
11552 if (_argo0 == Py_None) { _arg0 = NULL; }
11553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11555 return NULL;
11556 }
11557 }
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 _result = (long )wxRegionIterator_GetWidth(_arg0);
11561
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) return NULL;
11564 } _resultobj = Py_BuildValue("l",_result);
11565 return _resultobj;
11566 }
11567
11568 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11569 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11570 PyObject * _resultobj;
11571 long _result;
11572 wxRegionIterator * _arg0;
11573 PyObject * _argo0 = 0;
11574 char *_kwnames[] = { "self", NULL };
11575
11576 self = self;
11577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11578 return NULL;
11579 if (_argo0) {
11580 if (_argo0 == Py_None) { _arg0 = NULL; }
11581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11583 return NULL;
11584 }
11585 }
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 _result = (long )wxRegionIterator_GetH(_arg0);
11589
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) return NULL;
11592 } _resultobj = Py_BuildValue("l",_result);
11593 return _resultobj;
11594 }
11595
11596 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11597 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11598 PyObject * _resultobj;
11599 long _result;
11600 wxRegionIterator * _arg0;
11601 PyObject * _argo0 = 0;
11602 char *_kwnames[] = { "self", NULL };
11603
11604 self = self;
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
11606 return NULL;
11607 if (_argo0) {
11608 if (_argo0 == Py_None) { _arg0 = NULL; }
11609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11611 return NULL;
11612 }
11613 }
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 _result = (long )wxRegionIterator_GetHeight(_arg0);
11617
11618 wxPyEndAllowThreads(__tstate);
11619 if (PyErr_Occurred()) return NULL;
11620 } _resultobj = Py_BuildValue("l",_result);
11621 return _resultobj;
11622 }
11623
11624 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11625 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11626 PyObject * _resultobj;
11627 wxRect * _result;
11628 wxRegionIterator * _arg0;
11629 PyObject * _argo0 = 0;
11630 char *_kwnames[] = { "self", NULL };
11631 char _ptemp[128];
11632
11633 self = self;
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
11635 return NULL;
11636 if (_argo0) {
11637 if (_argo0 == Py_None) { _arg0 = NULL; }
11638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11640 return NULL;
11641 }
11642 }
11643 {
11644 PyThreadState* __tstate = wxPyBeginAllowThreads();
11645 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
11646
11647 wxPyEndAllowThreads(__tstate);
11648 if (PyErr_Occurred()) return NULL;
11649 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11650 _resultobj = Py_BuildValue("s",_ptemp);
11651 return _resultobj;
11652 }
11653
11654 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11655 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject * _resultobj;
11657 bool _result;
11658 wxRegionIterator * _arg0;
11659 PyObject * _argo0 = 0;
11660 char *_kwnames[] = { "self", NULL };
11661
11662 self = self;
11663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11664 return NULL;
11665 if (_argo0) {
11666 if (_argo0 == Py_None) { _arg0 = NULL; }
11667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11669 return NULL;
11670 }
11671 }
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 _result = (bool )wxRegionIterator_HaveRects(_arg0);
11675
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) return NULL;
11678 } _resultobj = Py_BuildValue("i",_result);
11679 return _resultobj;
11680 }
11681
11682 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11683 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11684 PyObject * _resultobj;
11685 wxRegionIterator * _arg0;
11686 PyObject * _argo0 = 0;
11687 char *_kwnames[] = { "self", NULL };
11688
11689 self = self;
11690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11691 return NULL;
11692 if (_argo0) {
11693 if (_argo0 == Py_None) { _arg0 = NULL; }
11694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11696 return NULL;
11697 }
11698 }
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 wxRegionIterator_Reset(_arg0);
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) return NULL;
11705 } Py_INCREF(Py_None);
11706 _resultobj = Py_None;
11707 return _resultobj;
11708 }
11709
11710 static void wxRegionIterator_Next(wxRegionIterator *self) {
11711 (*self) ++;
11712 }
11713 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11714 PyObject * _resultobj;
11715 wxRegionIterator * _arg0;
11716 PyObject * _argo0 = 0;
11717 char *_kwnames[] = { "self", NULL };
11718
11719 self = self;
11720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11721 return NULL;
11722 if (_argo0) {
11723 if (_argo0 == Py_None) { _arg0 = NULL; }
11724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11726 return NULL;
11727 }
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 wxRegionIterator_Next(_arg0);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) return NULL;
11735 } Py_INCREF(Py_None);
11736 _resultobj = Py_None;
11737 return _resultobj;
11738 }
11739
11740 static PyMethodDef gdicMethods[] = {
11741 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11742 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11743 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11744 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11745 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11746 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11747 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11748 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11749 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11750 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11751 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11752 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11753 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11754 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11755 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11756 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11757 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11758 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11759 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11760 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11761 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11762 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11763 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11764 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11765 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11766 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11767 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11768 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11769 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11770 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
11771 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11772 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
11773 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
11774 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
11775 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11776 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11777 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11778 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11779 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
11780 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11781 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
11782 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11783 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11784 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11785 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11786 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11787 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11788 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11789 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
11790 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11791 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11792 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11793 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
11794 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
11795 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
11796 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
11797 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11798 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
11799 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11800 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11801 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11802 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11803 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
11804 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11805 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11806 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11807 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11808 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11809 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11810 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11811 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
11812 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11813 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11814 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11815 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11816 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11817 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11818 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11819 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11820 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
11821 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
11822 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11823 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11824 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11825 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
11826 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
11827 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11828 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11829 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11830 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11831 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11832 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11833 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11834 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11835 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11836 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11837 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11838 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11839 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
11840 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
11841 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
11842 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11843 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11844 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
11845 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
11846 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11847 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11848 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11849 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11850 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11851 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
11852 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
11853 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11854 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11855 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11856 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11857 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11858 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11859 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11860 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11861 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11862 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11863 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11864 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11865 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11866 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
11867 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
11868 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11869 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11870 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11871 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11872 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
11873 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11874 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11875 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11876 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11877 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11878 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11879 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11880 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11881 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11882 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11883 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11884 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11885 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11886 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11887 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
11888 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
11889 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11890 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11891 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
11892 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11893 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11894 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11895 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11896 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11897 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11898 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
11899 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
11900 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
11901 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
11902 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11903 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11904 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
11905 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11906 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11907 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11908 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11909 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11910 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11911 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11912 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11913 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11914 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11915 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11916 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11917 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11918 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11919 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
11920 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
11921 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
11922 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
11923 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
11924 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
11925 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11926 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11927 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11928 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11929 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11930 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11931 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11932 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
11933 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
11934 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
11935 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
11936 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
11937 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11938 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11939 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
11940 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
11941 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
11942 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11943 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11944 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
11945 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
11946 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11947 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
11948 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
11949 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
11950 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
11951 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11952 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
11953 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11954 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
11955 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
11956 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
11957 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
11958 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
11959 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
11960 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
11961 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
11962 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
11963 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
11964 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
11965 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
11966 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
11967 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
11968 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
11969 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
11970 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
11971 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
11972 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
11973 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
11974 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
11975 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
11976 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11977 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11978 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
11979 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
11980 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
11981 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
11982 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
11983 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
11984 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
11985 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11986 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
11987 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
11988 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
11989 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
11990 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
11991 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
11992 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
11993 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
11994 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
11995 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
11996 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
11997 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
11998 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11999 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12000 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12001 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12002 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12003 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12004 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12005 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12006 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12007 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12008 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12009 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12010 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12011 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12012 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12013 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12014 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12015 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12016 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12017 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12018 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12019 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12020 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12021 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12022 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12023 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12024 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12025 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12026 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12027 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12028 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12029 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12030 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12031 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12032 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12033 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12034 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12035 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12036 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12037 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12038 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12039 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12040 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12041 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12042 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12043 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12044 { NULL, NULL }
12045 };
12046 #ifdef __cplusplus
12047 }
12048 #endif
12049 /*
12050 * This table is used by the pointer type-checker
12051 */
12052 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12053 { "_signed_long","_long",0},
12054 { "_wxPrintQuality","_wxCoord",0},
12055 { "_wxPrintQuality","_int",0},
12056 { "_wxPrintQuality","_signed_int",0},
12057 { "_wxPrintQuality","_unsigned_int",0},
12058 { "_wxPrintQuality","_wxWindowID",0},
12059 { "_wxPrintQuality","_uint",0},
12060 { "_wxPrintQuality","_EBool",0},
12061 { "_wxPrintQuality","_size_t",0},
12062 { "_wxPrintQuality","_time_t",0},
12063 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12064 { "_byte","_unsigned_char",0},
12065 { "_long","_unsigned_long",0},
12066 { "_long","_signed_long",0},
12067 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12068 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12069 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12070 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12071 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12072 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
12073 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12074 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12075 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12076 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12077 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12078 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12079 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12080 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12081 { "_size_t","_wxCoord",0},
12082 { "_size_t","_wxPrintQuality",0},
12083 { "_size_t","_time_t",0},
12084 { "_size_t","_unsigned_int",0},
12085 { "_size_t","_int",0},
12086 { "_size_t","_wxWindowID",0},
12087 { "_size_t","_uint",0},
12088 { "_uint","_wxCoord",0},
12089 { "_uint","_wxPrintQuality",0},
12090 { "_uint","_time_t",0},
12091 { "_uint","_size_t",0},
12092 { "_uint","_unsigned_int",0},
12093 { "_uint","_int",0},
12094 { "_uint","_wxWindowID",0},
12095 { "_wxChar","_char",0},
12096 { "_char","_wxChar",0},
12097 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12098 { "_EBool","_wxCoord",0},
12099 { "_EBool","_wxPrintQuality",0},
12100 { "_EBool","_signed_int",0},
12101 { "_EBool","_int",0},
12102 { "_EBool","_wxWindowID",0},
12103 { "_unsigned_long","_long",0},
12104 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12105 { "_signed_int","_wxCoord",0},
12106 { "_signed_int","_wxPrintQuality",0},
12107 { "_signed_int","_EBool",0},
12108 { "_signed_int","_wxWindowID",0},
12109 { "_signed_int","_int",0},
12110 { "_WXTYPE","_short",0},
12111 { "_WXTYPE","_signed_short",0},
12112 { "_WXTYPE","_unsigned_short",0},
12113 { "_unsigned_short","_WXTYPE",0},
12114 { "_unsigned_short","_short",0},
12115 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12116 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12117 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12118 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12119 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12120 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12121 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12122 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12123 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12124 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12125 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12126 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12127 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12128 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12129 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12130 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12131 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12132 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
12133 { "_wxObject","_wxFont",SwigwxFontTowxObject},
12134 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12135 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12136 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12137 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12138 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12139 { "_signed_short","_WXTYPE",0},
12140 { "_signed_short","_short",0},
12141 { "_unsigned_char","_byte",0},
12142 { "_unsigned_int","_wxCoord",0},
12143 { "_unsigned_int","_wxPrintQuality",0},
12144 { "_unsigned_int","_time_t",0},
12145 { "_unsigned_int","_size_t",0},
12146 { "_unsigned_int","_uint",0},
12147 { "_unsigned_int","_wxWindowID",0},
12148 { "_unsigned_int","_int",0},
12149 { "_short","_WXTYPE",0},
12150 { "_short","_unsigned_short",0},
12151 { "_short","_signed_short",0},
12152 { "_wxWindowID","_wxCoord",0},
12153 { "_wxWindowID","_wxPrintQuality",0},
12154 { "_wxWindowID","_time_t",0},
12155 { "_wxWindowID","_size_t",0},
12156 { "_wxWindowID","_EBool",0},
12157 { "_wxWindowID","_uint",0},
12158 { "_wxWindowID","_int",0},
12159 { "_wxWindowID","_signed_int",0},
12160 { "_wxWindowID","_unsigned_int",0},
12161 { "_int","_wxCoord",0},
12162 { "_int","_wxPrintQuality",0},
12163 { "_int","_time_t",0},
12164 { "_int","_size_t",0},
12165 { "_int","_EBool",0},
12166 { "_int","_uint",0},
12167 { "_int","_wxWindowID",0},
12168 { "_int","_unsigned_int",0},
12169 { "_int","_signed_int",0},
12170 { "_time_t","_wxCoord",0},
12171 { "_time_t","_wxPrintQuality",0},
12172 { "_time_t","_unsigned_int",0},
12173 { "_time_t","_int",0},
12174 { "_time_t","_wxWindowID",0},
12175 { "_time_t","_uint",0},
12176 { "_time_t","_size_t",0},
12177 { "_wxCoord","_int",0},
12178 { "_wxCoord","_signed_int",0},
12179 { "_wxCoord","_unsigned_int",0},
12180 { "_wxCoord","_wxWindowID",0},
12181 { "_wxCoord","_uint",0},
12182 { "_wxCoord","_EBool",0},
12183 { "_wxCoord","_size_t",0},
12184 { "_wxCoord","_time_t",0},
12185 { "_wxCoord","_wxPrintQuality",0},
12186 {0,0,0}};
12187
12188 static PyObject *SWIG_globals;
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 SWIGEXPORT(void) initgdic() {
12193 PyObject *m, *d;
12194 SWIG_globals = SWIG_newvarlink();
12195 m = Py_InitModule("gdic", gdicMethods);
12196 d = PyModule_GetDict(m);
12197 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12198 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12199 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12200 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12201 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12202 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12203 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12204 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
12205 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
12206 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12207 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12208 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12209 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12210 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12211 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12212 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12213 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
12214 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12215 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12216 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12217 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12218 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12219 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12220 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12221 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12222 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12223 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12224 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12225 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12226 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12227 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12228 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12229 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12230 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
12231 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
12232 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12233 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12234 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12235 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12236 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12237 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12238 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12239 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
12240 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
12241 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12242 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12243 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12244 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
12245 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12246 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12247 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
12248 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12249 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12250 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12251 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12252 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12253 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12254 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12255 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12256 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
12257 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
12258 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12259 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12260 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12261 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12262 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12263 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12264 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12265 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12266 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12267 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12268 PyDict_SetItemString(d,"cvar", SWIG_globals);
12269 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12270 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12271 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12272 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12273 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12274 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12275 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12276 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12277 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12278 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12279 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12280 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12281 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12282 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12283 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12284 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12285 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12286 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12287 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12288 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12289 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12290 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12291 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12292 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12293 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12294 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12295 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12296 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12297 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12298 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12299 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12300 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12301 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12302 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12303 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12304 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12305 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12306 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12307 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12308 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12309 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12310 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12311 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12312 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12313 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12314 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12315 {
12316 int i;
12317 for (i = 0; _swig_mapping[i].n1; i++)
12318 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12319 }
12320 }