]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Added a wxIconFromBitmap "constructor" for wxIcon.
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : src/msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initgdic
55
56 #define SWIG_name "gdic"
57
58 #include "helpers.h"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97 // Implementations of some alternate "constructors"
98
99 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
100 return new wxBitmap(width, height, depth);
101 }
102
103 static char** ConvertListOfStrings(PyObject* listOfStrings) {
104 char** cArray = NULL;
105 int count;
106
107 if (!PyList_Check(listOfStrings)) {
108 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
109 return NULL;
110 }
111 count = PyList_Size(listOfStrings);
112 cArray = new char*[count];
113
114 for(int x=0; x<count; x++) {
115 // TODO: Need some validation and error checking here
116 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
117 }
118 return cArray;
119 }
120
121
122 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
123 char** cArray = NULL;
124 wxBitmap* bmp;
125
126 cArray = ConvertListOfStrings(listOfStrings);
127 if (! cArray)
128 return NULL;
129 bmp = new wxBitmap(cArray);
130 delete [] cArray;
131 return bmp;
132 }
133
134
135 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
136 return new wxBitmap(icon);
137 }
138
139
140 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
141 return new wxBitmap(bits, width, height, depth);
142 }
143
144
145 // #ifdef __WXMSW__
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
150 // return NULL;
151 // }
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
153 // }
154 // #endif
155
156 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
157 return new wxMask(bitmap, colour);
158 }
159 // Implementations of some alternate "constructors"
160 wxIcon* wxEmptyIcon() {
161 return new wxIcon();
162 }
163
164 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
165 char** cArray = NULL;
166 wxIcon* icon;
167
168 cArray = ConvertListOfStrings(listOfStrings);
169 if (! cArray)
170 return NULL;
171 icon = new wxIcon(cArray);
172 delete [] cArray;
173 return icon;
174 }
175
176 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
177 wxIcon* icon = new wxIcon();
178 icon->CopyFromBitmap(bmp);
179 return icon;
180 }
181 // Alternate 'constructor'
182 wxCursor* wxPyStockCursor(int id) {
183 return new wxCursor(id);
184 }
185 // Alternate 'constructor'
186 wxColour* wxNamedColour(const wxString& colorName) {
187 return new wxColour(colorName);
188 }
189
190 class wxPyPen : public wxPen {
191 public:
192 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
193 : wxPen(colour, width, style)
194 { m_dash = NULL; }
195 ~wxPyPen() {
196 if (m_dash)
197 delete [] m_dash;
198 }
199
200 void SetDashes(int nb_dashes, const wxDash *dash) {
201 if (m_dash)
202 delete [] m_dash;
203 m_dash = new wxDash[nb_dashes];
204 for (int i=0; i<nb_dashes; i++) {
205 m_dash[i] = dash[i];
206 }
207 wxPen::SetDashes(nb_dashes, m_dash);
208 }
209
210 private:
211 wxDash* m_dash;
212 };
213
214 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
215 *x1 = dc->MinX();
216 *y1 = dc->MinY();
217 *x2 = dc->MaxX();
218 *y2 = dc->MaxY();
219 }
220 // Alternate 'constructor'
221 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
222 return new wxMemoryDC(oldDC);
223 }
224
225 #include <wx/metafile.h>
226
227 #if 0
228 extern wxFont * wxNORMAL_FONT;
229 extern wxFont * wxSMALL_FONT;
230 extern wxFont * wxITALIC_FONT;
231 extern wxFont * wxSWISS_FONT;
232 extern wxPen * wxRED_PEN;
233 extern wxPen * wxCYAN_PEN;
234 extern wxPen * wxGREEN_PEN;
235 extern wxPen * wxBLACK_PEN;
236 extern wxPen * wxWHITE_PEN;
237 extern wxPen * wxTRANSPARENT_PEN;
238 extern wxPen * wxBLACK_DASHED_PEN;
239 extern wxPen * wxGREY_PEN;
240 extern wxPen * wxMEDIUM_GREY_PEN;
241 extern wxPen * wxLIGHT_GREY_PEN;
242 extern wxBrush * wxBLUE_BRUSH;
243 extern wxBrush * wxGREEN_BRUSH;
244 extern wxBrush * wxWHITE_BRUSH;
245 extern wxBrush * wxBLACK_BRUSH;
246 extern wxBrush * wxTRANSPARENT_BRUSH;
247 extern wxBrush * wxCYAN_BRUSH;
248 extern wxBrush * wxRED_BRUSH;
249 extern wxBrush * wxGREY_BRUSH;
250 extern wxBrush * wxMEDIUM_GREY_BRUSH;
251 extern wxBrush * wxLIGHT_GREY_BRUSH;
252 extern wxColour * wxBLACK;
253 extern wxColour * wxWHITE;
254 extern wxColour * wxRED;
255 extern wxColour * wxBLUE;
256 extern wxColour * wxGREEN;
257 extern wxColour * wxCYAN;
258 extern wxColour * wxLIGHT_GREY;
259 extern wxCursor * wxSTANDARD_CURSOR;
260 extern wxCursor * wxHOURGLASS_CURSOR;
261 extern wxCursor * wxCROSS_CURSOR;
262 extern wxBitmap wxNullBitmap;
263 extern wxIcon wxNullIcon;
264 extern wxCursor wxNullCursor;
265 extern wxPen wxNullPen;
266 extern wxBrush wxNullBrush;
267 extern wxPalette wxNullPalette;
268 extern wxFont wxNullFont;
269 extern wxColour wxNullColour;
270 extern wxFontList * wxTheFontList;
271 extern wxPenList * wxThePenList;
272 extern wxBrushList * wxTheBrushList;
273 extern wxColourDatabase * wxTheColourDatabase;
274
275 #endif
276 #ifdef __cplusplus
277 extern "C" {
278 #endif
279 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
280 PyObject * _resultobj;
281 wxBitmap * _result;
282 int _arg0;
283 int _arg1;
284 int _arg2 = (int ) -1;
285 char *_kwnames[] = { "width","height","depth", NULL };
286 char _ptemp[128];
287
288 self = self;
289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
290 return NULL;
291 {
292 PyThreadState* __tstate = wxPyBeginAllowThreads();
293 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
294
295 wxPyEndAllowThreads(__tstate);
296 if (PyErr_Occurred()) return NULL;
297 } if (_result) {
298 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
299 _resultobj = Py_BuildValue("s",_ptemp);
300 } else {
301 Py_INCREF(Py_None);
302 _resultobj = Py_None;
303 }
304 return _resultobj;
305 }
306
307 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
308 PyObject * _resultobj;
309 wxBitmap * _result;
310 PyObject * _arg0;
311 PyObject * _obj0 = 0;
312 char *_kwnames[] = { "listOfStrings", NULL };
313 char _ptemp[128];
314
315 self = self;
316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
317 return NULL;
318 {
319 _arg0 = _obj0;
320 }
321 {
322 PyThreadState* __tstate = wxPyBeginAllowThreads();
323 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
324
325 wxPyEndAllowThreads(__tstate);
326 if (PyErr_Occurred()) return NULL;
327 } if (_result) {
328 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
329 _resultobj = Py_BuildValue("s",_ptemp);
330 } else {
331 Py_INCREF(Py_None);
332 _resultobj = Py_None;
333 }
334 return _resultobj;
335 }
336
337 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
338 PyObject * _resultobj;
339 wxBitmap * _result;
340 wxIcon * _arg0;
341 PyObject * _argo0 = 0;
342 char *_kwnames[] = { "icon", NULL };
343 char _ptemp[128];
344
345 self = self;
346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
347 return NULL;
348 if (_argo0) {
349 if (_argo0 == Py_None) { _arg0 = NULL; }
350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
352 return NULL;
353 }
354 }
355 {
356 PyThreadState* __tstate = wxPyBeginAllowThreads();
357 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
358
359 wxPyEndAllowThreads(__tstate);
360 if (PyErr_Occurred()) return NULL;
361 } if (_result) {
362 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
363 _resultobj = Py_BuildValue("s",_ptemp);
364 } else {
365 Py_INCREF(Py_None);
366 _resultobj = Py_None;
367 }
368 return _resultobj;
369 }
370
371 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
372 PyObject * _resultobj;
373 wxBitmap * _result;
374 char * _arg0;
375 int _arg1;
376 int _arg2;
377 int _arg3 = (int ) 1;
378 char *_kwnames[] = { "bits","width","height","depth", NULL };
379 char _ptemp[128];
380
381 self = self;
382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
383 return NULL;
384 {
385 PyThreadState* __tstate = wxPyBeginAllowThreads();
386 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
387
388 wxPyEndAllowThreads(__tstate);
389 if (PyErr_Occurred()) return NULL;
390 } if (_result) {
391 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
392 _resultobj = Py_BuildValue("s",_ptemp);
393 } else {
394 Py_INCREF(Py_None);
395 _resultobj = Py_None;
396 }
397 return _resultobj;
398 }
399
400 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
401 PyObject * _resultobj;
402 wxMask * _result;
403 wxBitmap * _arg0;
404 wxColour * _arg1;
405 PyObject * _argo0 = 0;
406 wxColour temp;
407 PyObject * _obj1 = 0;
408 char *_kwnames[] = { "bitmap","colour", NULL };
409 char _ptemp[128];
410
411 self = self;
412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
413 return NULL;
414 if (_argo0) {
415 if (_argo0 == Py_None) { _arg0 = NULL; }
416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
418 return NULL;
419 }
420 }
421 {
422 _arg1 = &temp;
423 if (! wxColour_helper(_obj1, &_arg1))
424 return NULL;
425 }
426 {
427 PyThreadState* __tstate = wxPyBeginAllowThreads();
428 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
429
430 wxPyEndAllowThreads(__tstate);
431 if (PyErr_Occurred()) return NULL;
432 } if (_result) {
433 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
434 _resultobj = Py_BuildValue("s",_ptemp);
435 } else {
436 Py_INCREF(Py_None);
437 _resultobj = Py_None;
438 }
439 return _resultobj;
440 }
441
442 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
443 PyObject * _resultobj;
444 wxIcon * _result;
445 char *_kwnames[] = { NULL };
446 char _ptemp[128];
447
448 self = self;
449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
450 return NULL;
451 {
452 PyThreadState* __tstate = wxPyBeginAllowThreads();
453 _result = (wxIcon *)wxEmptyIcon();
454
455 wxPyEndAllowThreads(__tstate);
456 if (PyErr_Occurred()) return NULL;
457 } if (_result) {
458 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
459 _resultobj = Py_BuildValue("s",_ptemp);
460 } else {
461 Py_INCREF(Py_None);
462 _resultobj = Py_None;
463 }
464 return _resultobj;
465 }
466
467 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
468 PyObject * _resultobj;
469 wxIcon * _result;
470 PyObject * _arg0;
471 PyObject * _obj0 = 0;
472 char *_kwnames[] = { "listOfStrings", NULL };
473 char _ptemp[128];
474
475 self = self;
476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
477 return NULL;
478 {
479 _arg0 = _obj0;
480 }
481 {
482 PyThreadState* __tstate = wxPyBeginAllowThreads();
483 _result = (wxIcon *)wxIconFromXPMData(_arg0);
484
485 wxPyEndAllowThreads(__tstate);
486 if (PyErr_Occurred()) return NULL;
487 } if (_result) {
488 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
489 _resultobj = Py_BuildValue("s",_ptemp);
490 } else {
491 Py_INCREF(Py_None);
492 _resultobj = Py_None;
493 }
494 return _resultobj;
495 }
496
497 static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
498 PyObject * _resultobj;
499 wxIcon * _result;
500 wxBitmap * _arg0;
501 PyObject * _argo0 = 0;
502 char *_kwnames[] = { "bmp", NULL };
503 char _ptemp[128];
504
505 self = self;
506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
507 return NULL;
508 if (_argo0) {
509 if (_argo0 == Py_None) { _arg0 = NULL; }
510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
512 return NULL;
513 }
514 }
515 {
516 PyThreadState* __tstate = wxPyBeginAllowThreads();
517 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
518
519 wxPyEndAllowThreads(__tstate);
520 if (PyErr_Occurred()) return NULL;
521 } if (_result) {
522 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
523 _resultobj = Py_BuildValue("s",_ptemp);
524 } else {
525 Py_INCREF(Py_None);
526 _resultobj = Py_None;
527 }
528 return _resultobj;
529 }
530
531 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
532 PyObject * _resultobj;
533 wxCursor * _result;
534 int _arg0;
535 char *_kwnames[] = { "id", NULL };
536 char _ptemp[128];
537
538 self = self;
539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
540 return NULL;
541 {
542 PyThreadState* __tstate = wxPyBeginAllowThreads();
543 _result = (wxCursor *)wxPyStockCursor(_arg0);
544
545 wxPyEndAllowThreads(__tstate);
546 if (PyErr_Occurred()) return NULL;
547 } if (_result) {
548 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
549 _resultobj = Py_BuildValue("s",_ptemp);
550 } else {
551 Py_INCREF(Py_None);
552 _resultobj = Py_None;
553 }
554 return _resultobj;
555 }
556
557 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
558 PyObject * _resultobj;
559 wxColour * _result;
560 wxString * _arg0;
561 PyObject * _obj0 = 0;
562 char *_kwnames[] = { "colorName", NULL };
563 char _ptemp[128];
564
565 self = self;
566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
567 return NULL;
568 {
569 #if PYTHON_API_VERSION >= 1009
570 char* tmpPtr; int tmpSize;
571 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
572 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
573 return NULL;
574 }
575 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
576 return NULL;
577 _arg0 = new wxString(tmpPtr, tmpSize);
578 #else
579 if (!PyString_Check(_obj0)) {
580 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
581 return NULL;
582 }
583 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
584 #endif
585 }
586 {
587 PyThreadState* __tstate = wxPyBeginAllowThreads();
588 _result = (wxColour *)wxNamedColour(*_arg0);
589
590 wxPyEndAllowThreads(__tstate);
591 if (PyErr_Occurred()) return NULL;
592 } if (_result) {
593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
594 _resultobj = Py_BuildValue("s",_ptemp);
595 } else {
596 Py_INCREF(Py_None);
597 _resultobj = Py_None;
598 }
599 {
600 if (_obj0)
601 delete _arg0;
602 }
603 return _resultobj;
604 }
605
606 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
607 PyObject * _resultobj;
608 wxMemoryDC * _result;
609 wxDC * _arg0;
610 PyObject * _argo0 = 0;
611 char *_kwnames[] = { "oldDC", NULL };
612 char _ptemp[128];
613
614 self = self;
615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
616 return NULL;
617 if (_argo0) {
618 if (_argo0 == Py_None) { _arg0 = NULL; }
619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
621 return NULL;
622 }
623 }
624 {
625 PyThreadState* __tstate = wxPyBeginAllowThreads();
626 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
627
628 wxPyEndAllowThreads(__tstate);
629 if (PyErr_Occurred()) return NULL;
630 } if (_result) {
631 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
632 _resultobj = Py_BuildValue("s",_ptemp);
633 } else {
634 Py_INCREF(Py_None);
635 _resultobj = Py_None;
636 }
637 return _resultobj;
638 }
639
640 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
641
642 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
643 return 1;
644 }
645
646 static PyObject *_wrap_wxNORMAL_FONT_get() {
647 PyObject * pyobj;
648 char ptemp[128];
649
650 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
651 pyobj = PyString_FromString(ptemp);
652 return pyobj;
653 }
654
655 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
656
657 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
658 return 1;
659 }
660
661 static PyObject *_wrap_wxSMALL_FONT_get() {
662 PyObject * pyobj;
663 char ptemp[128];
664
665 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
666 pyobj = PyString_FromString(ptemp);
667 return pyobj;
668 }
669
670 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
671
672 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
673 return 1;
674 }
675
676 static PyObject *_wrap_wxITALIC_FONT_get() {
677 PyObject * pyobj;
678 char ptemp[128];
679
680 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
681 pyobj = PyString_FromString(ptemp);
682 return pyobj;
683 }
684
685 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
686
687 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
688 return 1;
689 }
690
691 static PyObject *_wrap_wxSWISS_FONT_get() {
692 PyObject * pyobj;
693 char ptemp[128];
694
695 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
696 pyobj = PyString_FromString(ptemp);
697 return pyobj;
698 }
699
700 static int _wrap_wxRED_PEN_set(PyObject *val) {
701
702 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
703 return 1;
704 }
705
706 static PyObject *_wrap_wxRED_PEN_get() {
707 PyObject * pyobj;
708 char ptemp[128];
709
710 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
711 pyobj = PyString_FromString(ptemp);
712 return pyobj;
713 }
714
715 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
716
717 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
718 return 1;
719 }
720
721 static PyObject *_wrap_wxCYAN_PEN_get() {
722 PyObject * pyobj;
723 char ptemp[128];
724
725 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
726 pyobj = PyString_FromString(ptemp);
727 return pyobj;
728 }
729
730 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
731
732 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
733 return 1;
734 }
735
736 static PyObject *_wrap_wxGREEN_PEN_get() {
737 PyObject * pyobj;
738 char ptemp[128];
739
740 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
741 pyobj = PyString_FromString(ptemp);
742 return pyobj;
743 }
744
745 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
746
747 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
748 return 1;
749 }
750
751 static PyObject *_wrap_wxBLACK_PEN_get() {
752 PyObject * pyobj;
753 char ptemp[128];
754
755 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
756 pyobj = PyString_FromString(ptemp);
757 return pyobj;
758 }
759
760 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
761
762 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
763 return 1;
764 }
765
766 static PyObject *_wrap_wxWHITE_PEN_get() {
767 PyObject * pyobj;
768 char ptemp[128];
769
770 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
771 pyobj = PyString_FromString(ptemp);
772 return pyobj;
773 }
774
775 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
776
777 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
778 return 1;
779 }
780
781 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
782 PyObject * pyobj;
783 char ptemp[128];
784
785 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
786 pyobj = PyString_FromString(ptemp);
787 return pyobj;
788 }
789
790 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
791
792 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
793 return 1;
794 }
795
796 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
797 PyObject * pyobj;
798 char ptemp[128];
799
800 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
801 pyobj = PyString_FromString(ptemp);
802 return pyobj;
803 }
804
805 static int _wrap_wxGREY_PEN_set(PyObject *val) {
806
807 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
808 return 1;
809 }
810
811 static PyObject *_wrap_wxGREY_PEN_get() {
812 PyObject * pyobj;
813 char ptemp[128];
814
815 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
816 pyobj = PyString_FromString(ptemp);
817 return pyobj;
818 }
819
820 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
821
822 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
823 return 1;
824 }
825
826 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
827 PyObject * pyobj;
828 char ptemp[128];
829
830 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
831 pyobj = PyString_FromString(ptemp);
832 return pyobj;
833 }
834
835 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
836
837 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
838 return 1;
839 }
840
841 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
842 PyObject * pyobj;
843 char ptemp[128];
844
845 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
846 pyobj = PyString_FromString(ptemp);
847 return pyobj;
848 }
849
850 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
851
852 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
853 return 1;
854 }
855
856 static PyObject *_wrap_wxBLUE_BRUSH_get() {
857 PyObject * pyobj;
858 char ptemp[128];
859
860 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
861 pyobj = PyString_FromString(ptemp);
862 return pyobj;
863 }
864
865 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
866
867 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
868 return 1;
869 }
870
871 static PyObject *_wrap_wxGREEN_BRUSH_get() {
872 PyObject * pyobj;
873 char ptemp[128];
874
875 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
876 pyobj = PyString_FromString(ptemp);
877 return pyobj;
878 }
879
880 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
881
882 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
883 return 1;
884 }
885
886 static PyObject *_wrap_wxWHITE_BRUSH_get() {
887 PyObject * pyobj;
888 char ptemp[128];
889
890 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
891 pyobj = PyString_FromString(ptemp);
892 return pyobj;
893 }
894
895 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
896
897 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
898 return 1;
899 }
900
901 static PyObject *_wrap_wxBLACK_BRUSH_get() {
902 PyObject * pyobj;
903 char ptemp[128];
904
905 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
906 pyobj = PyString_FromString(ptemp);
907 return pyobj;
908 }
909
910 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
911
912 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
913 return 1;
914 }
915
916 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
917 PyObject * pyobj;
918 char ptemp[128];
919
920 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
921 pyobj = PyString_FromString(ptemp);
922 return pyobj;
923 }
924
925 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
926
927 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
928 return 1;
929 }
930
931 static PyObject *_wrap_wxCYAN_BRUSH_get() {
932 PyObject * pyobj;
933 char ptemp[128];
934
935 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
936 pyobj = PyString_FromString(ptemp);
937 return pyobj;
938 }
939
940 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
941
942 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
943 return 1;
944 }
945
946 static PyObject *_wrap_wxRED_BRUSH_get() {
947 PyObject * pyobj;
948 char ptemp[128];
949
950 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
951 pyobj = PyString_FromString(ptemp);
952 return pyobj;
953 }
954
955 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
956
957 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
958 return 1;
959 }
960
961 static PyObject *_wrap_wxGREY_BRUSH_get() {
962 PyObject * pyobj;
963 char ptemp[128];
964
965 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
966 pyobj = PyString_FromString(ptemp);
967 return pyobj;
968 }
969
970 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
971
972 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
973 return 1;
974 }
975
976 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
977 PyObject * pyobj;
978 char ptemp[128];
979
980 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
981 pyobj = PyString_FromString(ptemp);
982 return pyobj;
983 }
984
985 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
986
987 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
988 return 1;
989 }
990
991 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
992 PyObject * pyobj;
993 char ptemp[128];
994
995 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
996 pyobj = PyString_FromString(ptemp);
997 return pyobj;
998 }
999
1000 static int _wrap_wxBLACK_set(PyObject *val) {
1001
1002 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
1003 return 1;
1004 }
1005
1006 static PyObject *_wrap_wxBLACK_get() {
1007 PyObject * pyobj;
1008 char ptemp[128];
1009
1010 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
1011 pyobj = PyString_FromString(ptemp);
1012 return pyobj;
1013 }
1014
1015 static int _wrap_wxWHITE_set(PyObject *val) {
1016
1017 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1018 return 1;
1019 }
1020
1021 static PyObject *_wrap_wxWHITE_get() {
1022 PyObject * pyobj;
1023 char ptemp[128];
1024
1025 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1026 pyobj = PyString_FromString(ptemp);
1027 return pyobj;
1028 }
1029
1030 static int _wrap_wxRED_set(PyObject *val) {
1031
1032 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1033 return 1;
1034 }
1035
1036 static PyObject *_wrap_wxRED_get() {
1037 PyObject * pyobj;
1038 char ptemp[128];
1039
1040 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1041 pyobj = PyString_FromString(ptemp);
1042 return pyobj;
1043 }
1044
1045 static int _wrap_wxBLUE_set(PyObject *val) {
1046
1047 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1048 return 1;
1049 }
1050
1051 static PyObject *_wrap_wxBLUE_get() {
1052 PyObject * pyobj;
1053 char ptemp[128];
1054
1055 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1056 pyobj = PyString_FromString(ptemp);
1057 return pyobj;
1058 }
1059
1060 static int _wrap_wxGREEN_set(PyObject *val) {
1061
1062 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1063 return 1;
1064 }
1065
1066 static PyObject *_wrap_wxGREEN_get() {
1067 PyObject * pyobj;
1068 char ptemp[128];
1069
1070 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1071 pyobj = PyString_FromString(ptemp);
1072 return pyobj;
1073 }
1074
1075 static int _wrap_wxCYAN_set(PyObject *val) {
1076
1077 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1078 return 1;
1079 }
1080
1081 static PyObject *_wrap_wxCYAN_get() {
1082 PyObject * pyobj;
1083 char ptemp[128];
1084
1085 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1086 pyobj = PyString_FromString(ptemp);
1087 return pyobj;
1088 }
1089
1090 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1091
1092 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1093 return 1;
1094 }
1095
1096 static PyObject *_wrap_wxLIGHT_GREY_get() {
1097 PyObject * pyobj;
1098 char ptemp[128];
1099
1100 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1101 pyobj = PyString_FromString(ptemp);
1102 return pyobj;
1103 }
1104
1105 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1106
1107 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1108 return 1;
1109 }
1110
1111 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1112 PyObject * pyobj;
1113 char ptemp[128];
1114
1115 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1116 pyobj = PyString_FromString(ptemp);
1117 return pyobj;
1118 }
1119
1120 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1121
1122 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1123 return 1;
1124 }
1125
1126 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1127 PyObject * pyobj;
1128 char ptemp[128];
1129
1130 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1131 pyobj = PyString_FromString(ptemp);
1132 return pyobj;
1133 }
1134
1135 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1136
1137 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1138 return 1;
1139 }
1140
1141 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1142 PyObject * pyobj;
1143 char ptemp[128];
1144
1145 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1146 pyobj = PyString_FromString(ptemp);
1147 return pyobj;
1148 }
1149
1150 static int _wrap_wxNullBitmap_set(PyObject *val) {
1151
1152 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1153 return 1;
1154 }
1155
1156 static PyObject *_wrap_wxNullBitmap_get() {
1157 PyObject * pyobj;
1158 char ptemp[128];
1159
1160 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1161 pyobj = PyString_FromString(ptemp);
1162 return pyobj;
1163 }
1164
1165 static int _wrap_wxNullIcon_set(PyObject *val) {
1166
1167 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1168 return 1;
1169 }
1170
1171 static PyObject *_wrap_wxNullIcon_get() {
1172 PyObject * pyobj;
1173 char ptemp[128];
1174
1175 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1176 pyobj = PyString_FromString(ptemp);
1177 return pyobj;
1178 }
1179
1180 static int _wrap_wxNullCursor_set(PyObject *val) {
1181
1182 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1183 return 1;
1184 }
1185
1186 static PyObject *_wrap_wxNullCursor_get() {
1187 PyObject * pyobj;
1188 char ptemp[128];
1189
1190 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1191 pyobj = PyString_FromString(ptemp);
1192 return pyobj;
1193 }
1194
1195 static int _wrap_wxNullPen_set(PyObject *val) {
1196
1197 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1198 return 1;
1199 }
1200
1201 static PyObject *_wrap_wxNullPen_get() {
1202 PyObject * pyobj;
1203 char ptemp[128];
1204
1205 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1206 pyobj = PyString_FromString(ptemp);
1207 return pyobj;
1208 }
1209
1210 static int _wrap_wxNullBrush_set(PyObject *val) {
1211
1212 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1213 return 1;
1214 }
1215
1216 static PyObject *_wrap_wxNullBrush_get() {
1217 PyObject * pyobj;
1218 char ptemp[128];
1219
1220 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1221 pyobj = PyString_FromString(ptemp);
1222 return pyobj;
1223 }
1224
1225 static int _wrap_wxNullPalette_set(PyObject *val) {
1226
1227 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1228 return 1;
1229 }
1230
1231 static PyObject *_wrap_wxNullPalette_get() {
1232 PyObject * pyobj;
1233 char ptemp[128];
1234
1235 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1236 pyobj = PyString_FromString(ptemp);
1237 return pyobj;
1238 }
1239
1240 static int _wrap_wxNullFont_set(PyObject *val) {
1241
1242 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1243 return 1;
1244 }
1245
1246 static PyObject *_wrap_wxNullFont_get() {
1247 PyObject * pyobj;
1248 char ptemp[128];
1249
1250 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1251 pyobj = PyString_FromString(ptemp);
1252 return pyobj;
1253 }
1254
1255 static int _wrap_wxNullColour_set(PyObject *val) {
1256
1257 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1258 return 1;
1259 }
1260
1261 static PyObject *_wrap_wxNullColour_get() {
1262 PyObject * pyobj;
1263 char ptemp[128];
1264
1265 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1266 pyobj = PyString_FromString(ptemp);
1267 return pyobj;
1268 }
1269
1270 static int _wrap_wxTheFontList_set(PyObject *val) {
1271
1272 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1273 return 1;
1274 }
1275
1276 static PyObject *_wrap_wxTheFontList_get() {
1277 PyObject * pyobj;
1278 char ptemp[128];
1279
1280 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1281 pyobj = PyString_FromString(ptemp);
1282 return pyobj;
1283 }
1284
1285 static int _wrap_wxThePenList_set(PyObject *val) {
1286
1287 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1288 return 1;
1289 }
1290
1291 static PyObject *_wrap_wxThePenList_get() {
1292 PyObject * pyobj;
1293 char ptemp[128];
1294
1295 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1296 pyobj = PyString_FromString(ptemp);
1297 return pyobj;
1298 }
1299
1300 static int _wrap_wxTheBrushList_set(PyObject *val) {
1301
1302 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1303 return 1;
1304 }
1305
1306 static PyObject *_wrap_wxTheBrushList_get() {
1307 PyObject * pyobj;
1308 char ptemp[128];
1309
1310 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1311 pyobj = PyString_FromString(ptemp);
1312 return pyobj;
1313 }
1314
1315 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1316
1317 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1318 return 1;
1319 }
1320
1321 static PyObject *_wrap_wxTheColourDatabase_get() {
1322 PyObject * pyobj;
1323 char ptemp[128];
1324
1325 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1326 pyobj = PyString_FromString(ptemp);
1327 return pyobj;
1328 }
1329
1330 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1331 wxGDIObject *src;
1332 wxObject *dest;
1333 src = (wxGDIObject *) ptr;
1334 dest = (wxObject *) src;
1335 return (void *) dest;
1336 }
1337
1338 #define new_wxGDIObject() (new wxGDIObject())
1339 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1340 PyObject * _resultobj;
1341 wxGDIObject * _result;
1342 char *_kwnames[] = { NULL };
1343 char _ptemp[128];
1344
1345 self = self;
1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1347 return NULL;
1348 {
1349 PyThreadState* __tstate = wxPyBeginAllowThreads();
1350 _result = (wxGDIObject *)new_wxGDIObject();
1351
1352 wxPyEndAllowThreads(__tstate);
1353 if (PyErr_Occurred()) return NULL;
1354 } if (_result) {
1355 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1356 _resultobj = Py_BuildValue("s",_ptemp);
1357 } else {
1358 Py_INCREF(Py_None);
1359 _resultobj = Py_None;
1360 }
1361 return _resultobj;
1362 }
1363
1364 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1365 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1366 PyObject * _resultobj;
1367 wxGDIObject * _arg0;
1368 PyObject * _argo0 = 0;
1369 char *_kwnames[] = { "self", NULL };
1370
1371 self = self;
1372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1373 return NULL;
1374 if (_argo0) {
1375 if (_argo0 == Py_None) { _arg0 = NULL; }
1376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1378 return NULL;
1379 }
1380 }
1381 {
1382 PyThreadState* __tstate = wxPyBeginAllowThreads();
1383 delete_wxGDIObject(_arg0);
1384
1385 wxPyEndAllowThreads(__tstate);
1386 if (PyErr_Occurred()) return NULL;
1387 } Py_INCREF(Py_None);
1388 _resultobj = Py_None;
1389 return _resultobj;
1390 }
1391
1392 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1393 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1394 PyObject * _resultobj;
1395 bool _result;
1396 wxGDIObject * _arg0;
1397 PyObject * _argo0 = 0;
1398 char *_kwnames[] = { "self", NULL };
1399
1400 self = self;
1401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1402 return NULL;
1403 if (_argo0) {
1404 if (_argo0 == Py_None) { _arg0 = NULL; }
1405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1407 return NULL;
1408 }
1409 }
1410 {
1411 PyThreadState* __tstate = wxPyBeginAllowThreads();
1412 _result = (bool )wxGDIObject_GetVisible(_arg0);
1413
1414 wxPyEndAllowThreads(__tstate);
1415 if (PyErr_Occurred()) return NULL;
1416 } _resultobj = Py_BuildValue("i",_result);
1417 return _resultobj;
1418 }
1419
1420 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1421 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1422 PyObject * _resultobj;
1423 wxGDIObject * _arg0;
1424 bool _arg1;
1425 PyObject * _argo0 = 0;
1426 int tempbool1;
1427 char *_kwnames[] = { "self","visible", NULL };
1428
1429 self = self;
1430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1431 return NULL;
1432 if (_argo0) {
1433 if (_argo0 == Py_None) { _arg0 = NULL; }
1434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1436 return NULL;
1437 }
1438 }
1439 _arg1 = (bool ) tempbool1;
1440 {
1441 PyThreadState* __tstate = wxPyBeginAllowThreads();
1442 wxGDIObject_SetVisible(_arg0,_arg1);
1443
1444 wxPyEndAllowThreads(__tstate);
1445 if (PyErr_Occurred()) return NULL;
1446 } Py_INCREF(Py_None);
1447 _resultobj = Py_None;
1448 return _resultobj;
1449 }
1450
1451 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1452 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1453 PyObject * _resultobj;
1454 bool _result;
1455 wxGDIObject * _arg0;
1456 PyObject * _argo0 = 0;
1457 char *_kwnames[] = { "self", NULL };
1458
1459 self = self;
1460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1461 return NULL;
1462 if (_argo0) {
1463 if (_argo0 == Py_None) { _arg0 = NULL; }
1464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1466 return NULL;
1467 }
1468 }
1469 {
1470 PyThreadState* __tstate = wxPyBeginAllowThreads();
1471 _result = (bool )wxGDIObject_IsNull(_arg0);
1472
1473 wxPyEndAllowThreads(__tstate);
1474 if (PyErr_Occurred()) return NULL;
1475 } _resultobj = Py_BuildValue("i",_result);
1476 return _resultobj;
1477 }
1478
1479 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1480 wxBitmap *src;
1481 wxGDIObject *dest;
1482 src = (wxBitmap *) ptr;
1483 dest = (wxGDIObject *) src;
1484 return (void *) dest;
1485 }
1486
1487 static void *SwigwxBitmapTowxObject(void *ptr) {
1488 wxBitmap *src;
1489 wxObject *dest;
1490 src = (wxBitmap *) ptr;
1491 dest = (wxObject *) src;
1492 return (void *) dest;
1493 }
1494
1495 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1496 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1497 PyObject * _resultobj;
1498 wxBitmap * _result;
1499 wxString * _arg0;
1500 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1501 PyObject * _obj0 = 0;
1502 char *_kwnames[] = { "name","type", NULL };
1503 char _ptemp[128];
1504
1505 self = self;
1506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1507 return NULL;
1508 {
1509 #if PYTHON_API_VERSION >= 1009
1510 char* tmpPtr; int tmpSize;
1511 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1512 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1513 return NULL;
1514 }
1515 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1516 return NULL;
1517 _arg0 = new wxString(tmpPtr, tmpSize);
1518 #else
1519 if (!PyString_Check(_obj0)) {
1520 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1521 return NULL;
1522 }
1523 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1524 #endif
1525 }
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) return NULL;
1532 } if (_result) {
1533 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1534 _resultobj = Py_BuildValue("s",_ptemp);
1535 } else {
1536 Py_INCREF(Py_None);
1537 _resultobj = Py_None;
1538 }
1539 {
1540 if (_obj0)
1541 delete _arg0;
1542 }
1543 return _resultobj;
1544 }
1545
1546 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1547 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject * _resultobj;
1549 wxBitmap * _arg0;
1550 PyObject * _argo0 = 0;
1551 char *_kwnames[] = { "self", NULL };
1552
1553 self = self;
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1555 return NULL;
1556 if (_argo0) {
1557 if (_argo0 == Py_None) { _arg0 = NULL; }
1558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1560 return NULL;
1561 }
1562 }
1563 {
1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
1565 delete_wxBitmap(_arg0);
1566
1567 wxPyEndAllowThreads(__tstate);
1568 if (PyErr_Occurred()) return NULL;
1569 } Py_INCREF(Py_None);
1570 _resultobj = Py_None;
1571 return _resultobj;
1572 }
1573
1574 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1575 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1576 PyObject * _resultobj;
1577 wxPalette * _result;
1578 wxBitmap * _arg0;
1579 PyObject * _argo0 = 0;
1580 char *_kwnames[] = { "self", NULL };
1581 char _ptemp[128];
1582
1583 self = self;
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1585 return NULL;
1586 if (_argo0) {
1587 if (_argo0 == Py_None) { _arg0 = NULL; }
1588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1590 return NULL;
1591 }
1592 }
1593 {
1594 PyThreadState* __tstate = wxPyBeginAllowThreads();
1595 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) return NULL;
1599 } if (_result) {
1600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1601 _resultobj = Py_BuildValue("s",_ptemp);
1602 } else {
1603 Py_INCREF(Py_None);
1604 _resultobj = Py_None;
1605 }
1606 return _resultobj;
1607 }
1608
1609 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1610 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1611 PyObject * _resultobj;
1612 wxMask * _result;
1613 wxBitmap * _arg0;
1614 PyObject * _argo0 = 0;
1615 char *_kwnames[] = { "self", NULL };
1616 char _ptemp[128];
1617
1618 self = self;
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1620 return NULL;
1621 if (_argo0) {
1622 if (_argo0 == Py_None) { _arg0 = NULL; }
1623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1625 return NULL;
1626 }
1627 }
1628 {
1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
1630 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1631
1632 wxPyEndAllowThreads(__tstate);
1633 if (PyErr_Occurred()) return NULL;
1634 } if (_result) {
1635 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1636 _resultobj = Py_BuildValue("s",_ptemp);
1637 } else {
1638 Py_INCREF(Py_None);
1639 _resultobj = Py_None;
1640 }
1641 return _resultobj;
1642 }
1643
1644 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1645 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1646 PyObject * _resultobj;
1647 bool _result;
1648 wxBitmap * _arg0;
1649 wxString * _arg1;
1650 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1651 PyObject * _argo0 = 0;
1652 PyObject * _obj1 = 0;
1653 char *_kwnames[] = { "self","name","type", NULL };
1654
1655 self = self;
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1657 return NULL;
1658 if (_argo0) {
1659 if (_argo0 == Py_None) { _arg0 = NULL; }
1660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1662 return NULL;
1663 }
1664 }
1665 {
1666 #if PYTHON_API_VERSION >= 1009
1667 char* tmpPtr; int tmpSize;
1668 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1669 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1670 return NULL;
1671 }
1672 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1673 return NULL;
1674 _arg1 = new wxString(tmpPtr, tmpSize);
1675 #else
1676 if (!PyString_Check(_obj1)) {
1677 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1678 return NULL;
1679 }
1680 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1681 #endif
1682 }
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) return NULL;
1689 } _resultobj = Py_BuildValue("i",_result);
1690 {
1691 if (_obj1)
1692 delete _arg1;
1693 }
1694 return _resultobj;
1695 }
1696
1697 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1698 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1699 PyObject * _resultobj;
1700 bool _result;
1701 wxBitmap * _arg0;
1702 wxString * _arg1;
1703 wxBitmapType _arg2;
1704 wxPalette * _arg3 = (wxPalette *) NULL;
1705 PyObject * _argo0 = 0;
1706 PyObject * _obj1 = 0;
1707 PyObject * _argo3 = 0;
1708 char *_kwnames[] = { "self","name","type","palette", NULL };
1709
1710 self = self;
1711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1712 return NULL;
1713 if (_argo0) {
1714 if (_argo0 == Py_None) { _arg0 = NULL; }
1715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1717 return NULL;
1718 }
1719 }
1720 {
1721 #if PYTHON_API_VERSION >= 1009
1722 char* tmpPtr; int tmpSize;
1723 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1724 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1725 return NULL;
1726 }
1727 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1728 return NULL;
1729 _arg1 = new wxString(tmpPtr, tmpSize);
1730 #else
1731 if (!PyString_Check(_obj1)) {
1732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1733 return NULL;
1734 }
1735 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1736 #endif
1737 }
1738 if (_argo3) {
1739 if (_argo3 == Py_None) { _arg3 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1742 return NULL;
1743 }
1744 }
1745 {
1746 PyThreadState* __tstate = wxPyBeginAllowThreads();
1747 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1748
1749 wxPyEndAllowThreads(__tstate);
1750 if (PyErr_Occurred()) return NULL;
1751 } _resultobj = Py_BuildValue("i",_result);
1752 {
1753 if (_obj1)
1754 delete _arg1;
1755 }
1756 return _resultobj;
1757 }
1758
1759 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1760 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject * _resultobj;
1762 wxBitmap * _arg0;
1763 wxMask * _arg1;
1764 PyObject * _argo0 = 0;
1765 PyObject * _argo1 = 0;
1766 char *_kwnames[] = { "self","mask", NULL };
1767
1768 self = self;
1769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1770 return NULL;
1771 if (_argo0) {
1772 if (_argo0 == Py_None) { _arg0 = NULL; }
1773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1775 return NULL;
1776 }
1777 }
1778 if (_argo1) {
1779 if (_argo1 == Py_None) { _arg1 = NULL; }
1780 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1781 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1782 return NULL;
1783 }
1784 }
1785 {
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 wxBitmap_SetMask(_arg0,_arg1);
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) return NULL;
1791 } Py_INCREF(Py_None);
1792 _resultobj = Py_None;
1793 return _resultobj;
1794 }
1795
1796 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1797 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject * _resultobj;
1799 wxBitmap * _arg0;
1800 wxPalette * _arg1;
1801 PyObject * _argo0 = 0;
1802 PyObject * _argo1 = 0;
1803 char *_kwnames[] = { "self","palette", NULL };
1804
1805 self = self;
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1807 return NULL;
1808 if (_argo0) {
1809 if (_argo0 == Py_None) { _arg0 = NULL; }
1810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1812 return NULL;
1813 }
1814 }
1815 if (_argo1) {
1816 if (_argo1 == Py_None) { _arg1 = NULL; }
1817 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1818 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1819 return NULL;
1820 }
1821 }
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 wxBitmap_SetPalette(_arg0,*_arg1);
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) return NULL;
1828 } Py_INCREF(Py_None);
1829 _resultobj = Py_None;
1830 return _resultobj;
1831 }
1832
1833 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1834 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1835 PyObject * _resultobj;
1836 long _result;
1837 wxBitmap * _arg0;
1838 PyObject * _argo0 = 0;
1839 char *_kwnames[] = { "self", NULL };
1840
1841 self = self;
1842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1843 return NULL;
1844 if (_argo0) {
1845 if (_argo0 == Py_None) { _arg0 = NULL; }
1846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1848 return NULL;
1849 }
1850 }
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 _result = (long )wxBitmap_GetHandle(_arg0);
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) return NULL;
1857 } _resultobj = Py_BuildValue("l",_result);
1858 return _resultobj;
1859 }
1860
1861 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1862 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject * _resultobj;
1864 wxBitmap * _arg0;
1865 long _arg1;
1866 PyObject * _argo0 = 0;
1867 char *_kwnames[] = { "self","handle", NULL };
1868
1869 self = self;
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1871 return NULL;
1872 if (_argo0) {
1873 if (_argo0 == Py_None) { _arg0 = NULL; }
1874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1876 return NULL;
1877 }
1878 }
1879 {
1880 PyThreadState* __tstate = wxPyBeginAllowThreads();
1881 wxBitmap_SetHandle(_arg0,_arg1);
1882
1883 wxPyEndAllowThreads(__tstate);
1884 if (PyErr_Occurred()) return NULL;
1885 } Py_INCREF(Py_None);
1886 _resultobj = Py_None;
1887 return _resultobj;
1888 }
1889
1890 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1891 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1892 PyObject * _resultobj;
1893 bool _result;
1894 wxBitmap * _arg0;
1895 PyObject * _argo0 = 0;
1896 char *_kwnames[] = { "self", NULL };
1897
1898 self = self;
1899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1900 return NULL;
1901 if (_argo0) {
1902 if (_argo0 == Py_None) { _arg0 = NULL; }
1903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1905 return NULL;
1906 }
1907 }
1908 {
1909 PyThreadState* __tstate = wxPyBeginAllowThreads();
1910 _result = (bool )wxBitmap_Ok(_arg0);
1911
1912 wxPyEndAllowThreads(__tstate);
1913 if (PyErr_Occurred()) return NULL;
1914 } _resultobj = Py_BuildValue("i",_result);
1915 return _resultobj;
1916 }
1917
1918 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1919 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject * _resultobj;
1921 int _result;
1922 wxBitmap * _arg0;
1923 PyObject * _argo0 = 0;
1924 char *_kwnames[] = { "self", NULL };
1925
1926 self = self;
1927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1928 return NULL;
1929 if (_argo0) {
1930 if (_argo0 == Py_None) { _arg0 = NULL; }
1931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1933 return NULL;
1934 }
1935 }
1936 {
1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
1938 _result = (int )wxBitmap_GetWidth(_arg0);
1939
1940 wxPyEndAllowThreads(__tstate);
1941 if (PyErr_Occurred()) return NULL;
1942 } _resultobj = Py_BuildValue("i",_result);
1943 return _resultobj;
1944 }
1945
1946 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1947 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1948 PyObject * _resultobj;
1949 int _result;
1950 wxBitmap * _arg0;
1951 PyObject * _argo0 = 0;
1952 char *_kwnames[] = { "self", NULL };
1953
1954 self = self;
1955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1956 return NULL;
1957 if (_argo0) {
1958 if (_argo0 == Py_None) { _arg0 = NULL; }
1959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1961 return NULL;
1962 }
1963 }
1964 {
1965 PyThreadState* __tstate = wxPyBeginAllowThreads();
1966 _result = (int )wxBitmap_GetHeight(_arg0);
1967
1968 wxPyEndAllowThreads(__tstate);
1969 if (PyErr_Occurred()) return NULL;
1970 } _resultobj = Py_BuildValue("i",_result);
1971 return _resultobj;
1972 }
1973
1974 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1975 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1976 PyObject * _resultobj;
1977 int _result;
1978 wxBitmap * _arg0;
1979 PyObject * _argo0 = 0;
1980 char *_kwnames[] = { "self", NULL };
1981
1982 self = self;
1983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1984 return NULL;
1985 if (_argo0) {
1986 if (_argo0 == Py_None) { _arg0 = NULL; }
1987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1989 return NULL;
1990 }
1991 }
1992 {
1993 PyThreadState* __tstate = wxPyBeginAllowThreads();
1994 _result = (int )wxBitmap_GetDepth(_arg0);
1995
1996 wxPyEndAllowThreads(__tstate);
1997 if (PyErr_Occurred()) return NULL;
1998 } _resultobj = Py_BuildValue("i",_result);
1999 return _resultobj;
2000 }
2001
2002 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2003 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2004 PyObject * _resultobj;
2005 wxBitmap * _arg0;
2006 int _arg1;
2007 PyObject * _argo0 = 0;
2008 char *_kwnames[] = { "self","w", NULL };
2009
2010 self = self;
2011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
2012 return NULL;
2013 if (_argo0) {
2014 if (_argo0 == Py_None) { _arg0 = NULL; }
2015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2017 return NULL;
2018 }
2019 }
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 wxBitmap_SetWidth(_arg0,_arg1);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) return NULL;
2026 } Py_INCREF(Py_None);
2027 _resultobj = Py_None;
2028 return _resultobj;
2029 }
2030
2031 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2032 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2033 PyObject * _resultobj;
2034 wxBitmap * _arg0;
2035 int _arg1;
2036 PyObject * _argo0 = 0;
2037 char *_kwnames[] = { "self","h", NULL };
2038
2039 self = self;
2040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2041 return NULL;
2042 if (_argo0) {
2043 if (_argo0 == Py_None) { _arg0 = NULL; }
2044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2046 return NULL;
2047 }
2048 }
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 wxBitmap_SetHeight(_arg0,_arg1);
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) return NULL;
2055 } Py_INCREF(Py_None);
2056 _resultobj = Py_None;
2057 return _resultobj;
2058 }
2059
2060 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2061 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject * _resultobj;
2063 wxBitmap * _arg0;
2064 int _arg1;
2065 PyObject * _argo0 = 0;
2066 char *_kwnames[] = { "self","d", NULL };
2067
2068 self = self;
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2070 return NULL;
2071 if (_argo0) {
2072 if (_argo0 == Py_None) { _arg0 = NULL; }
2073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2075 return NULL;
2076 }
2077 }
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 wxBitmap_SetDepth(_arg0,_arg1);
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) return NULL;
2084 } Py_INCREF(Py_None);
2085 _resultobj = Py_None;
2086 return _resultobj;
2087 }
2088
2089 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2090 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject * _resultobj;
2092 wxBitmap * _arg0;
2093 wxSize * _arg1;
2094 PyObject * _argo0 = 0;
2095 wxSize temp;
2096 PyObject * _obj1 = 0;
2097 char *_kwnames[] = { "self","size", NULL };
2098
2099 self = self;
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2101 return NULL;
2102 if (_argo0) {
2103 if (_argo0 == Py_None) { _arg0 = NULL; }
2104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2106 return NULL;
2107 }
2108 }
2109 {
2110 _arg1 = &temp;
2111 if (! wxSize_helper(_obj1, &_arg1))
2112 return NULL;
2113 }
2114 {
2115 PyThreadState* __tstate = wxPyBeginAllowThreads();
2116 wxBitmap_SetSize(_arg0,*_arg1);
2117
2118 wxPyEndAllowThreads(__tstate);
2119 if (PyErr_Occurred()) return NULL;
2120 } Py_INCREF(Py_None);
2121 _resultobj = Py_None;
2122 return _resultobj;
2123 }
2124
2125 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2126 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject * _resultobj;
2128 wxBitmap * _result;
2129 wxBitmap * _arg0;
2130 wxRect * _arg1;
2131 PyObject * _argo0 = 0;
2132 wxRect temp;
2133 PyObject * _obj1 = 0;
2134 char *_kwnames[] = { "self","rect", NULL };
2135 char _ptemp[128];
2136
2137 self = self;
2138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2139 return NULL;
2140 if (_argo0) {
2141 if (_argo0 == Py_None) { _arg0 = NULL; }
2142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2144 return NULL;
2145 }
2146 }
2147 {
2148 _arg1 = &temp;
2149 if (! wxRect_helper(_obj1, &_arg1))
2150 return NULL;
2151 }
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) return NULL;
2158 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2159 _resultobj = Py_BuildValue("s",_ptemp);
2160 return _resultobj;
2161 }
2162
2163 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2164 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject * _resultobj;
2166 bool _result;
2167 wxBitmap * _arg0;
2168 wxIcon * _arg1;
2169 PyObject * _argo0 = 0;
2170 PyObject * _argo1 = 0;
2171 char *_kwnames[] = { "self","icon", NULL };
2172
2173 self = self;
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2175 return NULL;
2176 if (_argo0) {
2177 if (_argo0 == Py_None) { _arg0 = NULL; }
2178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2180 return NULL;
2181 }
2182 }
2183 if (_argo1) {
2184 if (_argo1 == Py_None) { _arg1 = NULL; }
2185 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2186 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2187 return NULL;
2188 }
2189 }
2190 {
2191 PyThreadState* __tstate = wxPyBeginAllowThreads();
2192 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2193
2194 wxPyEndAllowThreads(__tstate);
2195 if (PyErr_Occurred()) return NULL;
2196 } _resultobj = Py_BuildValue("i",_result);
2197 return _resultobj;
2198 }
2199
2200 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2201 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject * _resultobj;
2203 bool _result;
2204 wxBitmap * _arg0;
2205 wxCursor * _arg1;
2206 PyObject * _argo0 = 0;
2207 PyObject * _argo1 = 0;
2208 char *_kwnames[] = { "self","cursor", NULL };
2209
2210 self = self;
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2212 return NULL;
2213 if (_argo0) {
2214 if (_argo0 == Py_None) { _arg0 = NULL; }
2215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2217 return NULL;
2218 }
2219 }
2220 if (_argo1) {
2221 if (_argo1 == Py_None) { _arg1 = NULL; }
2222 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2223 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2224 return NULL;
2225 }
2226 }
2227 {
2228 PyThreadState* __tstate = wxPyBeginAllowThreads();
2229 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2230
2231 wxPyEndAllowThreads(__tstate);
2232 if (PyErr_Occurred()) return NULL;
2233 } _resultobj = Py_BuildValue("i",_result);
2234 return _resultobj;
2235 }
2236
2237 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2238 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2239 PyObject * _resultobj;
2240 int _result;
2241 wxBitmap * _arg0;
2242 PyObject * _argo0 = 0;
2243 char *_kwnames[] = { "self", NULL };
2244
2245 self = self;
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2247 return NULL;
2248 if (_argo0) {
2249 if (_argo0 == Py_None) { _arg0 = NULL; }
2250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2252 return NULL;
2253 }
2254 }
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 _result = (int )wxBitmap_GetQuality(_arg0);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) return NULL;
2261 } _resultobj = Py_BuildValue("i",_result);
2262 return _resultobj;
2263 }
2264
2265 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2266 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject * _resultobj;
2268 wxBitmap * _arg0;
2269 int _arg1;
2270 PyObject * _argo0 = 0;
2271 char *_kwnames[] = { "self","q", NULL };
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2275 return NULL;
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2280 return NULL;
2281 }
2282 }
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 wxBitmap_SetQuality(_arg0,_arg1);
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) return NULL;
2289 } Py_INCREF(Py_None);
2290 _resultobj = Py_None;
2291 return _resultobj;
2292 }
2293
2294 static void *SwigwxMaskTowxObject(void *ptr) {
2295 wxMask *src;
2296 wxObject *dest;
2297 src = (wxMask *) ptr;
2298 dest = (wxObject *) src;
2299 return (void *) dest;
2300 }
2301
2302 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2303 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2304 PyObject * _resultobj;
2305 wxMask * _result;
2306 wxBitmap * _arg0;
2307 PyObject * _argo0 = 0;
2308 char *_kwnames[] = { "bitmap", NULL };
2309 char _ptemp[128];
2310
2311 self = self;
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2313 return NULL;
2314 if (_argo0) {
2315 if (_argo0 == Py_None) { _arg0 = NULL; }
2316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2318 return NULL;
2319 }
2320 }
2321 {
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 _result = (wxMask *)new_wxMask(*_arg0);
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) return NULL;
2327 } if (_result) {
2328 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2329 _resultobj = Py_BuildValue("s",_ptemp);
2330 } else {
2331 Py_INCREF(Py_None);
2332 _resultobj = Py_None;
2333 }
2334 return _resultobj;
2335 }
2336
2337 static void wxMask_Destroy(wxMask *self) { delete self; }
2338 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject * _resultobj;
2340 wxMask * _arg0;
2341 PyObject * _argo0 = 0;
2342 char *_kwnames[] = { "self", NULL };
2343
2344 self = self;
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2346 return NULL;
2347 if (_argo0) {
2348 if (_argo0 == Py_None) { _arg0 = NULL; }
2349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2351 return NULL;
2352 }
2353 }
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 wxMask_Destroy(_arg0);
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) return NULL;
2360 } Py_INCREF(Py_None);
2361 _resultobj = Py_None;
2362 return _resultobj;
2363 }
2364
2365 static void *SwigwxIconTowxGDIObject(void *ptr) {
2366 wxIcon *src;
2367 wxGDIObject *dest;
2368 src = (wxIcon *) ptr;
2369 dest = (wxGDIObject *) src;
2370 return (void *) dest;
2371 }
2372
2373 static void *SwigwxIconTowxObject(void *ptr) {
2374 wxIcon *src;
2375 wxObject *dest;
2376 src = (wxIcon *) ptr;
2377 dest = (wxObject *) src;
2378 return (void *) dest;
2379 }
2380
2381 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2382 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2383 PyObject * _resultobj;
2384 wxIcon * _result;
2385 wxString * _arg0;
2386 long _arg1;
2387 int _arg2 = (int ) -1;
2388 int _arg3 = (int ) -1;
2389 PyObject * _obj0 = 0;
2390 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2391 char _ptemp[128];
2392
2393 self = self;
2394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2395 return NULL;
2396 {
2397 #if PYTHON_API_VERSION >= 1009
2398 char* tmpPtr; int tmpSize;
2399 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2400 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2401 return NULL;
2402 }
2403 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2404 return NULL;
2405 _arg0 = new wxString(tmpPtr, tmpSize);
2406 #else
2407 if (!PyString_Check(_obj0)) {
2408 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2409 return NULL;
2410 }
2411 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2412 #endif
2413 }
2414 {
2415 PyThreadState* __tstate = wxPyBeginAllowThreads();
2416 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2417
2418 wxPyEndAllowThreads(__tstate);
2419 if (PyErr_Occurred()) return NULL;
2420 } if (_result) {
2421 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2422 _resultobj = Py_BuildValue("s",_ptemp);
2423 } else {
2424 Py_INCREF(Py_None);
2425 _resultobj = Py_None;
2426 }
2427 {
2428 if (_obj0)
2429 delete _arg0;
2430 }
2431 return _resultobj;
2432 }
2433
2434 #define delete_wxIcon(_swigobj) (delete _swigobj)
2435 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject * _resultobj;
2437 wxIcon * _arg0;
2438 PyObject * _argo0 = 0;
2439 char *_kwnames[] = { "self", NULL };
2440
2441 self = self;
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2443 return NULL;
2444 if (_argo0) {
2445 if (_argo0 == Py_None) { _arg0 = NULL; }
2446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2448 return NULL;
2449 }
2450 }
2451 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 delete_wxIcon(_arg0);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) return NULL;
2457 } Py_INCREF(Py_None);
2458 _resultobj = Py_None;
2459 return _resultobj;
2460 }
2461
2462 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2463 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2464 PyObject * _resultobj;
2465 bool _result;
2466 wxIcon * _arg0;
2467 wxString * _arg1;
2468 long _arg2;
2469 PyObject * _argo0 = 0;
2470 PyObject * _obj1 = 0;
2471 char *_kwnames[] = { "self","name","flags", NULL };
2472
2473 self = self;
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2475 return NULL;
2476 if (_argo0) {
2477 if (_argo0 == Py_None) { _arg0 = NULL; }
2478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2480 return NULL;
2481 }
2482 }
2483 {
2484 #if PYTHON_API_VERSION >= 1009
2485 char* tmpPtr; int tmpSize;
2486 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2487 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2488 return NULL;
2489 }
2490 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2491 return NULL;
2492 _arg1 = new wxString(tmpPtr, tmpSize);
2493 #else
2494 if (!PyString_Check(_obj1)) {
2495 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2496 return NULL;
2497 }
2498 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2499 #endif
2500 }
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) return NULL;
2507 } _resultobj = Py_BuildValue("i",_result);
2508 {
2509 if (_obj1)
2510 delete _arg1;
2511 }
2512 return _resultobj;
2513 }
2514
2515 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2516 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject * _resultobj;
2518 long _result;
2519 wxIcon * _arg0;
2520 PyObject * _argo0 = 0;
2521 char *_kwnames[] = { "self", NULL };
2522
2523 self = self;
2524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2525 return NULL;
2526 if (_argo0) {
2527 if (_argo0 == Py_None) { _arg0 = NULL; }
2528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2530 return NULL;
2531 }
2532 }
2533 {
2534 PyThreadState* __tstate = wxPyBeginAllowThreads();
2535 _result = (long )wxIcon_GetHandle(_arg0);
2536
2537 wxPyEndAllowThreads(__tstate);
2538 if (PyErr_Occurred()) return NULL;
2539 } _resultobj = Py_BuildValue("l",_result);
2540 return _resultobj;
2541 }
2542
2543 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2544 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject * _resultobj;
2546 wxIcon * _arg0;
2547 long _arg1;
2548 PyObject * _argo0 = 0;
2549 char *_kwnames[] = { "self","handle", NULL };
2550
2551 self = self;
2552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2553 return NULL;
2554 if (_argo0) {
2555 if (_argo0 == Py_None) { _arg0 = NULL; }
2556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2558 return NULL;
2559 }
2560 }
2561 {
2562 PyThreadState* __tstate = wxPyBeginAllowThreads();
2563 wxIcon_SetHandle(_arg0,_arg1);
2564
2565 wxPyEndAllowThreads(__tstate);
2566 if (PyErr_Occurred()) return NULL;
2567 } Py_INCREF(Py_None);
2568 _resultobj = Py_None;
2569 return _resultobj;
2570 }
2571
2572 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2573 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2574 PyObject * _resultobj;
2575 bool _result;
2576 wxIcon * _arg0;
2577 PyObject * _argo0 = 0;
2578 char *_kwnames[] = { "self", NULL };
2579
2580 self = self;
2581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2582 return NULL;
2583 if (_argo0) {
2584 if (_argo0 == Py_None) { _arg0 = NULL; }
2585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2587 return NULL;
2588 }
2589 }
2590 {
2591 PyThreadState* __tstate = wxPyBeginAllowThreads();
2592 _result = (bool )wxIcon_Ok(_arg0);
2593
2594 wxPyEndAllowThreads(__tstate);
2595 if (PyErr_Occurred()) return NULL;
2596 } _resultobj = Py_BuildValue("i",_result);
2597 return _resultobj;
2598 }
2599
2600 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2601 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2602 PyObject * _resultobj;
2603 int _result;
2604 wxIcon * _arg0;
2605 PyObject * _argo0 = 0;
2606 char *_kwnames[] = { "self", NULL };
2607
2608 self = self;
2609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2610 return NULL;
2611 if (_argo0) {
2612 if (_argo0 == Py_None) { _arg0 = NULL; }
2613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2615 return NULL;
2616 }
2617 }
2618 {
2619 PyThreadState* __tstate = wxPyBeginAllowThreads();
2620 _result = (int )wxIcon_GetWidth(_arg0);
2621
2622 wxPyEndAllowThreads(__tstate);
2623 if (PyErr_Occurred()) return NULL;
2624 } _resultobj = Py_BuildValue("i",_result);
2625 return _resultobj;
2626 }
2627
2628 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2629 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2630 PyObject * _resultobj;
2631 int _result;
2632 wxIcon * _arg0;
2633 PyObject * _argo0 = 0;
2634 char *_kwnames[] = { "self", NULL };
2635
2636 self = self;
2637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2638 return NULL;
2639 if (_argo0) {
2640 if (_argo0 == Py_None) { _arg0 = NULL; }
2641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2643 return NULL;
2644 }
2645 }
2646 {
2647 PyThreadState* __tstate = wxPyBeginAllowThreads();
2648 _result = (int )wxIcon_GetHeight(_arg0);
2649
2650 wxPyEndAllowThreads(__tstate);
2651 if (PyErr_Occurred()) return NULL;
2652 } _resultobj = Py_BuildValue("i",_result);
2653 return _resultobj;
2654 }
2655
2656 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2657 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2658 PyObject * _resultobj;
2659 int _result;
2660 wxIcon * _arg0;
2661 PyObject * _argo0 = 0;
2662 char *_kwnames[] = { "self", NULL };
2663
2664 self = self;
2665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2666 return NULL;
2667 if (_argo0) {
2668 if (_argo0 == Py_None) { _arg0 = NULL; }
2669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2671 return NULL;
2672 }
2673 }
2674 {
2675 PyThreadState* __tstate = wxPyBeginAllowThreads();
2676 _result = (int )wxIcon_GetDepth(_arg0);
2677
2678 wxPyEndAllowThreads(__tstate);
2679 if (PyErr_Occurred()) return NULL;
2680 } _resultobj = Py_BuildValue("i",_result);
2681 return _resultobj;
2682 }
2683
2684 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2685 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2686 PyObject * _resultobj;
2687 wxIcon * _arg0;
2688 int _arg1;
2689 PyObject * _argo0 = 0;
2690 char *_kwnames[] = { "self","w", NULL };
2691
2692 self = self;
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2694 return NULL;
2695 if (_argo0) {
2696 if (_argo0 == Py_None) { _arg0 = NULL; }
2697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2699 return NULL;
2700 }
2701 }
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 wxIcon_SetWidth(_arg0,_arg1);
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) return NULL;
2708 } Py_INCREF(Py_None);
2709 _resultobj = Py_None;
2710 return _resultobj;
2711 }
2712
2713 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2714 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2715 PyObject * _resultobj;
2716 wxIcon * _arg0;
2717 int _arg1;
2718 PyObject * _argo0 = 0;
2719 char *_kwnames[] = { "self","h", NULL };
2720
2721 self = self;
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2723 return NULL;
2724 if (_argo0) {
2725 if (_argo0 == Py_None) { _arg0 = NULL; }
2726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2728 return NULL;
2729 }
2730 }
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 wxIcon_SetHeight(_arg0,_arg1);
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) return NULL;
2737 } Py_INCREF(Py_None);
2738 _resultobj = Py_None;
2739 return _resultobj;
2740 }
2741
2742 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2743 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2744 PyObject * _resultobj;
2745 wxIcon * _arg0;
2746 int _arg1;
2747 PyObject * _argo0 = 0;
2748 char *_kwnames[] = { "self","d", NULL };
2749
2750 self = self;
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2752 return NULL;
2753 if (_argo0) {
2754 if (_argo0 == Py_None) { _arg0 = NULL; }
2755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2757 return NULL;
2758 }
2759 }
2760 {
2761 PyThreadState* __tstate = wxPyBeginAllowThreads();
2762 wxIcon_SetDepth(_arg0,_arg1);
2763
2764 wxPyEndAllowThreads(__tstate);
2765 if (PyErr_Occurred()) return NULL;
2766 } Py_INCREF(Py_None);
2767 _resultobj = Py_None;
2768 return _resultobj;
2769 }
2770
2771 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2772 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2773 PyObject * _resultobj;
2774 wxIcon * _arg0;
2775 wxSize * _arg1;
2776 PyObject * _argo0 = 0;
2777 wxSize temp;
2778 PyObject * _obj1 = 0;
2779 char *_kwnames[] = { "self","size", NULL };
2780
2781 self = self;
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2783 return NULL;
2784 if (_argo0) {
2785 if (_argo0 == Py_None) { _arg0 = NULL; }
2786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2788 return NULL;
2789 }
2790 }
2791 {
2792 _arg1 = &temp;
2793 if (! wxSize_helper(_obj1, &_arg1))
2794 return NULL;
2795 }
2796 {
2797 PyThreadState* __tstate = wxPyBeginAllowThreads();
2798 wxIcon_SetSize(_arg0,*_arg1);
2799
2800 wxPyEndAllowThreads(__tstate);
2801 if (PyErr_Occurred()) return NULL;
2802 } Py_INCREF(Py_None);
2803 _resultobj = Py_None;
2804 return _resultobj;
2805 }
2806
2807 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2808 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject * _resultobj;
2810 wxIcon * _arg0;
2811 wxBitmap * _arg1;
2812 PyObject * _argo0 = 0;
2813 PyObject * _argo1 = 0;
2814 char *_kwnames[] = { "self","bmp", NULL };
2815
2816 self = self;
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2818 return NULL;
2819 if (_argo0) {
2820 if (_argo0 == Py_None) { _arg0 = NULL; }
2821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2823 return NULL;
2824 }
2825 }
2826 if (_argo1) {
2827 if (_argo1 == Py_None) { _arg1 = NULL; }
2828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2830 return NULL;
2831 }
2832 }
2833 {
2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
2835 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2836
2837 wxPyEndAllowThreads(__tstate);
2838 if (PyErr_Occurred()) return NULL;
2839 } Py_INCREF(Py_None);
2840 _resultobj = Py_None;
2841 return _resultobj;
2842 }
2843
2844 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2845 wxCursor *src;
2846 wxGDIObject *dest;
2847 src = (wxCursor *) ptr;
2848 dest = (wxGDIObject *) src;
2849 return (void *) dest;
2850 }
2851
2852 static void *SwigwxCursorTowxObject(void *ptr) {
2853 wxCursor *src;
2854 wxObject *dest;
2855 src = (wxCursor *) ptr;
2856 dest = (wxObject *) src;
2857 return (void *) dest;
2858 }
2859
2860 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2861 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2862 PyObject * _resultobj;
2863 wxCursor * _result;
2864 wxString * _arg0;
2865 long _arg1;
2866 int _arg2 = (int ) 0;
2867 int _arg3 = (int ) 0;
2868 PyObject * _obj0 = 0;
2869 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2870 char _ptemp[128];
2871
2872 self = self;
2873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2874 return NULL;
2875 {
2876 #if PYTHON_API_VERSION >= 1009
2877 char* tmpPtr; int tmpSize;
2878 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2879 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2880 return NULL;
2881 }
2882 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2883 return NULL;
2884 _arg0 = new wxString(tmpPtr, tmpSize);
2885 #else
2886 if (!PyString_Check(_obj0)) {
2887 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2888 return NULL;
2889 }
2890 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2891 #endif
2892 }
2893 {
2894 PyThreadState* __tstate = wxPyBeginAllowThreads();
2895 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2896
2897 wxPyEndAllowThreads(__tstate);
2898 if (PyErr_Occurred()) return NULL;
2899 } if (_result) {
2900 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2901 _resultobj = Py_BuildValue("s",_ptemp);
2902 } else {
2903 Py_INCREF(Py_None);
2904 _resultobj = Py_None;
2905 }
2906 {
2907 if (_obj0)
2908 delete _arg0;
2909 }
2910 return _resultobj;
2911 }
2912
2913 #define delete_wxCursor(_swigobj) (delete _swigobj)
2914 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2915 PyObject * _resultobj;
2916 wxCursor * _arg0;
2917 PyObject * _argo0 = 0;
2918 char *_kwnames[] = { "self", NULL };
2919
2920 self = self;
2921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2922 return NULL;
2923 if (_argo0) {
2924 if (_argo0 == Py_None) { _arg0 = NULL; }
2925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2927 return NULL;
2928 }
2929 }
2930 {
2931 PyThreadState* __tstate = wxPyBeginAllowThreads();
2932 delete_wxCursor(_arg0);
2933
2934 wxPyEndAllowThreads(__tstate);
2935 if (PyErr_Occurred()) return NULL;
2936 } Py_INCREF(Py_None);
2937 _resultobj = Py_None;
2938 return _resultobj;
2939 }
2940
2941 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2942 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2943 PyObject * _resultobj;
2944 long _result;
2945 wxCursor * _arg0;
2946 PyObject * _argo0 = 0;
2947 char *_kwnames[] = { "self", NULL };
2948
2949 self = self;
2950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2951 return NULL;
2952 if (_argo0) {
2953 if (_argo0 == Py_None) { _arg0 = NULL; }
2954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2956 return NULL;
2957 }
2958 }
2959 {
2960 PyThreadState* __tstate = wxPyBeginAllowThreads();
2961 _result = (long )wxCursor_GetHandle(_arg0);
2962
2963 wxPyEndAllowThreads(__tstate);
2964 if (PyErr_Occurred()) return NULL;
2965 } _resultobj = Py_BuildValue("l",_result);
2966 return _resultobj;
2967 }
2968
2969 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2970 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2971 PyObject * _resultobj;
2972 wxCursor * _arg0;
2973 long _arg1;
2974 PyObject * _argo0 = 0;
2975 char *_kwnames[] = { "self","handle", NULL };
2976
2977 self = self;
2978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2979 return NULL;
2980 if (_argo0) {
2981 if (_argo0 == Py_None) { _arg0 = NULL; }
2982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2984 return NULL;
2985 }
2986 }
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 wxCursor_SetHandle(_arg0,_arg1);
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) return NULL;
2993 } Py_INCREF(Py_None);
2994 _resultobj = Py_None;
2995 return _resultobj;
2996 }
2997
2998 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2999 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3000 PyObject * _resultobj;
3001 bool _result;
3002 wxCursor * _arg0;
3003 PyObject * _argo0 = 0;
3004 char *_kwnames[] = { "self", NULL };
3005
3006 self = self;
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
3008 return NULL;
3009 if (_argo0) {
3010 if (_argo0 == Py_None) { _arg0 = NULL; }
3011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3013 return NULL;
3014 }
3015 }
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 _result = (bool )wxCursor_Ok(_arg0);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) return NULL;
3022 } _resultobj = Py_BuildValue("i",_result);
3023 return _resultobj;
3024 }
3025
3026 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3027 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3028 PyObject * _resultobj;
3029 int _result;
3030 wxCursor * _arg0;
3031 PyObject * _argo0 = 0;
3032 char *_kwnames[] = { "self", NULL };
3033
3034 self = self;
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
3036 return NULL;
3037 if (_argo0) {
3038 if (_argo0 == Py_None) { _arg0 = NULL; }
3039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3041 return NULL;
3042 }
3043 }
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 _result = (int )wxCursor_GetWidth(_arg0);
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) return NULL;
3050 } _resultobj = Py_BuildValue("i",_result);
3051 return _resultobj;
3052 }
3053
3054 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3055 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3056 PyObject * _resultobj;
3057 int _result;
3058 wxCursor * _arg0;
3059 PyObject * _argo0 = 0;
3060 char *_kwnames[] = { "self", NULL };
3061
3062 self = self;
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3064 return NULL;
3065 if (_argo0) {
3066 if (_argo0 == Py_None) { _arg0 = NULL; }
3067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3069 return NULL;
3070 }
3071 }
3072 {
3073 PyThreadState* __tstate = wxPyBeginAllowThreads();
3074 _result = (int )wxCursor_GetHeight(_arg0);
3075
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) return NULL;
3078 } _resultobj = Py_BuildValue("i",_result);
3079 return _resultobj;
3080 }
3081
3082 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3083 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3084 PyObject * _resultobj;
3085 int _result;
3086 wxCursor * _arg0;
3087 PyObject * _argo0 = 0;
3088 char *_kwnames[] = { "self", NULL };
3089
3090 self = self;
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3092 return NULL;
3093 if (_argo0) {
3094 if (_argo0 == Py_None) { _arg0 = NULL; }
3095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3097 return NULL;
3098 }
3099 }
3100 {
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 _result = (int )wxCursor_GetDepth(_arg0);
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) return NULL;
3106 } _resultobj = Py_BuildValue("i",_result);
3107 return _resultobj;
3108 }
3109
3110 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3111 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3112 PyObject * _resultobj;
3113 wxCursor * _arg0;
3114 int _arg1;
3115 PyObject * _argo0 = 0;
3116 char *_kwnames[] = { "self","w", NULL };
3117
3118 self = self;
3119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3120 return NULL;
3121 if (_argo0) {
3122 if (_argo0 == Py_None) { _arg0 = NULL; }
3123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3125 return NULL;
3126 }
3127 }
3128 {
3129 PyThreadState* __tstate = wxPyBeginAllowThreads();
3130 wxCursor_SetWidth(_arg0,_arg1);
3131
3132 wxPyEndAllowThreads(__tstate);
3133 if (PyErr_Occurred()) return NULL;
3134 } Py_INCREF(Py_None);
3135 _resultobj = Py_None;
3136 return _resultobj;
3137 }
3138
3139 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3140 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3141 PyObject * _resultobj;
3142 wxCursor * _arg0;
3143 int _arg1;
3144 PyObject * _argo0 = 0;
3145 char *_kwnames[] = { "self","h", NULL };
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3149 return NULL;
3150 if (_argo0) {
3151 if (_argo0 == Py_None) { _arg0 = NULL; }
3152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3154 return NULL;
3155 }
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 wxCursor_SetHeight(_arg0,_arg1);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) return NULL;
3163 } Py_INCREF(Py_None);
3164 _resultobj = Py_None;
3165 return _resultobj;
3166 }
3167
3168 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3169 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3170 PyObject * _resultobj;
3171 wxCursor * _arg0;
3172 int _arg1;
3173 PyObject * _argo0 = 0;
3174 char *_kwnames[] = { "self","d", NULL };
3175
3176 self = self;
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3178 return NULL;
3179 if (_argo0) {
3180 if (_argo0 == Py_None) { _arg0 = NULL; }
3181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3183 return NULL;
3184 }
3185 }
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 wxCursor_SetDepth(_arg0,_arg1);
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) return NULL;
3192 } Py_INCREF(Py_None);
3193 _resultobj = Py_None;
3194 return _resultobj;
3195 }
3196
3197 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3198 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3199 PyObject * _resultobj;
3200 wxCursor * _arg0;
3201 wxSize * _arg1;
3202 PyObject * _argo0 = 0;
3203 wxSize temp;
3204 PyObject * _obj1 = 0;
3205 char *_kwnames[] = { "self","size", NULL };
3206
3207 self = self;
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3209 return NULL;
3210 if (_argo0) {
3211 if (_argo0 == Py_None) { _arg0 = NULL; }
3212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3214 return NULL;
3215 }
3216 }
3217 {
3218 _arg1 = &temp;
3219 if (! wxSize_helper(_obj1, &_arg1))
3220 return NULL;
3221 }
3222 {
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 wxCursor_SetSize(_arg0,*_arg1);
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) return NULL;
3228 } Py_INCREF(Py_None);
3229 _resultobj = Py_None;
3230 return _resultobj;
3231 }
3232
3233 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3234 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3235 PyObject * _resultobj;
3236 wxNativeFontInfo * _result;
3237 char *_kwnames[] = { NULL };
3238 char _ptemp[128];
3239
3240 self = self;
3241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
3242 return NULL;
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
3246
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) return NULL;
3249 } if (_result) {
3250 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3251 _resultobj = Py_BuildValue("s",_ptemp);
3252 } else {
3253 Py_INCREF(Py_None);
3254 _resultobj = Py_None;
3255 }
3256 return _resultobj;
3257 }
3258
3259 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3260 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3261 PyObject * _resultobj;
3262 wxNativeFontInfo * _arg0;
3263 PyObject * _argo0 = 0;
3264 char *_kwnames[] = { "self", NULL };
3265
3266 self = self;
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
3268 return NULL;
3269 if (_argo0) {
3270 if (_argo0 == Py_None) { _arg0 = NULL; }
3271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3273 return NULL;
3274 }
3275 }
3276 {
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 wxNativeFontInfo_Init(_arg0);
3279
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) return NULL;
3282 } Py_INCREF(Py_None);
3283 _resultobj = Py_None;
3284 return _resultobj;
3285 }
3286
3287 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3288 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3289 PyObject * _resultobj;
3290 int _result;
3291 wxNativeFontInfo * _arg0;
3292 PyObject * _argo0 = 0;
3293 char *_kwnames[] = { "self", NULL };
3294
3295 self = self;
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
3297 return NULL;
3298 if (_argo0) {
3299 if (_argo0 == Py_None) { _arg0 = NULL; }
3300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3302 return NULL;
3303 }
3304 }
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) return NULL;
3311 } _resultobj = Py_BuildValue("i",_result);
3312 return _resultobj;
3313 }
3314
3315 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3316 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject * _resultobj;
3318 wxFontStyle _result;
3319 wxNativeFontInfo * _arg0;
3320 PyObject * _argo0 = 0;
3321 char *_kwnames[] = { "self", NULL };
3322
3323 self = self;
3324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
3325 return NULL;
3326 if (_argo0) {
3327 if (_argo0 == Py_None) { _arg0 = NULL; }
3328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3330 return NULL;
3331 }
3332 }
3333 {
3334 PyThreadState* __tstate = wxPyBeginAllowThreads();
3335 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
3336
3337 wxPyEndAllowThreads(__tstate);
3338 if (PyErr_Occurred()) return NULL;
3339 } _resultobj = Py_BuildValue("i",_result);
3340 return _resultobj;
3341 }
3342
3343 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3344 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3345 PyObject * _resultobj;
3346 wxFontWeight _result;
3347 wxNativeFontInfo * _arg0;
3348 PyObject * _argo0 = 0;
3349 char *_kwnames[] = { "self", NULL };
3350
3351 self = self;
3352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
3353 return NULL;
3354 if (_argo0) {
3355 if (_argo0 == Py_None) { _arg0 = NULL; }
3356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3358 return NULL;
3359 }
3360 }
3361 {
3362 PyThreadState* __tstate = wxPyBeginAllowThreads();
3363 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
3364
3365 wxPyEndAllowThreads(__tstate);
3366 if (PyErr_Occurred()) return NULL;
3367 } _resultobj = Py_BuildValue("i",_result);
3368 return _resultobj;
3369 }
3370
3371 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3372 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject * _resultobj;
3374 bool _result;
3375 wxNativeFontInfo * _arg0;
3376 PyObject * _argo0 = 0;
3377 char *_kwnames[] = { "self", NULL };
3378
3379 self = self;
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
3381 return NULL;
3382 if (_argo0) {
3383 if (_argo0 == Py_None) { _arg0 = NULL; }
3384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3386 return NULL;
3387 }
3388 }
3389 {
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) return NULL;
3395 } _resultobj = Py_BuildValue("i",_result);
3396 return _resultobj;
3397 }
3398
3399 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3400 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3401 PyObject * _resultobj;
3402 wxString * _result;
3403 wxNativeFontInfo * _arg0;
3404 PyObject * _argo0 = 0;
3405 char *_kwnames[] = { "self", NULL };
3406
3407 self = self;
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
3409 return NULL;
3410 if (_argo0) {
3411 if (_argo0 == Py_None) { _arg0 = NULL; }
3412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3414 return NULL;
3415 }
3416 }
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) return NULL;
3423 }{
3424 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3425 }
3426 {
3427 delete _result;
3428 }
3429 return _resultobj;
3430 }
3431
3432 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3433 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3434 PyObject * _resultobj;
3435 wxFontFamily _result;
3436 wxNativeFontInfo * _arg0;
3437 PyObject * _argo0 = 0;
3438 char *_kwnames[] = { "self", NULL };
3439
3440 self = self;
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
3442 return NULL;
3443 if (_argo0) {
3444 if (_argo0 == Py_None) { _arg0 = NULL; }
3445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3447 return NULL;
3448 }
3449 }
3450 {
3451 PyThreadState* __tstate = wxPyBeginAllowThreads();
3452 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
3453
3454 wxPyEndAllowThreads(__tstate);
3455 if (PyErr_Occurred()) return NULL;
3456 } _resultobj = Py_BuildValue("i",_result);
3457 return _resultobj;
3458 }
3459
3460 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3461 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject * _resultobj;
3463 wxFontEncoding _result;
3464 wxNativeFontInfo * _arg0;
3465 PyObject * _argo0 = 0;
3466 char *_kwnames[] = { "self", NULL };
3467
3468 self = self;
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
3470 return NULL;
3471 if (_argo0) {
3472 if (_argo0 == Py_None) { _arg0 = NULL; }
3473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3475 return NULL;
3476 }
3477 }
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) return NULL;
3484 } _resultobj = Py_BuildValue("i",_result);
3485 return _resultobj;
3486 }
3487
3488 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3489 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3490 PyObject * _resultobj;
3491 wxNativeFontInfo * _arg0;
3492 int _arg1;
3493 PyObject * _argo0 = 0;
3494 char *_kwnames[] = { "self","pointsize", NULL };
3495
3496 self = self;
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
3498 return NULL;
3499 if (_argo0) {
3500 if (_argo0 == Py_None) { _arg0 = NULL; }
3501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3503 return NULL;
3504 }
3505 }
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) return NULL;
3512 } Py_INCREF(Py_None);
3513 _resultobj = Py_None;
3514 return _resultobj;
3515 }
3516
3517 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3518 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3519 PyObject * _resultobj;
3520 wxNativeFontInfo * _arg0;
3521 wxFontStyle _arg1;
3522 PyObject * _argo0 = 0;
3523 char *_kwnames[] = { "self","style", NULL };
3524
3525 self = self;
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
3527 return NULL;
3528 if (_argo0) {
3529 if (_argo0 == Py_None) { _arg0 = NULL; }
3530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3532 return NULL;
3533 }
3534 }
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 wxNativeFontInfo_SetStyle(_arg0,_arg1);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) return NULL;
3541 } Py_INCREF(Py_None);
3542 _resultobj = Py_None;
3543 return _resultobj;
3544 }
3545
3546 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3547 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3548 PyObject * _resultobj;
3549 wxNativeFontInfo * _arg0;
3550 wxFontWeight _arg1;
3551 PyObject * _argo0 = 0;
3552 char *_kwnames[] = { "self","weight", NULL };
3553
3554 self = self;
3555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
3556 return NULL;
3557 if (_argo0) {
3558 if (_argo0 == Py_None) { _arg0 = NULL; }
3559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3561 return NULL;
3562 }
3563 }
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 wxNativeFontInfo_SetWeight(_arg0,_arg1);
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) return NULL;
3570 } Py_INCREF(Py_None);
3571 _resultobj = Py_None;
3572 return _resultobj;
3573 }
3574
3575 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3576 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3577 PyObject * _resultobj;
3578 wxNativeFontInfo * _arg0;
3579 bool _arg1;
3580 PyObject * _argo0 = 0;
3581 int tempbool1;
3582 char *_kwnames[] = { "self","underlined", NULL };
3583
3584 self = self;
3585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3586 return NULL;
3587 if (_argo0) {
3588 if (_argo0 == Py_None) { _arg0 = NULL; }
3589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3591 return NULL;
3592 }
3593 }
3594 _arg1 = (bool ) tempbool1;
3595 {
3596 PyThreadState* __tstate = wxPyBeginAllowThreads();
3597 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
3598
3599 wxPyEndAllowThreads(__tstate);
3600 if (PyErr_Occurred()) return NULL;
3601 } Py_INCREF(Py_None);
3602 _resultobj = Py_None;
3603 return _resultobj;
3604 }
3605
3606 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3607 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3608 PyObject * _resultobj;
3609 wxNativeFontInfo * _arg0;
3610 wxString * _arg1;
3611 PyObject * _argo0 = 0;
3612 PyObject * _obj1 = 0;
3613 char *_kwnames[] = { "self","facename", NULL };
3614
3615 self = self;
3616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
3617 return NULL;
3618 if (_argo0) {
3619 if (_argo0 == Py_None) { _arg0 = NULL; }
3620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3622 return NULL;
3623 }
3624 }
3625 {
3626 #if PYTHON_API_VERSION >= 1009
3627 char* tmpPtr; int tmpSize;
3628 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3630 return NULL;
3631 }
3632 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3633 return NULL;
3634 _arg1 = new wxString(tmpPtr, tmpSize);
3635 #else
3636 if (!PyString_Check(_obj1)) {
3637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3638 return NULL;
3639 }
3640 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3641 #endif
3642 }
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
3646
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) return NULL;
3649 } Py_INCREF(Py_None);
3650 _resultobj = Py_None;
3651 {
3652 if (_obj1)
3653 delete _arg1;
3654 }
3655 return _resultobj;
3656 }
3657
3658 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3659 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3660 PyObject * _resultobj;
3661 wxNativeFontInfo * _arg0;
3662 wxFontFamily _arg1;
3663 PyObject * _argo0 = 0;
3664 char *_kwnames[] = { "self","family", NULL };
3665
3666 self = self;
3667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
3668 return NULL;
3669 if (_argo0) {
3670 if (_argo0 == Py_None) { _arg0 = NULL; }
3671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3673 return NULL;
3674 }
3675 }
3676 {
3677 PyThreadState* __tstate = wxPyBeginAllowThreads();
3678 wxNativeFontInfo_SetFamily(_arg0,_arg1);
3679
3680 wxPyEndAllowThreads(__tstate);
3681 if (PyErr_Occurred()) return NULL;
3682 } Py_INCREF(Py_None);
3683 _resultobj = Py_None;
3684 return _resultobj;
3685 }
3686
3687 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3688 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject * _resultobj;
3690 wxNativeFontInfo * _arg0;
3691 wxFontEncoding _arg1;
3692 PyObject * _argo0 = 0;
3693 char *_kwnames[] = { "self","encoding", NULL };
3694
3695 self = self;
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
3697 return NULL;
3698 if (_argo0) {
3699 if (_argo0 == Py_None) { _arg0 = NULL; }
3700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3702 return NULL;
3703 }
3704 }
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) return NULL;
3711 } Py_INCREF(Py_None);
3712 _resultobj = Py_None;
3713 return _resultobj;
3714 }
3715
3716 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3717 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject * _resultobj;
3719 bool _result;
3720 wxNativeFontInfo * _arg0;
3721 wxString * _arg1;
3722 PyObject * _argo0 = 0;
3723 PyObject * _obj1 = 0;
3724 char *_kwnames[] = { "self","s", NULL };
3725
3726 self = self;
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
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 wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3733 return NULL;
3734 }
3735 }
3736 {
3737 #if PYTHON_API_VERSION >= 1009
3738 char* tmpPtr; int tmpSize;
3739 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3740 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3741 return NULL;
3742 }
3743 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3744 return NULL;
3745 _arg1 = new wxString(tmpPtr, tmpSize);
3746 #else
3747 if (!PyString_Check(_obj1)) {
3748 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3749 return NULL;
3750 }
3751 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3752 #endif
3753 }
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3757
3758 wxPyEndAllowThreads(__tstate);
3759 if (PyErr_Occurred()) return NULL;
3760 } _resultobj = Py_BuildValue("i",_result);
3761 {
3762 if (_obj1)
3763 delete _arg1;
3764 }
3765 return _resultobj;
3766 }
3767
3768 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3769 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3770 PyObject * _resultobj;
3771 wxString * _result;
3772 wxNativeFontInfo * _arg0;
3773 PyObject * _argo0 = 0;
3774 char *_kwnames[] = { "self", NULL };
3775
3776 self = self;
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3778 return NULL;
3779 if (_argo0) {
3780 if (_argo0 == Py_None) { _arg0 = NULL; }
3781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3783 return NULL;
3784 }
3785 }
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) return NULL;
3792 }{
3793 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3794 }
3795 {
3796 delete _result;
3797 }
3798 return _resultobj;
3799 }
3800
3801 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3802 return self->ToString();
3803 }
3804 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject * _resultobj;
3806 wxString * _result;
3807 wxNativeFontInfo * _arg0;
3808 PyObject * _argo0 = 0;
3809 char *_kwnames[] = { "self", NULL };
3810
3811 self = self;
3812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3813 return NULL;
3814 if (_argo0) {
3815 if (_argo0 == Py_None) { _arg0 = NULL; }
3816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3818 return NULL;
3819 }
3820 }
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) return NULL;
3827 }{
3828 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3829 }
3830 {
3831 delete _result;
3832 }
3833 return _resultobj;
3834 }
3835
3836 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3837 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject * _resultobj;
3839 bool _result;
3840 wxNativeFontInfo * _arg0;
3841 wxString * _arg1;
3842 PyObject * _argo0 = 0;
3843 PyObject * _obj1 = 0;
3844 char *_kwnames[] = { "self","s", NULL };
3845
3846 self = self;
3847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3848 return NULL;
3849 if (_argo0) {
3850 if (_argo0 == Py_None) { _arg0 = NULL; }
3851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3853 return NULL;
3854 }
3855 }
3856 {
3857 #if PYTHON_API_VERSION >= 1009
3858 char* tmpPtr; int tmpSize;
3859 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3860 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3861 return NULL;
3862 }
3863 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3864 return NULL;
3865 _arg1 = new wxString(tmpPtr, tmpSize);
3866 #else
3867 if (!PyString_Check(_obj1)) {
3868 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3869 return NULL;
3870 }
3871 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3872 #endif
3873 }
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) return NULL;
3880 } _resultobj = Py_BuildValue("i",_result);
3881 {
3882 if (_obj1)
3883 delete _arg1;
3884 }
3885 return _resultobj;
3886 }
3887
3888 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3889 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3890 PyObject * _resultobj;
3891 wxString * _result;
3892 wxNativeFontInfo * _arg0;
3893 PyObject * _argo0 = 0;
3894 char *_kwnames[] = { "self", NULL };
3895
3896 self = self;
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
3898 return NULL;
3899 if (_argo0) {
3900 if (_argo0 == Py_None) { _arg0 = NULL; }
3901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3903 return NULL;
3904 }
3905 }
3906 {
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3909
3910 wxPyEndAllowThreads(__tstate);
3911 if (PyErr_Occurred()) return NULL;
3912 }{
3913 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3914 }
3915 {
3916 delete _result;
3917 }
3918 return _resultobj;
3919 }
3920
3921 #define new_wxFontMapper() (new wxFontMapper())
3922 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3923 PyObject * _resultobj;
3924 wxFontMapper * _result;
3925 char *_kwnames[] = { NULL };
3926 char _ptemp[128];
3927
3928 self = self;
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3930 return NULL;
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 _result = (wxFontMapper *)new_wxFontMapper();
3934
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) return NULL;
3937 } if (_result) {
3938 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3939 _resultobj = Py_BuildValue("s",_ptemp);
3940 } else {
3941 Py_INCREF(Py_None);
3942 _resultobj = Py_None;
3943 }
3944 return _resultobj;
3945 }
3946
3947 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3948 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3949 PyObject * _resultobj;
3950 wxFontMapper * _arg0;
3951 PyObject * _argo0 = 0;
3952 char *_kwnames[] = { "self", NULL };
3953
3954 self = self;
3955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3956 return NULL;
3957 if (_argo0) {
3958 if (_argo0 == Py_None) { _arg0 = NULL; }
3959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3961 return NULL;
3962 }
3963 }
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 delete_wxFontMapper(_arg0);
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) return NULL;
3970 } Py_INCREF(Py_None);
3971 _resultobj = Py_None;
3972 return _resultobj;
3973 }
3974
3975 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3976 wxFontEncoding alt_enc;
3977 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3978 return PyInt_FromLong(alt_enc);
3979 else {
3980 Py_INCREF(Py_None);
3981 return Py_None;
3982 }
3983 }
3984 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3985 PyObject * _resultobj;
3986 PyObject * _result;
3987 wxFontMapper * _arg0;
3988 wxFontEncoding _arg1;
3989 wxString * _arg2 = (wxString *) &wxEmptyString;
3990 bool _arg3 = (bool ) TRUE;
3991 PyObject * _argo0 = 0;
3992 PyObject * _obj2 = 0;
3993 int tempbool3 = (int) TRUE;
3994 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3995
3996 self = self;
3997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3998 return NULL;
3999 if (_argo0) {
4000 if (_argo0 == Py_None) { _arg0 = NULL; }
4001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
4003 return NULL;
4004 }
4005 }
4006 if (_obj2)
4007 {
4008 #if PYTHON_API_VERSION >= 1009
4009 char* tmpPtr; int tmpSize;
4010 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4011 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4012 return NULL;
4013 }
4014 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4015 return NULL;
4016 _arg2 = new wxString(tmpPtr, tmpSize);
4017 #else
4018 if (!PyString_Check(_obj2)) {
4019 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4020 return NULL;
4021 }
4022 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4023 #endif
4024 }
4025 _arg3 = (bool ) tempbool3;
4026 {
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
4029
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) return NULL;
4032 }{
4033 _resultobj = _result;
4034 }
4035 {
4036 if (_obj2)
4037 delete _arg2;
4038 }
4039 return _resultobj;
4040 }
4041
4042 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4043 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
4044 PyObject * _resultobj;
4045 bool _result;
4046 wxFontMapper * _arg0;
4047 wxFontEncoding _arg1;
4048 wxString * _arg2 = (wxString *) &wxEmptyString;
4049 PyObject * _argo0 = 0;
4050 PyObject * _obj2 = 0;
4051 char *_kwnames[] = { "self","encoding","facename", NULL };
4052
4053 self = self;
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
4055 return NULL;
4056 if (_argo0) {
4057 if (_argo0 == Py_None) { _arg0 = NULL; }
4058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4060 return NULL;
4061 }
4062 }
4063 if (_obj2)
4064 {
4065 #if PYTHON_API_VERSION >= 1009
4066 char* tmpPtr; int tmpSize;
4067 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4068 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4069 return NULL;
4070 }
4071 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4072 return NULL;
4073 _arg2 = new wxString(tmpPtr, tmpSize);
4074 #else
4075 if (!PyString_Check(_obj2)) {
4076 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4077 return NULL;
4078 }
4079 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4080 #endif
4081 }
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
4085
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) return NULL;
4088 } _resultobj = Py_BuildValue("i",_result);
4089 {
4090 if (_obj2)
4091 delete _arg2;
4092 }
4093 return _resultobj;
4094 }
4095
4096 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4097 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4098 PyObject * _resultobj;
4099 wxFontEncoding _result;
4100 wxFontMapper * _arg0;
4101 wxString * _arg1;
4102 bool _arg2 = (bool ) TRUE;
4103 PyObject * _argo0 = 0;
4104 PyObject * _obj1 = 0;
4105 int tempbool2 = (int) TRUE;
4106 char *_kwnames[] = { "self","charset","interactive", NULL };
4107
4108 self = self;
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
4110 return NULL;
4111 if (_argo0) {
4112 if (_argo0 == Py_None) { _arg0 = NULL; }
4113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4115 return NULL;
4116 }
4117 }
4118 {
4119 #if PYTHON_API_VERSION >= 1009
4120 char* tmpPtr; int tmpSize;
4121 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4122 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4123 return NULL;
4124 }
4125 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4126 return NULL;
4127 _arg1 = new wxString(tmpPtr, tmpSize);
4128 #else
4129 if (!PyString_Check(_obj1)) {
4130 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4131 return NULL;
4132 }
4133 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4134 #endif
4135 }
4136 _arg2 = (bool ) tempbool2;
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) return NULL;
4143 } _resultobj = Py_BuildValue("i",_result);
4144 {
4145 if (_obj1)
4146 delete _arg1;
4147 }
4148 return _resultobj;
4149 }
4150
4151 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
4152 PyObject * _resultobj;
4153 wxString * _result;
4154 wxFontEncoding _arg0;
4155 char *_kwnames[] = { "encoding", NULL };
4156
4157 self = self;
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
4159 return NULL;
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
4162 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
4163
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) return NULL;
4166 }{
4167 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4168 }
4169 {
4170 delete _result;
4171 }
4172 return _resultobj;
4173 }
4174
4175 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
4176 PyObject * _resultobj;
4177 wxString * _result;
4178 wxFontEncoding _arg0;
4179 char *_kwnames[] = { "encoding", NULL };
4180
4181 self = self;
4182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
4183 return NULL;
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
4187
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) return NULL;
4190 }{
4191 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4192 }
4193 {
4194 delete _result;
4195 }
4196 return _resultobj;
4197 }
4198
4199 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4200 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4201 PyObject * _resultobj;
4202 wxFontMapper * _arg0;
4203 wxWindow * _arg1;
4204 PyObject * _argo0 = 0;
4205 PyObject * _argo1 = 0;
4206 char *_kwnames[] = { "self","parent", NULL };
4207
4208 self = self;
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
4210 return NULL;
4211 if (_argo0) {
4212 if (_argo0 == Py_None) { _arg0 = NULL; }
4213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4215 return NULL;
4216 }
4217 }
4218 if (_argo1) {
4219 if (_argo1 == Py_None) { _arg1 = NULL; }
4220 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4221 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4222 return NULL;
4223 }
4224 }
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 wxFontMapper_SetDialogParent(_arg0,_arg1);
4228
4229 wxPyEndAllowThreads(__tstate);
4230 if (PyErr_Occurred()) return NULL;
4231 } Py_INCREF(Py_None);
4232 _resultobj = Py_None;
4233 return _resultobj;
4234 }
4235
4236 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4237 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4238 PyObject * _resultobj;
4239 wxFontMapper * _arg0;
4240 wxString * _arg1;
4241 PyObject * _argo0 = 0;
4242 PyObject * _obj1 = 0;
4243 char *_kwnames[] = { "self","title", NULL };
4244
4245 self = self;
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
4247 return NULL;
4248 if (_argo0) {
4249 if (_argo0 == Py_None) { _arg0 = NULL; }
4250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4252 return NULL;
4253 }
4254 }
4255 {
4256 #if PYTHON_API_VERSION >= 1009
4257 char* tmpPtr; int tmpSize;
4258 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4259 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4260 return NULL;
4261 }
4262 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4263 return NULL;
4264 _arg1 = new wxString(tmpPtr, tmpSize);
4265 #else
4266 if (!PyString_Check(_obj1)) {
4267 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4268 return NULL;
4269 }
4270 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4271 #endif
4272 }
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) return NULL;
4279 } Py_INCREF(Py_None);
4280 _resultobj = Py_None;
4281 {
4282 if (_obj1)
4283 delete _arg1;
4284 }
4285 return _resultobj;
4286 }
4287
4288 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4289 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject * _resultobj;
4291 wxFontMapper * _arg0;
4292 wxConfigBase * _arg1;
4293 PyObject * _argo0 = 0;
4294 PyObject * _argo1 = 0;
4295 char *_kwnames[] = { "self","config", NULL };
4296
4297 self = self;
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
4299 return NULL;
4300 if (_argo0) {
4301 if (_argo0 == Py_None) { _arg0 = NULL; }
4302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4304 return NULL;
4305 }
4306 }
4307 if (_argo1) {
4308 if (_argo1 == Py_None) { _arg1 = NULL; }
4309 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4310 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4311 return NULL;
4312 }
4313 }
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 wxFontMapper_SetConfig(_arg0,_arg1);
4317
4318 wxPyEndAllowThreads(__tstate);
4319 if (PyErr_Occurred()) return NULL;
4320 } Py_INCREF(Py_None);
4321 _resultobj = Py_None;
4322 return _resultobj;
4323 }
4324
4325 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4326 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4327 PyObject * _resultobj;
4328 wxFontMapper * _arg0;
4329 wxString * _arg1;
4330 PyObject * _argo0 = 0;
4331 PyObject * _obj1 = 0;
4332 char *_kwnames[] = { "self","prefix", NULL };
4333
4334 self = self;
4335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
4336 return NULL;
4337 if (_argo0) {
4338 if (_argo0 == Py_None) { _arg0 = NULL; }
4339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4341 return NULL;
4342 }
4343 }
4344 {
4345 #if PYTHON_API_VERSION >= 1009
4346 char* tmpPtr; int tmpSize;
4347 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4348 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4349 return NULL;
4350 }
4351 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4352 return NULL;
4353 _arg1 = new wxString(tmpPtr, tmpSize);
4354 #else
4355 if (!PyString_Check(_obj1)) {
4356 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4357 return NULL;
4358 }
4359 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4360 #endif
4361 }
4362 {
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 wxFontMapper_SetConfigPath(_arg0,*_arg1);
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) return NULL;
4368 } Py_INCREF(Py_None);
4369 _resultobj = Py_None;
4370 {
4371 if (_obj1)
4372 delete _arg1;
4373 }
4374 return _resultobj;
4375 }
4376
4377 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4378 PyObject * _resultobj;
4379 wxChar * _result;
4380 char *_kwnames[] = { NULL };
4381
4382 self = self;
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
4384 return NULL;
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) return NULL;
4391 } _resultobj = Py_BuildValue("s", _result);
4392 return _resultobj;
4393 }
4394
4395 static void *SwigwxFontTowxGDIObject(void *ptr) {
4396 wxFont *src;
4397 wxGDIObject *dest;
4398 src = (wxFont *) ptr;
4399 dest = (wxGDIObject *) src;
4400 return (void *) dest;
4401 }
4402
4403 static void *SwigwxFontTowxObject(void *ptr) {
4404 wxFont *src;
4405 wxObject *dest;
4406 src = (wxFont *) ptr;
4407 dest = (wxObject *) src;
4408 return (void *) dest;
4409 }
4410
4411 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4412 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4413 PyObject * _resultobj;
4414 wxFont * _result;
4415 int _arg0;
4416 int _arg1;
4417 int _arg2;
4418 int _arg3;
4419 int _arg4 = (int ) FALSE;
4420 char * _arg5 = (char *) "";
4421 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4422 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
4423 char _ptemp[128];
4424
4425 self = self;
4426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4427 return NULL;
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) return NULL;
4434 } if (_result) {
4435 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4436 _resultobj = Py_BuildValue("s",_ptemp);
4437 } else {
4438 Py_INCREF(Py_None);
4439 _resultobj = Py_None;
4440 }
4441 return _resultobj;
4442 }
4443
4444 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4445 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject * _resultobj;
4447 wxFont * _result;
4448 wxNativeFontInfo * _arg0;
4449 PyObject * _argo0 = 0;
4450 char *_kwnames[] = { "info", NULL };
4451 char _ptemp[128];
4452
4453 self = self;
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
4455 return NULL;
4456 if (_argo0) {
4457 if (_argo0 == Py_None) { _arg0 = NULL; }
4458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4460 return NULL;
4461 }
4462 }
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
4466
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) return NULL;
4469 } if (_result) {
4470 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4471 _resultobj = Py_BuildValue("s",_ptemp);
4472 } else {
4473 Py_INCREF(Py_None);
4474 _resultobj = Py_None;
4475 }
4476 return _resultobj;
4477 }
4478
4479 #define delete_wxFont(_swigobj) (delete _swigobj)
4480 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject * _resultobj;
4482 wxFont * _arg0;
4483 PyObject * _argo0 = 0;
4484 char *_kwnames[] = { "self", NULL };
4485
4486 self = self;
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
4488 return NULL;
4489 if (_argo0) {
4490 if (_argo0 == Py_None) { _arg0 = NULL; }
4491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4493 return NULL;
4494 }
4495 }
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 delete_wxFont(_arg0);
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) return NULL;
4502 } Py_INCREF(Py_None);
4503 _resultobj = Py_None;
4504 return _resultobj;
4505 }
4506
4507 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4508 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject * _resultobj;
4510 bool _result;
4511 wxFont * _arg0;
4512 PyObject * _argo0 = 0;
4513 char *_kwnames[] = { "self", NULL };
4514
4515 self = self;
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
4517 return NULL;
4518 if (_argo0) {
4519 if (_argo0 == Py_None) { _arg0 = NULL; }
4520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4522 return NULL;
4523 }
4524 }
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 _result = (bool )wxFont_Ok(_arg0);
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) return NULL;
4531 } _resultobj = Py_BuildValue("i",_result);
4532 return _resultobj;
4533 }
4534
4535 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4536 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4537 PyObject * _resultobj;
4538 int _result;
4539 wxFont * _arg0;
4540 PyObject * _argo0 = 0;
4541 char *_kwnames[] = { "self", NULL };
4542
4543 self = self;
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
4545 return NULL;
4546 if (_argo0) {
4547 if (_argo0 == Py_None) { _arg0 = NULL; }
4548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4550 return NULL;
4551 }
4552 }
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 _result = (int )wxFont_GetPointSize(_arg0);
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) return NULL;
4559 } _resultobj = Py_BuildValue("i",_result);
4560 return _resultobj;
4561 }
4562
4563 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4564 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4565 PyObject * _resultobj;
4566 int _result;
4567 wxFont * _arg0;
4568 PyObject * _argo0 = 0;
4569 char *_kwnames[] = { "self", NULL };
4570
4571 self = self;
4572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
4573 return NULL;
4574 if (_argo0) {
4575 if (_argo0 == Py_None) { _arg0 = NULL; }
4576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4578 return NULL;
4579 }
4580 }
4581 {
4582 PyThreadState* __tstate = wxPyBeginAllowThreads();
4583 _result = (int )wxFont_GetFamily(_arg0);
4584
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) return NULL;
4587 } _resultobj = Py_BuildValue("i",_result);
4588 return _resultobj;
4589 }
4590
4591 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4592 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4593 PyObject * _resultobj;
4594 int _result;
4595 wxFont * _arg0;
4596 PyObject * _argo0 = 0;
4597 char *_kwnames[] = { "self", NULL };
4598
4599 self = self;
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
4601 return NULL;
4602 if (_argo0) {
4603 if (_argo0 == Py_None) { _arg0 = NULL; }
4604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4606 return NULL;
4607 }
4608 }
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 _result = (int )wxFont_GetStyle(_arg0);
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) return NULL;
4615 } _resultobj = Py_BuildValue("i",_result);
4616 return _resultobj;
4617 }
4618
4619 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4620 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4621 PyObject * _resultobj;
4622 int _result;
4623 wxFont * _arg0;
4624 PyObject * _argo0 = 0;
4625 char *_kwnames[] = { "self", NULL };
4626
4627 self = self;
4628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4629 return NULL;
4630 if (_argo0) {
4631 if (_argo0 == Py_None) { _arg0 = NULL; }
4632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4634 return NULL;
4635 }
4636 }
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 _result = (int )wxFont_GetWeight(_arg0);
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) return NULL;
4643 } _resultobj = Py_BuildValue("i",_result);
4644 return _resultobj;
4645 }
4646
4647 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4648 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4649 PyObject * _resultobj;
4650 bool _result;
4651 wxFont * _arg0;
4652 PyObject * _argo0 = 0;
4653 char *_kwnames[] = { "self", NULL };
4654
4655 self = self;
4656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4657 return NULL;
4658 if (_argo0) {
4659 if (_argo0 == Py_None) { _arg0 = NULL; }
4660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4662 return NULL;
4663 }
4664 }
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 _result = (bool )wxFont_GetUnderlined(_arg0);
4668
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) return NULL;
4671 } _resultobj = Py_BuildValue("i",_result);
4672 return _resultobj;
4673 }
4674
4675 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4676 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4677 PyObject * _resultobj;
4678 wxString * _result;
4679 wxFont * _arg0;
4680 PyObject * _argo0 = 0;
4681 char *_kwnames[] = { "self", NULL };
4682
4683 self = self;
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4685 return NULL;
4686 if (_argo0) {
4687 if (_argo0 == Py_None) { _arg0 = NULL; }
4688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4690 return NULL;
4691 }
4692 }
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 _result = new wxString (wxFont_GetFaceName(_arg0));
4696
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) return NULL;
4699 }{
4700 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4701 }
4702 {
4703 delete _result;
4704 }
4705 return _resultobj;
4706 }
4707
4708 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4709 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4710 PyObject * _resultobj;
4711 wxFontEncoding _result;
4712 wxFont * _arg0;
4713 PyObject * _argo0 = 0;
4714 char *_kwnames[] = { "self", NULL };
4715
4716 self = self;
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4718 return NULL;
4719 if (_argo0) {
4720 if (_argo0 == Py_None) { _arg0 = NULL; }
4721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4723 return NULL;
4724 }
4725 }
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4729
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) return NULL;
4732 } _resultobj = Py_BuildValue("i",_result);
4733 return _resultobj;
4734 }
4735
4736 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4737 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4738 PyObject * _resultobj;
4739 bool _result;
4740 wxFont * _arg0;
4741 PyObject * _argo0 = 0;
4742 char *_kwnames[] = { "self", NULL };
4743
4744 self = self;
4745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
4746 return NULL;
4747 if (_argo0) {
4748 if (_argo0 == Py_None) { _arg0 = NULL; }
4749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4751 return NULL;
4752 }
4753 }
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 _result = (bool )wxFont_IsFixedWidth(_arg0);
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) return NULL;
4760 } _resultobj = Py_BuildValue("i",_result);
4761 return _resultobj;
4762 }
4763
4764 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4765 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4766 PyObject * _resultobj;
4767 wxNativeFontInfo * _result;
4768 wxFont * _arg0;
4769 PyObject * _argo0 = 0;
4770 char *_kwnames[] = { "self", NULL };
4771 char _ptemp[128];
4772
4773 self = self;
4774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4775 return NULL;
4776 if (_argo0) {
4777 if (_argo0 == Py_None) { _arg0 = NULL; }
4778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4780 return NULL;
4781 }
4782 }
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4786
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) return NULL;
4789 } if (_result) {
4790 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4791 _resultobj = Py_BuildValue("s",_ptemp);
4792 } else {
4793 Py_INCREF(Py_None);
4794 _resultobj = Py_None;
4795 }
4796 return _resultobj;
4797 }
4798
4799 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4800 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject * _resultobj;
4802 wxString * _result;
4803 wxFont * _arg0;
4804 PyObject * _argo0 = 0;
4805 char *_kwnames[] = { "self", NULL };
4806
4807 self = self;
4808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4809 return NULL;
4810 if (_argo0) {
4811 if (_argo0 == Py_None) { _arg0 = NULL; }
4812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4814 return NULL;
4815 }
4816 }
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4820
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) return NULL;
4823 }{
4824 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4825 }
4826 {
4827 delete _result;
4828 }
4829 return _resultobj;
4830 }
4831
4832 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4833 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4834 PyObject * _resultobj;
4835 wxString * _result;
4836 wxFont * _arg0;
4837 PyObject * _argo0 = 0;
4838 char *_kwnames[] = { "self", NULL };
4839
4840 self = self;
4841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4842 return NULL;
4843 if (_argo0) {
4844 if (_argo0 == Py_None) { _arg0 = NULL; }
4845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4847 return NULL;
4848 }
4849 }
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) return NULL;
4856 }{
4857 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4858 }
4859 {
4860 delete _result;
4861 }
4862 return _resultobj;
4863 }
4864
4865 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4866 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject * _resultobj;
4868 wxFont * _arg0;
4869 int _arg1;
4870 PyObject * _argo0 = 0;
4871 char *_kwnames[] = { "self","pointSize", NULL };
4872
4873 self = self;
4874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4875 return NULL;
4876 if (_argo0) {
4877 if (_argo0 == Py_None) { _arg0 = NULL; }
4878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4880 return NULL;
4881 }
4882 }
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 wxFont_SetPointSize(_arg0,_arg1);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) return NULL;
4889 } Py_INCREF(Py_None);
4890 _resultobj = Py_None;
4891 return _resultobj;
4892 }
4893
4894 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4895 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject * _resultobj;
4897 wxFont * _arg0;
4898 int _arg1;
4899 PyObject * _argo0 = 0;
4900 char *_kwnames[] = { "self","family", NULL };
4901
4902 self = self;
4903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4904 return NULL;
4905 if (_argo0) {
4906 if (_argo0 == Py_None) { _arg0 = NULL; }
4907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4909 return NULL;
4910 }
4911 }
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 wxFont_SetFamily(_arg0,_arg1);
4915
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) return NULL;
4918 } Py_INCREF(Py_None);
4919 _resultobj = Py_None;
4920 return _resultobj;
4921 }
4922
4923 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4924 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4925 PyObject * _resultobj;
4926 wxFont * _arg0;
4927 int _arg1;
4928 PyObject * _argo0 = 0;
4929 char *_kwnames[] = { "self","style", NULL };
4930
4931 self = self;
4932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4933 return NULL;
4934 if (_argo0) {
4935 if (_argo0 == Py_None) { _arg0 = NULL; }
4936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4938 return NULL;
4939 }
4940 }
4941 {
4942 PyThreadState* __tstate = wxPyBeginAllowThreads();
4943 wxFont_SetStyle(_arg0,_arg1);
4944
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) return NULL;
4947 } Py_INCREF(Py_None);
4948 _resultobj = Py_None;
4949 return _resultobj;
4950 }
4951
4952 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4953 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4954 PyObject * _resultobj;
4955 wxFont * _arg0;
4956 int _arg1;
4957 PyObject * _argo0 = 0;
4958 char *_kwnames[] = { "self","weight", NULL };
4959
4960 self = self;
4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4962 return NULL;
4963 if (_argo0) {
4964 if (_argo0 == Py_None) { _arg0 = NULL; }
4965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4967 return NULL;
4968 }
4969 }
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 wxFont_SetWeight(_arg0,_arg1);
4973
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) return NULL;
4976 } Py_INCREF(Py_None);
4977 _resultobj = Py_None;
4978 return _resultobj;
4979 }
4980
4981 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4982 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject * _resultobj;
4984 wxFont * _arg0;
4985 wxString * _arg1;
4986 PyObject * _argo0 = 0;
4987 PyObject * _obj1 = 0;
4988 char *_kwnames[] = { "self","faceName", NULL };
4989
4990 self = self;
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4992 return NULL;
4993 if (_argo0) {
4994 if (_argo0 == Py_None) { _arg0 = NULL; }
4995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4997 return NULL;
4998 }
4999 }
5000 {
5001 #if PYTHON_API_VERSION >= 1009
5002 char* tmpPtr; int tmpSize;
5003 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5004 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5005 return NULL;
5006 }
5007 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5008 return NULL;
5009 _arg1 = new wxString(tmpPtr, tmpSize);
5010 #else
5011 if (!PyString_Check(_obj1)) {
5012 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5013 return NULL;
5014 }
5015 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5016 #endif
5017 }
5018 {
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 wxFont_SetFaceName(_arg0,*_arg1);
5021
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) return NULL;
5024 } Py_INCREF(Py_None);
5025 _resultobj = Py_None;
5026 {
5027 if (_obj1)
5028 delete _arg1;
5029 }
5030 return _resultobj;
5031 }
5032
5033 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
5034 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5035 PyObject * _resultobj;
5036 wxFont * _arg0;
5037 bool _arg1;
5038 PyObject * _argo0 = 0;
5039 int tempbool1;
5040 char *_kwnames[] = { "self","underlined", NULL };
5041
5042 self = self;
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
5044 return NULL;
5045 if (_argo0) {
5046 if (_argo0 == Py_None) { _arg0 = NULL; }
5047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
5049 return NULL;
5050 }
5051 }
5052 _arg1 = (bool ) tempbool1;
5053 {
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 wxFont_SetUnderlined(_arg0,_arg1);
5056
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) return NULL;
5059 } Py_INCREF(Py_None);
5060 _resultobj = Py_None;
5061 return _resultobj;
5062 }
5063
5064 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
5065 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject * _resultobj;
5067 wxFont * _arg0;
5068 wxFontEncoding _arg1;
5069 PyObject * _argo0 = 0;
5070 char *_kwnames[] = { "self","encoding", NULL };
5071
5072 self = self;
5073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
5074 return NULL;
5075 if (_argo0) {
5076 if (_argo0 == Py_None) { _arg0 = NULL; }
5077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5079 return NULL;
5080 }
5081 }
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 wxFont_SetEncoding(_arg0,_arg1);
5085
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) return NULL;
5088 } Py_INCREF(Py_None);
5089 _resultobj = Py_None;
5090 return _resultobj;
5091 }
5092
5093 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5094 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5095 PyObject * _resultobj;
5096 wxFont * _arg0;
5097 wxNativeFontInfo * _arg1;
5098 PyObject * _argo0 = 0;
5099 PyObject * _argo1 = 0;
5100 char *_kwnames[] = { "self","info", NULL };
5101
5102 self = self;
5103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
5104 return NULL;
5105 if (_argo0) {
5106 if (_argo0 == Py_None) { _arg0 = NULL; }
5107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5109 return NULL;
5110 }
5111 }
5112 if (_argo1) {
5113 if (_argo1 == Py_None) { _arg1 = NULL; }
5114 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
5115 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5116 return NULL;
5117 }
5118 }
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 wxFont_SetNativeFontInfo(_arg0,*_arg1);
5122
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) return NULL;
5125 } Py_INCREF(Py_None);
5126 _resultobj = Py_None;
5127 return _resultobj;
5128 }
5129
5130 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5131 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
5132 PyObject * _resultobj;
5133 wxFont * _arg0;
5134 wxString * _arg1;
5135 PyObject * _argo0 = 0;
5136 PyObject * _obj1 = 0;
5137 char *_kwnames[] = { "self","info", NULL };
5138
5139 self = self;
5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
5141 return NULL;
5142 if (_argo0) {
5143 if (_argo0 == Py_None) { _arg0 = NULL; }
5144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5146 return NULL;
5147 }
5148 }
5149 {
5150 #if PYTHON_API_VERSION >= 1009
5151 char* tmpPtr; int tmpSize;
5152 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5153 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5154 return NULL;
5155 }
5156 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5157 return NULL;
5158 _arg1 = new wxString(tmpPtr, tmpSize);
5159 #else
5160 if (!PyString_Check(_obj1)) {
5161 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5162 return NULL;
5163 }
5164 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5165 #endif
5166 }
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) return NULL;
5173 } Py_INCREF(Py_None);
5174 _resultobj = Py_None;
5175 {
5176 if (_obj1)
5177 delete _arg1;
5178 }
5179 return _resultobj;
5180 }
5181
5182 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5183 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
5184 PyObject * _resultobj;
5185 wxString * _result;
5186 wxFont * _arg0;
5187 PyObject * _argo0 = 0;
5188 char *_kwnames[] = { "self", NULL };
5189
5190 self = self;
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
5192 return NULL;
5193 if (_argo0) {
5194 if (_argo0 == Py_None) { _arg0 = NULL; }
5195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5197 return NULL;
5198 }
5199 }
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 _result = new wxString (wxFont_GetFamilyString(_arg0));
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) return NULL;
5206 }{
5207 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5208 }
5209 {
5210 delete _result;
5211 }
5212 return _resultobj;
5213 }
5214
5215 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5216 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject * _resultobj;
5218 wxString * _result;
5219 wxFont * _arg0;
5220 PyObject * _argo0 = 0;
5221 char *_kwnames[] = { "self", NULL };
5222
5223 self = self;
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
5225 return NULL;
5226 if (_argo0) {
5227 if (_argo0 == Py_None) { _arg0 = NULL; }
5228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5230 return NULL;
5231 }
5232 }
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 _result = new wxString (wxFont_GetStyleString(_arg0));
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) return NULL;
5239 }{
5240 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5241 }
5242 {
5243 delete _result;
5244 }
5245 return _resultobj;
5246 }
5247
5248 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5249 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
5250 PyObject * _resultobj;
5251 wxString * _result;
5252 wxFont * _arg0;
5253 PyObject * _argo0 = 0;
5254 char *_kwnames[] = { "self", NULL };
5255
5256 self = self;
5257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
5258 return NULL;
5259 if (_argo0) {
5260 if (_argo0 == Py_None) { _arg0 = NULL; }
5261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5263 return NULL;
5264 }
5265 }
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 _result = new wxString (wxFont_GetWeightString(_arg0));
5269
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) return NULL;
5272 }{
5273 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5274 }
5275 {
5276 delete _result;
5277 }
5278 return _resultobj;
5279 }
5280
5281 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject * _resultobj;
5283 wxFontEncoding _result;
5284 char *_kwnames[] = { NULL };
5285
5286 self = self;
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
5288 return NULL;
5289 {
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
5292
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) return NULL;
5295 } _resultobj = Py_BuildValue("i",_result);
5296 return _resultobj;
5297 }
5298
5299 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5300 PyObject * _resultobj;
5301 wxFontEncoding _arg0;
5302 char *_kwnames[] = { "encoding", NULL };
5303
5304 self = self;
5305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
5306 return NULL;
5307 {
5308 PyThreadState* __tstate = wxPyBeginAllowThreads();
5309 wxFont::SetDefaultEncoding(_arg0);
5310
5311 wxPyEndAllowThreads(__tstate);
5312 if (PyErr_Occurred()) return NULL;
5313 } Py_INCREF(Py_None);
5314 _resultobj = Py_None;
5315 return _resultobj;
5316 }
5317
5318 static void *SwigwxFontListTowxObject(void *ptr) {
5319 wxFontList *src;
5320 wxObject *dest;
5321 src = (wxFontList *) ptr;
5322 dest = (wxObject *) src;
5323 return (void *) dest;
5324 }
5325
5326 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5327 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject * _resultobj;
5329 wxFontList * _arg0;
5330 wxFont * _arg1;
5331 PyObject * _argo0 = 0;
5332 PyObject * _argo1 = 0;
5333 char *_kwnames[] = { "self","font", NULL };
5334
5335 self = self;
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
5337 return NULL;
5338 if (_argo0) {
5339 if (_argo0 == Py_None) { _arg0 = NULL; }
5340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5342 return NULL;
5343 }
5344 }
5345 if (_argo1) {
5346 if (_argo1 == Py_None) { _arg1 = NULL; }
5347 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5348 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5349 return NULL;
5350 }
5351 }
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 wxFontList_AddFont(_arg0,_arg1);
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) return NULL;
5358 } Py_INCREF(Py_None);
5359 _resultobj = Py_None;
5360 return _resultobj;
5361 }
5362
5363 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5364 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject * _resultobj;
5366 wxFont * _result;
5367 wxFontList * _arg0;
5368 int _arg1;
5369 int _arg2;
5370 int _arg3;
5371 int _arg4;
5372 bool _arg5 = (bool ) FALSE;
5373 char * _arg6 = (char *) NULL;
5374 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
5375 PyObject * _argo0 = 0;
5376 int tempbool5 = (int) FALSE;
5377 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
5378 char _ptemp[128];
5379
5380 self = self;
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
5382 return NULL;
5383 if (_argo0) {
5384 if (_argo0 == Py_None) { _arg0 = NULL; }
5385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5387 return NULL;
5388 }
5389 }
5390 _arg5 = (bool ) tempbool5;
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) return NULL;
5397 } if (_result) {
5398 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5399 _resultobj = Py_BuildValue("s",_ptemp);
5400 } else {
5401 Py_INCREF(Py_None);
5402 _resultobj = Py_None;
5403 }
5404 return _resultobj;
5405 }
5406
5407 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5408 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5409 PyObject * _resultobj;
5410 wxFontList * _arg0;
5411 wxFont * _arg1;
5412 PyObject * _argo0 = 0;
5413 PyObject * _argo1 = 0;
5414 char *_kwnames[] = { "self","font", NULL };
5415
5416 self = self;
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
5418 return NULL;
5419 if (_argo0) {
5420 if (_argo0 == Py_None) { _arg0 = NULL; }
5421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5423 return NULL;
5424 }
5425 }
5426 if (_argo1) {
5427 if (_argo1 == Py_None) { _arg1 = NULL; }
5428 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5429 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5430 return NULL;
5431 }
5432 }
5433 {
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 wxFontList_RemoveFont(_arg0,_arg1);
5436
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) return NULL;
5439 } Py_INCREF(Py_None);
5440 _resultobj = Py_None;
5441 return _resultobj;
5442 }
5443
5444 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5445 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5446 PyObject * _resultobj;
5447 int _result;
5448 wxFontList * _arg0;
5449 PyObject * _argo0 = 0;
5450 char *_kwnames[] = { "self", NULL };
5451
5452 self = self;
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
5454 return NULL;
5455 if (_argo0) {
5456 if (_argo0 == Py_None) { _arg0 = NULL; }
5457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5459 return NULL;
5460 }
5461 }
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 _result = (int )wxFontList_GetCount(_arg0);
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) return NULL;
5468 } _resultobj = Py_BuildValue("i",_result);
5469 return _resultobj;
5470 }
5471
5472 static void *SwigwxColourTowxObject(void *ptr) {
5473 wxColour *src;
5474 wxObject *dest;
5475 src = (wxColour *) ptr;
5476 dest = (wxObject *) src;
5477 return (void *) dest;
5478 }
5479
5480 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5481 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5482 PyObject * _resultobj;
5483 wxColour * _result;
5484 unsigned char _arg0 = (unsigned char ) 0;
5485 unsigned char _arg1 = (unsigned char ) 0;
5486 unsigned char _arg2 = (unsigned char ) 0;
5487 char *_kwnames[] = { "red","green","blue", NULL };
5488 char _ptemp[128];
5489
5490 self = self;
5491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
5492 return NULL;
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
5496
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) return NULL;
5499 } if (_result) {
5500 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5501 _resultobj = Py_BuildValue("s",_ptemp);
5502 } else {
5503 Py_INCREF(Py_None);
5504 _resultobj = Py_None;
5505 }
5506 return _resultobj;
5507 }
5508
5509 #define delete_wxColour(_swigobj) (delete _swigobj)
5510 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5511 PyObject * _resultobj;
5512 wxColour * _arg0;
5513 wxColour temp;
5514 PyObject * _obj0 = 0;
5515 char *_kwnames[] = { "self", NULL };
5516
5517 self = self;
5518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
5519 return NULL;
5520 {
5521 _arg0 = &temp;
5522 if (! wxColour_helper(_obj0, &_arg0))
5523 return NULL;
5524 }
5525 {
5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
5527 delete_wxColour(_arg0);
5528
5529 wxPyEndAllowThreads(__tstate);
5530 if (PyErr_Occurred()) return NULL;
5531 } Py_INCREF(Py_None);
5532 _resultobj = Py_None;
5533 return _resultobj;
5534 }
5535
5536 #define wxColour_Red(_swigobj) (_swigobj->Red())
5537 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject * _resultobj;
5539 unsigned char _result;
5540 wxColour * _arg0;
5541 wxColour temp;
5542 PyObject * _obj0 = 0;
5543 char *_kwnames[] = { "self", NULL };
5544
5545 self = self;
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
5547 return NULL;
5548 {
5549 _arg0 = &temp;
5550 if (! wxColour_helper(_obj0, &_arg0))
5551 return NULL;
5552 }
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 _result = (unsigned char )wxColour_Red(_arg0);
5556
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) return NULL;
5559 } _resultobj = Py_BuildValue("b",_result);
5560 return _resultobj;
5561 }
5562
5563 #define wxColour_Green(_swigobj) (_swigobj->Green())
5564 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
5565 PyObject * _resultobj;
5566 unsigned char _result;
5567 wxColour * _arg0;
5568 wxColour temp;
5569 PyObject * _obj0 = 0;
5570 char *_kwnames[] = { "self", NULL };
5571
5572 self = self;
5573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
5574 return NULL;
5575 {
5576 _arg0 = &temp;
5577 if (! wxColour_helper(_obj0, &_arg0))
5578 return NULL;
5579 }
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 _result = (unsigned char )wxColour_Green(_arg0);
5583
5584 wxPyEndAllowThreads(__tstate);
5585 if (PyErr_Occurred()) return NULL;
5586 } _resultobj = Py_BuildValue("b",_result);
5587 return _resultobj;
5588 }
5589
5590 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5591 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
5592 PyObject * _resultobj;
5593 unsigned char _result;
5594 wxColour * _arg0;
5595 wxColour temp;
5596 PyObject * _obj0 = 0;
5597 char *_kwnames[] = { "self", NULL };
5598
5599 self = self;
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
5601 return NULL;
5602 {
5603 _arg0 = &temp;
5604 if (! wxColour_helper(_obj0, &_arg0))
5605 return NULL;
5606 }
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 _result = (unsigned char )wxColour_Blue(_arg0);
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) return NULL;
5613 } _resultobj = Py_BuildValue("b",_result);
5614 return _resultobj;
5615 }
5616
5617 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5618 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject * _resultobj;
5620 bool _result;
5621 wxColour * _arg0;
5622 wxColour temp;
5623 PyObject * _obj0 = 0;
5624 char *_kwnames[] = { "self", NULL };
5625
5626 self = self;
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
5628 return NULL;
5629 {
5630 _arg0 = &temp;
5631 if (! wxColour_helper(_obj0, &_arg0))
5632 return NULL;
5633 }
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 _result = (bool )wxColour_Ok(_arg0);
5637
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) return NULL;
5640 } _resultobj = Py_BuildValue("i",_result);
5641 return _resultobj;
5642 }
5643
5644 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5645 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5646 PyObject * _resultobj;
5647 wxColour * _arg0;
5648 unsigned char _arg1;
5649 unsigned char _arg2;
5650 unsigned char _arg3;
5651 wxColour temp;
5652 PyObject * _obj0 = 0;
5653 char *_kwnames[] = { "self","red","green","blue", NULL };
5654
5655 self = self;
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
5657 return NULL;
5658 {
5659 _arg0 = &temp;
5660 if (! wxColour_helper(_obj0, &_arg0))
5661 return NULL;
5662 }
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) return NULL;
5669 } Py_INCREF(Py_None);
5670 _resultobj = Py_None;
5671 return _resultobj;
5672 }
5673
5674 static PyObject * wxColour_Get(wxColour *self) {
5675 PyObject* rv = PyTuple_New(3);
5676 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
5677 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
5678 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
5679 return rv;
5680 }
5681 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject * _resultobj;
5683 PyObject * _result;
5684 wxColour * _arg0;
5685 wxColour temp;
5686 PyObject * _obj0 = 0;
5687 char *_kwnames[] = { "self", NULL };
5688
5689 self = self;
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
5691 return NULL;
5692 {
5693 _arg0 = &temp;
5694 if (! wxColour_helper(_obj0, &_arg0))
5695 return NULL;
5696 }
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 _result = (PyObject *)wxColour_Get(_arg0);
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) return NULL;
5703 }{
5704 _resultobj = _result;
5705 }
5706 return _resultobj;
5707 }
5708
5709 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
5710 wxColourDatabase *src;
5711 wxObject *dest;
5712 src = (wxColourDatabase *) ptr;
5713 dest = (wxObject *) src;
5714 return (void *) dest;
5715 }
5716
5717 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5718 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5719 PyObject * _resultobj;
5720 wxColour * _result;
5721 wxColourDatabase * _arg0;
5722 wxString * _arg1;
5723 PyObject * _argo0 = 0;
5724 PyObject * _obj1 = 0;
5725 char *_kwnames[] = { "self","colour", NULL };
5726 char _ptemp[128];
5727
5728 self = self;
5729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5730 return NULL;
5731 if (_argo0) {
5732 if (_argo0 == Py_None) { _arg0 = NULL; }
5733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5735 return NULL;
5736 }
5737 }
5738 {
5739 #if PYTHON_API_VERSION >= 1009
5740 char* tmpPtr; int tmpSize;
5741 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5743 return NULL;
5744 }
5745 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5746 return NULL;
5747 _arg1 = new wxString(tmpPtr, tmpSize);
5748 #else
5749 if (!PyString_Check(_obj1)) {
5750 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5751 return NULL;
5752 }
5753 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5754 #endif
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) return NULL;
5762 } if (_result) {
5763 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5764 _resultobj = Py_BuildValue("s",_ptemp);
5765 } else {
5766 Py_INCREF(Py_None);
5767 _resultobj = Py_None;
5768 }
5769 {
5770 if (_obj1)
5771 delete _arg1;
5772 }
5773 return _resultobj;
5774 }
5775
5776 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5777 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject * _resultobj;
5779 wxString * _result;
5780 wxColourDatabase * _arg0;
5781 wxColour * _arg1;
5782 PyObject * _argo0 = 0;
5783 wxColour temp;
5784 PyObject * _obj1 = 0;
5785 char *_kwnames[] = { "self","colour", NULL };
5786
5787 self = self;
5788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5789 return NULL;
5790 if (_argo0) {
5791 if (_argo0 == Py_None) { _arg0 = NULL; }
5792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5794 return NULL;
5795 }
5796 }
5797 {
5798 _arg1 = &temp;
5799 if (! wxColour_helper(_obj1, &_arg1))
5800 return NULL;
5801 }
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) return NULL;
5808 }{
5809 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5810 }
5811 {
5812 delete _result;
5813 }
5814 return _resultobj;
5815 }
5816
5817 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5818 // first see if the name is already there
5819 wxString cName = name;
5820 cName.MakeUpper();
5821 wxString cName2 = cName;
5822 if ( !cName2.Replace("GRAY", "GREY") )
5823 cName2.clear();
5824
5825 wxNode *node = self->First();
5826 while ( node ) {
5827 const wxChar *key = node->GetKeyString();
5828 if ( cName == key || cName2 == key ) {
5829 wxColour* c = (wxColour *)node->Data();
5830 c->Set(red, green, blue);
5831 return;
5832 }
5833 node = node->Next();
5834 }
5835
5836 // otherwise append the new colour
5837 self->Append(name.c_str(), new wxColour(red, green, blue));
5838 }
5839 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject * _resultobj;
5841 wxColourDatabase * _arg0;
5842 wxString * _arg1;
5843 int _arg2;
5844 int _arg3;
5845 int _arg4;
5846 PyObject * _argo0 = 0;
5847 PyObject * _obj1 = 0;
5848 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5849
5850 self = self;
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5852 return NULL;
5853 if (_argo0) {
5854 if (_argo0 == Py_None) { _arg0 = NULL; }
5855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5857 return NULL;
5858 }
5859 }
5860 {
5861 #if PYTHON_API_VERSION >= 1009
5862 char* tmpPtr; int tmpSize;
5863 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5864 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5865 return NULL;
5866 }
5867 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5868 return NULL;
5869 _arg1 = new wxString(tmpPtr, tmpSize);
5870 #else
5871 if (!PyString_Check(_obj1)) {
5872 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5873 return NULL;
5874 }
5875 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5876 #endif
5877 }
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) return NULL;
5884 } Py_INCREF(Py_None);
5885 _resultobj = Py_None;
5886 {
5887 if (_obj1)
5888 delete _arg1;
5889 }
5890 return _resultobj;
5891 }
5892
5893 static void *SwigwxPenTowxGDIObject(void *ptr) {
5894 wxPen *src;
5895 wxGDIObject *dest;
5896 src = (wxPen *) ptr;
5897 dest = (wxGDIObject *) src;
5898 return (void *) dest;
5899 }
5900
5901 static void *SwigwxPenTowxObject(void *ptr) {
5902 wxPen *src;
5903 wxObject *dest;
5904 src = (wxPen *) ptr;
5905 dest = (wxObject *) src;
5906 return (void *) dest;
5907 }
5908
5909 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5910 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5911 PyObject * _resultobj;
5912 wxPen * _result;
5913 wxColour * _arg0;
5914 int _arg1 = (int ) 1;
5915 int _arg2 = (int ) wxSOLID;
5916 wxColour temp;
5917 PyObject * _obj0 = 0;
5918 char *_kwnames[] = { "colour","width","style", NULL };
5919 char _ptemp[128];
5920
5921 self = self;
5922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5923 return NULL;
5924 {
5925 _arg0 = &temp;
5926 if (! wxColour_helper(_obj0, &_arg0))
5927 return NULL;
5928 }
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5932
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) return NULL;
5935 } if (_result) {
5936 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5937 _resultobj = Py_BuildValue("s",_ptemp);
5938 } else {
5939 Py_INCREF(Py_None);
5940 _resultobj = Py_None;
5941 }
5942 return _resultobj;
5943 }
5944
5945 #define delete_wxPen(_swigobj) (delete _swigobj)
5946 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5947 PyObject * _resultobj;
5948 wxPen * _arg0;
5949 PyObject * _argo0 = 0;
5950 char *_kwnames[] = { "self", NULL };
5951
5952 self = self;
5953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5954 return NULL;
5955 if (_argo0) {
5956 if (_argo0 == Py_None) { _arg0 = NULL; }
5957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5959 return NULL;
5960 }
5961 }
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 delete_wxPen(_arg0);
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) return NULL;
5968 } Py_INCREF(Py_None);
5969 _resultobj = Py_None;
5970 return _resultobj;
5971 }
5972
5973 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5974 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5975 PyObject * _resultobj;
5976 int _result;
5977 wxPen * _arg0;
5978 PyObject * _argo0 = 0;
5979 char *_kwnames[] = { "self", NULL };
5980
5981 self = self;
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5983 return NULL;
5984 if (_argo0) {
5985 if (_argo0 == Py_None) { _arg0 = NULL; }
5986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5988 return NULL;
5989 }
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 _result = (int )wxPen_GetCap(_arg0);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) return NULL;
5997 } _resultobj = Py_BuildValue("i",_result);
5998 return _resultobj;
5999 }
6000
6001 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
6002 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6003 PyObject * _resultobj;
6004 wxColour * _result;
6005 wxPen * _arg0;
6006 PyObject * _argo0 = 0;
6007 char *_kwnames[] = { "self", NULL };
6008 char _ptemp[128];
6009
6010 self = self;
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
6012 return NULL;
6013 if (_argo0) {
6014 if (_argo0 == Py_None) { _arg0 = NULL; }
6015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
6017 return NULL;
6018 }
6019 }
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 _result = new wxColour (wxPen_GetColour(_arg0));
6023
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) return NULL;
6026 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6027 _resultobj = Py_BuildValue("s",_ptemp);
6028 return _resultobj;
6029 }
6030
6031 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
6032 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6033 PyObject * _resultobj;
6034 int _result;
6035 wxPen * _arg0;
6036 PyObject * _argo0 = 0;
6037 char *_kwnames[] = { "self", NULL };
6038
6039 self = self;
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
6041 return NULL;
6042 if (_argo0) {
6043 if (_argo0 == Py_None) { _arg0 = NULL; }
6044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
6046 return NULL;
6047 }
6048 }
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 _result = (int )wxPen_GetJoin(_arg0);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) return NULL;
6055 } _resultobj = Py_BuildValue("i",_result);
6056 return _resultobj;
6057 }
6058
6059 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
6060 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject * _resultobj;
6062 int _result;
6063 wxPen * _arg0;
6064 PyObject * _argo0 = 0;
6065 char *_kwnames[] = { "self", NULL };
6066
6067 self = self;
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
6069 return NULL;
6070 if (_argo0) {
6071 if (_argo0 == Py_None) { _arg0 = NULL; }
6072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
6074 return NULL;
6075 }
6076 }
6077 {
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 _result = (int )wxPen_GetStyle(_arg0);
6080
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) return NULL;
6083 } _resultobj = Py_BuildValue("i",_result);
6084 return _resultobj;
6085 }
6086
6087 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6088 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject * _resultobj;
6090 int _result;
6091 wxPen * _arg0;
6092 PyObject * _argo0 = 0;
6093 char *_kwnames[] = { "self", NULL };
6094
6095 self = self;
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
6097 return NULL;
6098 if (_argo0) {
6099 if (_argo0 == Py_None) { _arg0 = NULL; }
6100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6102 return NULL;
6103 }
6104 }
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 _result = (int )wxPen_GetWidth(_arg0);
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) return NULL;
6111 } _resultobj = Py_BuildValue("i",_result);
6112 return _resultobj;
6113 }
6114
6115 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6116 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject * _resultobj;
6118 bool _result;
6119 wxPen * _arg0;
6120 PyObject * _argo0 = 0;
6121 char *_kwnames[] = { "self", NULL };
6122
6123 self = self;
6124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
6125 return NULL;
6126 if (_argo0) {
6127 if (_argo0 == Py_None) { _arg0 = NULL; }
6128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6130 return NULL;
6131 }
6132 }
6133 {
6134 PyThreadState* __tstate = wxPyBeginAllowThreads();
6135 _result = (bool )wxPen_Ok(_arg0);
6136
6137 wxPyEndAllowThreads(__tstate);
6138 if (PyErr_Occurred()) return NULL;
6139 } _resultobj = Py_BuildValue("i",_result);
6140 return _resultobj;
6141 }
6142
6143 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6144 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
6145 PyObject * _resultobj;
6146 wxPen * _arg0;
6147 int _arg1;
6148 PyObject * _argo0 = 0;
6149 char *_kwnames[] = { "self","cap_style", NULL };
6150
6151 self = self;
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
6153 return NULL;
6154 if (_argo0) {
6155 if (_argo0 == Py_None) { _arg0 = NULL; }
6156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6158 return NULL;
6159 }
6160 }
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 wxPen_SetCap(_arg0,_arg1);
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) return NULL;
6167 } Py_INCREF(Py_None);
6168 _resultobj = Py_None;
6169 return _resultobj;
6170 }
6171
6172 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6173 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6174 PyObject * _resultobj;
6175 wxPen * _arg0;
6176 wxColour * _arg1;
6177 PyObject * _argo0 = 0;
6178 wxColour temp;
6179 PyObject * _obj1 = 0;
6180 char *_kwnames[] = { "self","colour", NULL };
6181
6182 self = self;
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
6184 return NULL;
6185 if (_argo0) {
6186 if (_argo0 == Py_None) { _arg0 = NULL; }
6187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6189 return NULL;
6190 }
6191 }
6192 {
6193 _arg1 = &temp;
6194 if (! wxColour_helper(_obj1, &_arg1))
6195 return NULL;
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 wxPen_SetColour(_arg0,*_arg1);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) return NULL;
6203 } Py_INCREF(Py_None);
6204 _resultobj = Py_None;
6205 return _resultobj;
6206 }
6207
6208 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6209 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject * _resultobj;
6211 wxPen * _arg0;
6212 int _arg1;
6213 PyObject * _argo0 = 0;
6214 char *_kwnames[] = { "self","join_style", NULL };
6215
6216 self = self;
6217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
6218 return NULL;
6219 if (_argo0) {
6220 if (_argo0 == Py_None) { _arg0 = NULL; }
6221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6223 return NULL;
6224 }
6225 }
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 wxPen_SetJoin(_arg0,_arg1);
6229
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) return NULL;
6232 } Py_INCREF(Py_None);
6233 _resultobj = Py_None;
6234 return _resultobj;
6235 }
6236
6237 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6238 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject * _resultobj;
6240 wxPen * _arg0;
6241 int _arg1;
6242 PyObject * _argo0 = 0;
6243 char *_kwnames[] = { "self","style", NULL };
6244
6245 self = self;
6246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
6247 return NULL;
6248 if (_argo0) {
6249 if (_argo0 == Py_None) { _arg0 = NULL; }
6250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6252 return NULL;
6253 }
6254 }
6255 {
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 wxPen_SetStyle(_arg0,_arg1);
6258
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) return NULL;
6261 } Py_INCREF(Py_None);
6262 _resultobj = Py_None;
6263 return _resultobj;
6264 }
6265
6266 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6267 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6268 PyObject * _resultobj;
6269 wxPen * _arg0;
6270 int _arg1;
6271 PyObject * _argo0 = 0;
6272 char *_kwnames[] = { "self","width", NULL };
6273
6274 self = self;
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
6276 return NULL;
6277 if (_argo0) {
6278 if (_argo0 == Py_None) { _arg0 = NULL; }
6279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6281 return NULL;
6282 }
6283 }
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 wxPen_SetWidth(_arg0,_arg1);
6287
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) return NULL;
6290 } Py_INCREF(Py_None);
6291 _resultobj = Py_None;
6292 return _resultobj;
6293 }
6294
6295 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6296 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6297 PyObject * _resultobj;
6298 wxPen * _arg0;
6299 int _arg1;
6300 wxDash * _arg2;
6301 PyObject * _argo0 = 0;
6302 PyObject * _obj2 = 0;
6303 char *_kwnames[] = { "self","choices", NULL };
6304
6305 self = self;
6306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
6307 return NULL;
6308 if (_argo0) {
6309 if (_argo0 == Py_None) { _arg0 = NULL; }
6310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6312 return NULL;
6313 }
6314 }
6315 if (_obj2)
6316 {
6317 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6318 if (_arg2 == NULL) {
6319 return NULL;
6320 }
6321 }
6322 {
6323 if (_obj2) {
6324 _arg1 = PyList_Size(_obj2);
6325 }
6326 else {
6327 _arg1 = 0;
6328 }
6329 }
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 wxPen_SetDashes(_arg0,_arg1,_arg2);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) return NULL;
6336 } Py_INCREF(Py_None);
6337 _resultobj = Py_None;
6338 {
6339 delete [] _arg2;
6340 }
6341 return _resultobj;
6342 }
6343
6344 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6345 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6346 PyObject * _resultobj;
6347 wxBitmap * _result;
6348 wxPen * _arg0;
6349 PyObject * _argo0 = 0;
6350 char *_kwnames[] = { "self", NULL };
6351 char _ptemp[128];
6352
6353 self = self;
6354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
6355 return NULL;
6356 if (_argo0) {
6357 if (_argo0 == Py_None) { _arg0 = NULL; }
6358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6360 return NULL;
6361 }
6362 }
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
6366
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) return NULL;
6369 } if (_result) {
6370 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6371 _resultobj = Py_BuildValue("s",_ptemp);
6372 } else {
6373 Py_INCREF(Py_None);
6374 _resultobj = Py_None;
6375 }
6376 return _resultobj;
6377 }
6378
6379 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6380 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6381 PyObject * _resultobj;
6382 wxPen * _arg0;
6383 wxBitmap * _arg1;
6384 PyObject * _argo0 = 0;
6385 PyObject * _argo1 = 0;
6386 char *_kwnames[] = { "self","stipple", NULL };
6387
6388 self = self;
6389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
6390 return NULL;
6391 if (_argo0) {
6392 if (_argo0 == Py_None) { _arg0 = NULL; }
6393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6395 return NULL;
6396 }
6397 }
6398 if (_argo1) {
6399 if (_argo1 == Py_None) { _arg1 = NULL; }
6400 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6401 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6402 return NULL;
6403 }
6404 }
6405 {
6406 PyThreadState* __tstate = wxPyBeginAllowThreads();
6407 wxPen_SetStipple(_arg0,*_arg1);
6408
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) return NULL;
6411 } Py_INCREF(Py_None);
6412 _resultobj = Py_None;
6413 return _resultobj;
6414 }
6415
6416 static void *SwigwxPyPenTowxPen(void *ptr) {
6417 wxPyPen *src;
6418 wxPen *dest;
6419 src = (wxPyPen *) ptr;
6420 dest = (wxPen *) src;
6421 return (void *) dest;
6422 }
6423
6424 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
6425 wxPyPen *src;
6426 wxGDIObject *dest;
6427 src = (wxPyPen *) ptr;
6428 dest = (wxGDIObject *) src;
6429 return (void *) dest;
6430 }
6431
6432 static void *SwigwxPyPenTowxObject(void *ptr) {
6433 wxPyPen *src;
6434 wxObject *dest;
6435 src = (wxPyPen *) ptr;
6436 dest = (wxObject *) src;
6437 return (void *) dest;
6438 }
6439
6440 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6441 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6442 PyObject * _resultobj;
6443 wxPyPen * _result;
6444 wxColour * _arg0;
6445 int _arg1 = (int ) 1;
6446 int _arg2 = (int ) wxSOLID;
6447 wxColour temp;
6448 PyObject * _obj0 = 0;
6449 char *_kwnames[] = { "colour","width","style", NULL };
6450 char _ptemp[128];
6451
6452 self = self;
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
6454 return NULL;
6455 {
6456 _arg0 = &temp;
6457 if (! wxColour_helper(_obj0, &_arg0))
6458 return NULL;
6459 }
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
6463
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) return NULL;
6466 } if (_result) {
6467 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
6468 _resultobj = Py_BuildValue("s",_ptemp);
6469 } else {
6470 Py_INCREF(Py_None);
6471 _resultobj = Py_None;
6472 }
6473 return _resultobj;
6474 }
6475
6476 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6477 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject * _resultobj;
6479 wxPyPen * _arg0;
6480 PyObject * _argo0 = 0;
6481 char *_kwnames[] = { "self", NULL };
6482
6483 self = self;
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
6485 return NULL;
6486 if (_argo0) {
6487 if (_argo0 == Py_None) { _arg0 = NULL; }
6488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6490 return NULL;
6491 }
6492 }
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 delete_wxPyPen(_arg0);
6496
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) return NULL;
6499 } Py_INCREF(Py_None);
6500 _resultobj = Py_None;
6501 return _resultobj;
6502 }
6503
6504 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6505 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject * _resultobj;
6507 wxPyPen * _arg0;
6508 int _arg1;
6509 wxDash * _arg2;
6510 PyObject * _argo0 = 0;
6511 PyObject * _obj2 = 0;
6512 char *_kwnames[] = { "self","choices", NULL };
6513
6514 self = self;
6515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
6516 return NULL;
6517 if (_argo0) {
6518 if (_argo0 == Py_None) { _arg0 = NULL; }
6519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6521 return NULL;
6522 }
6523 }
6524 if (_obj2)
6525 {
6526 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6527 if (_arg2 == NULL) {
6528 return NULL;
6529 }
6530 }
6531 {
6532 if (_obj2) {
6533 _arg1 = PyList_Size(_obj2);
6534 }
6535 else {
6536 _arg1 = 0;
6537 }
6538 }
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) return NULL;
6545 } Py_INCREF(Py_None);
6546 _resultobj = Py_None;
6547 {
6548 delete [] _arg2;
6549 }
6550 return _resultobj;
6551 }
6552
6553 static void *SwigwxPenListTowxObject(void *ptr) {
6554 wxPenList *src;
6555 wxObject *dest;
6556 src = (wxPenList *) ptr;
6557 dest = (wxObject *) src;
6558 return (void *) dest;
6559 }
6560
6561 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6562 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6563 PyObject * _resultobj;
6564 wxPenList * _arg0;
6565 wxPen * _arg1;
6566 PyObject * _argo0 = 0;
6567 PyObject * _argo1 = 0;
6568 char *_kwnames[] = { "self","pen", NULL };
6569
6570 self = self;
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
6572 return NULL;
6573 if (_argo0) {
6574 if (_argo0 == Py_None) { _arg0 = NULL; }
6575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6577 return NULL;
6578 }
6579 }
6580 if (_argo1) {
6581 if (_argo1 == Py_None) { _arg1 = NULL; }
6582 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6583 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6584 return NULL;
6585 }
6586 }
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 wxPenList_AddPen(_arg0,_arg1);
6590
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) return NULL;
6593 } Py_INCREF(Py_None);
6594 _resultobj = Py_None;
6595 return _resultobj;
6596 }
6597
6598 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6599 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6600 PyObject * _resultobj;
6601 wxPen * _result;
6602 wxPenList * _arg0;
6603 wxColour * _arg1;
6604 int _arg2;
6605 int _arg3;
6606 PyObject * _argo0 = 0;
6607 wxColour temp;
6608 PyObject * _obj1 = 0;
6609 char *_kwnames[] = { "self","colour","width","style", NULL };
6610 char _ptemp[128];
6611
6612 self = self;
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6614 return NULL;
6615 if (_argo0) {
6616 if (_argo0 == Py_None) { _arg0 = NULL; }
6617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6619 return NULL;
6620 }
6621 }
6622 {
6623 _arg1 = &temp;
6624 if (! wxColour_helper(_obj1, &_arg1))
6625 return NULL;
6626 }
6627 {
6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
6629 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
6630
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) return NULL;
6633 } if (_result) {
6634 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6635 _resultobj = Py_BuildValue("s",_ptemp);
6636 } else {
6637 Py_INCREF(Py_None);
6638 _resultobj = Py_None;
6639 }
6640 return _resultobj;
6641 }
6642
6643 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6644 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6645 PyObject * _resultobj;
6646 wxPenList * _arg0;
6647 wxPen * _arg1;
6648 PyObject * _argo0 = 0;
6649 PyObject * _argo1 = 0;
6650 char *_kwnames[] = { "self","pen", NULL };
6651
6652 self = self;
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
6654 return NULL;
6655 if (_argo0) {
6656 if (_argo0 == Py_None) { _arg0 = NULL; }
6657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6659 return NULL;
6660 }
6661 }
6662 if (_argo1) {
6663 if (_argo1 == Py_None) { _arg1 = NULL; }
6664 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6665 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6666 return NULL;
6667 }
6668 }
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 wxPenList_RemovePen(_arg0,_arg1);
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) return NULL;
6675 } Py_INCREF(Py_None);
6676 _resultobj = Py_None;
6677 return _resultobj;
6678 }
6679
6680 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6681 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6682 PyObject * _resultobj;
6683 int _result;
6684 wxPenList * _arg0;
6685 PyObject * _argo0 = 0;
6686 char *_kwnames[] = { "self", NULL };
6687
6688 self = self;
6689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
6690 return NULL;
6691 if (_argo0) {
6692 if (_argo0 == Py_None) { _arg0 = NULL; }
6693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6695 return NULL;
6696 }
6697 }
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 _result = (int )wxPenList_GetCount(_arg0);
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) return NULL;
6704 } _resultobj = Py_BuildValue("i",_result);
6705 return _resultobj;
6706 }
6707
6708 static void *SwigwxBrushTowxGDIObject(void *ptr) {
6709 wxBrush *src;
6710 wxGDIObject *dest;
6711 src = (wxBrush *) ptr;
6712 dest = (wxGDIObject *) src;
6713 return (void *) dest;
6714 }
6715
6716 static void *SwigwxBrushTowxObject(void *ptr) {
6717 wxBrush *src;
6718 wxObject *dest;
6719 src = (wxBrush *) ptr;
6720 dest = (wxObject *) src;
6721 return (void *) dest;
6722 }
6723
6724 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6725 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6726 PyObject * _resultobj;
6727 wxBrush * _result;
6728 wxColour * _arg0;
6729 int _arg1 = (int ) wxSOLID;
6730 wxColour temp;
6731 PyObject * _obj0 = 0;
6732 char *_kwnames[] = { "colour","style", NULL };
6733 char _ptemp[128];
6734
6735 self = self;
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
6737 return NULL;
6738 {
6739 _arg0 = &temp;
6740 if (! wxColour_helper(_obj0, &_arg0))
6741 return NULL;
6742 }
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
6746
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) return NULL;
6749 } if (_result) {
6750 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6751 _resultobj = Py_BuildValue("s",_ptemp);
6752 } else {
6753 Py_INCREF(Py_None);
6754 _resultobj = Py_None;
6755 }
6756 return _resultobj;
6757 }
6758
6759 #define delete_wxBrush(_swigobj) (delete _swigobj)
6760 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6761 PyObject * _resultobj;
6762 wxBrush * _arg0;
6763 PyObject * _argo0 = 0;
6764 char *_kwnames[] = { "self", NULL };
6765
6766 self = self;
6767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
6768 return NULL;
6769 if (_argo0) {
6770 if (_argo0 == Py_None) { _arg0 = NULL; }
6771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6773 return NULL;
6774 }
6775 }
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 delete_wxBrush(_arg0);
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) return NULL;
6782 } Py_INCREF(Py_None);
6783 _resultobj = Py_None;
6784 return _resultobj;
6785 }
6786
6787 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6788 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6789 PyObject * _resultobj;
6790 wxColour * _result;
6791 wxBrush * _arg0;
6792 PyObject * _argo0 = 0;
6793 char *_kwnames[] = { "self", NULL };
6794 char _ptemp[128];
6795
6796 self = self;
6797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6798 return NULL;
6799 if (_argo0) {
6800 if (_argo0 == Py_None) { _arg0 = NULL; }
6801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6803 return NULL;
6804 }
6805 }
6806 {
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 _result = new wxColour (wxBrush_GetColour(_arg0));
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) return NULL;
6812 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6813 _resultobj = Py_BuildValue("s",_ptemp);
6814 return _resultobj;
6815 }
6816
6817 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6818 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject * _resultobj;
6820 wxBitmap * _result;
6821 wxBrush * _arg0;
6822 PyObject * _argo0 = 0;
6823 char *_kwnames[] = { "self", NULL };
6824 char _ptemp[128];
6825
6826 self = self;
6827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6828 return NULL;
6829 if (_argo0) {
6830 if (_argo0 == Py_None) { _arg0 = NULL; }
6831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6833 return NULL;
6834 }
6835 }
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6839
6840 wxPyEndAllowThreads(__tstate);
6841 if (PyErr_Occurred()) return NULL;
6842 } if (_result) {
6843 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6844 _resultobj = Py_BuildValue("s",_ptemp);
6845 } else {
6846 Py_INCREF(Py_None);
6847 _resultobj = Py_None;
6848 }
6849 return _resultobj;
6850 }
6851
6852 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6853 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject * _resultobj;
6855 int _result;
6856 wxBrush * _arg0;
6857 PyObject * _argo0 = 0;
6858 char *_kwnames[] = { "self", NULL };
6859
6860 self = self;
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6862 return NULL;
6863 if (_argo0) {
6864 if (_argo0 == Py_None) { _arg0 = NULL; }
6865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6867 return NULL;
6868 }
6869 }
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 _result = (int )wxBrush_GetStyle(_arg0);
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) return NULL;
6876 } _resultobj = Py_BuildValue("i",_result);
6877 return _resultobj;
6878 }
6879
6880 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6881 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject * _resultobj;
6883 bool _result;
6884 wxBrush * _arg0;
6885 PyObject * _argo0 = 0;
6886 char *_kwnames[] = { "self", NULL };
6887
6888 self = self;
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6890 return NULL;
6891 if (_argo0) {
6892 if (_argo0 == Py_None) { _arg0 = NULL; }
6893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6895 return NULL;
6896 }
6897 }
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 _result = (bool )wxBrush_Ok(_arg0);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) return NULL;
6904 } _resultobj = Py_BuildValue("i",_result);
6905 return _resultobj;
6906 }
6907
6908 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6909 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6910 PyObject * _resultobj;
6911 wxBrush * _arg0;
6912 wxColour * _arg1;
6913 PyObject * _argo0 = 0;
6914 wxColour temp;
6915 PyObject * _obj1 = 0;
6916 char *_kwnames[] = { "self","colour", NULL };
6917
6918 self = self;
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6920 return NULL;
6921 if (_argo0) {
6922 if (_argo0 == Py_None) { _arg0 = NULL; }
6923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6925 return NULL;
6926 }
6927 }
6928 {
6929 _arg1 = &temp;
6930 if (! wxColour_helper(_obj1, &_arg1))
6931 return NULL;
6932 }
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 wxBrush_SetColour(_arg0,*_arg1);
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) return NULL;
6939 } Py_INCREF(Py_None);
6940 _resultobj = Py_None;
6941 return _resultobj;
6942 }
6943
6944 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6945 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6946 PyObject * _resultobj;
6947 wxBrush * _arg0;
6948 wxBitmap * _arg1;
6949 PyObject * _argo0 = 0;
6950 PyObject * _argo1 = 0;
6951 char *_kwnames[] = { "self","bitmap", NULL };
6952
6953 self = self;
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6955 return NULL;
6956 if (_argo0) {
6957 if (_argo0 == Py_None) { _arg0 = NULL; }
6958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6960 return NULL;
6961 }
6962 }
6963 if (_argo1) {
6964 if (_argo1 == Py_None) { _arg1 = NULL; }
6965 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6966 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6967 return NULL;
6968 }
6969 }
6970 {
6971 PyThreadState* __tstate = wxPyBeginAllowThreads();
6972 wxBrush_SetStipple(_arg0,*_arg1);
6973
6974 wxPyEndAllowThreads(__tstate);
6975 if (PyErr_Occurred()) return NULL;
6976 } Py_INCREF(Py_None);
6977 _resultobj = Py_None;
6978 return _resultobj;
6979 }
6980
6981 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6982 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6983 PyObject * _resultobj;
6984 wxBrush * _arg0;
6985 int _arg1;
6986 PyObject * _argo0 = 0;
6987 char *_kwnames[] = { "self","style", NULL };
6988
6989 self = self;
6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6991 return NULL;
6992 if (_argo0) {
6993 if (_argo0 == Py_None) { _arg0 = NULL; }
6994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6996 return NULL;
6997 }
6998 }
6999 {
7000 PyThreadState* __tstate = wxPyBeginAllowThreads();
7001 wxBrush_SetStyle(_arg0,_arg1);
7002
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) return NULL;
7005 } Py_INCREF(Py_None);
7006 _resultobj = Py_None;
7007 return _resultobj;
7008 }
7009
7010 static void *SwigwxBrushListTowxObject(void *ptr) {
7011 wxBrushList *src;
7012 wxObject *dest;
7013 src = (wxBrushList *) ptr;
7014 dest = (wxObject *) src;
7015 return (void *) dest;
7016 }
7017
7018 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
7019 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7020 PyObject * _resultobj;
7021 wxBrushList * _arg0;
7022 wxBrush * _arg1;
7023 PyObject * _argo0 = 0;
7024 PyObject * _argo1 = 0;
7025 char *_kwnames[] = { "self","brush", NULL };
7026
7027 self = self;
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
7029 return NULL;
7030 if (_argo0) {
7031 if (_argo0 == Py_None) { _arg0 = NULL; }
7032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
7034 return NULL;
7035 }
7036 }
7037 if (_argo1) {
7038 if (_argo1 == Py_None) { _arg1 = NULL; }
7039 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7040 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
7041 return NULL;
7042 }
7043 }
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 wxBrushList_AddBrush(_arg0,_arg1);
7047
7048 wxPyEndAllowThreads(__tstate);
7049 if (PyErr_Occurred()) return NULL;
7050 } Py_INCREF(Py_None);
7051 _resultobj = Py_None;
7052 return _resultobj;
7053 }
7054
7055 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
7056 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject * _resultobj;
7058 wxBrush * _result;
7059 wxBrushList * _arg0;
7060 wxColour * _arg1;
7061 int _arg2;
7062 PyObject * _argo0 = 0;
7063 wxColour temp;
7064 PyObject * _obj1 = 0;
7065 char *_kwnames[] = { "self","colour","style", NULL };
7066 char _ptemp[128];
7067
7068 self = self;
7069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
7070 return NULL;
7071 if (_argo0) {
7072 if (_argo0 == Py_None) { _arg0 = NULL; }
7073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
7075 return NULL;
7076 }
7077 }
7078 {
7079 _arg1 = &temp;
7080 if (! wxColour_helper(_obj1, &_arg1))
7081 return NULL;
7082 }
7083 {
7084 PyThreadState* __tstate = wxPyBeginAllowThreads();
7085 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
7086
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) return NULL;
7089 } if (_result) {
7090 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7091 _resultobj = Py_BuildValue("s",_ptemp);
7092 } else {
7093 Py_INCREF(Py_None);
7094 _resultobj = Py_None;
7095 }
7096 return _resultobj;
7097 }
7098
7099 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7100 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7101 PyObject * _resultobj;
7102 wxBrushList * _arg0;
7103 wxBrush * _arg1;
7104 PyObject * _argo0 = 0;
7105 PyObject * _argo1 = 0;
7106 char *_kwnames[] = { "self","brush", NULL };
7107
7108 self = self;
7109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
7110 return NULL;
7111 if (_argo0) {
7112 if (_argo0 == Py_None) { _arg0 = NULL; }
7113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7115 return NULL;
7116 }
7117 }
7118 if (_argo1) {
7119 if (_argo1 == Py_None) { _arg1 = NULL; }
7120 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7121 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7122 return NULL;
7123 }
7124 }
7125 {
7126 PyThreadState* __tstate = wxPyBeginAllowThreads();
7127 wxBrushList_RemoveBrush(_arg0,_arg1);
7128
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) return NULL;
7131 } Py_INCREF(Py_None);
7132 _resultobj = Py_None;
7133 return _resultobj;
7134 }
7135
7136 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7137 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7138 PyObject * _resultobj;
7139 int _result;
7140 wxBrushList * _arg0;
7141 PyObject * _argo0 = 0;
7142 char *_kwnames[] = { "self", NULL };
7143
7144 self = self;
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
7146 return NULL;
7147 if (_argo0) {
7148 if (_argo0 == Py_None) { _arg0 = NULL; }
7149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7151 return NULL;
7152 }
7153 }
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 _result = (int )wxBrushList_GetCount(_arg0);
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) return NULL;
7160 } _resultobj = Py_BuildValue("i",_result);
7161 return _resultobj;
7162 }
7163
7164 static void *SwigwxDCTowxObject(void *ptr) {
7165 wxDC *src;
7166 wxObject *dest;
7167 src = (wxDC *) ptr;
7168 dest = (wxObject *) src;
7169 return (void *) dest;
7170 }
7171
7172 #define delete_wxDC(_swigobj) (delete _swigobj)
7173 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7174 PyObject * _resultobj;
7175 wxDC * _arg0;
7176 PyObject * _argo0 = 0;
7177 char *_kwnames[] = { "self", NULL };
7178
7179 self = self;
7180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
7181 return NULL;
7182 if (_argo0) {
7183 if (_argo0 == Py_None) { _arg0 = NULL; }
7184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7186 return NULL;
7187 }
7188 }
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 delete_wxDC(_arg0);
7192
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) return NULL;
7195 } Py_INCREF(Py_None);
7196 _resultobj = Py_None;
7197 return _resultobj;
7198 }
7199
7200 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7201 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7202 PyObject * _resultobj;
7203 wxDC * _arg0;
7204 PyObject * _argo0 = 0;
7205 char *_kwnames[] = { "self", NULL };
7206
7207 self = self;
7208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
7209 return NULL;
7210 if (_argo0) {
7211 if (_argo0 == Py_None) { _arg0 = NULL; }
7212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7214 return NULL;
7215 }
7216 }
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 wxDC_BeginDrawing(_arg0);
7220
7221 wxPyEndAllowThreads(__tstate);
7222 if (PyErr_Occurred()) return NULL;
7223 } Py_INCREF(Py_None);
7224 _resultobj = Py_None;
7225 return _resultobj;
7226 }
7227
7228 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7229 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
7230 PyObject * _resultobj;
7231 bool _result;
7232 wxDC * _arg0;
7233 long _arg1;
7234 long _arg2;
7235 long _arg3;
7236 long _arg4;
7237 wxDC * _arg5;
7238 long _arg6;
7239 long _arg7;
7240 int _arg8 = (int ) wxCOPY;
7241 int _arg9 = (int ) FALSE;
7242 PyObject * _argo0 = 0;
7243 PyObject * _argo5 = 0;
7244 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
7245
7246 self = self;
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
7248 return NULL;
7249 if (_argo0) {
7250 if (_argo0 == Py_None) { _arg0 = NULL; }
7251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7253 return NULL;
7254 }
7255 }
7256 if (_argo5) {
7257 if (_argo5 == Py_None) { _arg5 = NULL; }
7258 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
7259 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7260 return NULL;
7261 }
7262 }
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
7266
7267 wxPyEndAllowThreads(__tstate);
7268 if (PyErr_Occurred()) return NULL;
7269 } _resultobj = Py_BuildValue("i",_result);
7270 return _resultobj;
7271 }
7272
7273 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7274 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7275 PyObject * _resultobj;
7276 wxDC * _arg0;
7277 PyObject * _argo0 = 0;
7278 char *_kwnames[] = { "self", NULL };
7279
7280 self = self;
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
7282 return NULL;
7283 if (_argo0) {
7284 if (_argo0 == Py_None) { _arg0 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7287 return NULL;
7288 }
7289 }
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 wxDC_Clear(_arg0);
7293
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) return NULL;
7296 } Py_INCREF(Py_None);
7297 _resultobj = Py_None;
7298 return _resultobj;
7299 }
7300
7301 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7302 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
7303 PyObject * _resultobj;
7304 wxDC * _arg0;
7305 long _arg1;
7306 long _arg2;
7307 PyObject * _argo0 = 0;
7308 char *_kwnames[] = { "self","x","y", NULL };
7309
7310 self = self;
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
7312 return NULL;
7313 if (_argo0) {
7314 if (_argo0 == Py_None) { _arg0 = NULL; }
7315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7317 return NULL;
7318 }
7319 }
7320 {
7321 PyThreadState* __tstate = wxPyBeginAllowThreads();
7322 wxDC_CrossHair(_arg0,_arg1,_arg2);
7323
7324 wxPyEndAllowThreads(__tstate);
7325 if (PyErr_Occurred()) return NULL;
7326 } Py_INCREF(Py_None);
7327 _resultobj = Py_None;
7328 return _resultobj;
7329 }
7330
7331 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7332 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7333 PyObject * _resultobj;
7334 wxDC * _arg0;
7335 PyObject * _argo0 = 0;
7336 char *_kwnames[] = { "self", NULL };
7337
7338 self = self;
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
7340 return NULL;
7341 if (_argo0) {
7342 if (_argo0 == Py_None) { _arg0 = NULL; }
7343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7345 return NULL;
7346 }
7347 }
7348 {
7349 PyThreadState* __tstate = wxPyBeginAllowThreads();
7350 wxDC_DestroyClippingRegion(_arg0);
7351
7352 wxPyEndAllowThreads(__tstate);
7353 if (PyErr_Occurred()) return NULL;
7354 } Py_INCREF(Py_None);
7355 _resultobj = Py_None;
7356 return _resultobj;
7357 }
7358
7359 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7360 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
7361 PyObject * _resultobj;
7362 long _result;
7363 wxDC * _arg0;
7364 long _arg1;
7365 PyObject * _argo0 = 0;
7366 char *_kwnames[] = { "self","x", NULL };
7367
7368 self = self;
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
7370 return NULL;
7371 if (_argo0) {
7372 if (_argo0 == Py_None) { _arg0 = NULL; }
7373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7375 return NULL;
7376 }
7377 }
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) return NULL;
7384 } _resultobj = Py_BuildValue("l",_result);
7385 return _resultobj;
7386 }
7387
7388 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7389 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7390 PyObject * _resultobj;
7391 long _result;
7392 wxDC * _arg0;
7393 long _arg1;
7394 PyObject * _argo0 = 0;
7395 char *_kwnames[] = { "self","x", NULL };
7396
7397 self = self;
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
7399 return NULL;
7400 if (_argo0) {
7401 if (_argo0 == Py_None) { _arg0 = NULL; }
7402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7404 return NULL;
7405 }
7406 }
7407 {
7408 PyThreadState* __tstate = wxPyBeginAllowThreads();
7409 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
7410
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) return NULL;
7413 } _resultobj = Py_BuildValue("l",_result);
7414 return _resultobj;
7415 }
7416
7417 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7418 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
7419 PyObject * _resultobj;
7420 long _result;
7421 wxDC * _arg0;
7422 long _arg1;
7423 PyObject * _argo0 = 0;
7424 char *_kwnames[] = { "self","y", NULL };
7425
7426 self = self;
7427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
7428 return NULL;
7429 if (_argo0) {
7430 if (_argo0 == Py_None) { _arg0 = NULL; }
7431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7433 return NULL;
7434 }
7435 }
7436 {
7437 PyThreadState* __tstate = wxPyBeginAllowThreads();
7438 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
7439
7440 wxPyEndAllowThreads(__tstate);
7441 if (PyErr_Occurred()) return NULL;
7442 } _resultobj = Py_BuildValue("l",_result);
7443 return _resultobj;
7444 }
7445
7446 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7447 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject * _resultobj;
7449 long _result;
7450 wxDC * _arg0;
7451 long _arg1;
7452 PyObject * _argo0 = 0;
7453 char *_kwnames[] = { "self","y", NULL };
7454
7455 self = self;
7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
7457 return NULL;
7458 if (_argo0) {
7459 if (_argo0 == Py_None) { _arg0 = NULL; }
7460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7462 return NULL;
7463 }
7464 }
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) return NULL;
7471 } _resultobj = Py_BuildValue("l",_result);
7472 return _resultobj;
7473 }
7474
7475 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7476 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7477 PyObject * _resultobj;
7478 wxDC * _arg0;
7479 long _arg1;
7480 long _arg2;
7481 long _arg3;
7482 long _arg4;
7483 long _arg5;
7484 long _arg6;
7485 PyObject * _argo0 = 0;
7486 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
7487
7488 self = self;
7489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7490 return NULL;
7491 if (_argo0) {
7492 if (_argo0 == Py_None) { _arg0 = NULL; }
7493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7495 return NULL;
7496 }
7497 }
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) return NULL;
7504 } Py_INCREF(Py_None);
7505 _resultobj = Py_None;
7506 return _resultobj;
7507 }
7508
7509 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7510 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
7511 PyObject * _resultobj;
7512 wxDC * _arg0;
7513 long _arg1;
7514 long _arg2;
7515 long _arg3;
7516 PyObject * _argo0 = 0;
7517 char *_kwnames[] = { "self","x","y","radius", NULL };
7518
7519 self = self;
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7521 return NULL;
7522 if (_argo0) {
7523 if (_argo0 == Py_None) { _arg0 = NULL; }
7524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7526 return NULL;
7527 }
7528 }
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) return NULL;
7535 } Py_INCREF(Py_None);
7536 _resultobj = Py_None;
7537 return _resultobj;
7538 }
7539
7540 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7541 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
7542 PyObject * _resultobj;
7543 wxDC * _arg0;
7544 long _arg1;
7545 long _arg2;
7546 long _arg3;
7547 long _arg4;
7548 PyObject * _argo0 = 0;
7549 char *_kwnames[] = { "self","x","y","width","height", NULL };
7550
7551 self = self;
7552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7553 return NULL;
7554 if (_argo0) {
7555 if (_argo0 == Py_None) { _arg0 = NULL; }
7556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7558 return NULL;
7559 }
7560 }
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) return NULL;
7567 } Py_INCREF(Py_None);
7568 _resultobj = Py_None;
7569 return _resultobj;
7570 }
7571
7572 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7573 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7574 PyObject * _resultobj;
7575 wxDC * _arg0;
7576 long _arg1;
7577 long _arg2;
7578 long _arg3;
7579 long _arg4;
7580 long _arg5;
7581 long _arg6;
7582 PyObject * _argo0 = 0;
7583 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
7584
7585 self = self;
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7587 return NULL;
7588 if (_argo0) {
7589 if (_argo0 == Py_None) { _arg0 = NULL; }
7590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7592 return NULL;
7593 }
7594 }
7595 {
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7598
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) return NULL;
7601 } Py_INCREF(Py_None);
7602 _resultobj = Py_None;
7603 return _resultobj;
7604 }
7605
7606 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7607 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7608 PyObject * _resultobj;
7609 wxDC * _arg0;
7610 wxIcon * _arg1;
7611 long _arg2;
7612 long _arg3;
7613 PyObject * _argo0 = 0;
7614 PyObject * _argo1 = 0;
7615 char *_kwnames[] = { "self","icon","x","y", NULL };
7616
7617 self = self;
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7619 return NULL;
7620 if (_argo0) {
7621 if (_argo0 == Py_None) { _arg0 = NULL; }
7622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7624 return NULL;
7625 }
7626 }
7627 if (_argo1) {
7628 if (_argo1 == Py_None) { _arg1 = NULL; }
7629 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
7630 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7631 return NULL;
7632 }
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) return NULL;
7640 } Py_INCREF(Py_None);
7641 _resultobj = Py_None;
7642 return _resultobj;
7643 }
7644
7645 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7646 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7647 PyObject * _resultobj;
7648 wxDC * _arg0;
7649 wxString * _arg1;
7650 wxRect * _arg2;
7651 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7652 int _arg4 = (int ) -1;
7653 PyObject * _argo0 = 0;
7654 PyObject * _obj1 = 0;
7655 wxRect temp;
7656 PyObject * _obj2 = 0;
7657 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
7658
7659 self = self;
7660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
7661 return NULL;
7662 if (_argo0) {
7663 if (_argo0 == Py_None) { _arg0 = NULL; }
7664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7666 return NULL;
7667 }
7668 }
7669 {
7670 #if PYTHON_API_VERSION >= 1009
7671 char* tmpPtr; int tmpSize;
7672 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7673 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7674 return NULL;
7675 }
7676 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7677 return NULL;
7678 _arg1 = new wxString(tmpPtr, tmpSize);
7679 #else
7680 if (!PyString_Check(_obj1)) {
7681 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7682 return NULL;
7683 }
7684 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7685 #endif
7686 }
7687 {
7688 _arg2 = &temp;
7689 if (! wxRect_helper(_obj2, &_arg2))
7690 return NULL;
7691 }
7692 {
7693 PyThreadState* __tstate = wxPyBeginAllowThreads();
7694 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
7695
7696 wxPyEndAllowThreads(__tstate);
7697 if (PyErr_Occurred()) return NULL;
7698 } Py_INCREF(Py_None);
7699 _resultobj = Py_None;
7700 {
7701 if (_obj1)
7702 delete _arg1;
7703 }
7704 return _resultobj;
7705 }
7706
7707 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
7708 wxRect rv;
7709 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
7710 return rv;
7711 }
7712 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject * _resultobj;
7714 wxRect * _result;
7715 wxDC * _arg0;
7716 wxString * _arg1;
7717 wxBitmap * _arg2;
7718 wxRect * _arg3;
7719 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7720 int _arg5 = (int ) -1;
7721 PyObject * _argo0 = 0;
7722 PyObject * _obj1 = 0;
7723 PyObject * _argo2 = 0;
7724 wxRect temp;
7725 PyObject * _obj3 = 0;
7726 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
7727 char _ptemp[128];
7728
7729 self = self;
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
7731 return NULL;
7732 if (_argo0) {
7733 if (_argo0 == Py_None) { _arg0 = NULL; }
7734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7736 return NULL;
7737 }
7738 }
7739 {
7740 #if PYTHON_API_VERSION >= 1009
7741 char* tmpPtr; int tmpSize;
7742 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7743 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7744 return NULL;
7745 }
7746 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7747 return NULL;
7748 _arg1 = new wxString(tmpPtr, tmpSize);
7749 #else
7750 if (!PyString_Check(_obj1)) {
7751 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7752 return NULL;
7753 }
7754 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7755 #endif
7756 }
7757 if (_argo2) {
7758 if (_argo2 == Py_None) { _arg2 = NULL; }
7759 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7760 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7761 return NULL;
7762 }
7763 }
7764 {
7765 _arg3 = &temp;
7766 if (! wxRect_helper(_obj3, &_arg3))
7767 return NULL;
7768 }
7769 {
7770 PyThreadState* __tstate = wxPyBeginAllowThreads();
7771 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
7772
7773 wxPyEndAllowThreads(__tstate);
7774 if (PyErr_Occurred()) return NULL;
7775 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
7776 _resultobj = Py_BuildValue("s",_ptemp);
7777 {
7778 if (_obj1)
7779 delete _arg1;
7780 }
7781 return _resultobj;
7782 }
7783
7784 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7785 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7786 PyObject * _resultobj;
7787 wxDC * _arg0;
7788 long _arg1;
7789 long _arg2;
7790 long _arg3;
7791 long _arg4;
7792 PyObject * _argo0 = 0;
7793 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
7794
7795 self = self;
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7797 return NULL;
7798 if (_argo0) {
7799 if (_argo0 == Py_None) { _arg0 = NULL; }
7800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7802 return NULL;
7803 }
7804 }
7805 {
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
7808
7809 wxPyEndAllowThreads(__tstate);
7810 if (PyErr_Occurred()) return NULL;
7811 } Py_INCREF(Py_None);
7812 _resultobj = Py_None;
7813 return _resultobj;
7814 }
7815
7816 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7817 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7818 PyObject * _resultobj;
7819 wxDC * _arg0;
7820 int _arg1;
7821 wxPoint * _arg2;
7822 long _arg3 = (long ) 0;
7823 long _arg4 = (long ) 0;
7824 PyObject * _argo0 = 0;
7825 int NPOINTS;
7826 PyObject * _obj2 = 0;
7827 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7828
7829 self = self;
7830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7831 return NULL;
7832 if (_argo0) {
7833 if (_argo0 == Py_None) { _arg0 = NULL; }
7834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7836 return NULL;
7837 }
7838 }
7839 if (_obj2)
7840 {
7841 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7842 if (_arg2 == NULL) {
7843 return NULL;
7844 }
7845 }
7846 {
7847 _arg1 = NPOINTS;
7848 }
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) return NULL;
7855 } Py_INCREF(Py_None);
7856 _resultobj = Py_None;
7857 {
7858 delete [] _arg2;
7859 }
7860 return _resultobj;
7861 }
7862
7863 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7864 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7865 PyObject * _resultobj;
7866 wxDC * _arg0;
7867 int _arg1;
7868 wxPoint * _arg2;
7869 long _arg3 = (long ) 0;
7870 long _arg4 = (long ) 0;
7871 int _arg5 = (int ) wxODDEVEN_RULE;
7872 PyObject * _argo0 = 0;
7873 int NPOINTS;
7874 PyObject * _obj2 = 0;
7875 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7876
7877 self = self;
7878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7879 return NULL;
7880 if (_argo0) {
7881 if (_argo0 == Py_None) { _arg0 = NULL; }
7882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7884 return NULL;
7885 }
7886 }
7887 if (_obj2)
7888 {
7889 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7890 if (_arg2 == NULL) {
7891 return NULL;
7892 }
7893 }
7894 {
7895 _arg1 = NPOINTS;
7896 }
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) return NULL;
7903 } Py_INCREF(Py_None);
7904 _resultobj = Py_None;
7905 {
7906 delete [] _arg2;
7907 }
7908 return _resultobj;
7909 }
7910
7911 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7912 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject * _resultobj;
7914 wxDC * _arg0;
7915 long _arg1;
7916 long _arg2;
7917 PyObject * _argo0 = 0;
7918 char *_kwnames[] = { "self","x","y", NULL };
7919
7920 self = self;
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7922 return NULL;
7923 if (_argo0) {
7924 if (_argo0 == Py_None) { _arg0 = NULL; }
7925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7927 return NULL;
7928 }
7929 }
7930 {
7931 PyThreadState* __tstate = wxPyBeginAllowThreads();
7932 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7933
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) return NULL;
7936 } Py_INCREF(Py_None);
7937 _resultobj = Py_None;
7938 return _resultobj;
7939 }
7940
7941 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7942 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7943 PyObject * _resultobj;
7944 wxDC * _arg0;
7945 long _arg1;
7946 long _arg2;
7947 long _arg3;
7948 long _arg4;
7949 PyObject * _argo0 = 0;
7950 char *_kwnames[] = { "self","x","y","width","height", NULL };
7951
7952 self = self;
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7954 return NULL;
7955 if (_argo0) {
7956 if (_argo0 == Py_None) { _arg0 = NULL; }
7957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7959 return NULL;
7960 }
7961 }
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7965
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) return NULL;
7968 } Py_INCREF(Py_None);
7969 _resultobj = Py_None;
7970 return _resultobj;
7971 }
7972
7973 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7974 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7975 PyObject * _resultobj;
7976 wxDC * _arg0;
7977 wxString * _arg1;
7978 wxCoord _arg2;
7979 wxCoord _arg3;
7980 double _arg4;
7981 PyObject * _argo0 = 0;
7982 PyObject * _obj1 = 0;
7983 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7984
7985 self = self;
7986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7987 return NULL;
7988 if (_argo0) {
7989 if (_argo0 == Py_None) { _arg0 = NULL; }
7990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7992 return NULL;
7993 }
7994 }
7995 {
7996 #if PYTHON_API_VERSION >= 1009
7997 char* tmpPtr; int tmpSize;
7998 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7999 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8000 return NULL;
8001 }
8002 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8003 return NULL;
8004 _arg1 = new wxString(tmpPtr, tmpSize);
8005 #else
8006 if (!PyString_Check(_obj1)) {
8007 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8008 return NULL;
8009 }
8010 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8011 #endif
8012 }
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) return NULL;
8019 } Py_INCREF(Py_None);
8020 _resultobj = Py_None;
8021 {
8022 if (_obj1)
8023 delete _arg1;
8024 }
8025 return _resultobj;
8026 }
8027
8028 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8029 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject * _resultobj;
8031 wxDC * _arg0;
8032 long _arg1;
8033 long _arg2;
8034 long _arg3;
8035 long _arg4;
8036 long _arg5 = (long ) 20;
8037 PyObject * _argo0 = 0;
8038 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
8039
8040 self = self;
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
8042 return NULL;
8043 if (_argo0) {
8044 if (_argo0 == Py_None) { _arg0 = NULL; }
8045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
8047 return NULL;
8048 }
8049 }
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) return NULL;
8056 } Py_INCREF(Py_None);
8057 _resultobj = Py_None;
8058 return _resultobj;
8059 }
8060
8061 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
8062 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject * _resultobj;
8064 wxDC * _arg0;
8065 int _arg1;
8066 wxPoint * _arg2;
8067 PyObject * _argo0 = 0;
8068 int NPOINTS;
8069 PyObject * _obj2 = 0;
8070 char *_kwnames[] = { "self","points", NULL };
8071
8072 self = self;
8073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
8074 return NULL;
8075 if (_argo0) {
8076 if (_argo0 == Py_None) { _arg0 = NULL; }
8077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
8079 return NULL;
8080 }
8081 }
8082 if (_obj2)
8083 {
8084 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
8085 if (_arg2 == NULL) {
8086 return NULL;
8087 }
8088 }
8089 {
8090 _arg1 = NPOINTS;
8091 }
8092 {
8093 PyThreadState* __tstate = wxPyBeginAllowThreads();
8094 wxDC_DrawSpline(_arg0,_arg1,_arg2);
8095
8096 wxPyEndAllowThreads(__tstate);
8097 if (PyErr_Occurred()) return NULL;
8098 } Py_INCREF(Py_None);
8099 _resultobj = Py_None;
8100 {
8101 delete [] _arg2;
8102 }
8103 return _resultobj;
8104 }
8105
8106 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
8107 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
8108 PyObject * _resultobj;
8109 wxDC * _arg0;
8110 wxString * _arg1;
8111 long _arg2;
8112 long _arg3;
8113 PyObject * _argo0 = 0;
8114 PyObject * _obj1 = 0;
8115 char *_kwnames[] = { "self","text","x","y", NULL };
8116
8117 self = self;
8118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
8119 return NULL;
8120 if (_argo0) {
8121 if (_argo0 == Py_None) { _arg0 = NULL; }
8122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
8124 return NULL;
8125 }
8126 }
8127 {
8128 #if PYTHON_API_VERSION >= 1009
8129 char* tmpPtr; int tmpSize;
8130 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8131 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8132 return NULL;
8133 }
8134 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8135 return NULL;
8136 _arg1 = new wxString(tmpPtr, tmpSize);
8137 #else
8138 if (!PyString_Check(_obj1)) {
8139 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8140 return NULL;
8141 }
8142 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8143 #endif
8144 }
8145 {
8146 PyThreadState* __tstate = wxPyBeginAllowThreads();
8147 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
8148
8149 wxPyEndAllowThreads(__tstate);
8150 if (PyErr_Occurred()) return NULL;
8151 } Py_INCREF(Py_None);
8152 _resultobj = Py_None;
8153 {
8154 if (_obj1)
8155 delete _arg1;
8156 }
8157 return _resultobj;
8158 }
8159
8160 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
8161 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8162 PyObject * _resultobj;
8163 wxDC * _arg0;
8164 PyObject * _argo0 = 0;
8165 char *_kwnames[] = { "self", NULL };
8166
8167 self = self;
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
8169 return NULL;
8170 if (_argo0) {
8171 if (_argo0 == Py_None) { _arg0 = NULL; }
8172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
8174 return NULL;
8175 }
8176 }
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 wxDC_EndDoc(_arg0);
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) return NULL;
8183 } Py_INCREF(Py_None);
8184 _resultobj = Py_None;
8185 return _resultobj;
8186 }
8187
8188 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
8189 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject * _resultobj;
8191 wxDC * _arg0;
8192 PyObject * _argo0 = 0;
8193 char *_kwnames[] = { "self", NULL };
8194
8195 self = self;
8196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
8197 return NULL;
8198 if (_argo0) {
8199 if (_argo0 == Py_None) { _arg0 = NULL; }
8200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
8202 return NULL;
8203 }
8204 }
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
8207 wxDC_EndDrawing(_arg0);
8208
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) return NULL;
8211 } Py_INCREF(Py_None);
8212 _resultobj = Py_None;
8213 return _resultobj;
8214 }
8215
8216 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
8217 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8218 PyObject * _resultobj;
8219 wxDC * _arg0;
8220 PyObject * _argo0 = 0;
8221 char *_kwnames[] = { "self", NULL };
8222
8223 self = self;
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
8225 return NULL;
8226 if (_argo0) {
8227 if (_argo0 == Py_None) { _arg0 = NULL; }
8228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8230 return NULL;
8231 }
8232 }
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 wxDC_EndPage(_arg0);
8236
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) return NULL;
8239 } Py_INCREF(Py_None);
8240 _resultobj = Py_None;
8241 return _resultobj;
8242 }
8243
8244 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8245 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject * _resultobj;
8247 wxDC * _arg0;
8248 long _arg1;
8249 long _arg2;
8250 wxColour * _arg3;
8251 int _arg4 = (int ) wxFLOOD_SURFACE;
8252 PyObject * _argo0 = 0;
8253 wxColour temp;
8254 PyObject * _obj3 = 0;
8255 char *_kwnames[] = { "self","x","y","colour","style", NULL };
8256
8257 self = self;
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8259 return NULL;
8260 if (_argo0) {
8261 if (_argo0 == Py_None) { _arg0 = NULL; }
8262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8264 return NULL;
8265 }
8266 }
8267 {
8268 _arg3 = &temp;
8269 if (! wxColour_helper(_obj3, &_arg3))
8270 return NULL;
8271 }
8272 {
8273 PyThreadState* __tstate = wxPyBeginAllowThreads();
8274 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
8275
8276 wxPyEndAllowThreads(__tstate);
8277 if (PyErr_Occurred()) return NULL;
8278 } Py_INCREF(Py_None);
8279 _resultobj = Py_None;
8280 return _resultobj;
8281 }
8282
8283 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8284 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8285 PyObject * _resultobj;
8286 wxBrush * _result;
8287 wxDC * _arg0;
8288 PyObject * _argo0 = 0;
8289 char *_kwnames[] = { "self", NULL };
8290 char _ptemp[128];
8291
8292 self = self;
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
8294 return NULL;
8295 if (_argo0) {
8296 if (_argo0 == Py_None) { _arg0 = NULL; }
8297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8299 return NULL;
8300 }
8301 }
8302 {
8303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8304 _result = new wxBrush (wxDC_GetBackground(_arg0));
8305
8306 wxPyEndAllowThreads(__tstate);
8307 if (PyErr_Occurred()) return NULL;
8308 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8309 _resultobj = Py_BuildValue("s",_ptemp);
8310 return _resultobj;
8311 }
8312
8313 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8314 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8315 PyObject * _resultobj;
8316 wxBrush * _result;
8317 wxDC * _arg0;
8318 PyObject * _argo0 = 0;
8319 char *_kwnames[] = { "self", NULL };
8320 char _ptemp[128];
8321
8322 self = self;
8323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
8324 return NULL;
8325 if (_argo0) {
8326 if (_argo0 == Py_None) { _arg0 = NULL; }
8327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8329 return NULL;
8330 }
8331 }
8332 {
8333 PyThreadState* __tstate = wxPyBeginAllowThreads();
8334 _result = new wxBrush (wxDC_GetBrush(_arg0));
8335
8336 wxPyEndAllowThreads(__tstate);
8337 if (PyErr_Occurred()) return NULL;
8338 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8339 _resultobj = Py_BuildValue("s",_ptemp);
8340 return _resultobj;
8341 }
8342
8343 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8344 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8345 PyObject * _resultobj;
8346 long _result;
8347 wxDC * _arg0;
8348 PyObject * _argo0 = 0;
8349 char *_kwnames[] = { "self", NULL };
8350
8351 self = self;
8352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
8353 return NULL;
8354 if (_argo0) {
8355 if (_argo0 == Py_None) { _arg0 = NULL; }
8356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8358 return NULL;
8359 }
8360 }
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 _result = (long )wxDC_GetCharHeight(_arg0);
8364
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) return NULL;
8367 } _resultobj = Py_BuildValue("l",_result);
8368 return _resultobj;
8369 }
8370
8371 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8372 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8373 PyObject * _resultobj;
8374 long _result;
8375 wxDC * _arg0;
8376 PyObject * _argo0 = 0;
8377 char *_kwnames[] = { "self", NULL };
8378
8379 self = self;
8380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
8381 return NULL;
8382 if (_argo0) {
8383 if (_argo0 == Py_None) { _arg0 = NULL; }
8384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8386 return NULL;
8387 }
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 _result = (long )wxDC_GetCharWidth(_arg0);
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) return NULL;
8395 } _resultobj = Py_BuildValue("l",_result);
8396 return _resultobj;
8397 }
8398
8399 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8400 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject * _resultobj;
8402 wxDC * _arg0;
8403 long * _arg1;
8404 long temp;
8405 long * _arg2;
8406 long temp0;
8407 long * _arg3;
8408 long temp1;
8409 long * _arg4;
8410 long temp2;
8411 PyObject * _argo0 = 0;
8412 char *_kwnames[] = { "self", NULL };
8413
8414 self = self;
8415 {
8416 _arg1 = &temp;
8417 }
8418 {
8419 _arg2 = &temp0;
8420 }
8421 {
8422 _arg3 = &temp1;
8423 }
8424 {
8425 _arg4 = &temp2;
8426 }
8427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
8428 return NULL;
8429 if (_argo0) {
8430 if (_argo0 == Py_None) { _arg0 = NULL; }
8431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8433 return NULL;
8434 }
8435 }
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) return NULL;
8442 } Py_INCREF(Py_None);
8443 _resultobj = Py_None;
8444 {
8445 PyObject *o;
8446 o = PyInt_FromLong((long) (*_arg1));
8447 _resultobj = t_output_helper(_resultobj, o);
8448 }
8449 {
8450 PyObject *o;
8451 o = PyInt_FromLong((long) (*_arg2));
8452 _resultobj = t_output_helper(_resultobj, o);
8453 }
8454 {
8455 PyObject *o;
8456 o = PyInt_FromLong((long) (*_arg3));
8457 _resultobj = t_output_helper(_resultobj, o);
8458 }
8459 {
8460 PyObject *o;
8461 o = PyInt_FromLong((long) (*_arg4));
8462 _resultobj = t_output_helper(_resultobj, o);
8463 }
8464 return _resultobj;
8465 }
8466
8467 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8468 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8469 PyObject * _resultobj;
8470 wxFont * _result;
8471 wxDC * _arg0;
8472 PyObject * _argo0 = 0;
8473 char *_kwnames[] = { "self", NULL };
8474 char _ptemp[128];
8475
8476 self = self;
8477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
8478 return NULL;
8479 if (_argo0) {
8480 if (_argo0 == Py_None) { _arg0 = NULL; }
8481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8483 return NULL;
8484 }
8485 }
8486 {
8487 PyThreadState* __tstate = wxPyBeginAllowThreads();
8488 _result = new wxFont (wxDC_GetFont(_arg0));
8489
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) return NULL;
8492 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
8493 _resultobj = Py_BuildValue("s",_ptemp);
8494 return _resultobj;
8495 }
8496
8497 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8498 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8499 PyObject * _resultobj;
8500 int _result;
8501 wxDC * _arg0;
8502 PyObject * _argo0 = 0;
8503 char *_kwnames[] = { "self", NULL };
8504
8505 self = self;
8506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
8507 return NULL;
8508 if (_argo0) {
8509 if (_argo0 == Py_None) { _arg0 = NULL; }
8510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8512 return NULL;
8513 }
8514 }
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 _result = (int )wxDC_GetLogicalFunction(_arg0);
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) return NULL;
8521 } _resultobj = Py_BuildValue("i",_result);
8522 return _resultobj;
8523 }
8524
8525 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8526 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8527 PyObject * _resultobj;
8528 wxDC * _arg0;
8529 double * _arg1;
8530 double temp;
8531 double * _arg2;
8532 double temp0;
8533 PyObject * _argo0 = 0;
8534 char *_kwnames[] = { "self", NULL };
8535
8536 self = self;
8537 {
8538 _arg1 = &temp;
8539 }
8540 {
8541 _arg2 = &temp0;
8542 }
8543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
8544 return NULL;
8545 if (_argo0) {
8546 if (_argo0 == Py_None) { _arg0 = NULL; }
8547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8549 return NULL;
8550 }
8551 }
8552 {
8553 PyThreadState* __tstate = wxPyBeginAllowThreads();
8554 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
8555
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) return NULL;
8558 } Py_INCREF(Py_None);
8559 _resultobj = Py_None;
8560 {
8561 PyObject *o;
8562 o = PyFloat_FromDouble((double) (*_arg1));
8563 _resultobj = t_output_helper(_resultobj, o);
8564 }
8565 {
8566 PyObject *o;
8567 o = PyFloat_FromDouble((double) (*_arg2));
8568 _resultobj = t_output_helper(_resultobj, o);
8569 }
8570 return _resultobj;
8571 }
8572
8573 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8574 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject * _resultobj;
8576 int _result;
8577 wxDC * _arg0;
8578 PyObject * _argo0 = 0;
8579 char *_kwnames[] = { "self", NULL };
8580
8581 self = self;
8582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
8583 return NULL;
8584 if (_argo0) {
8585 if (_argo0 == Py_None) { _arg0 = NULL; }
8586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8588 return NULL;
8589 }
8590 }
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 _result = (int )wxDC_GetMapMode(_arg0);
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) return NULL;
8597 } _resultobj = Py_BuildValue("i",_result);
8598 return _resultobj;
8599 }
8600
8601 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8602 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8603 PyObject * _resultobj;
8604 bool _result;
8605 wxDC * _arg0;
8606 PyObject * _argo0 = 0;
8607 char *_kwnames[] = { "self", NULL };
8608
8609 self = self;
8610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
8611 return NULL;
8612 if (_argo0) {
8613 if (_argo0 == Py_None) { _arg0 = NULL; }
8614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8616 return NULL;
8617 }
8618 }
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 _result = (bool )wxDC_GetOptimization(_arg0);
8622
8623 wxPyEndAllowThreads(__tstate);
8624 if (PyErr_Occurred()) return NULL;
8625 } _resultobj = Py_BuildValue("i",_result);
8626 return _resultobj;
8627 }
8628
8629 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8630 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject * _resultobj;
8632 wxPen * _result;
8633 wxDC * _arg0;
8634 PyObject * _argo0 = 0;
8635 char *_kwnames[] = { "self", NULL };
8636 char _ptemp[128];
8637
8638 self = self;
8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
8640 return NULL;
8641 if (_argo0) {
8642 if (_argo0 == Py_None) { _arg0 = NULL; }
8643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8645 return NULL;
8646 }
8647 }
8648 {
8649 PyThreadState* __tstate = wxPyBeginAllowThreads();
8650 _result = new wxPen (wxDC_GetPen(_arg0));
8651
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) return NULL;
8654 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
8655 _resultobj = Py_BuildValue("s",_ptemp);
8656 return _resultobj;
8657 }
8658
8659 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
8660 wxColour* wc = new wxColour();
8661 self->GetPixel(x, y, wc);
8662 return wc;
8663 }
8664 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8665 PyObject * _resultobj;
8666 wxColour * _result;
8667 wxDC * _arg0;
8668 long _arg1;
8669 long _arg2;
8670 PyObject * _argo0 = 0;
8671 char *_kwnames[] = { "self","x","y", NULL };
8672 char _ptemp[128];
8673
8674 self = self;
8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_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_GetPixel. Expected _wxDC_p.");
8681 return NULL;
8682 }
8683 }
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) return NULL;
8690 } if (_result) {
8691 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
8692 _resultobj = Py_BuildValue("s",_ptemp);
8693 } else {
8694 Py_INCREF(Py_None);
8695 _resultobj = Py_None;
8696 }
8697 return _resultobj;
8698 }
8699
8700 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8701 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
8702 PyObject * _resultobj;
8703 wxDC * _arg0;
8704 int * _arg1;
8705 int temp;
8706 int * _arg2;
8707 int temp0;
8708 PyObject * _argo0 = 0;
8709 char *_kwnames[] = { "self", NULL };
8710
8711 self = self;
8712 {
8713 _arg1 = &temp;
8714 }
8715 {
8716 _arg2 = &temp0;
8717 }
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
8719 return NULL;
8720 if (_argo0) {
8721 if (_argo0 == Py_None) { _arg0 = NULL; }
8722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8724 return NULL;
8725 }
8726 }
8727 {
8728 PyThreadState* __tstate = wxPyBeginAllowThreads();
8729 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
8730
8731 wxPyEndAllowThreads(__tstate);
8732 if (PyErr_Occurred()) return NULL;
8733 } Py_INCREF(Py_None);
8734 _resultobj = Py_None;
8735 {
8736 PyObject *o;
8737 o = PyInt_FromLong((long) (*_arg1));
8738 _resultobj = t_output_helper(_resultobj, o);
8739 }
8740 {
8741 PyObject *o;
8742 o = PyInt_FromLong((long) (*_arg2));
8743 _resultobj = t_output_helper(_resultobj, o);
8744 }
8745 return _resultobj;
8746 }
8747
8748 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8749 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8750 PyObject * _resultobj;
8751 wxSize * _result;
8752 wxDC * _arg0;
8753 PyObject * _argo0 = 0;
8754 char *_kwnames[] = { "self", NULL };
8755 char _ptemp[128];
8756
8757 self = self;
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
8759 return NULL;
8760 if (_argo0) {
8761 if (_argo0 == Py_None) { _arg0 = NULL; }
8762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8764 return NULL;
8765 }
8766 }
8767 {
8768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8769 _result = new wxSize (wxDC_GetSize(_arg0));
8770
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) return NULL;
8773 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8774 _resultobj = Py_BuildValue("s",_ptemp);
8775 return _resultobj;
8776 }
8777
8778 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8779 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
8780 PyObject * _resultobj;
8781 wxSize * _result;
8782 wxDC * _arg0;
8783 PyObject * _argo0 = 0;
8784 char *_kwnames[] = { "self", NULL };
8785 char _ptemp[128];
8786
8787 self = self;
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
8789 return NULL;
8790 if (_argo0) {
8791 if (_argo0 == Py_None) { _arg0 = NULL; }
8792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8794 return NULL;
8795 }
8796 }
8797 {
8798 PyThreadState* __tstate = wxPyBeginAllowThreads();
8799 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8800
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) return NULL;
8803 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8804 _resultobj = Py_BuildValue("s",_ptemp);
8805 return _resultobj;
8806 }
8807
8808 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8809 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8810 PyObject * _resultobj;
8811 wxColour * _result;
8812 wxDC * _arg0;
8813 PyObject * _argo0 = 0;
8814 char *_kwnames[] = { "self", NULL };
8815 char _ptemp[128];
8816
8817 self = self;
8818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8819 return NULL;
8820 if (_argo0) {
8821 if (_argo0 == Py_None) { _arg0 = NULL; }
8822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8824 return NULL;
8825 }
8826 }
8827 {
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8830
8831 wxPyEndAllowThreads(__tstate);
8832 if (PyErr_Occurred()) return NULL;
8833 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8834 _resultobj = Py_BuildValue("s",_ptemp);
8835 return _resultobj;
8836 }
8837
8838 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8839 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject * _resultobj;
8841 wxDC * _arg0;
8842 wxString * _arg1;
8843 long * _arg2;
8844 long temp;
8845 long * _arg3;
8846 long temp0;
8847 PyObject * _argo0 = 0;
8848 PyObject * _obj1 = 0;
8849 char *_kwnames[] = { "self","string", NULL };
8850
8851 self = self;
8852 {
8853 _arg2 = &temp;
8854 }
8855 {
8856 _arg3 = &temp0;
8857 }
8858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8859 return NULL;
8860 if (_argo0) {
8861 if (_argo0 == Py_None) { _arg0 = NULL; }
8862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8864 return NULL;
8865 }
8866 }
8867 {
8868 #if PYTHON_API_VERSION >= 1009
8869 char* tmpPtr; int tmpSize;
8870 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8871 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8872 return NULL;
8873 }
8874 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8875 return NULL;
8876 _arg1 = new wxString(tmpPtr, tmpSize);
8877 #else
8878 if (!PyString_Check(_obj1)) {
8879 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8880 return NULL;
8881 }
8882 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8883 #endif
8884 }
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) return NULL;
8891 } Py_INCREF(Py_None);
8892 _resultobj = Py_None;
8893 {
8894 PyObject *o;
8895 o = PyInt_FromLong((long) (*_arg2));
8896 _resultobj = t_output_helper(_resultobj, o);
8897 }
8898 {
8899 PyObject *o;
8900 o = PyInt_FromLong((long) (*_arg3));
8901 _resultobj = t_output_helper(_resultobj, o);
8902 }
8903 {
8904 if (_obj1)
8905 delete _arg1;
8906 }
8907 return _resultobj;
8908 }
8909
8910 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8911 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8912 PyObject * _resultobj;
8913 wxDC * _arg0;
8914 wxString * _arg1;
8915 long * _arg2;
8916 long temp;
8917 long * _arg3;
8918 long temp0;
8919 long * _arg4;
8920 long temp1;
8921 long * _arg5;
8922 long temp2;
8923 wxFont * _arg6 = (wxFont *) NULL;
8924 PyObject * _argo0 = 0;
8925 PyObject * _obj1 = 0;
8926 PyObject * _argo6 = 0;
8927 char *_kwnames[] = { "self","string","font", NULL };
8928
8929 self = self;
8930 {
8931 _arg2 = &temp;
8932 }
8933 {
8934 _arg3 = &temp0;
8935 }
8936 {
8937 _arg4 = &temp1;
8938 }
8939 {
8940 _arg5 = &temp2;
8941 }
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8943 return NULL;
8944 if (_argo0) {
8945 if (_argo0 == Py_None) { _arg0 = NULL; }
8946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8948 return NULL;
8949 }
8950 }
8951 {
8952 #if PYTHON_API_VERSION >= 1009
8953 char* tmpPtr; int tmpSize;
8954 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8955 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8956 return NULL;
8957 }
8958 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8959 return NULL;
8960 _arg1 = new wxString(tmpPtr, tmpSize);
8961 #else
8962 if (!PyString_Check(_obj1)) {
8963 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8964 return NULL;
8965 }
8966 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8967 #endif
8968 }
8969 if (_argo6) {
8970 if (_argo6 == Py_None) { _arg6 = NULL; }
8971 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8972 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8973 return NULL;
8974 }
8975 }
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) return NULL;
8982 } Py_INCREF(Py_None);
8983 _resultobj = Py_None;
8984 {
8985 PyObject *o;
8986 o = PyInt_FromLong((long) (*_arg2));
8987 _resultobj = t_output_helper(_resultobj, o);
8988 }
8989 {
8990 PyObject *o;
8991 o = PyInt_FromLong((long) (*_arg3));
8992 _resultobj = t_output_helper(_resultobj, o);
8993 }
8994 {
8995 PyObject *o;
8996 o = PyInt_FromLong((long) (*_arg4));
8997 _resultobj = t_output_helper(_resultobj, o);
8998 }
8999 {
9000 PyObject *o;
9001 o = PyInt_FromLong((long) (*_arg5));
9002 _resultobj = t_output_helper(_resultobj, o);
9003 }
9004 {
9005 if (_obj1)
9006 delete _arg1;
9007 }
9008 return _resultobj;
9009 }
9010
9011 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
9012 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9013 PyObject * _resultobj;
9014 wxColour * _result;
9015 wxDC * _arg0;
9016 PyObject * _argo0 = 0;
9017 char *_kwnames[] = { "self", NULL };
9018 char _ptemp[128];
9019
9020 self = self;
9021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
9022 return NULL;
9023 if (_argo0) {
9024 if (_argo0 == Py_None) { _arg0 = NULL; }
9025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
9027 return NULL;
9028 }
9029 }
9030 {
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 _result = new wxColour (wxDC_GetTextForeground(_arg0));
9033
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) return NULL;
9036 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
9037 _resultobj = Py_BuildValue("s",_ptemp);
9038 return _resultobj;
9039 }
9040
9041 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
9042 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject * _resultobj;
9044 wxDC * _arg0;
9045 double * _arg1;
9046 double temp;
9047 double * _arg2;
9048 double temp0;
9049 PyObject * _argo0 = 0;
9050 char *_kwnames[] = { "self", NULL };
9051
9052 self = self;
9053 {
9054 _arg1 = &temp;
9055 }
9056 {
9057 _arg2 = &temp0;
9058 }
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
9060 return NULL;
9061 if (_argo0) {
9062 if (_argo0 == Py_None) { _arg0 = NULL; }
9063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
9065 return NULL;
9066 }
9067 }
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 wxDC_GetUserScale(_arg0,_arg1,_arg2);
9071
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) return NULL;
9074 } Py_INCREF(Py_None);
9075 _resultobj = Py_None;
9076 {
9077 PyObject *o;
9078 o = PyFloat_FromDouble((double) (*_arg1));
9079 _resultobj = t_output_helper(_resultobj, o);
9080 }
9081 {
9082 PyObject *o;
9083 o = PyFloat_FromDouble((double) (*_arg2));
9084 _resultobj = t_output_helper(_resultobj, o);
9085 }
9086 return _resultobj;
9087 }
9088
9089 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
9090 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
9091 PyObject * _resultobj;
9092 long _result;
9093 wxDC * _arg0;
9094 long _arg1;
9095 PyObject * _argo0 = 0;
9096 char *_kwnames[] = { "self","x", NULL };
9097
9098 self = self;
9099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
9100 return NULL;
9101 if (_argo0) {
9102 if (_argo0 == Py_None) { _arg0 = NULL; }
9103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
9105 return NULL;
9106 }
9107 }
9108 {
9109 PyThreadState* __tstate = wxPyBeginAllowThreads();
9110 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
9111
9112 wxPyEndAllowThreads(__tstate);
9113 if (PyErr_Occurred()) return NULL;
9114 } _resultobj = Py_BuildValue("l",_result);
9115 return _resultobj;
9116 }
9117
9118 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
9119 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9120 PyObject * _resultobj;
9121 long _result;
9122 wxDC * _arg0;
9123 long _arg1;
9124 PyObject * _argo0 = 0;
9125 char *_kwnames[] = { "self","x", NULL };
9126
9127 self = self;
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
9129 return NULL;
9130 if (_argo0) {
9131 if (_argo0 == Py_None) { _arg0 = NULL; }
9132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
9134 return NULL;
9135 }
9136 }
9137 {
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
9140
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) return NULL;
9143 } _resultobj = Py_BuildValue("l",_result);
9144 return _resultobj;
9145 }
9146
9147 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
9148 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
9149 PyObject * _resultobj;
9150 long _result;
9151 wxDC * _arg0;
9152 long _arg1;
9153 PyObject * _argo0 = 0;
9154 char *_kwnames[] = { "self","y", NULL };
9155
9156 self = self;
9157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
9158 return NULL;
9159 if (_argo0) {
9160 if (_argo0 == Py_None) { _arg0 = NULL; }
9161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
9163 return NULL;
9164 }
9165 }
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) return NULL;
9172 } _resultobj = Py_BuildValue("l",_result);
9173 return _resultobj;
9174 }
9175
9176 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
9177 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9178 PyObject * _resultobj;
9179 long _result;
9180 wxDC * _arg0;
9181 long _arg1;
9182 PyObject * _argo0 = 0;
9183 char *_kwnames[] = { "self","y", NULL };
9184
9185 self = self;
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
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_LogicalToDeviceYRel. Expected _wxDC_p.");
9192 return NULL;
9193 }
9194 }
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) return NULL;
9201 } _resultobj = Py_BuildValue("l",_result);
9202 return _resultobj;
9203 }
9204
9205 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
9206 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
9207 PyObject * _resultobj;
9208 long _result;
9209 wxDC * _arg0;
9210 PyObject * _argo0 = 0;
9211 char *_kwnames[] = { "self", NULL };
9212
9213 self = self;
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
9215 return NULL;
9216 if (_argo0) {
9217 if (_argo0 == Py_None) { _arg0 = NULL; }
9218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9220 return NULL;
9221 }
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 _result = (long )wxDC_MaxX(_arg0);
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) return NULL;
9229 } _resultobj = Py_BuildValue("l",_result);
9230 return _resultobj;
9231 }
9232
9233 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9234 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
9235 PyObject * _resultobj;
9236 long _result;
9237 wxDC * _arg0;
9238 PyObject * _argo0 = 0;
9239 char *_kwnames[] = { "self", NULL };
9240
9241 self = self;
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
9243 return NULL;
9244 if (_argo0) {
9245 if (_argo0 == Py_None) { _arg0 = NULL; }
9246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9248 return NULL;
9249 }
9250 }
9251 {
9252 PyThreadState* __tstate = wxPyBeginAllowThreads();
9253 _result = (long )wxDC_MaxY(_arg0);
9254
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) return NULL;
9257 } _resultobj = Py_BuildValue("l",_result);
9258 return _resultobj;
9259 }
9260
9261 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9262 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
9263 PyObject * _resultobj;
9264 long _result;
9265 wxDC * _arg0;
9266 PyObject * _argo0 = 0;
9267 char *_kwnames[] = { "self", NULL };
9268
9269 self = self;
9270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
9271 return NULL;
9272 if (_argo0) {
9273 if (_argo0 == Py_None) { _arg0 = NULL; }
9274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9276 return NULL;
9277 }
9278 }
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 _result = (long )wxDC_MinX(_arg0);
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) return NULL;
9285 } _resultobj = Py_BuildValue("l",_result);
9286 return _resultobj;
9287 }
9288
9289 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9290 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
9291 PyObject * _resultobj;
9292 long _result;
9293 wxDC * _arg0;
9294 PyObject * _argo0 = 0;
9295 char *_kwnames[] = { "self", NULL };
9296
9297 self = self;
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
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_MinY. Expected _wxDC_p.");
9304 return NULL;
9305 }
9306 }
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 _result = (long )wxDC_MinY(_arg0);
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) return NULL;
9313 } _resultobj = Py_BuildValue("l",_result);
9314 return _resultobj;
9315 }
9316
9317 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9318 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9319 PyObject * _resultobj;
9320 bool _result;
9321 wxDC * _arg0;
9322 PyObject * _argo0 = 0;
9323 char *_kwnames[] = { "self", NULL };
9324
9325 self = self;
9326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_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_Ok. Expected _wxDC_p.");
9332 return NULL;
9333 }
9334 }
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 _result = (bool )wxDC_Ok(_arg0);
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) return NULL;
9341 } _resultobj = Py_BuildValue("i",_result);
9342 return _resultobj;
9343 }
9344
9345 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9346 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9347 PyObject * _resultobj;
9348 wxDC * _arg0;
9349 long _arg1;
9350 long _arg2;
9351 PyObject * _argo0 = 0;
9352 char *_kwnames[] = { "self","x","y", NULL };
9353
9354 self = self;
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9356 return NULL;
9357 if (_argo0) {
9358 if (_argo0 == Py_None) { _arg0 = NULL; }
9359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9361 return NULL;
9362 }
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) return NULL;
9370 } Py_INCREF(Py_None);
9371 _resultobj = Py_None;
9372 return _resultobj;
9373 }
9374
9375 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9376 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9377 PyObject * _resultobj;
9378 wxDC * _arg0;
9379 wxBrush * _arg1;
9380 PyObject * _argo0 = 0;
9381 PyObject * _argo1 = 0;
9382 char *_kwnames[] = { "self","brush", NULL };
9383
9384 self = self;
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
9386 return NULL;
9387 if (_argo0) {
9388 if (_argo0 == Py_None) { _arg0 = NULL; }
9389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9391 return NULL;
9392 }
9393 }
9394 if (_argo1) {
9395 if (_argo1 == Py_None) { _arg1 = NULL; }
9396 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9397 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9398 return NULL;
9399 }
9400 }
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 wxDC_SetBackground(_arg0,*_arg1);
9404
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) return NULL;
9407 } Py_INCREF(Py_None);
9408 _resultobj = Py_None;
9409 return _resultobj;
9410 }
9411
9412 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9413 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject * _resultobj;
9415 wxDC * _arg0;
9416 int _arg1;
9417 PyObject * _argo0 = 0;
9418 char *_kwnames[] = { "self","mode", NULL };
9419
9420 self = self;
9421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
9422 return NULL;
9423 if (_argo0) {
9424 if (_argo0 == Py_None) { _arg0 = NULL; }
9425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9427 return NULL;
9428 }
9429 }
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 wxDC_SetBackgroundMode(_arg0,_arg1);
9433
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) return NULL;
9436 } Py_INCREF(Py_None);
9437 _resultobj = Py_None;
9438 return _resultobj;
9439 }
9440
9441 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9442 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject * _resultobj;
9444 wxDC * _arg0;
9445 long _arg1;
9446 long _arg2;
9447 long _arg3;
9448 long _arg4;
9449 PyObject * _argo0 = 0;
9450 char *_kwnames[] = { "self","x","y","width","height", NULL };
9451
9452 self = self;
9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9454 return NULL;
9455 if (_argo0) {
9456 if (_argo0 == Py_None) { _arg0 = NULL; }
9457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9459 return NULL;
9460 }
9461 }
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
9465
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) return NULL;
9468 } Py_INCREF(Py_None);
9469 _resultobj = Py_None;
9470 return _resultobj;
9471 }
9472
9473 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9474 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9475 PyObject * _resultobj;
9476 wxDC * _arg0;
9477 wxRegion * _arg1;
9478 PyObject * _argo0 = 0;
9479 PyObject * _argo1 = 0;
9480 char *_kwnames[] = { "self","region", NULL };
9481
9482 self = self;
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
9484 return NULL;
9485 if (_argo0) {
9486 if (_argo0 == Py_None) { _arg0 = NULL; }
9487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9489 return NULL;
9490 }
9491 }
9492 if (_argo1) {
9493 if (_argo1 == Py_None) { _arg1 = NULL; }
9494 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9495 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9496 return NULL;
9497 }
9498 }
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
9502
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) return NULL;
9505 } Py_INCREF(Py_None);
9506 _resultobj = Py_None;
9507 return _resultobj;
9508 }
9509
9510 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9511 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
9512 PyObject * _resultobj;
9513 wxDC * _arg0;
9514 wxPalette * _arg1;
9515 PyObject * _argo0 = 0;
9516 PyObject * _argo1 = 0;
9517 char *_kwnames[] = { "self","colourMap", NULL };
9518
9519 self = self;
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
9521 return NULL;
9522 if (_argo0) {
9523 if (_argo0 == Py_None) { _arg0 = NULL; }
9524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9526 return NULL;
9527 }
9528 }
9529 if (_argo1) {
9530 if (_argo1 == Py_None) { _arg1 = NULL; }
9531 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
9532 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9533 return NULL;
9534 }
9535 }
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 wxDC_SetPalette(_arg0,*_arg1);
9539
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) return NULL;
9542 } Py_INCREF(Py_None);
9543 _resultobj = Py_None;
9544 return _resultobj;
9545 }
9546
9547 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9548 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
9549 PyObject * _resultobj;
9550 wxDC * _arg0;
9551 wxBrush * _arg1;
9552 PyObject * _argo0 = 0;
9553 PyObject * _argo1 = 0;
9554 char *_kwnames[] = { "self","brush", NULL };
9555
9556 self = self;
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
9558 return NULL;
9559 if (_argo0) {
9560 if (_argo0 == Py_None) { _arg0 = NULL; }
9561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9563 return NULL;
9564 }
9565 }
9566 if (_argo1) {
9567 if (_argo1 == Py_None) { _arg1 = NULL; }
9568 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9569 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9570 return NULL;
9571 }
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 wxDC_SetBrush(_arg0,*_arg1);
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) return NULL;
9579 } Py_INCREF(Py_None);
9580 _resultobj = Py_None;
9581 return _resultobj;
9582 }
9583
9584 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9585 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9586 PyObject * _resultobj;
9587 wxDC * _arg0;
9588 wxFont * _arg1;
9589 PyObject * _argo0 = 0;
9590 PyObject * _argo1 = 0;
9591 char *_kwnames[] = { "self","font", NULL };
9592
9593 self = self;
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
9595 return NULL;
9596 if (_argo0) {
9597 if (_argo0 == Py_None) { _arg0 = NULL; }
9598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9600 return NULL;
9601 }
9602 }
9603 if (_argo1) {
9604 if (_argo1 == Py_None) { _arg1 = NULL; }
9605 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
9606 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9607 return NULL;
9608 }
9609 }
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 wxDC_SetFont(_arg0,*_arg1);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) return NULL;
9616 } Py_INCREF(Py_None);
9617 _resultobj = Py_None;
9618 return _resultobj;
9619 }
9620
9621 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9622 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject * _resultobj;
9624 wxDC * _arg0;
9625 int _arg1;
9626 PyObject * _argo0 = 0;
9627 char *_kwnames[] = { "self","function", NULL };
9628
9629 self = self;
9630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
9631 return NULL;
9632 if (_argo0) {
9633 if (_argo0 == Py_None) { _arg0 = NULL; }
9634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9636 return NULL;
9637 }
9638 }
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 wxDC_SetLogicalFunction(_arg0,_arg1);
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) return NULL;
9645 } Py_INCREF(Py_None);
9646 _resultobj = Py_None;
9647 return _resultobj;
9648 }
9649
9650 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9651 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9652 PyObject * _resultobj;
9653 wxDC * _arg0;
9654 double _arg1;
9655 double _arg2;
9656 PyObject * _argo0 = 0;
9657 char *_kwnames[] = { "self","x","y", NULL };
9658
9659 self = self;
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
9661 return NULL;
9662 if (_argo0) {
9663 if (_argo0 == Py_None) { _arg0 = NULL; }
9664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9666 return NULL;
9667 }
9668 }
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) return NULL;
9675 } Py_INCREF(Py_None);
9676 _resultobj = Py_None;
9677 return _resultobj;
9678 }
9679
9680 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9681 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9682 PyObject * _resultobj;
9683 wxDC * _arg0;
9684 int _arg1;
9685 PyObject * _argo0 = 0;
9686 char *_kwnames[] = { "self","mode", NULL };
9687
9688 self = self;
9689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
9690 return NULL;
9691 if (_argo0) {
9692 if (_argo0 == Py_None) { _arg0 = NULL; }
9693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9695 return NULL;
9696 }
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 wxDC_SetMapMode(_arg0,_arg1);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) return NULL;
9704 } Py_INCREF(Py_None);
9705 _resultobj = Py_None;
9706 return _resultobj;
9707 }
9708
9709 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9710 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject * _resultobj;
9712 wxDC * _arg0;
9713 bool _arg1;
9714 PyObject * _argo0 = 0;
9715 int tempbool1;
9716 char *_kwnames[] = { "self","optimize", NULL };
9717
9718 self = self;
9719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
9720 return NULL;
9721 if (_argo0) {
9722 if (_argo0 == Py_None) { _arg0 = NULL; }
9723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9725 return NULL;
9726 }
9727 }
9728 _arg1 = (bool ) tempbool1;
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 wxDC_SetOptimization(_arg0,_arg1);
9732
9733 wxPyEndAllowThreads(__tstate);
9734 if (PyErr_Occurred()) return NULL;
9735 } Py_INCREF(Py_None);
9736 _resultobj = Py_None;
9737 return _resultobj;
9738 }
9739
9740 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9741 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
9742 PyObject * _resultobj;
9743 wxDC * _arg0;
9744 wxPen * _arg1;
9745 PyObject * _argo0 = 0;
9746 PyObject * _argo1 = 0;
9747 char *_kwnames[] = { "self","pen", NULL };
9748
9749 self = self;
9750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
9751 return NULL;
9752 if (_argo0) {
9753 if (_argo0 == Py_None) { _arg0 = NULL; }
9754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9756 return NULL;
9757 }
9758 }
9759 if (_argo1) {
9760 if (_argo1 == Py_None) { _arg1 = NULL; }
9761 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
9762 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9763 return NULL;
9764 }
9765 }
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 wxDC_SetPen(_arg0,*_arg1);
9769
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) return NULL;
9772 } Py_INCREF(Py_None);
9773 _resultobj = Py_None;
9774 return _resultobj;
9775 }
9776
9777 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9778 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9779 PyObject * _resultobj;
9780 wxDC * _arg0;
9781 wxColour * _arg1;
9782 PyObject * _argo0 = 0;
9783 wxColour temp;
9784 PyObject * _obj1 = 0;
9785 char *_kwnames[] = { "self","colour", NULL };
9786
9787 self = self;
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
9789 return NULL;
9790 if (_argo0) {
9791 if (_argo0 == Py_None) { _arg0 = NULL; }
9792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9794 return NULL;
9795 }
9796 }
9797 {
9798 _arg1 = &temp;
9799 if (! wxColour_helper(_obj1, &_arg1))
9800 return NULL;
9801 }
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 wxDC_SetTextBackground(_arg0,*_arg1);
9805
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) return NULL;
9808 } Py_INCREF(Py_None);
9809 _resultobj = Py_None;
9810 return _resultobj;
9811 }
9812
9813 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9814 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9815 PyObject * _resultobj;
9816 wxDC * _arg0;
9817 wxColour * _arg1;
9818 PyObject * _argo0 = 0;
9819 wxColour temp;
9820 PyObject * _obj1 = 0;
9821 char *_kwnames[] = { "self","colour", NULL };
9822
9823 self = self;
9824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9825 return NULL;
9826 if (_argo0) {
9827 if (_argo0 == Py_None) { _arg0 = NULL; }
9828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9830 return NULL;
9831 }
9832 }
9833 {
9834 _arg1 = &temp;
9835 if (! wxColour_helper(_obj1, &_arg1))
9836 return NULL;
9837 }
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 wxDC_SetTextForeground(_arg0,*_arg1);
9841
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) return NULL;
9844 } Py_INCREF(Py_None);
9845 _resultobj = Py_None;
9846 return _resultobj;
9847 }
9848
9849 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9850 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject * _resultobj;
9852 wxDC * _arg0;
9853 double _arg1;
9854 double _arg2;
9855 PyObject * _argo0 = 0;
9856 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9857
9858 self = self;
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
9860 return NULL;
9861 if (_argo0) {
9862 if (_argo0 == Py_None) { _arg0 = NULL; }
9863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9865 return NULL;
9866 }
9867 }
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 wxDC_SetUserScale(_arg0,_arg1,_arg2);
9871
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) return NULL;
9874 } Py_INCREF(Py_None);
9875 _resultobj = Py_None;
9876 return _resultobj;
9877 }
9878
9879 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9880 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9881 PyObject * _resultobj;
9882 bool _result;
9883 wxDC * _arg0;
9884 wxString * _arg1;
9885 PyObject * _argo0 = 0;
9886 PyObject * _obj1 = 0;
9887 char *_kwnames[] = { "self","message", NULL };
9888
9889 self = self;
9890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9891 return NULL;
9892 if (_argo0) {
9893 if (_argo0 == Py_None) { _arg0 = NULL; }
9894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9896 return NULL;
9897 }
9898 }
9899 {
9900 #if PYTHON_API_VERSION >= 1009
9901 char* tmpPtr; int tmpSize;
9902 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9903 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9904 return NULL;
9905 }
9906 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9907 return NULL;
9908 _arg1 = new wxString(tmpPtr, tmpSize);
9909 #else
9910 if (!PyString_Check(_obj1)) {
9911 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9912 return NULL;
9913 }
9914 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9915 #endif
9916 }
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9920
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) return NULL;
9923 } _resultobj = Py_BuildValue("i",_result);
9924 {
9925 if (_obj1)
9926 delete _arg1;
9927 }
9928 return _resultobj;
9929 }
9930
9931 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9932 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject * _resultobj;
9934 wxDC * _arg0;
9935 PyObject * _argo0 = 0;
9936 char *_kwnames[] = { "self", NULL };
9937
9938 self = self;
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9940 return NULL;
9941 if (_argo0) {
9942 if (_argo0 == Py_None) { _arg0 = NULL; }
9943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9945 return NULL;
9946 }
9947 }
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 wxDC_StartPage(_arg0);
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) return NULL;
9954 } Py_INCREF(Py_None);
9955 _resultobj = Py_None;
9956 return _resultobj;
9957 }
9958
9959 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9960 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject * _resultobj;
9962 wxDC * _arg0;
9963 wxBitmap * _arg1;
9964 long _arg2;
9965 long _arg3;
9966 int _arg4 = (int ) FALSE;
9967 PyObject * _argo0 = 0;
9968 PyObject * _argo1 = 0;
9969 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9970
9971 self = self;
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9973 return NULL;
9974 if (_argo0) {
9975 if (_argo0 == Py_None) { _arg0 = NULL; }
9976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9978 return NULL;
9979 }
9980 }
9981 if (_argo1) {
9982 if (_argo1 == Py_None) { _arg1 = NULL; }
9983 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9984 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9985 return NULL;
9986 }
9987 }
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9991
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) return NULL;
9994 } Py_INCREF(Py_None);
9995 _resultobj = Py_None;
9996 return _resultobj;
9997 }
9998
9999 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
10000 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10001 PyObject * _resultobj;
10002 bool _result;
10003 wxDC * _arg0;
10004 PyObject * _argo0 = 0;
10005 char *_kwnames[] = { "self", NULL };
10006
10007 self = self;
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
10009 return NULL;
10010 if (_argo0) {
10011 if (_argo0 == Py_None) { _arg0 = NULL; }
10012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
10014 return NULL;
10015 }
10016 }
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 _result = (bool )wxDC_CanDrawBitmap(_arg0);
10020
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) return NULL;
10023 } _resultobj = Py_BuildValue("i",_result);
10024 return _resultobj;
10025 }
10026
10027 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
10028 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
10029 PyObject * _resultobj;
10030 bool _result;
10031 wxDC * _arg0;
10032 PyObject * _argo0 = 0;
10033 char *_kwnames[] = { "self", NULL };
10034
10035 self = self;
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
10037 return NULL;
10038 if (_argo0) {
10039 if (_argo0 == Py_None) { _arg0 = NULL; }
10040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
10042 return NULL;
10043 }
10044 }
10045 {
10046 PyThreadState* __tstate = wxPyBeginAllowThreads();
10047 _result = (bool )wxDC_CanGetTextExtent(_arg0);
10048
10049 wxPyEndAllowThreads(__tstate);
10050 if (PyErr_Occurred()) return NULL;
10051 } _resultobj = Py_BuildValue("i",_result);
10052 return _resultobj;
10053 }
10054
10055 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
10056 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
10057 PyObject * _resultobj;
10058 int _result;
10059 wxDC * _arg0;
10060 PyObject * _argo0 = 0;
10061 char *_kwnames[] = { "self", NULL };
10062
10063 self = self;
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
10065 return NULL;
10066 if (_argo0) {
10067 if (_argo0 == Py_None) { _arg0 = NULL; }
10068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
10070 return NULL;
10071 }
10072 }
10073 {
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 _result = (int )wxDC_GetDepth(_arg0);
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) return NULL;
10079 } _resultobj = Py_BuildValue("i",_result);
10080 return _resultobj;
10081 }
10082
10083 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
10084 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
10085 PyObject * _resultobj;
10086 wxSize * _result;
10087 wxDC * _arg0;
10088 PyObject * _argo0 = 0;
10089 char *_kwnames[] = { "self", NULL };
10090 char _ptemp[128];
10091
10092 self = self;
10093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
10094 return NULL;
10095 if (_argo0) {
10096 if (_argo0 == Py_None) { _arg0 = NULL; }
10097 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10098 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
10099 return NULL;
10100 }
10101 }
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 _result = new wxSize (wxDC_GetPPI(_arg0));
10105
10106 wxPyEndAllowThreads(__tstate);
10107 if (PyErr_Occurred()) return NULL;
10108 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10109 _resultobj = Py_BuildValue("s",_ptemp);
10110 return _resultobj;
10111 }
10112
10113 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
10114 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10115 PyObject * _resultobj;
10116 wxDC * _arg0;
10117 int * _arg1;
10118 int temp;
10119 int * _arg2;
10120 int temp0;
10121 PyObject * _argo0 = 0;
10122 char *_kwnames[] = { "self", NULL };
10123
10124 self = self;
10125 {
10126 _arg1 = &temp;
10127 }
10128 {
10129 _arg2 = &temp0;
10130 }
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
10132 return NULL;
10133 if (_argo0) {
10134 if (_argo0 == Py_None) { _arg0 = NULL; }
10135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
10137 return NULL;
10138 }
10139 }
10140 {
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
10143
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) return NULL;
10146 } Py_INCREF(Py_None);
10147 _resultobj = Py_None;
10148 {
10149 PyObject *o;
10150 o = PyInt_FromLong((long) (*_arg1));
10151 _resultobj = t_output_helper(_resultobj, o);
10152 }
10153 {
10154 PyObject *o;
10155 o = PyInt_FromLong((long) (*_arg2));
10156 _resultobj = t_output_helper(_resultobj, o);
10157 }
10158 return _resultobj;
10159 }
10160
10161 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
10162 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10163 PyObject * _resultobj;
10164 wxDC * _arg0;
10165 int _arg1;
10166 int _arg2;
10167 PyObject * _argo0 = 0;
10168 char *_kwnames[] = { "self","x","y", NULL };
10169
10170 self = self;
10171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
10172 return NULL;
10173 if (_argo0) {
10174 if (_argo0 == Py_None) { _arg0 = NULL; }
10175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
10177 return NULL;
10178 }
10179 }
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) return NULL;
10186 } Py_INCREF(Py_None);
10187 _resultobj = Py_None;
10188 return _resultobj;
10189 }
10190
10191 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
10192 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10193 PyObject * _resultobj;
10194 wxDC * _arg0;
10195 int * _arg1;
10196 int temp;
10197 int * _arg2;
10198 int temp0;
10199 PyObject * _argo0 = 0;
10200 char *_kwnames[] = { "self", NULL };
10201
10202 self = self;
10203 {
10204 _arg1 = &temp;
10205 }
10206 {
10207 _arg2 = &temp0;
10208 }
10209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
10210 return NULL;
10211 if (_argo0) {
10212 if (_argo0 == Py_None) { _arg0 = NULL; }
10213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
10215 return NULL;
10216 }
10217 }
10218 {
10219 PyThreadState* __tstate = wxPyBeginAllowThreads();
10220 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
10221
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) return NULL;
10224 } Py_INCREF(Py_None);
10225 _resultobj = Py_None;
10226 {
10227 PyObject *o;
10228 o = PyInt_FromLong((long) (*_arg1));
10229 _resultobj = t_output_helper(_resultobj, o);
10230 }
10231 {
10232 PyObject *o;
10233 o = PyInt_FromLong((long) (*_arg2));
10234 _resultobj = t_output_helper(_resultobj, o);
10235 }
10236 return _resultobj;
10237 }
10238
10239 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10240 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10241 PyObject * _resultobj;
10242 wxDC * _arg0;
10243 bool _arg1;
10244 bool _arg2;
10245 PyObject * _argo0 = 0;
10246 int tempbool1;
10247 int tempbool2;
10248 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
10249
10250 self = self;
10251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
10252 return NULL;
10253 if (_argo0) {
10254 if (_argo0 == Py_None) { _arg0 = NULL; }
10255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10257 return NULL;
10258 }
10259 }
10260 _arg1 = (bool ) tempbool1;
10261 _arg2 = (bool ) tempbool2;
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
10265
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) return NULL;
10268 } Py_INCREF(Py_None);
10269 _resultobj = Py_None;
10270 return _resultobj;
10271 }
10272
10273 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10274 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10275 PyObject * _resultobj;
10276 wxDC * _arg0;
10277 int _arg1;
10278 int _arg2;
10279 PyObject * _argo0 = 0;
10280 char *_kwnames[] = { "self","x","y", NULL };
10281
10282 self = self;
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
10284 return NULL;
10285 if (_argo0) {
10286 if (_argo0 == Py_None) { _arg0 = NULL; }
10287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10289 return NULL;
10290 }
10291 }
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) return NULL;
10298 } Py_INCREF(Py_None);
10299 _resultobj = Py_None;
10300 return _resultobj;
10301 }
10302
10303 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10304 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10305 PyObject * _resultobj;
10306 wxDC * _arg0;
10307 PyObject * _argo0 = 0;
10308 char *_kwnames[] = { "self", NULL };
10309
10310 self = self;
10311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
10312 return NULL;
10313 if (_argo0) {
10314 if (_argo0 == Py_None) { _arg0 = NULL; }
10315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10317 return NULL;
10318 }
10319 }
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 wxDC_ResetBoundingBox(_arg0);
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) return NULL;
10326 } Py_INCREF(Py_None);
10327 _resultobj = Py_None;
10328 return _resultobj;
10329 }
10330
10331 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10332 PyObject * _resultobj;
10333 wxDC * _arg0;
10334 int * _arg1;
10335 int temp;
10336 int * _arg2;
10337 int temp0;
10338 int * _arg3;
10339 int temp1;
10340 int * _arg4;
10341 int temp2;
10342 PyObject * _argo0 = 0;
10343 char *_kwnames[] = { "self", NULL };
10344
10345 self = self;
10346 {
10347 _arg1 = &temp;
10348 }
10349 {
10350 _arg2 = &temp0;
10351 }
10352 {
10353 _arg3 = &temp1;
10354 }
10355 {
10356 _arg4 = &temp2;
10357 }
10358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
10359 return NULL;
10360 if (_argo0) {
10361 if (_argo0 == Py_None) { _arg0 = NULL; }
10362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10364 return NULL;
10365 }
10366 }
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
10370
10371 wxPyEndAllowThreads(__tstate);
10372 if (PyErr_Occurred()) return NULL;
10373 } Py_INCREF(Py_None);
10374 _resultobj = Py_None;
10375 {
10376 PyObject *o;
10377 o = PyInt_FromLong((long) (*_arg1));
10378 _resultobj = t_output_helper(_resultobj, o);
10379 }
10380 {
10381 PyObject *o;
10382 o = PyInt_FromLong((long) (*_arg2));
10383 _resultobj = t_output_helper(_resultobj, o);
10384 }
10385 {
10386 PyObject *o;
10387 o = PyInt_FromLong((long) (*_arg3));
10388 _resultobj = t_output_helper(_resultobj, o);
10389 }
10390 {
10391 PyObject *o;
10392 o = PyInt_FromLong((long) (*_arg4));
10393 _resultobj = t_output_helper(_resultobj, o);
10394 }
10395 return _resultobj;
10396 }
10397
10398 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10399 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10400 PyObject * _resultobj;
10401 long _result;
10402 wxDC * _arg0;
10403 PyObject * _argo0 = 0;
10404 char *_kwnames[] = { "self", NULL };
10405
10406 self = self;
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
10408 return NULL;
10409 if (_argo0) {
10410 if (_argo0 == Py_None) { _arg0 = NULL; }
10411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10413 return NULL;
10414 }
10415 }
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 _result = (long )wxDC_GetHDC(_arg0);
10419
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) return NULL;
10422 } _resultobj = Py_BuildValue("l",_result);
10423 return _resultobj;
10424 }
10425
10426 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
10427 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
10428 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10429 int numObjs = 0;
10430 int numPens = 0;
10431 wxPen* pen;
10432 PyObject* obj;
10433 int x1, y1;
10434 int i = 0;
10435
10436 if (!PySequence_Check(pyPoints)) {
10437 goto err0;
10438 }
10439 if (!PySequence_Check(pyPens)) {
10440 goto err1;
10441 }
10442 numObjs = PySequence_Length(pyPoints);
10443 numPens = PySequence_Length(pyPens);
10444
10445 for (i = 0; i < numObjs; i++) {
10446 // Use a new pen?
10447 if (i < numPens) {
10448 if (isFastPens) {
10449 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10450 }
10451 else {
10452 obj = PySequence_GetItem(pyPens, i);
10453 }
10454 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10455 if (!isFastPens)
10456 Py_DECREF(obj);
10457 goto err1;
10458 }
10459
10460 self->SetPen(*pen);
10461 if (!isFastPens)
10462 Py_DECREF(obj);
10463 }
10464
10465 // Get the point coordinants
10466 if (isFastSeq) {
10467 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
10468 }
10469 else {
10470 obj = PySequence_GetItem(pyPoints, i);
10471 }
10472 if (! _2int_seq_helper(obj, &x1, &y1)) {
10473 if (!isFastPens)
10474 Py_DECREF(obj);
10475 goto err0;
10476 }
10477
10478 // Now draw the point
10479 self->DrawPoint(x1, y1);
10480
10481 if (!isFastSeq)
10482 Py_DECREF(obj);
10483 }
10484
10485 Py_INCREF(Py_None);
10486 return Py_None;
10487
10488 err1:
10489 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10490 return NULL;
10491 err0:
10492 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
10493 return NULL;
10494 }
10495 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
10496 PyObject * _resultobj;
10497 PyObject * _result;
10498 wxDC * _arg0;
10499 PyObject * _arg1;
10500 PyObject * _arg2;
10501 PyObject * _argo0 = 0;
10502 PyObject * _obj1 = 0;
10503 PyObject * _obj2 = 0;
10504 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
10505
10506 self = self;
10507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
10508 return NULL;
10509 if (_argo0) {
10510 if (_argo0 == Py_None) { _arg0 = NULL; }
10511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10513 return NULL;
10514 }
10515 }
10516 {
10517 _arg1 = _obj1;
10518 }
10519 {
10520 _arg2 = _obj2;
10521 }
10522 {
10523 PyThreadState* __tstate = wxPyBeginAllowThreads();
10524 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
10525
10526 wxPyEndAllowThreads(__tstate);
10527 if (PyErr_Occurred()) return NULL;
10528 }{
10529 _resultobj = _result;
10530 }
10531 return _resultobj;
10532 }
10533
10534 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
10535 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
10536 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10537 int numObjs = 0;
10538 int numPens = 0;
10539 wxPen* pen;
10540 PyObject* obj;
10541 int x1, y1, x2, y2;
10542 int i = 0;
10543
10544 if (!PySequence_Check(pyLines)) {
10545 goto err0;
10546 }
10547 if (!PySequence_Check(pyPens)) {
10548 goto err1;
10549 }
10550 numObjs = PySequence_Length(pyLines);
10551 numPens = PySequence_Length(pyPens);
10552
10553 for (i = 0; i < numObjs; i++) {
10554 // Use a new pen?
10555 if (i < numPens) {
10556 if (isFastPens) {
10557 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10558 }
10559 else {
10560 obj = PySequence_GetItem(pyPens, i);
10561 }
10562 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10563 if (!isFastPens)
10564 Py_DECREF(obj);
10565 goto err1;
10566 }
10567
10568 self->SetPen(*pen);
10569 if (!isFastPens)
10570 Py_DECREF(obj);
10571 }
10572
10573 // Get the line coordinants
10574 if (isFastSeq) {
10575 obj = PySequence_Fast_GET_ITEM(pyLines, i);
10576 }
10577 else {
10578 obj = PySequence_GetItem(pyLines, i);
10579 }
10580 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
10581 if (!isFastPens)
10582 Py_DECREF(obj);
10583 goto err0;
10584 }
10585
10586 // Now draw the line
10587 self->DrawLine(x1, y1, x2, y2);
10588
10589 if (!isFastSeq)
10590 Py_DECREF(obj);
10591 }
10592
10593 Py_INCREF(Py_None);
10594 return Py_None;
10595
10596 err1:
10597 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10598 return NULL;
10599 err0:
10600 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10601 return NULL;
10602 }
10603 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
10604 PyObject * _resultobj;
10605 PyObject * _result;
10606 wxDC * _arg0;
10607 PyObject * _arg1;
10608 PyObject * _arg2;
10609 PyObject * _argo0 = 0;
10610 PyObject * _obj1 = 0;
10611 PyObject * _obj2 = 0;
10612 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
10613
10614 self = self;
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
10616 return NULL;
10617 if (_argo0) {
10618 if (_argo0 == Py_None) { _arg0 = NULL; }
10619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10621 return NULL;
10622 }
10623 }
10624 {
10625 _arg1 = _obj1;
10626 }
10627 {
10628 _arg2 = _obj2;
10629 }
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) return NULL;
10636 }{
10637 _resultobj = _result;
10638 }
10639 return _resultobj;
10640 }
10641
10642 static void *SwigwxMemoryDCTowxDC(void *ptr) {
10643 wxMemoryDC *src;
10644 wxDC *dest;
10645 src = (wxMemoryDC *) ptr;
10646 dest = (wxDC *) src;
10647 return (void *) dest;
10648 }
10649
10650 static void *SwigwxMemoryDCTowxObject(void *ptr) {
10651 wxMemoryDC *src;
10652 wxObject *dest;
10653 src = (wxMemoryDC *) ptr;
10654 dest = (wxObject *) src;
10655 return (void *) dest;
10656 }
10657
10658 #define new_wxMemoryDC() (new wxMemoryDC())
10659 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10660 PyObject * _resultobj;
10661 wxMemoryDC * _result;
10662 char *_kwnames[] = { NULL };
10663 char _ptemp[128];
10664
10665 self = self;
10666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
10667 return NULL;
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 _result = (wxMemoryDC *)new_wxMemoryDC();
10671
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) return NULL;
10674 } if (_result) {
10675 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
10676 _resultobj = Py_BuildValue("s",_ptemp);
10677 } else {
10678 Py_INCREF(Py_None);
10679 _resultobj = Py_None;
10680 }
10681 return _resultobj;
10682 }
10683
10684 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10685 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
10686 PyObject * _resultobj;
10687 wxMemoryDC * _arg0;
10688 wxBitmap * _arg1;
10689 PyObject * _argo0 = 0;
10690 PyObject * _argo1 = 0;
10691 char *_kwnames[] = { "self","bitmap", NULL };
10692
10693 self = self;
10694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
10695 return NULL;
10696 if (_argo0) {
10697 if (_argo0 == Py_None) { _arg0 = NULL; }
10698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
10699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10700 return NULL;
10701 }
10702 }
10703 if (_argo1) {
10704 if (_argo1 == Py_None) { _arg1 = NULL; }
10705 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10706 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10707 return NULL;
10708 }
10709 }
10710 {
10711 PyThreadState* __tstate = wxPyBeginAllowThreads();
10712 wxMemoryDC_SelectObject(_arg0,*_arg1);
10713
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) return NULL;
10716 } Py_INCREF(Py_None);
10717 _resultobj = Py_None;
10718 return _resultobj;
10719 }
10720
10721 static void *SwigwxScreenDCTowxDC(void *ptr) {
10722 wxScreenDC *src;
10723 wxDC *dest;
10724 src = (wxScreenDC *) ptr;
10725 dest = (wxDC *) src;
10726 return (void *) dest;
10727 }
10728
10729 static void *SwigwxScreenDCTowxObject(void *ptr) {
10730 wxScreenDC *src;
10731 wxObject *dest;
10732 src = (wxScreenDC *) ptr;
10733 dest = (wxObject *) src;
10734 return (void *) dest;
10735 }
10736
10737 #define new_wxScreenDC() (new wxScreenDC())
10738 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject * _resultobj;
10740 wxScreenDC * _result;
10741 char *_kwnames[] = { NULL };
10742 char _ptemp[128];
10743
10744 self = self;
10745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
10746 return NULL;
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 _result = (wxScreenDC *)new_wxScreenDC();
10750
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) return NULL;
10753 } if (_result) {
10754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
10755 _resultobj = Py_BuildValue("s",_ptemp);
10756 } else {
10757 Py_INCREF(Py_None);
10758 _resultobj = Py_None;
10759 }
10760 return _resultobj;
10761 }
10762
10763 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10764 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject * _resultobj;
10766 bool _result;
10767 wxScreenDC * _arg0;
10768 wxWindow * _arg1;
10769 PyObject * _argo0 = 0;
10770 PyObject * _argo1 = 0;
10771 char *_kwnames[] = { "self","window", NULL };
10772
10773 self = self;
10774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
10775 return NULL;
10776 if (_argo0) {
10777 if (_argo0 == Py_None) { _arg0 = NULL; }
10778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10780 return NULL;
10781 }
10782 }
10783 if (_argo1) {
10784 if (_argo1 == Py_None) { _arg1 = NULL; }
10785 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10786 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10787 return NULL;
10788 }
10789 }
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) return NULL;
10796 } _resultobj = Py_BuildValue("i",_result);
10797 return _resultobj;
10798 }
10799
10800 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10801 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10802 PyObject * _resultobj;
10803 bool _result;
10804 wxScreenDC * _arg0;
10805 wxRect * _arg1 = (wxRect *) NULL;
10806 PyObject * _argo0 = 0;
10807 wxRect temp;
10808 PyObject * _obj1 = 0;
10809 char *_kwnames[] = { "self","rect", NULL };
10810
10811 self = self;
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
10813 return NULL;
10814 if (_argo0) {
10815 if (_argo0 == Py_None) { _arg0 = NULL; }
10816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10818 return NULL;
10819 }
10820 }
10821 if (_obj1)
10822 {
10823 _arg1 = &temp;
10824 if (! wxRect_helper(_obj1, &_arg1))
10825 return NULL;
10826 }
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) return NULL;
10833 } _resultobj = Py_BuildValue("i",_result);
10834 return _resultobj;
10835 }
10836
10837 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10838 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10839 PyObject * _resultobj;
10840 bool _result;
10841 wxScreenDC * _arg0;
10842 PyObject * _argo0 = 0;
10843 char *_kwnames[] = { "self", NULL };
10844
10845 self = self;
10846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
10847 return NULL;
10848 if (_argo0) {
10849 if (_argo0 == Py_None) { _arg0 = NULL; }
10850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10852 return NULL;
10853 }
10854 }
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) return NULL;
10861 } _resultobj = Py_BuildValue("i",_result);
10862 return _resultobj;
10863 }
10864
10865 static void *SwigwxClientDCTowxDC(void *ptr) {
10866 wxClientDC *src;
10867 wxDC *dest;
10868 src = (wxClientDC *) ptr;
10869 dest = (wxDC *) src;
10870 return (void *) dest;
10871 }
10872
10873 static void *SwigwxClientDCTowxObject(void *ptr) {
10874 wxClientDC *src;
10875 wxObject *dest;
10876 src = (wxClientDC *) ptr;
10877 dest = (wxObject *) src;
10878 return (void *) dest;
10879 }
10880
10881 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10882 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject * _resultobj;
10884 wxClientDC * _result;
10885 wxWindow * _arg0;
10886 PyObject * _argo0 = 0;
10887 char *_kwnames[] = { "win", NULL };
10888 char _ptemp[128];
10889
10890 self = self;
10891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10892 return NULL;
10893 if (_argo0) {
10894 if (_argo0 == Py_None) { _arg0 = NULL; }
10895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10897 return NULL;
10898 }
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 _result = (wxClientDC *)new_wxClientDC(_arg0);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) return NULL;
10906 } if (_result) {
10907 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10908 _resultobj = Py_BuildValue("s",_ptemp);
10909 } else {
10910 Py_INCREF(Py_None);
10911 _resultobj = Py_None;
10912 }
10913 return _resultobj;
10914 }
10915
10916 static void *SwigwxPaintDCTowxDC(void *ptr) {
10917 wxPaintDC *src;
10918 wxDC *dest;
10919 src = (wxPaintDC *) ptr;
10920 dest = (wxDC *) src;
10921 return (void *) dest;
10922 }
10923
10924 static void *SwigwxPaintDCTowxObject(void *ptr) {
10925 wxPaintDC *src;
10926 wxObject *dest;
10927 src = (wxPaintDC *) ptr;
10928 dest = (wxObject *) src;
10929 return (void *) dest;
10930 }
10931
10932 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10933 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10934 PyObject * _resultobj;
10935 wxPaintDC * _result;
10936 wxWindow * _arg0;
10937 PyObject * _argo0 = 0;
10938 char *_kwnames[] = { "win", NULL };
10939 char _ptemp[128];
10940
10941 self = self;
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10943 return NULL;
10944 if (_argo0) {
10945 if (_argo0 == Py_None) { _arg0 = NULL; }
10946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10948 return NULL;
10949 }
10950 }
10951 {
10952 PyThreadState* __tstate = wxPyBeginAllowThreads();
10953 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10954
10955 wxPyEndAllowThreads(__tstate);
10956 if (PyErr_Occurred()) return NULL;
10957 } if (_result) {
10958 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10959 _resultobj = Py_BuildValue("s",_ptemp);
10960 } else {
10961 Py_INCREF(Py_None);
10962 _resultobj = Py_None;
10963 }
10964 return _resultobj;
10965 }
10966
10967 static void *SwigwxWindowDCTowxDC(void *ptr) {
10968 wxWindowDC *src;
10969 wxDC *dest;
10970 src = (wxWindowDC *) ptr;
10971 dest = (wxDC *) src;
10972 return (void *) dest;
10973 }
10974
10975 static void *SwigwxWindowDCTowxObject(void *ptr) {
10976 wxWindowDC *src;
10977 wxObject *dest;
10978 src = (wxWindowDC *) ptr;
10979 dest = (wxObject *) src;
10980 return (void *) dest;
10981 }
10982
10983 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10984 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject * _resultobj;
10986 wxWindowDC * _result;
10987 wxWindow * _arg0;
10988 PyObject * _argo0 = 0;
10989 char *_kwnames[] = { "win", NULL };
10990 char _ptemp[128];
10991
10992 self = self;
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10994 return NULL;
10995 if (_argo0) {
10996 if (_argo0 == Py_None) { _arg0 = NULL; }
10997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10999 return NULL;
11000 }
11001 }
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
11005
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) return NULL;
11008 } if (_result) {
11009 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
11010 _resultobj = Py_BuildValue("s",_ptemp);
11011 } else {
11012 Py_INCREF(Py_None);
11013 _resultobj = Py_None;
11014 }
11015 return _resultobj;
11016 }
11017
11018 static void *SwigwxMetaFileTowxObject(void *ptr) {
11019 wxMetaFile *src;
11020 wxObject *dest;
11021 src = (wxMetaFile *) ptr;
11022 dest = (wxObject *) src;
11023 return (void *) dest;
11024 }
11025
11026 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
11027 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11028 PyObject * _resultobj;
11029 wxMetaFile * _result;
11030 wxString * _arg0 = (wxString *) &wxEmptyString;
11031 PyObject * _obj0 = 0;
11032 char *_kwnames[] = { "filename", NULL };
11033 char _ptemp[128];
11034
11035 self = self;
11036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
11037 return NULL;
11038 if (_obj0)
11039 {
11040 #if PYTHON_API_VERSION >= 1009
11041 char* tmpPtr; int tmpSize;
11042 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
11043 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11044 return NULL;
11045 }
11046 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
11047 return NULL;
11048 _arg0 = new wxString(tmpPtr, tmpSize);
11049 #else
11050 if (!PyString_Check(_obj0)) {
11051 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11052 return NULL;
11053 }
11054 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
11055 #endif
11056 }
11057 {
11058 PyThreadState* __tstate = wxPyBeginAllowThreads();
11059 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
11060
11061 wxPyEndAllowThreads(__tstate);
11062 if (PyErr_Occurred()) return NULL;
11063 } if (_result) {
11064 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11065 _resultobj = Py_BuildValue("s",_ptemp);
11066 } else {
11067 Py_INCREF(Py_None);
11068 _resultobj = Py_None;
11069 }
11070 {
11071 if (_obj0)
11072 delete _arg0;
11073 }
11074 return _resultobj;
11075 }
11076
11077 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
11078 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11079 PyObject * _resultobj;
11080 wxMetaFile * _arg0;
11081 PyObject * _argo0 = 0;
11082 char *_kwnames[] = { "self", NULL };
11083
11084 self = self;
11085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
11086 return NULL;
11087 if (_argo0) {
11088 if (_argo0 == Py_None) { _arg0 = NULL; }
11089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11091 return NULL;
11092 }
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 delete_wxMetaFile(_arg0);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) return NULL;
11100 } Py_INCREF(Py_None);
11101 _resultobj = Py_None;
11102 return _resultobj;
11103 }
11104
11105 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11106 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject * _resultobj;
11108 bool _result;
11109 wxMetaFile * _arg0;
11110 PyObject * _argo0 = 0;
11111 char *_kwnames[] = { "self", NULL };
11112
11113 self = self;
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
11115 return NULL;
11116 if (_argo0) {
11117 if (_argo0 == Py_None) { _arg0 = NULL; }
11118 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11119 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11120 return NULL;
11121 }
11122 }
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 _result = (bool )wxMetaFile_Ok(_arg0);
11126
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) return NULL;
11129 } _resultobj = Py_BuildValue("i",_result);
11130 return _resultobj;
11131 }
11132
11133 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11134 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
11135 PyObject * _resultobj;
11136 bool _result;
11137 wxMetaFile * _arg0;
11138 int _arg1 = (int ) 0;
11139 int _arg2 = (int ) 0;
11140 PyObject * _argo0 = 0;
11141 char *_kwnames[] = { "self","width","height", NULL };
11142
11143 self = self;
11144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
11145 return NULL;
11146 if (_argo0) {
11147 if (_argo0 == Py_None) { _arg0 = NULL; }
11148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11150 return NULL;
11151 }
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) return NULL;
11159 } _resultobj = Py_BuildValue("i",_result);
11160 return _resultobj;
11161 }
11162
11163 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11164 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11165 PyObject * _resultobj;
11166 wxSize * _result;
11167 wxMetaFile * _arg0;
11168 PyObject * _argo0 = 0;
11169 char *_kwnames[] = { "self", NULL };
11170 char _ptemp[128];
11171
11172 self = self;
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
11174 return NULL;
11175 if (_argo0) {
11176 if (_argo0 == Py_None) { _arg0 = NULL; }
11177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11179 return NULL;
11180 }
11181 }
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 _result = new wxSize (wxMetaFile_GetSize(_arg0));
11185
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) return NULL;
11188 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
11189 _resultobj = Py_BuildValue("s",_ptemp);
11190 return _resultobj;
11191 }
11192
11193 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11194 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11195 PyObject * _resultobj;
11196 int _result;
11197 wxMetaFile * _arg0;
11198 PyObject * _argo0 = 0;
11199 char *_kwnames[] = { "self", NULL };
11200
11201 self = self;
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
11203 return NULL;
11204 if (_argo0) {
11205 if (_argo0 == Py_None) { _arg0 = NULL; }
11206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11208 return NULL;
11209 }
11210 }
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 _result = (int )wxMetaFile_GetWidth(_arg0);
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) return NULL;
11217 } _resultobj = Py_BuildValue("i",_result);
11218 return _resultobj;
11219 }
11220
11221 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11222 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11223 PyObject * _resultobj;
11224 int _result;
11225 wxMetaFile * _arg0;
11226 PyObject * _argo0 = 0;
11227 char *_kwnames[] = { "self", NULL };
11228
11229 self = self;
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
11231 return NULL;
11232 if (_argo0) {
11233 if (_argo0 == Py_None) { _arg0 = NULL; }
11234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11236 return NULL;
11237 }
11238 }
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 _result = (int )wxMetaFile_GetHeight(_arg0);
11242
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) return NULL;
11245 } _resultobj = Py_BuildValue("i",_result);
11246 return _resultobj;
11247 }
11248
11249 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11250 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject * _resultobj;
11252 wxString * _result;
11253 wxMetaFile * _arg0;
11254 PyObject * _argo0 = 0;
11255 char *_kwnames[] = { "self", NULL };
11256
11257 self = self;
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
11259 return NULL;
11260 if (_argo0) {
11261 if (_argo0 == Py_None) { _arg0 = NULL; }
11262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11264 return NULL;
11265 }
11266 }
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
11270 _result = (wxString *) &_result_ref;
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) return NULL;
11274 }{
11275 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11276 }
11277 return _resultobj;
11278 }
11279
11280 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
11281 wxMetaFileDC *src;
11282 wxDC *dest;
11283 src = (wxMetaFileDC *) ptr;
11284 dest = (wxDC *) src;
11285 return (void *) dest;
11286 }
11287
11288 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
11289 wxMetaFileDC *src;
11290 wxObject *dest;
11291 src = (wxMetaFileDC *) ptr;
11292 dest = (wxObject *) src;
11293 return (void *) dest;
11294 }
11295
11296 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11297 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11298 PyObject * _resultobj;
11299 wxMetaFileDC * _result;
11300 wxString * _arg0 = (wxString *) &wxEmptyString;
11301 int _arg1 = (int ) 0;
11302 int _arg2 = (int ) 0;
11303 wxString * _arg3 = (wxString *) &wxEmptyString;
11304 PyObject * _obj0 = 0;
11305 PyObject * _obj3 = 0;
11306 char *_kwnames[] = { "filename","width","height","description", NULL };
11307 char _ptemp[128];
11308
11309 self = self;
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
11311 return NULL;
11312 if (_obj0)
11313 {
11314 #if PYTHON_API_VERSION >= 1009
11315 char* tmpPtr; int tmpSize;
11316 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
11317 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11318 return NULL;
11319 }
11320 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
11321 return NULL;
11322 _arg0 = new wxString(tmpPtr, tmpSize);
11323 #else
11324 if (!PyString_Check(_obj0)) {
11325 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11326 return NULL;
11327 }
11328 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
11329 #endif
11330 }
11331 if (_obj3)
11332 {
11333 #if PYTHON_API_VERSION >= 1009
11334 char* tmpPtr; int tmpSize;
11335 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
11336 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11337 return NULL;
11338 }
11339 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
11340 return NULL;
11341 _arg3 = new wxString(tmpPtr, tmpSize);
11342 #else
11343 if (!PyString_Check(_obj3)) {
11344 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11345 return NULL;
11346 }
11347 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
11348 #endif
11349 }
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
11353
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) return NULL;
11356 } if (_result) {
11357 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
11358 _resultobj = Py_BuildValue("s",_ptemp);
11359 } else {
11360 Py_INCREF(Py_None);
11361 _resultobj = Py_None;
11362 }
11363 {
11364 if (_obj0)
11365 delete _arg0;
11366 }
11367 {
11368 if (_obj3)
11369 delete _arg3;
11370 }
11371 return _resultobj;
11372 }
11373
11374 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11375 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
11376 PyObject * _resultobj;
11377 wxMetaFile * _result;
11378 wxMetaFileDC * _arg0;
11379 PyObject * _argo0 = 0;
11380 char *_kwnames[] = { "self", NULL };
11381 char _ptemp[128];
11382
11383 self = self;
11384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
11385 return NULL;
11386 if (_argo0) {
11387 if (_argo0 == Py_None) { _arg0 = NULL; }
11388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
11389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11390 return NULL;
11391 }
11392 }
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) return NULL;
11399 } if (_result) {
11400 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11401 _resultobj = Py_BuildValue("s",_ptemp);
11402 } else {
11403 Py_INCREF(Py_None);
11404 _resultobj = Py_None;
11405 }
11406 return _resultobj;
11407 }
11408
11409 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
11410 wxPalette *src;
11411 wxGDIObject *dest;
11412 src = (wxPalette *) ptr;
11413 dest = (wxGDIObject *) src;
11414 return (void *) dest;
11415 }
11416
11417 static void *SwigwxPaletteTowxObject(void *ptr) {
11418 wxPalette *src;
11419 wxObject *dest;
11420 src = (wxPalette *) ptr;
11421 dest = (wxObject *) src;
11422 return (void *) dest;
11423 }
11424
11425 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11426 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject * _resultobj;
11428 wxPalette * _result;
11429 int _arg0;
11430 byte * _arg1;
11431 byte * _arg2;
11432 byte * _arg3;
11433 PyObject * _obj1 = 0;
11434 PyObject * _obj2 = 0;
11435 PyObject * _obj3 = 0;
11436 char *_kwnames[] = { "choices","choices","choices", NULL };
11437 char _ptemp[128];
11438
11439 self = self;
11440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
11441 return NULL;
11442 {
11443 _arg1 = byte_LIST_helper(_obj1);
11444 if (_arg1 == NULL) {
11445 return NULL;
11446 }
11447 }
11448 {
11449 _arg2 = byte_LIST_helper(_obj2);
11450 if (_arg2 == NULL) {
11451 return NULL;
11452 }
11453 }
11454 if (_obj3)
11455 {
11456 _arg3 = byte_LIST_helper(_obj3);
11457 if (_arg3 == NULL) {
11458 return NULL;
11459 }
11460 }
11461 {
11462 if (_obj1) {
11463 _arg0 = PyList_Size(_obj1);
11464 }
11465 else {
11466 _arg0 = 0;
11467 }
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) return NULL;
11475 } if (_result) {
11476 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
11477 _resultobj = Py_BuildValue("s",_ptemp);
11478 } else {
11479 Py_INCREF(Py_None);
11480 _resultobj = Py_None;
11481 }
11482 {
11483 delete [] _arg1;
11484 }
11485 {
11486 delete [] _arg2;
11487 }
11488 {
11489 delete [] _arg3;
11490 }
11491 return _resultobj;
11492 }
11493
11494 #define delete_wxPalette(_swigobj) (delete _swigobj)
11495 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11496 PyObject * _resultobj;
11497 wxPalette * _arg0;
11498 PyObject * _argo0 = 0;
11499 char *_kwnames[] = { "self", NULL };
11500
11501 self = self;
11502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
11503 return NULL;
11504 if (_argo0) {
11505 if (_argo0 == Py_None) { _arg0 = NULL; }
11506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11508 return NULL;
11509 }
11510 }
11511 {
11512 PyThreadState* __tstate = wxPyBeginAllowThreads();
11513 delete_wxPalette(_arg0);
11514
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) return NULL;
11517 } Py_INCREF(Py_None);
11518 _resultobj = Py_None;
11519 return _resultobj;
11520 }
11521
11522 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11523 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11524 PyObject * _resultobj;
11525 int _result;
11526 wxPalette * _arg0;
11527 byte _arg1;
11528 byte _arg2;
11529 byte _arg3;
11530 PyObject * _argo0 = 0;
11531 char *_kwnames[] = { "self","red","green","blue", NULL };
11532
11533 self = self;
11534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
11535 return NULL;
11536 if (_argo0) {
11537 if (_argo0 == Py_None) { _arg0 = NULL; }
11538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11540 return NULL;
11541 }
11542 }
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
11546
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) return NULL;
11549 } _resultobj = Py_BuildValue("i",_result);
11550 return _resultobj;
11551 }
11552
11553 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11554 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
11555 PyObject * _resultobj;
11556 bool _result;
11557 wxPalette * _arg0;
11558 int _arg1;
11559 byte * _arg2;
11560 int temp;
11561 byte * _arg3;
11562 int temp0;
11563 byte * _arg4;
11564 int temp1;
11565 PyObject * _argo0 = 0;
11566 char *_kwnames[] = { "self","pixel", NULL };
11567
11568 self = self;
11569 {
11570 _arg2 = (byte*)&temp;
11571 }
11572 {
11573 _arg3 = (byte*)&temp0;
11574 }
11575 {
11576 _arg4 = (byte*)&temp1;
11577 }
11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
11579 return NULL;
11580 if (_argo0) {
11581 if (_argo0 == Py_None) { _arg0 = NULL; }
11582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11584 return NULL;
11585 }
11586 }
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
11590
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) return NULL;
11593 } _resultobj = Py_BuildValue("i",_result);
11594 {
11595 PyObject *o;
11596 o = PyInt_FromLong((long) (*_arg2));
11597 _resultobj = t_output_helper(_resultobj, o);
11598 }
11599 {
11600 PyObject *o;
11601 o = PyInt_FromLong((long) (*_arg3));
11602 _resultobj = t_output_helper(_resultobj, o);
11603 }
11604 {
11605 PyObject *o;
11606 o = PyInt_FromLong((long) (*_arg4));
11607 _resultobj = t_output_helper(_resultobj, o);
11608 }
11609 return _resultobj;
11610 }
11611
11612 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11613 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11614 PyObject * _resultobj;
11615 bool _result;
11616 wxPalette * _arg0;
11617 PyObject * _argo0 = 0;
11618 char *_kwnames[] = { "self", NULL };
11619
11620 self = self;
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
11622 return NULL;
11623 if (_argo0) {
11624 if (_argo0 == Py_None) { _arg0 = NULL; }
11625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11627 return NULL;
11628 }
11629 }
11630 {
11631 PyThreadState* __tstate = wxPyBeginAllowThreads();
11632 _result = (bool )wxPalette_Ok(_arg0);
11633
11634 wxPyEndAllowThreads(__tstate);
11635 if (PyErr_Occurred()) return NULL;
11636 } _resultobj = Py_BuildValue("i",_result);
11637 return _resultobj;
11638 }
11639
11640 static void *SwigwxImageListTowxObject(void *ptr) {
11641 wxImageList *src;
11642 wxObject *dest;
11643 src = (wxImageList *) ptr;
11644 dest = (wxObject *) src;
11645 return (void *) dest;
11646 }
11647
11648 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11649 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11650 PyObject * _resultobj;
11651 wxImageList * _result;
11652 int _arg0;
11653 int _arg1;
11654 int _arg2 = (int ) TRUE;
11655 int _arg3 = (int ) 1;
11656 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
11657 char _ptemp[128];
11658
11659 self = self;
11660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11661 return NULL;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) return NULL;
11668 } if (_result) {
11669 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
11670 _resultobj = Py_BuildValue("s",_ptemp);
11671 } else {
11672 Py_INCREF(Py_None);
11673 _resultobj = Py_None;
11674 }
11675 return _resultobj;
11676 }
11677
11678 #define delete_wxImageList(_swigobj) (delete _swigobj)
11679 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11680 PyObject * _resultobj;
11681 wxImageList * _arg0;
11682 PyObject * _argo0 = 0;
11683 char *_kwnames[] = { "self", NULL };
11684
11685 self = self;
11686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
11687 return NULL;
11688 if (_argo0) {
11689 if (_argo0 == Py_None) { _arg0 = NULL; }
11690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11692 return NULL;
11693 }
11694 }
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 delete_wxImageList(_arg0);
11698
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) return NULL;
11701 } Py_INCREF(Py_None);
11702 _resultobj = Py_None;
11703 return _resultobj;
11704 }
11705
11706 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11707 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
11708 PyObject * _resultobj;
11709 int _result;
11710 wxImageList * _arg0;
11711 wxBitmap * _arg1;
11712 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11713 PyObject * _argo0 = 0;
11714 PyObject * _argo1 = 0;
11715 PyObject * _argo2 = 0;
11716 char *_kwnames[] = { "self","bitmap","mask", NULL };
11717
11718 self = self;
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
11720 return NULL;
11721 if (_argo0) {
11722 if (_argo0 == Py_None) { _arg0 = NULL; }
11723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11725 return NULL;
11726 }
11727 }
11728 if (_argo1) {
11729 if (_argo1 == Py_None) { _arg1 = NULL; }
11730 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11731 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11732 return NULL;
11733 }
11734 }
11735 if (_argo2) {
11736 if (_argo2 == Py_None) { _arg2 = NULL; }
11737 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11738 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11739 return NULL;
11740 }
11741 }
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
11745
11746 wxPyEndAllowThreads(__tstate);
11747 if (PyErr_Occurred()) return NULL;
11748 } _resultobj = Py_BuildValue("i",_result);
11749 return _resultobj;
11750 }
11751
11752 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11753 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
11754 PyObject * _resultobj;
11755 int _result;
11756 wxImageList * _arg0;
11757 wxBitmap * _arg1;
11758 wxColour * _arg2;
11759 PyObject * _argo0 = 0;
11760 PyObject * _argo1 = 0;
11761 wxColour temp;
11762 PyObject * _obj2 = 0;
11763 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
11764
11765 self = self;
11766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
11767 return NULL;
11768 if (_argo0) {
11769 if (_argo0 == Py_None) { _arg0 = NULL; }
11770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11772 return NULL;
11773 }
11774 }
11775 if (_argo1) {
11776 if (_argo1 == Py_None) { _arg1 = NULL; }
11777 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11778 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11779 return NULL;
11780 }
11781 }
11782 {
11783 _arg2 = &temp;
11784 if (! wxColour_helper(_obj2, &_arg2))
11785 return NULL;
11786 }
11787 {
11788 PyThreadState* __tstate = wxPyBeginAllowThreads();
11789 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
11790
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) return NULL;
11793 } _resultobj = Py_BuildValue("i",_result);
11794 return _resultobj;
11795 }
11796
11797 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11798 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11799 PyObject * _resultobj;
11800 int _result;
11801 wxImageList * _arg0;
11802 wxIcon * _arg1;
11803 PyObject * _argo0 = 0;
11804 PyObject * _argo1 = 0;
11805 char *_kwnames[] = { "self","icon", NULL };
11806
11807 self = self;
11808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
11809 return NULL;
11810 if (_argo0) {
11811 if (_argo0 == Py_None) { _arg0 = NULL; }
11812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11814 return NULL;
11815 }
11816 }
11817 if (_argo1) {
11818 if (_argo1 == Py_None) { _arg1 = NULL; }
11819 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
11820 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11821 return NULL;
11822 }
11823 }
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11827
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) return NULL;
11830 } _resultobj = Py_BuildValue("i",_result);
11831 return _resultobj;
11832 }
11833
11834 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11835 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11836 PyObject * _resultobj;
11837 bool _result;
11838 wxImageList * _arg0;
11839 int _arg1;
11840 wxBitmap * _arg2;
11841 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
11842 PyObject * _argo0 = 0;
11843 PyObject * _argo2 = 0;
11844 PyObject * _argo3 = 0;
11845 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
11846
11847 self = self;
11848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
11849 return NULL;
11850 if (_argo0) {
11851 if (_argo0 == Py_None) { _arg0 = NULL; }
11852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11854 return NULL;
11855 }
11856 }
11857 if (_argo2) {
11858 if (_argo2 == Py_None) { _arg2 = NULL; }
11859 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11860 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11861 return NULL;
11862 }
11863 }
11864 if (_argo3) {
11865 if (_argo3 == Py_None) { _arg3 = NULL; }
11866 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
11867 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11868 return NULL;
11869 }
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) return NULL;
11877 } _resultobj = Py_BuildValue("i",_result);
11878 return _resultobj;
11879 }
11880
11881 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11882 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
11883 PyObject * _resultobj;
11884 bool _result;
11885 wxImageList * _arg0;
11886 int _arg1;
11887 wxDC * _arg2;
11888 int _arg3;
11889 int _arg4;
11890 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11891 bool _arg6 = (bool ) FALSE;
11892 PyObject * _argo0 = 0;
11893 PyObject * _argo2 = 0;
11894 int tempbool6 = (int) FALSE;
11895 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11896
11897 self = self;
11898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11899 return NULL;
11900 if (_argo0) {
11901 if (_argo0 == Py_None) { _arg0 = NULL; }
11902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11904 return NULL;
11905 }
11906 }
11907 if (_argo2) {
11908 if (_argo2 == Py_None) { _arg2 = NULL; }
11909 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11910 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11911 return NULL;
11912 }
11913 }
11914 _arg6 = (bool ) tempbool6;
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11918
11919 wxPyEndAllowThreads(__tstate);
11920 if (PyErr_Occurred()) return NULL;
11921 } _resultobj = Py_BuildValue("i",_result);
11922 return _resultobj;
11923 }
11924
11925 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11926 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11927 PyObject * _resultobj;
11928 int _result;
11929 wxImageList * _arg0;
11930 PyObject * _argo0 = 0;
11931 char *_kwnames[] = { "self", NULL };
11932
11933 self = self;
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11935 return NULL;
11936 if (_argo0) {
11937 if (_argo0 == Py_None) { _arg0 = NULL; }
11938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11940 return NULL;
11941 }
11942 }
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 _result = (int )wxImageList_GetImageCount(_arg0);
11946
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) return NULL;
11949 } _resultobj = Py_BuildValue("i",_result);
11950 return _resultobj;
11951 }
11952
11953 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11954 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11955 PyObject * _resultobj;
11956 bool _result;
11957 wxImageList * _arg0;
11958 int _arg1;
11959 PyObject * _argo0 = 0;
11960 char *_kwnames[] = { "self","index", NULL };
11961
11962 self = self;
11963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11964 return NULL;
11965 if (_argo0) {
11966 if (_argo0 == Py_None) { _arg0 = NULL; }
11967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11969 return NULL;
11970 }
11971 }
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11975
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) return NULL;
11978 } _resultobj = Py_BuildValue("i",_result);
11979 return _resultobj;
11980 }
11981
11982 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11983 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11984 PyObject * _resultobj;
11985 bool _result;
11986 wxImageList * _arg0;
11987 PyObject * _argo0 = 0;
11988 char *_kwnames[] = { "self", NULL };
11989
11990 self = self;
11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11992 return NULL;
11993 if (_argo0) {
11994 if (_argo0 == Py_None) { _arg0 = NULL; }
11995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11997 return NULL;
11998 }
11999 }
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 _result = (bool )wxImageList_RemoveAll(_arg0);
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) return NULL;
12006 } _resultobj = Py_BuildValue("i",_result);
12007 return _resultobj;
12008 }
12009
12010 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
12011 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject * _resultobj;
12013 wxImageList * _arg0;
12014 int _arg1;
12015 int * _arg2;
12016 int temp;
12017 int * _arg3;
12018 int temp0;
12019 PyObject * _argo0 = 0;
12020 char *_kwnames[] = { "self","index", NULL };
12021
12022 self = self;
12023 {
12024 _arg2 = &temp;
12025 }
12026 {
12027 _arg3 = &temp0;
12028 }
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
12030 return NULL;
12031 if (_argo0) {
12032 if (_argo0 == Py_None) { _arg0 = NULL; }
12033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
12035 return NULL;
12036 }
12037 }
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) return NULL;
12044 } Py_INCREF(Py_None);
12045 _resultobj = Py_None;
12046 {
12047 PyObject *o;
12048 o = PyInt_FromLong((long) (*_arg2));
12049 _resultobj = t_output_helper(_resultobj, o);
12050 }
12051 {
12052 PyObject *o;
12053 o = PyInt_FromLong((long) (*_arg3));
12054 _resultobj = t_output_helper(_resultobj, o);
12055 }
12056 return _resultobj;
12057 }
12058
12059 static void *SwigwxRegionTowxGDIObject(void *ptr) {
12060 wxRegion *src;
12061 wxGDIObject *dest;
12062 src = (wxRegion *) ptr;
12063 dest = (wxGDIObject *) src;
12064 return (void *) dest;
12065 }
12066
12067 static void *SwigwxRegionTowxObject(void *ptr) {
12068 wxRegion *src;
12069 wxObject *dest;
12070 src = (wxRegion *) ptr;
12071 dest = (wxObject *) src;
12072 return (void *) dest;
12073 }
12074
12075 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12076 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12077 PyObject * _resultobj;
12078 wxRegion * _result;
12079 long _arg0 = (long ) 0;
12080 long _arg1 = (long ) 0;
12081 long _arg2 = (long ) 0;
12082 long _arg3 = (long ) 0;
12083 char *_kwnames[] = { "x","y","width","height", NULL };
12084 char _ptemp[128];
12085
12086 self = self;
12087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
12088 return NULL;
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) return NULL;
12095 } if (_result) {
12096 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
12097 _resultobj = Py_BuildValue("s",_ptemp);
12098 } else {
12099 Py_INCREF(Py_None);
12100 _resultobj = Py_None;
12101 }
12102 return _resultobj;
12103 }
12104
12105 #define delete_wxRegion(_swigobj) (delete _swigobj)
12106 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12107 PyObject * _resultobj;
12108 wxRegion * _arg0;
12109 PyObject * _argo0 = 0;
12110 char *_kwnames[] = { "self", NULL };
12111
12112 self = self;
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
12114 return NULL;
12115 if (_argo0) {
12116 if (_argo0 == Py_None) { _arg0 = NULL; }
12117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12119 return NULL;
12120 }
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 delete_wxRegion(_arg0);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) return NULL;
12128 } Py_INCREF(Py_None);
12129 _resultobj = Py_None;
12130 return _resultobj;
12131 }
12132
12133 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12134 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12135 PyObject * _resultobj;
12136 wxRegion * _arg0;
12137 PyObject * _argo0 = 0;
12138 char *_kwnames[] = { "self", NULL };
12139
12140 self = self;
12141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
12142 return NULL;
12143 if (_argo0) {
12144 if (_argo0 == Py_None) { _arg0 = NULL; }
12145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12147 return NULL;
12148 }
12149 }
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 wxRegion_Clear(_arg0);
12153
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) return NULL;
12156 } Py_INCREF(Py_None);
12157 _resultobj = Py_None;
12158 return _resultobj;
12159 }
12160
12161 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12162 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
12163 PyObject * _resultobj;
12164 bool _result;
12165 wxRegion * _arg0;
12166 wxCoord _arg1;
12167 wxCoord _arg2;
12168 PyObject * _argo0 = 0;
12169 char *_kwnames[] = { "self","x","y", NULL };
12170
12171 self = self;
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
12173 return NULL;
12174 if (_argo0) {
12175 if (_argo0 == Py_None) { _arg0 = NULL; }
12176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12178 return NULL;
12179 }
12180 }
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
12184
12185 wxPyEndAllowThreads(__tstate);
12186 if (PyErr_Occurred()) return NULL;
12187 } _resultobj = Py_BuildValue("i",_result);
12188 return _resultobj;
12189 }
12190
12191 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12192 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
12193 PyObject * _resultobj;
12194 wxRegionContain _result;
12195 wxRegion * _arg0;
12196 long _arg1;
12197 long _arg2;
12198 PyObject * _argo0 = 0;
12199 char *_kwnames[] = { "self","x","y", NULL };
12200
12201 self = self;
12202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
12203 return NULL;
12204 if (_argo0) {
12205 if (_argo0 == Py_None) { _arg0 = NULL; }
12206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12208 return NULL;
12209 }
12210 }
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) return NULL;
12217 } _resultobj = Py_BuildValue("i",_result);
12218 return _resultobj;
12219 }
12220
12221 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12222 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12223 PyObject * _resultobj;
12224 wxRegionContain _result;
12225 wxRegion * _arg0;
12226 wxPoint * _arg1;
12227 PyObject * _argo0 = 0;
12228 wxPoint temp;
12229 PyObject * _obj1 = 0;
12230 char *_kwnames[] = { "self","pt", NULL };
12231
12232 self = self;
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
12234 return NULL;
12235 if (_argo0) {
12236 if (_argo0 == Py_None) { _arg0 = NULL; }
12237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12239 return NULL;
12240 }
12241 }
12242 {
12243 _arg1 = &temp;
12244 if (! wxPoint_helper(_obj1, &_arg1))
12245 return NULL;
12246 }
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
12250
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) return NULL;
12253 } _resultobj = Py_BuildValue("i",_result);
12254 return _resultobj;
12255 }
12256
12257 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12258 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject * _resultobj;
12260 wxRegionContain _result;
12261 wxRegion * _arg0;
12262 wxRect * _arg1;
12263 PyObject * _argo0 = 0;
12264 wxRect temp;
12265 PyObject * _obj1 = 0;
12266 char *_kwnames[] = { "self","rect", NULL };
12267
12268 self = self;
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
12270 return NULL;
12271 if (_argo0) {
12272 if (_argo0 == Py_None) { _arg0 = NULL; }
12273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12275 return NULL;
12276 }
12277 }
12278 {
12279 _arg1 = &temp;
12280 if (! wxRect_helper(_obj1, &_arg1))
12281 return NULL;
12282 }
12283 {
12284 PyThreadState* __tstate = wxPyBeginAllowThreads();
12285 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
12286
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) return NULL;
12289 } _resultobj = Py_BuildValue("i",_result);
12290 return _resultobj;
12291 }
12292
12293 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12294 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
12295 PyObject * _resultobj;
12296 wxRegionContain _result;
12297 wxRegion * _arg0;
12298 long _arg1;
12299 long _arg2;
12300 long _arg3;
12301 long _arg4;
12302 PyObject * _argo0 = 0;
12303 char *_kwnames[] = { "self","x","y","w","h", NULL };
12304
12305 self = self;
12306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12307 return NULL;
12308 if (_argo0) {
12309 if (_argo0 == Py_None) { _arg0 = NULL; }
12310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12312 return NULL;
12313 }
12314 }
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) return NULL;
12321 } _resultobj = Py_BuildValue("i",_result);
12322 return _resultobj;
12323 }
12324
12325 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12326 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12327 PyObject * _resultobj;
12328 wxRect * _result;
12329 wxRegion * _arg0;
12330 PyObject * _argo0 = 0;
12331 char *_kwnames[] = { "self", NULL };
12332 char _ptemp[128];
12333
12334 self = self;
12335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
12336 return NULL;
12337 if (_argo0) {
12338 if (_argo0 == Py_None) { _arg0 = NULL; }
12339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12341 return NULL;
12342 }
12343 }
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 _result = new wxRect (wxRegion_GetBox(_arg0));
12347
12348 wxPyEndAllowThreads(__tstate);
12349 if (PyErr_Occurred()) return NULL;
12350 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12351 _resultobj = Py_BuildValue("s",_ptemp);
12352 return _resultobj;
12353 }
12354
12355 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12356 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
12357 PyObject * _resultobj;
12358 bool _result;
12359 wxRegion * _arg0;
12360 long _arg1;
12361 long _arg2;
12362 long _arg3;
12363 long _arg4;
12364 PyObject * _argo0 = 0;
12365 char *_kwnames[] = { "self","x","y","width","height", NULL };
12366
12367 self = self;
12368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12369 return NULL;
12370 if (_argo0) {
12371 if (_argo0 == Py_None) { _arg0 = NULL; }
12372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12374 return NULL;
12375 }
12376 }
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) return NULL;
12383 } _resultobj = Py_BuildValue("i",_result);
12384 return _resultobj;
12385 }
12386
12387 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12388 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12389 PyObject * _resultobj;
12390 bool _result;
12391 wxRegion * _arg0;
12392 wxRect * _arg1;
12393 PyObject * _argo0 = 0;
12394 wxRect temp;
12395 PyObject * _obj1 = 0;
12396 char *_kwnames[] = { "self","rect", NULL };
12397
12398 self = self;
12399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
12400 return NULL;
12401 if (_argo0) {
12402 if (_argo0 == Py_None) { _arg0 = NULL; }
12403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12405 return NULL;
12406 }
12407 }
12408 {
12409 _arg1 = &temp;
12410 if (! wxRect_helper(_obj1, &_arg1))
12411 return NULL;
12412 }
12413 {
12414 PyThreadState* __tstate = wxPyBeginAllowThreads();
12415 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
12416
12417 wxPyEndAllowThreads(__tstate);
12418 if (PyErr_Occurred()) return NULL;
12419 } _resultobj = Py_BuildValue("i",_result);
12420 return _resultobj;
12421 }
12422
12423 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12424 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12425 PyObject * _resultobj;
12426 bool _result;
12427 wxRegion * _arg0;
12428 wxRegion * _arg1;
12429 PyObject * _argo0 = 0;
12430 PyObject * _argo1 = 0;
12431 char *_kwnames[] = { "self","region", NULL };
12432
12433 self = self;
12434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
12435 return NULL;
12436 if (_argo0) {
12437 if (_argo0 == Py_None) { _arg0 = NULL; }
12438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12440 return NULL;
12441 }
12442 }
12443 if (_argo1) {
12444 if (_argo1 == Py_None) { _arg1 = NULL; }
12445 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12446 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12447 return NULL;
12448 }
12449 }
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
12453
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) return NULL;
12456 } _resultobj = Py_BuildValue("i",_result);
12457 return _resultobj;
12458 }
12459
12460 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12461 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
12462 PyObject * _resultobj;
12463 bool _result;
12464 wxRegion * _arg0;
12465 PyObject * _argo0 = 0;
12466 char *_kwnames[] = { "self", NULL };
12467
12468 self = self;
12469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
12470 return NULL;
12471 if (_argo0) {
12472 if (_argo0 == Py_None) { _arg0 = NULL; }
12473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12475 return NULL;
12476 }
12477 }
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 _result = (bool )wxRegion_IsEmpty(_arg0);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) return NULL;
12484 } _resultobj = Py_BuildValue("i",_result);
12485 return _resultobj;
12486 }
12487
12488 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12489 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
12490 PyObject * _resultobj;
12491 bool _result;
12492 wxRegion * _arg0;
12493 long _arg1;
12494 long _arg2;
12495 long _arg3;
12496 long _arg4;
12497 PyObject * _argo0 = 0;
12498 char *_kwnames[] = { "self","x","y","width","height", NULL };
12499
12500 self = self;
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12502 return NULL;
12503 if (_argo0) {
12504 if (_argo0 == Py_None) { _arg0 = NULL; }
12505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12507 return NULL;
12508 }
12509 }
12510 {
12511 PyThreadState* __tstate = wxPyBeginAllowThreads();
12512 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
12513
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) return NULL;
12516 } _resultobj = Py_BuildValue("i",_result);
12517 return _resultobj;
12518 }
12519
12520 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12521 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12522 PyObject * _resultobj;
12523 bool _result;
12524 wxRegion * _arg0;
12525 wxRect * _arg1;
12526 PyObject * _argo0 = 0;
12527 wxRect temp;
12528 PyObject * _obj1 = 0;
12529 char *_kwnames[] = { "self","rect", NULL };
12530
12531 self = self;
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
12533 return NULL;
12534 if (_argo0) {
12535 if (_argo0 == Py_None) { _arg0 = NULL; }
12536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12538 return NULL;
12539 }
12540 }
12541 {
12542 _arg1 = &temp;
12543 if (! wxRect_helper(_obj1, &_arg1))
12544 return NULL;
12545 }
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) return NULL;
12552 } _resultobj = Py_BuildValue("i",_result);
12553 return _resultobj;
12554 }
12555
12556 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12557 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12558 PyObject * _resultobj;
12559 bool _result;
12560 wxRegion * _arg0;
12561 wxRegion * _arg1;
12562 PyObject * _argo0 = 0;
12563 PyObject * _argo1 = 0;
12564 char *_kwnames[] = { "self","region", NULL };
12565
12566 self = self;
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
12568 return NULL;
12569 if (_argo0) {
12570 if (_argo0 == Py_None) { _arg0 = NULL; }
12571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12573 return NULL;
12574 }
12575 }
12576 if (_argo1) {
12577 if (_argo1 == Py_None) { _arg1 = NULL; }
12578 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12579 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12580 return NULL;
12581 }
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) return NULL;
12589 } _resultobj = Py_BuildValue("i",_result);
12590 return _resultobj;
12591 }
12592
12593 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12594 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
12595 PyObject * _resultobj;
12596 bool _result;
12597 wxRegion * _arg0;
12598 long _arg1;
12599 long _arg2;
12600 long _arg3;
12601 long _arg4;
12602 PyObject * _argo0 = 0;
12603 char *_kwnames[] = { "self","x","y","width","height", NULL };
12604
12605 self = self;
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12607 return NULL;
12608 if (_argo0) {
12609 if (_argo0 == Py_None) { _arg0 = NULL; }
12610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12612 return NULL;
12613 }
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
12618
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) return NULL;
12621 } _resultobj = Py_BuildValue("i",_result);
12622 return _resultobj;
12623 }
12624
12625 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12626 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12627 PyObject * _resultobj;
12628 bool _result;
12629 wxRegion * _arg0;
12630 wxRect * _arg1;
12631 PyObject * _argo0 = 0;
12632 wxRect temp;
12633 PyObject * _obj1 = 0;
12634 char *_kwnames[] = { "self","rect", NULL };
12635
12636 self = self;
12637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
12638 return NULL;
12639 if (_argo0) {
12640 if (_argo0 == Py_None) { _arg0 = NULL; }
12641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12643 return NULL;
12644 }
12645 }
12646 {
12647 _arg1 = &temp;
12648 if (! wxRect_helper(_obj1, &_arg1))
12649 return NULL;
12650 }
12651 {
12652 PyThreadState* __tstate = wxPyBeginAllowThreads();
12653 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
12654
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) return NULL;
12657 } _resultobj = Py_BuildValue("i",_result);
12658 return _resultobj;
12659 }
12660
12661 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12662 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12663 PyObject * _resultobj;
12664 bool _result;
12665 wxRegion * _arg0;
12666 wxRegion * _arg1;
12667 PyObject * _argo0 = 0;
12668 PyObject * _argo1 = 0;
12669 char *_kwnames[] = { "self","region", NULL };
12670
12671 self = self;
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
12673 return NULL;
12674 if (_argo0) {
12675 if (_argo0 == Py_None) { _arg0 = NULL; }
12676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12678 return NULL;
12679 }
12680 }
12681 if (_argo1) {
12682 if (_argo1 == Py_None) { _arg1 = NULL; }
12683 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12684 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12685 return NULL;
12686 }
12687 }
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) return NULL;
12694 } _resultobj = Py_BuildValue("i",_result);
12695 return _resultobj;
12696 }
12697
12698 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12699 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
12700 PyObject * _resultobj;
12701 bool _result;
12702 wxRegion * _arg0;
12703 long _arg1;
12704 long _arg2;
12705 long _arg3;
12706 long _arg4;
12707 PyObject * _argo0 = 0;
12708 char *_kwnames[] = { "self","x","y","width","height", NULL };
12709
12710 self = self;
12711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12712 return NULL;
12713 if (_argo0) {
12714 if (_argo0 == Py_None) { _arg0 = NULL; }
12715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12717 return NULL;
12718 }
12719 }
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) return NULL;
12726 } _resultobj = Py_BuildValue("i",_result);
12727 return _resultobj;
12728 }
12729
12730 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12731 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12732 PyObject * _resultobj;
12733 bool _result;
12734 wxRegion * _arg0;
12735 wxRect * _arg1;
12736 PyObject * _argo0 = 0;
12737 wxRect temp;
12738 PyObject * _obj1 = 0;
12739 char *_kwnames[] = { "self","rect", NULL };
12740
12741 self = self;
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
12743 return NULL;
12744 if (_argo0) {
12745 if (_argo0 == Py_None) { _arg0 = NULL; }
12746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12748 return NULL;
12749 }
12750 }
12751 {
12752 _arg1 = &temp;
12753 if (! wxRect_helper(_obj1, &_arg1))
12754 return NULL;
12755 }
12756 {
12757 PyThreadState* __tstate = wxPyBeginAllowThreads();
12758 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
12759
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) return NULL;
12762 } _resultobj = Py_BuildValue("i",_result);
12763 return _resultobj;
12764 }
12765
12766 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12767 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12768 PyObject * _resultobj;
12769 bool _result;
12770 wxRegion * _arg0;
12771 wxRegion * _arg1;
12772 PyObject * _argo0 = 0;
12773 PyObject * _argo1 = 0;
12774 char *_kwnames[] = { "self","region", NULL };
12775
12776 self = self;
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
12778 return NULL;
12779 if (_argo0) {
12780 if (_argo0 == Py_None) { _arg0 = NULL; }
12781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12783 return NULL;
12784 }
12785 }
12786 if (_argo1) {
12787 if (_argo1 == Py_None) { _arg1 = NULL; }
12788 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12789 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12790 return NULL;
12791 }
12792 }
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
12796
12797 wxPyEndAllowThreads(__tstate);
12798 if (PyErr_Occurred()) return NULL;
12799 } _resultobj = Py_BuildValue("i",_result);
12800 return _resultobj;
12801 }
12802
12803 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
12804 wxRegionIterator *src;
12805 wxObject *dest;
12806 src = (wxRegionIterator *) ptr;
12807 dest = (wxObject *) src;
12808 return (void *) dest;
12809 }
12810
12811 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12812 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject * _resultobj;
12814 wxRegionIterator * _result;
12815 wxRegion * _arg0;
12816 PyObject * _argo0 = 0;
12817 char *_kwnames[] = { "region", NULL };
12818 char _ptemp[128];
12819
12820 self = self;
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
12822 return NULL;
12823 if (_argo0) {
12824 if (_argo0 == Py_None) { _arg0 = NULL; }
12825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12827 return NULL;
12828 }
12829 }
12830 {
12831 PyThreadState* __tstate = wxPyBeginAllowThreads();
12832 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
12833
12834 wxPyEndAllowThreads(__tstate);
12835 if (PyErr_Occurred()) return NULL;
12836 } if (_result) {
12837 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12838 _resultobj = Py_BuildValue("s",_ptemp);
12839 } else {
12840 Py_INCREF(Py_None);
12841 _resultobj = Py_None;
12842 }
12843 return _resultobj;
12844 }
12845
12846 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12847 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12848 PyObject * _resultobj;
12849 wxRegionIterator * _arg0;
12850 PyObject * _argo0 = 0;
12851 char *_kwnames[] = { "self", NULL };
12852
12853 self = self;
12854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12855 return NULL;
12856 if (_argo0) {
12857 if (_argo0 == Py_None) { _arg0 = NULL; }
12858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12860 return NULL;
12861 }
12862 }
12863 {
12864 PyThreadState* __tstate = wxPyBeginAllowThreads();
12865 delete_wxRegionIterator(_arg0);
12866
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) return NULL;
12869 } Py_INCREF(Py_None);
12870 _resultobj = Py_None;
12871 return _resultobj;
12872 }
12873
12874 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12875 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
12876 PyObject * _resultobj;
12877 long _result;
12878 wxRegionIterator * _arg0;
12879 PyObject * _argo0 = 0;
12880 char *_kwnames[] = { "self", NULL };
12881
12882 self = self;
12883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
12884 return NULL;
12885 if (_argo0) {
12886 if (_argo0 == Py_None) { _arg0 = NULL; }
12887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12889 return NULL;
12890 }
12891 }
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 _result = (long )wxRegionIterator_GetX(_arg0);
12895
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) return NULL;
12898 } _resultobj = Py_BuildValue("l",_result);
12899 return _resultobj;
12900 }
12901
12902 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12903 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
12904 PyObject * _resultobj;
12905 long _result;
12906 wxRegionIterator * _arg0;
12907 PyObject * _argo0 = 0;
12908 char *_kwnames[] = { "self", NULL };
12909
12910 self = self;
12911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
12912 return NULL;
12913 if (_argo0) {
12914 if (_argo0 == Py_None) { _arg0 = NULL; }
12915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12917 return NULL;
12918 }
12919 }
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 _result = (long )wxRegionIterator_GetY(_arg0);
12923
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) return NULL;
12926 } _resultobj = Py_BuildValue("l",_result);
12927 return _resultobj;
12928 }
12929
12930 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12931 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12932 PyObject * _resultobj;
12933 long _result;
12934 wxRegionIterator * _arg0;
12935 PyObject * _argo0 = 0;
12936 char *_kwnames[] = { "self", NULL };
12937
12938 self = self;
12939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12940 return NULL;
12941 if (_argo0) {
12942 if (_argo0 == Py_None) { _arg0 = NULL; }
12943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12945 return NULL;
12946 }
12947 }
12948 {
12949 PyThreadState* __tstate = wxPyBeginAllowThreads();
12950 _result = (long )wxRegionIterator_GetW(_arg0);
12951
12952 wxPyEndAllowThreads(__tstate);
12953 if (PyErr_Occurred()) return NULL;
12954 } _resultobj = Py_BuildValue("l",_result);
12955 return _resultobj;
12956 }
12957
12958 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12959 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12960 PyObject * _resultobj;
12961 long _result;
12962 wxRegionIterator * _arg0;
12963 PyObject * _argo0 = 0;
12964 char *_kwnames[] = { "self", NULL };
12965
12966 self = self;
12967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12968 return NULL;
12969 if (_argo0) {
12970 if (_argo0 == Py_None) { _arg0 = NULL; }
12971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12973 return NULL;
12974 }
12975 }
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 _result = (long )wxRegionIterator_GetWidth(_arg0);
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) return NULL;
12982 } _resultobj = Py_BuildValue("l",_result);
12983 return _resultobj;
12984 }
12985
12986 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12987 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject * _resultobj;
12989 long _result;
12990 wxRegionIterator * _arg0;
12991 PyObject * _argo0 = 0;
12992 char *_kwnames[] = { "self", NULL };
12993
12994 self = self;
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12996 return NULL;
12997 if (_argo0) {
12998 if (_argo0 == Py_None) { _arg0 = NULL; }
12999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
13001 return NULL;
13002 }
13003 }
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 _result = (long )wxRegionIterator_GetH(_arg0);
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) return NULL;
13010 } _resultobj = Py_BuildValue("l",_result);
13011 return _resultobj;
13012 }
13013
13014 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
13015 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13016 PyObject * _resultobj;
13017 long _result;
13018 wxRegionIterator * _arg0;
13019 PyObject * _argo0 = 0;
13020 char *_kwnames[] = { "self", NULL };
13021
13022 self = self;
13023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
13024 return NULL;
13025 if (_argo0) {
13026 if (_argo0 == Py_None) { _arg0 = NULL; }
13027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
13029 return NULL;
13030 }
13031 }
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 _result = (long )wxRegionIterator_GetHeight(_arg0);
13035
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) return NULL;
13038 } _resultobj = Py_BuildValue("l",_result);
13039 return _resultobj;
13040 }
13041
13042 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
13043 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13044 PyObject * _resultobj;
13045 wxRect * _result;
13046 wxRegionIterator * _arg0;
13047 PyObject * _argo0 = 0;
13048 char *_kwnames[] = { "self", NULL };
13049 char _ptemp[128];
13050
13051 self = self;
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
13053 return NULL;
13054 if (_argo0) {
13055 if (_argo0 == Py_None) { _arg0 = NULL; }
13056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
13058 return NULL;
13059 }
13060 }
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
13064
13065 wxPyEndAllowThreads(__tstate);
13066 if (PyErr_Occurred()) return NULL;
13067 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
13068 _resultobj = Py_BuildValue("s",_ptemp);
13069 return _resultobj;
13070 }
13071
13072 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
13073 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
13074 PyObject * _resultobj;
13075 bool _result;
13076 wxRegionIterator * _arg0;
13077 PyObject * _argo0 = 0;
13078 char *_kwnames[] = { "self", NULL };
13079
13080 self = self;
13081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
13082 return NULL;
13083 if (_argo0) {
13084 if (_argo0 == Py_None) { _arg0 = NULL; }
13085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
13087 return NULL;
13088 }
13089 }
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 _result = (bool )wxRegionIterator_HaveRects(_arg0);
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) return NULL;
13096 } _resultobj = Py_BuildValue("i",_result);
13097 return _resultobj;
13098 }
13099
13100 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
13101 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
13102 PyObject * _resultobj;
13103 wxRegionIterator * _arg0;
13104 PyObject * _argo0 = 0;
13105 char *_kwnames[] = { "self", NULL };
13106
13107 self = self;
13108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
13109 return NULL;
13110 if (_argo0) {
13111 if (_argo0 == Py_None) { _arg0 = NULL; }
13112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13114 return NULL;
13115 }
13116 }
13117 {
13118 PyThreadState* __tstate = wxPyBeginAllowThreads();
13119 wxRegionIterator_Reset(_arg0);
13120
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) return NULL;
13123 } Py_INCREF(Py_None);
13124 _resultobj = Py_None;
13125 return _resultobj;
13126 }
13127
13128 static void wxRegionIterator_Next(wxRegionIterator *self) {
13129 (*self) ++;
13130 }
13131 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
13132 PyObject * _resultobj;
13133 wxRegionIterator * _arg0;
13134 PyObject * _argo0 = 0;
13135 char *_kwnames[] = { "self", NULL };
13136
13137 self = self;
13138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
13139 return NULL;
13140 if (_argo0) {
13141 if (_argo0 == Py_None) { _arg0 = NULL; }
13142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13144 return NULL;
13145 }
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 wxRegionIterator_Next(_arg0);
13150
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) return NULL;
13153 } Py_INCREF(Py_None);
13154 _resultobj = Py_None;
13155 return _resultobj;
13156 }
13157
13158 static PyMethodDef gdicMethods[] = {
13159 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
13160 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
13161 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
13162 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
13163 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
13164 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
13165 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
13166 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
13167 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
13168 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
13169 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13170 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13171 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
13172 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
13173 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
13174 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
13175 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
13176 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
13177 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
13178 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
13179 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
13180 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
13181 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
13182 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
13183 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
13184 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
13185 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
13186 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
13187 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
13188 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
13189 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
13190 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
13191 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
13192 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
13193 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
13194 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
13195 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
13196 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
13197 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
13198 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
13199 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
13200 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
13201 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
13202 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
13203 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
13204 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
13205 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
13206 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
13207 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
13208 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
13209 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
13210 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
13211 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
13212 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
13213 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
13214 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
13215 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
13216 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
13217 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13218 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13219 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
13220 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
13221 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
13222 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13223 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13224 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
13225 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
13226 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
13227 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
13228 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
13229 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
13230 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
13231 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13232 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13233 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
13234 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
13235 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13236 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13237 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13238 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
13239 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
13240 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
13241 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
13242 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
13243 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
13244 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
13245 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
13246 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
13247 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
13248 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
13249 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
13250 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
13251 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13252 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13253 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
13254 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
13255 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
13256 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
13257 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
13258 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
13259 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
13260 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13261 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
13262 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
13263 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
13264 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
13265 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
13266 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
13267 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
13268 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
13269 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
13270 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
13271 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
13272 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
13273 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
13274 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
13275 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
13276 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
13277 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
13278 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
13279 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
13280 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
13281 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
13282 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13283 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13284 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
13285 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
13286 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
13287 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
13288 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
13289 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
13290 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
13291 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
13292 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
13293 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
13294 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
13295 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
13296 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
13297 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
13298 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
13299 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
13300 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
13301 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
13302 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
13303 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
13304 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
13305 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
13306 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
13307 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
13308 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
13309 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
13310 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
13311 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
13312 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
13313 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
13314 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
13315 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
13316 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
13317 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
13318 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
13319 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
13320 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
13321 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
13322 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
13323 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
13324 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
13325 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
13326 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
13327 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
13328 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
13329 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
13330 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
13331 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
13332 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
13333 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
13334 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
13335 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
13336 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
13337 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13338 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13339 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13340 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
13341 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
13342 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13343 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
13344 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
13345 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
13346 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
13347 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
13348 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
13349 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
13350 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
13351 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
13352 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
13353 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
13354 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
13355 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
13356 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
13357 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
13358 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
13359 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
13360 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
13361 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
13362 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
13363 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
13364 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
13365 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
13366 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
13367 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
13368 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
13369 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
13370 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
13371 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13372 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13373 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
13374 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
13375 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
13376 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13377 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13378 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13379 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13380 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13381 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
13382 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
13383 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
13384 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13385 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13386 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
13387 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13388 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
13389 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13390 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13391 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13392 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
13393 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
13394 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
13395 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13396 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
13397 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
13398 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
13399 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
13400 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
13401 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
13402 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
13403 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
13404 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
13405 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
13406 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
13407 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
13408 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
13409 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
13410 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13411 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13412 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
13413 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
13414 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
13415 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
13416 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
13417 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13418 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
13419 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13420 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13421 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
13422 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
13423 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13424 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13425 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
13426 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13427 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13428 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
13429 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
13430 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13431 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
13432 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13433 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
13434 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
13435 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
13436 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
13437 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
13438 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
13439 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
13440 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
13441 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
13442 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
13443 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
13444 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
13445 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
13446 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
13447 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
13448 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
13449 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
13450 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
13451 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
13452 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
13453 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
13454 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
13455 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
13456 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
13457 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
13458 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
13459 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
13460 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
13461 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
13462 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
13463 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
13464 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
13465 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
13466 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
13467 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
13468 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
13469 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
13470 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
13471 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
13472 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
13473 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
13474 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
13475 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
13476 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
13477 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
13478 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
13479 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
13480 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
13481 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
13482 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13483 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13484 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
13485 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
13486 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
13487 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13488 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13489 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
13490 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
13491 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
13492 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
13493 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
13494 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
13495 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
13496 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
13497 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
13498 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
13499 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
13500 { NULL, NULL }
13501 };
13502 #ifdef __cplusplus
13503 }
13504 #endif
13505 /*
13506 * This table is used by the pointer type-checker
13507 */
13508 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
13509 { "_signed_long","_long",0},
13510 { "_wxPrintQuality","_wxCoord",0},
13511 { "_wxPrintQuality","_int",0},
13512 { "_wxPrintQuality","_signed_int",0},
13513 { "_wxPrintQuality","_unsigned_int",0},
13514 { "_wxPrintQuality","_wxWindowID",0},
13515 { "_wxPrintQuality","_uint",0},
13516 { "_wxPrintQuality","_EBool",0},
13517 { "_wxPrintQuality","_size_t",0},
13518 { "_wxPrintQuality","_time_t",0},
13519 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
13520 { "_byte","_unsigned_char",0},
13521 { "_long","_unsigned_long",0},
13522 { "_long","_signed_long",0},
13523 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
13524 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
13525 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
13526 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
13527 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
13528 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
13529 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
13530 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
13531 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
13532 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
13533 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
13534 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
13535 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
13536 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
13537 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
13538 { "_size_t","_wxCoord",0},
13539 { "_size_t","_wxPrintQuality",0},
13540 { "_size_t","_time_t",0},
13541 { "_size_t","_unsigned_int",0},
13542 { "_size_t","_int",0},
13543 { "_size_t","_wxWindowID",0},
13544 { "_size_t","_uint",0},
13545 { "_uint","_wxCoord",0},
13546 { "_uint","_wxPrintQuality",0},
13547 { "_uint","_time_t",0},
13548 { "_uint","_size_t",0},
13549 { "_uint","_unsigned_int",0},
13550 { "_uint","_int",0},
13551 { "_uint","_wxWindowID",0},
13552 { "_wxChar","_char",0},
13553 { "_char","_wxChar",0},
13554 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13555 { "_EBool","_wxCoord",0},
13556 { "_EBool","_wxPrintQuality",0},
13557 { "_EBool","_signed_int",0},
13558 { "_EBool","_int",0},
13559 { "_EBool","_wxWindowID",0},
13560 { "_unsigned_long","_long",0},
13561 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13562 { "_signed_int","_wxCoord",0},
13563 { "_signed_int","_wxPrintQuality",0},
13564 { "_signed_int","_EBool",0},
13565 { "_signed_int","_wxWindowID",0},
13566 { "_signed_int","_int",0},
13567 { "_WXTYPE","_short",0},
13568 { "_WXTYPE","_signed_short",0},
13569 { "_WXTYPE","_unsigned_short",0},
13570 { "_unsigned_short","_WXTYPE",0},
13571 { "_unsigned_short","_short",0},
13572 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
13573 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
13574 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
13575 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
13576 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
13577 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
13578 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
13579 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
13580 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
13581 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
13582 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
13583 { "_wxObject","_wxDC",SwigwxDCTowxObject},
13584 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
13585 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
13586 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
13587 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
13588 { "_wxObject","_wxPen",SwigwxPenTowxObject},
13589 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
13590 { "_wxObject","_wxColour",SwigwxColourTowxObject},
13591 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
13592 { "_wxObject","_wxFont",SwigwxFontTowxObject},
13593 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
13594 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
13595 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
13596 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
13597 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
13598 { "_signed_short","_WXTYPE",0},
13599 { "_signed_short","_short",0},
13600 { "_unsigned_char","_byte",0},
13601 { "_unsigned_int","_wxCoord",0},
13602 { "_unsigned_int","_wxPrintQuality",0},
13603 { "_unsigned_int","_time_t",0},
13604 { "_unsigned_int","_size_t",0},
13605 { "_unsigned_int","_uint",0},
13606 { "_unsigned_int","_wxWindowID",0},
13607 { "_unsigned_int","_int",0},
13608 { "_short","_WXTYPE",0},
13609 { "_short","_unsigned_short",0},
13610 { "_short","_signed_short",0},
13611 { "_wxWindowID","_wxCoord",0},
13612 { "_wxWindowID","_wxPrintQuality",0},
13613 { "_wxWindowID","_time_t",0},
13614 { "_wxWindowID","_size_t",0},
13615 { "_wxWindowID","_EBool",0},
13616 { "_wxWindowID","_uint",0},
13617 { "_wxWindowID","_int",0},
13618 { "_wxWindowID","_signed_int",0},
13619 { "_wxWindowID","_unsigned_int",0},
13620 { "_int","_wxCoord",0},
13621 { "_int","_wxPrintQuality",0},
13622 { "_int","_time_t",0},
13623 { "_int","_size_t",0},
13624 { "_int","_EBool",0},
13625 { "_int","_uint",0},
13626 { "_int","_wxWindowID",0},
13627 { "_int","_unsigned_int",0},
13628 { "_int","_signed_int",0},
13629 { "_time_t","_wxCoord",0},
13630 { "_time_t","_wxPrintQuality",0},
13631 { "_time_t","_unsigned_int",0},
13632 { "_time_t","_int",0},
13633 { "_time_t","_wxWindowID",0},
13634 { "_time_t","_uint",0},
13635 { "_time_t","_size_t",0},
13636 { "_wxCoord","_int",0},
13637 { "_wxCoord","_signed_int",0},
13638 { "_wxCoord","_unsigned_int",0},
13639 { "_wxCoord","_wxWindowID",0},
13640 { "_wxCoord","_uint",0},
13641 { "_wxCoord","_EBool",0},
13642 { "_wxCoord","_size_t",0},
13643 { "_wxCoord","_time_t",0},
13644 { "_wxCoord","_wxPrintQuality",0},
13645 {0,0,0}};
13646
13647 static PyObject *SWIG_globals;
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 SWIGEXPORT(void) initgdic() {
13652 PyObject *m, *d;
13653 SWIG_globals = SWIG_newvarlink();
13654 m = Py_InitModule("gdic", gdicMethods);
13655 d = PyModule_GetDict(m);
13656 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
13657 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
13658 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
13659 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
13660 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
13661 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
13662 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
13663 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
13664 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
13665 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
13666 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
13667 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
13668 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
13669 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
13670 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
13671 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
13672 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
13673 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
13674 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
13675 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
13676 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
13677 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
13678 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
13679 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
13680 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
13681 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
13682 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
13683 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
13684 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
13685 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
13686 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
13687 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
13688 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
13689 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
13690 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
13691 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
13692 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
13693 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
13694 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
13695 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
13696 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
13697 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
13698 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
13699 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
13700 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
13701 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
13702 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
13703 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
13704 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
13705 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
13706 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
13707 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
13708 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
13709 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
13710 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
13711 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
13712 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
13713 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
13714 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
13715 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
13716 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
13717 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
13718 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
13719 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
13720 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
13721 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
13722 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
13723 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
13724 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
13725 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
13726 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
13727 PyDict_SetItemString(d,"cvar", SWIG_globals);
13728 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
13729 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
13730 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
13731 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
13732 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
13733 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
13734 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
13735 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
13736 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
13737 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
13738 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
13739 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
13740 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
13741 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
13742 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
13743 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
13744 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
13745 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
13746 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
13747 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
13748 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
13749 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
13750 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
13751 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
13752 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
13753 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
13754 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
13755 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
13756 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
13757 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
13758 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
13759 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
13760 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
13761 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
13762 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
13763 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
13764 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
13765 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
13766 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
13767 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
13768 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
13769 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
13770 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
13771 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
13772 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
13773 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
13774 {
13775 int i;
13776 for (i = 0; _swig_mapping[i].n1; i++)
13777 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13778 }
13779 }