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