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