]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi.cpp
htmlhelp.h no longer needed -> removed test in configure
[wxWidgets.git] / wxPython / src / gtk / gdi.cpp
1 /*
2 * FILE : src/gtk/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initgdic
55
56 #define SWIG_name "gdic"
57
58 #include "helpers.h"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97 // Implementations of some alternate "constructors"
98
99 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
100 return new wxBitmap(width, height, depth);
101 }
102
103 static char** ConvertListOfStrings(PyObject* listOfStrings) {
104 char** cArray = NULL;
105 int count;
106
107 if (!PyList_Check(listOfStrings)) {
108 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
109 return NULL;
110 }
111 count = PyList_Size(listOfStrings);
112 cArray = new char*[count];
113
114 for(int x=0; x<count; x++) {
115 // TODO: Need some validation and error checking here
116 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
117 }
118 return cArray;
119 }
120
121
122 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
123 char** cArray = NULL;
124 wxBitmap* bmp;
125
126 cArray = ConvertListOfStrings(listOfStrings);
127 if (! cArray)
128 return NULL;
129 bmp = new wxBitmap(cArray);
130 delete [] cArray;
131 return bmp;
132 }
133
134
135 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
136 return new wxBitmap(icon);
137 }
138
139
140 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
141 return new wxBitmap(bits, width, height, depth);
142 }
143
144
145 // #ifdef __WXMSW__
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
150 // return NULL;
151 // }
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
153 // }
154 // #endif
155
156 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
157 return new wxMask(bitmap, colour);
158 }
159 // Implementations of some alternate "constructors"
160 wxIcon* wxEmptyIcon() {
161 return new wxIcon();
162 }
163
164 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
165 char** cArray = NULL;
166 wxIcon* icon;
167
168 cArray = ConvertListOfStrings(listOfStrings);
169 if (! cArray)
170 return NULL;
171 icon = new wxIcon(cArray);
172 delete [] cArray;
173 return icon;
174 }
175
176 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
177 wxIcon* icon = new wxIcon();
178 icon->CopyFromBitmap(bmp);
179 return icon;
180 }
181 // Alternate 'constructor'
182 wxCursor* wxPyStockCursor(int id) {
183 return new wxCursor(id);
184 }
185 // Alternate 'constructor'
186 wxColour* wxNamedColour(const wxString& colorName) {
187 return new wxColour(colorName);
188 }
189
190 class wxPyPen : public wxPen {
191 public:
192 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
193 : wxPen(colour, width, style)
194 { m_dash = NULL; }
195 ~wxPyPen() {
196 if (m_dash)
197 delete [] m_dash;
198 }
199
200 void SetDashes(int nb_dashes, const wxDash *dash) {
201 if (m_dash)
202 delete [] m_dash;
203 m_dash = new wxDash[nb_dashes];
204 for (int i=0; i<nb_dashes; i++) {
205 m_dash[i] = dash[i];
206 }
207 wxPen::SetDashes(nb_dashes, m_dash);
208 }
209
210 private:
211 wxDash* m_dash;
212 };
213
214 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
215 *x1 = dc->MinX();
216 *y1 = dc->MinY();
217 *x2 = dc->MaxX();
218 *y2 = dc->MaxY();
219 }
220 // Alternate 'constructor'
221 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
222 return new wxMemoryDC(oldDC);
223 }
224
225 #if 0
226 extern wxFont * wxNORMAL_FONT;
227 extern wxFont * wxSMALL_FONT;
228 extern wxFont * wxITALIC_FONT;
229 extern wxFont * wxSWISS_FONT;
230 extern wxPen * wxRED_PEN;
231 extern wxPen * wxCYAN_PEN;
232 extern wxPen * wxGREEN_PEN;
233 extern wxPen * wxBLACK_PEN;
234 extern wxPen * wxWHITE_PEN;
235 extern wxPen * wxTRANSPARENT_PEN;
236 extern wxPen * wxBLACK_DASHED_PEN;
237 extern wxPen * wxGREY_PEN;
238 extern wxPen * wxMEDIUM_GREY_PEN;
239 extern wxPen * wxLIGHT_GREY_PEN;
240 extern wxBrush * wxBLUE_BRUSH;
241 extern wxBrush * wxGREEN_BRUSH;
242 extern wxBrush * wxWHITE_BRUSH;
243 extern wxBrush * wxBLACK_BRUSH;
244 extern wxBrush * wxTRANSPARENT_BRUSH;
245 extern wxBrush * wxCYAN_BRUSH;
246 extern wxBrush * wxRED_BRUSH;
247 extern wxBrush * wxGREY_BRUSH;
248 extern wxBrush * wxMEDIUM_GREY_BRUSH;
249 extern wxBrush * wxLIGHT_GREY_BRUSH;
250 extern wxColour * wxBLACK;
251 extern wxColour * wxWHITE;
252 extern wxColour * wxRED;
253 extern wxColour * wxBLUE;
254 extern wxColour * wxGREEN;
255 extern wxColour * wxCYAN;
256 extern wxColour * wxLIGHT_GREY;
257 extern wxCursor * wxSTANDARD_CURSOR;
258 extern wxCursor * wxHOURGLASS_CURSOR;
259 extern wxCursor * wxCROSS_CURSOR;
260 extern wxBitmap wxNullBitmap;
261 extern wxIcon wxNullIcon;
262 extern wxCursor wxNullCursor;
263 extern wxPen wxNullPen;
264 extern wxBrush wxNullBrush;
265 extern wxPalette wxNullPalette;
266 extern wxFont wxNullFont;
267 extern wxColour wxNullColour;
268 extern wxFontList * wxTheFontList;
269 extern wxPenList * wxThePenList;
270 extern wxBrushList * wxTheBrushList;
271 extern wxColourDatabase * wxTheColourDatabase;
272
273 #endif
274 #ifdef __cplusplus
275 extern "C" {
276 #endif
277 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
278 PyObject * _resultobj;
279 wxBitmap * _result;
280 int _arg0;
281 int _arg1;
282 int _arg2 = (int ) -1;
283 char *_kwnames[] = { "width","height","depth", NULL };
284 char _ptemp[128];
285
286 self = self;
287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
288 return NULL;
289 {
290 PyThreadState* __tstate = wxPyBeginAllowThreads();
291 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
292
293 wxPyEndAllowThreads(__tstate);
294 if (PyErr_Occurred()) return NULL;
295 } if (_result) {
296 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
297 _resultobj = Py_BuildValue("s",_ptemp);
298 } else {
299 Py_INCREF(Py_None);
300 _resultobj = Py_None;
301 }
302 return _resultobj;
303 }
304
305 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
306 PyObject * _resultobj;
307 wxBitmap * _result;
308 PyObject * _arg0;
309 PyObject * _obj0 = 0;
310 char *_kwnames[] = { "listOfStrings", NULL };
311 char _ptemp[128];
312
313 self = self;
314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
315 return NULL;
316 {
317 _arg0 = _obj0;
318 }
319 {
320 PyThreadState* __tstate = wxPyBeginAllowThreads();
321 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
322
323 wxPyEndAllowThreads(__tstate);
324 if (PyErr_Occurred()) return NULL;
325 } if (_result) {
326 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
327 _resultobj = Py_BuildValue("s",_ptemp);
328 } else {
329 Py_INCREF(Py_None);
330 _resultobj = Py_None;
331 }
332 return _resultobj;
333 }
334
335 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
336 PyObject * _resultobj;
337 wxBitmap * _result;
338 wxIcon * _arg0;
339 PyObject * _argo0 = 0;
340 char *_kwnames[] = { "icon", NULL };
341 char _ptemp[128];
342
343 self = self;
344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
345 return NULL;
346 if (_argo0) {
347 if (_argo0 == Py_None) { _arg0 = NULL; }
348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
350 return NULL;
351 }
352 }
353 {
354 PyThreadState* __tstate = wxPyBeginAllowThreads();
355 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
356
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
359 } if (_result) {
360 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
361 _resultobj = Py_BuildValue("s",_ptemp);
362 } else {
363 Py_INCREF(Py_None);
364 _resultobj = Py_None;
365 }
366 return _resultobj;
367 }
368
369 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
370 PyObject * _resultobj;
371 wxBitmap * _result;
372 char * _arg0;
373 int _arg1;
374 int _arg2;
375 int _arg3 = (int ) 1;
376 char *_kwnames[] = { "bits","width","height","depth", NULL };
377 char _ptemp[128];
378
379 self = self;
380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
381 return NULL;
382 {
383 PyThreadState* __tstate = wxPyBeginAllowThreads();
384 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
385
386 wxPyEndAllowThreads(__tstate);
387 if (PyErr_Occurred()) return NULL;
388 } if (_result) {
389 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
390 _resultobj = Py_BuildValue("s",_ptemp);
391 } else {
392 Py_INCREF(Py_None);
393 _resultobj = Py_None;
394 }
395 return _resultobj;
396 }
397
398 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
399 PyObject * _resultobj;
400 wxMask * _result;
401 wxBitmap * _arg0;
402 wxColour * _arg1;
403 PyObject * _argo0 = 0;
404 wxColour temp;
405 PyObject * _obj1 = 0;
406 char *_kwnames[] = { "bitmap","colour", NULL };
407 char _ptemp[128];
408
409 self = self;
410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
411 return NULL;
412 if (_argo0) {
413 if (_argo0 == Py_None) { _arg0 = NULL; }
414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
416 return NULL;
417 }
418 }
419 {
420 _arg1 = &temp;
421 if (! wxColour_helper(_obj1, &_arg1))
422 return NULL;
423 }
424 {
425 PyThreadState* __tstate = wxPyBeginAllowThreads();
426 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
427
428 wxPyEndAllowThreads(__tstate);
429 if (PyErr_Occurred()) return NULL;
430 } if (_result) {
431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
432 _resultobj = Py_BuildValue("s",_ptemp);
433 } else {
434 Py_INCREF(Py_None);
435 _resultobj = Py_None;
436 }
437 return _resultobj;
438 }
439
440 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
441 PyObject * _resultobj;
442 wxIcon * _result;
443 char *_kwnames[] = { NULL };
444 char _ptemp[128];
445
446 self = self;
447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
448 return NULL;
449 {
450 PyThreadState* __tstate = wxPyBeginAllowThreads();
451 _result = (wxIcon *)wxEmptyIcon();
452
453 wxPyEndAllowThreads(__tstate);
454 if (PyErr_Occurred()) return NULL;
455 } if (_result) {
456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
457 _resultobj = Py_BuildValue("s",_ptemp);
458 } else {
459 Py_INCREF(Py_None);
460 _resultobj = Py_None;
461 }
462 return _resultobj;
463 }
464
465 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
466 PyObject * _resultobj;
467 wxIcon * _result;
468 PyObject * _arg0;
469 PyObject * _obj0 = 0;
470 char *_kwnames[] = { "listOfStrings", NULL };
471 char _ptemp[128];
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
475 return NULL;
476 {
477 _arg0 = _obj0;
478 }
479 {
480 PyThreadState* __tstate = wxPyBeginAllowThreads();
481 _result = (wxIcon *)wxIconFromXPMData(_arg0);
482
483 wxPyEndAllowThreads(__tstate);
484 if (PyErr_Occurred()) return NULL;
485 } if (_result) {
486 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
487 _resultobj = Py_BuildValue("s",_ptemp);
488 } else {
489 Py_INCREF(Py_None);
490 _resultobj = Py_None;
491 }
492 return _resultobj;
493 }
494
495 static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
496 PyObject * _resultobj;
497 wxIcon * _result;
498 wxBitmap * _arg0;
499 PyObject * _argo0 = 0;
500 char *_kwnames[] = { "bmp", NULL };
501 char _ptemp[128];
502
503 self = self;
504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
505 return NULL;
506 if (_argo0) {
507 if (_argo0 == Py_None) { _arg0 = NULL; }
508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
510 return NULL;
511 }
512 }
513 {
514 PyThreadState* __tstate = wxPyBeginAllowThreads();
515 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
516
517 wxPyEndAllowThreads(__tstate);
518 if (PyErr_Occurred()) return NULL;
519 } if (_result) {
520 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
521 _resultobj = Py_BuildValue("s",_ptemp);
522 } else {
523 Py_INCREF(Py_None);
524 _resultobj = Py_None;
525 }
526 return _resultobj;
527 }
528
529 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
530 PyObject * _resultobj;
531 wxCursor * _result;
532 int _arg0;
533 char *_kwnames[] = { "id", NULL };
534 char _ptemp[128];
535
536 self = self;
537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
538 return NULL;
539 {
540 PyThreadState* __tstate = wxPyBeginAllowThreads();
541 _result = (wxCursor *)wxPyStockCursor(_arg0);
542
543 wxPyEndAllowThreads(__tstate);
544 if (PyErr_Occurred()) return NULL;
545 } if (_result) {
546 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
547 _resultobj = Py_BuildValue("s",_ptemp);
548 } else {
549 Py_INCREF(Py_None);
550 _resultobj = Py_None;
551 }
552 return _resultobj;
553 }
554
555 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
556 PyObject * _resultobj;
557 wxColour * _result;
558 wxString * _arg0;
559 PyObject * _obj0 = 0;
560 char *_kwnames[] = { "colorName", NULL };
561 char _ptemp[128];
562
563 self = self;
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
565 return NULL;
566 {
567 #if PYTHON_API_VERSION >= 1009
568 char* tmpPtr; int tmpSize;
569 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
570 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
571 return NULL;
572 }
573 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
574 return NULL;
575 _arg0 = new wxString(tmpPtr, tmpSize);
576 #else
577 if (!PyString_Check(_obj0)) {
578 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
579 return NULL;
580 }
581 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
582 #endif
583 }
584 {
585 PyThreadState* __tstate = wxPyBeginAllowThreads();
586 _result = (wxColour *)wxNamedColour(*_arg0);
587
588 wxPyEndAllowThreads(__tstate);
589 if (PyErr_Occurred()) return NULL;
590 } if (_result) {
591 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
592 _resultobj = Py_BuildValue("s",_ptemp);
593 } else {
594 Py_INCREF(Py_None);
595 _resultobj = Py_None;
596 }
597 {
598 if (_obj0)
599 delete _arg0;
600 }
601 return _resultobj;
602 }
603
604 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
605 PyObject * _resultobj;
606 wxMemoryDC * _result;
607 wxDC * _arg0;
608 PyObject * _argo0 = 0;
609 char *_kwnames[] = { "oldDC", NULL };
610 char _ptemp[128];
611
612 self = self;
613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
614 return NULL;
615 if (_argo0) {
616 if (_argo0 == Py_None) { _arg0 = NULL; }
617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
619 return NULL;
620 }
621 }
622 {
623 PyThreadState* __tstate = wxPyBeginAllowThreads();
624 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
625
626 wxPyEndAllowThreads(__tstate);
627 if (PyErr_Occurred()) return NULL;
628 } if (_result) {
629 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
630 _resultobj = Py_BuildValue("s",_ptemp);
631 } else {
632 Py_INCREF(Py_None);
633 _resultobj = Py_None;
634 }
635 return _resultobj;
636 }
637
638 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
639
640 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
641 return 1;
642 }
643
644 static PyObject *_wrap_wxNORMAL_FONT_get() {
645 PyObject * pyobj;
646 char ptemp[128];
647
648 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
649 pyobj = PyString_FromString(ptemp);
650 return pyobj;
651 }
652
653 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
654
655 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
656 return 1;
657 }
658
659 static PyObject *_wrap_wxSMALL_FONT_get() {
660 PyObject * pyobj;
661 char ptemp[128];
662
663 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
664 pyobj = PyString_FromString(ptemp);
665 return pyobj;
666 }
667
668 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
669
670 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
671 return 1;
672 }
673
674 static PyObject *_wrap_wxITALIC_FONT_get() {
675 PyObject * pyobj;
676 char ptemp[128];
677
678 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
679 pyobj = PyString_FromString(ptemp);
680 return pyobj;
681 }
682
683 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
684
685 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
686 return 1;
687 }
688
689 static PyObject *_wrap_wxSWISS_FONT_get() {
690 PyObject * pyobj;
691 char ptemp[128];
692
693 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
694 pyobj = PyString_FromString(ptemp);
695 return pyobj;
696 }
697
698 static int _wrap_wxRED_PEN_set(PyObject *val) {
699
700 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
701 return 1;
702 }
703
704 static PyObject *_wrap_wxRED_PEN_get() {
705 PyObject * pyobj;
706 char ptemp[128];
707
708 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
709 pyobj = PyString_FromString(ptemp);
710 return pyobj;
711 }
712
713 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
714
715 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
716 return 1;
717 }
718
719 static PyObject *_wrap_wxCYAN_PEN_get() {
720 PyObject * pyobj;
721 char ptemp[128];
722
723 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
724 pyobj = PyString_FromString(ptemp);
725 return pyobj;
726 }
727
728 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
729
730 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
731 return 1;
732 }
733
734 static PyObject *_wrap_wxGREEN_PEN_get() {
735 PyObject * pyobj;
736 char ptemp[128];
737
738 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
739 pyobj = PyString_FromString(ptemp);
740 return pyobj;
741 }
742
743 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
744
745 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
746 return 1;
747 }
748
749 static PyObject *_wrap_wxBLACK_PEN_get() {
750 PyObject * pyobj;
751 char ptemp[128];
752
753 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
754 pyobj = PyString_FromString(ptemp);
755 return pyobj;
756 }
757
758 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
759
760 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
761 return 1;
762 }
763
764 static PyObject *_wrap_wxWHITE_PEN_get() {
765 PyObject * pyobj;
766 char ptemp[128];
767
768 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
769 pyobj = PyString_FromString(ptemp);
770 return pyobj;
771 }
772
773 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
774
775 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
776 return 1;
777 }
778
779 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
780 PyObject * pyobj;
781 char ptemp[128];
782
783 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
784 pyobj = PyString_FromString(ptemp);
785 return pyobj;
786 }
787
788 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
789
790 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
791 return 1;
792 }
793
794 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
795 PyObject * pyobj;
796 char ptemp[128];
797
798 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
799 pyobj = PyString_FromString(ptemp);
800 return pyobj;
801 }
802
803 static int _wrap_wxGREY_PEN_set(PyObject *val) {
804
805 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
806 return 1;
807 }
808
809 static PyObject *_wrap_wxGREY_PEN_get() {
810 PyObject * pyobj;
811 char ptemp[128];
812
813 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
814 pyobj = PyString_FromString(ptemp);
815 return pyobj;
816 }
817
818 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
819
820 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
821 return 1;
822 }
823
824 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
825 PyObject * pyobj;
826 char ptemp[128];
827
828 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
829 pyobj = PyString_FromString(ptemp);
830 return pyobj;
831 }
832
833 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
834
835 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
836 return 1;
837 }
838
839 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
840 PyObject * pyobj;
841 char ptemp[128];
842
843 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
844 pyobj = PyString_FromString(ptemp);
845 return pyobj;
846 }
847
848 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
849
850 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
851 return 1;
852 }
853
854 static PyObject *_wrap_wxBLUE_BRUSH_get() {
855 PyObject * pyobj;
856 char ptemp[128];
857
858 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
859 pyobj = PyString_FromString(ptemp);
860 return pyobj;
861 }
862
863 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
864
865 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
866 return 1;
867 }
868
869 static PyObject *_wrap_wxGREEN_BRUSH_get() {
870 PyObject * pyobj;
871 char ptemp[128];
872
873 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
874 pyobj = PyString_FromString(ptemp);
875 return pyobj;
876 }
877
878 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
879
880 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
881 return 1;
882 }
883
884 static PyObject *_wrap_wxWHITE_BRUSH_get() {
885 PyObject * pyobj;
886 char ptemp[128];
887
888 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
889 pyobj = PyString_FromString(ptemp);
890 return pyobj;
891 }
892
893 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
894
895 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
896 return 1;
897 }
898
899 static PyObject *_wrap_wxBLACK_BRUSH_get() {
900 PyObject * pyobj;
901 char ptemp[128];
902
903 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
904 pyobj = PyString_FromString(ptemp);
905 return pyobj;
906 }
907
908 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
909
910 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
911 return 1;
912 }
913
914 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
915 PyObject * pyobj;
916 char ptemp[128];
917
918 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
919 pyobj = PyString_FromString(ptemp);
920 return pyobj;
921 }
922
923 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
924
925 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
926 return 1;
927 }
928
929 static PyObject *_wrap_wxCYAN_BRUSH_get() {
930 PyObject * pyobj;
931 char ptemp[128];
932
933 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
934 pyobj = PyString_FromString(ptemp);
935 return pyobj;
936 }
937
938 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
939
940 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
941 return 1;
942 }
943
944 static PyObject *_wrap_wxRED_BRUSH_get() {
945 PyObject * pyobj;
946 char ptemp[128];
947
948 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
949 pyobj = PyString_FromString(ptemp);
950 return pyobj;
951 }
952
953 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
954
955 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
956 return 1;
957 }
958
959 static PyObject *_wrap_wxGREY_BRUSH_get() {
960 PyObject * pyobj;
961 char ptemp[128];
962
963 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
964 pyobj = PyString_FromString(ptemp);
965 return pyobj;
966 }
967
968 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
969
970 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
971 return 1;
972 }
973
974 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
975 PyObject * pyobj;
976 char ptemp[128];
977
978 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
979 pyobj = PyString_FromString(ptemp);
980 return pyobj;
981 }
982
983 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
984
985 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
986 return 1;
987 }
988
989 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
990 PyObject * pyobj;
991 char ptemp[128];
992
993 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
994 pyobj = PyString_FromString(ptemp);
995 return pyobj;
996 }
997
998 static int _wrap_wxBLACK_set(PyObject *val) {
999
1000 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
1001 return 1;
1002 }
1003
1004 static PyObject *_wrap_wxBLACK_get() {
1005 PyObject * pyobj;
1006 char ptemp[128];
1007
1008 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
1009 pyobj = PyString_FromString(ptemp);
1010 return pyobj;
1011 }
1012
1013 static int _wrap_wxWHITE_set(PyObject *val) {
1014
1015 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1016 return 1;
1017 }
1018
1019 static PyObject *_wrap_wxWHITE_get() {
1020 PyObject * pyobj;
1021 char ptemp[128];
1022
1023 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1024 pyobj = PyString_FromString(ptemp);
1025 return pyobj;
1026 }
1027
1028 static int _wrap_wxRED_set(PyObject *val) {
1029
1030 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1031 return 1;
1032 }
1033
1034 static PyObject *_wrap_wxRED_get() {
1035 PyObject * pyobj;
1036 char ptemp[128];
1037
1038 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1039 pyobj = PyString_FromString(ptemp);
1040 return pyobj;
1041 }
1042
1043 static int _wrap_wxBLUE_set(PyObject *val) {
1044
1045 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1046 return 1;
1047 }
1048
1049 static PyObject *_wrap_wxBLUE_get() {
1050 PyObject * pyobj;
1051 char ptemp[128];
1052
1053 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1054 pyobj = PyString_FromString(ptemp);
1055 return pyobj;
1056 }
1057
1058 static int _wrap_wxGREEN_set(PyObject *val) {
1059
1060 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1061 return 1;
1062 }
1063
1064 static PyObject *_wrap_wxGREEN_get() {
1065 PyObject * pyobj;
1066 char ptemp[128];
1067
1068 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1069 pyobj = PyString_FromString(ptemp);
1070 return pyobj;
1071 }
1072
1073 static int _wrap_wxCYAN_set(PyObject *val) {
1074
1075 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1076 return 1;
1077 }
1078
1079 static PyObject *_wrap_wxCYAN_get() {
1080 PyObject * pyobj;
1081 char ptemp[128];
1082
1083 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1084 pyobj = PyString_FromString(ptemp);
1085 return pyobj;
1086 }
1087
1088 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1089
1090 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1091 return 1;
1092 }
1093
1094 static PyObject *_wrap_wxLIGHT_GREY_get() {
1095 PyObject * pyobj;
1096 char ptemp[128];
1097
1098 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1099 pyobj = PyString_FromString(ptemp);
1100 return pyobj;
1101 }
1102
1103 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1104
1105 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1106 return 1;
1107 }
1108
1109 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1110 PyObject * pyobj;
1111 char ptemp[128];
1112
1113 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1114 pyobj = PyString_FromString(ptemp);
1115 return pyobj;
1116 }
1117
1118 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1119
1120 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1121 return 1;
1122 }
1123
1124 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1125 PyObject * pyobj;
1126 char ptemp[128];
1127
1128 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1129 pyobj = PyString_FromString(ptemp);
1130 return pyobj;
1131 }
1132
1133 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1134
1135 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1136 return 1;
1137 }
1138
1139 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1140 PyObject * pyobj;
1141 char ptemp[128];
1142
1143 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1144 pyobj = PyString_FromString(ptemp);
1145 return pyobj;
1146 }
1147
1148 static int _wrap_wxNullBitmap_set(PyObject *val) {
1149
1150 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1151 return 1;
1152 }
1153
1154 static PyObject *_wrap_wxNullBitmap_get() {
1155 PyObject * pyobj;
1156 char ptemp[128];
1157
1158 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1159 pyobj = PyString_FromString(ptemp);
1160 return pyobj;
1161 }
1162
1163 static int _wrap_wxNullIcon_set(PyObject *val) {
1164
1165 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1166 return 1;
1167 }
1168
1169 static PyObject *_wrap_wxNullIcon_get() {
1170 PyObject * pyobj;
1171 char ptemp[128];
1172
1173 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1174 pyobj = PyString_FromString(ptemp);
1175 return pyobj;
1176 }
1177
1178 static int _wrap_wxNullCursor_set(PyObject *val) {
1179
1180 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1181 return 1;
1182 }
1183
1184 static PyObject *_wrap_wxNullCursor_get() {
1185 PyObject * pyobj;
1186 char ptemp[128];
1187
1188 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1189 pyobj = PyString_FromString(ptemp);
1190 return pyobj;
1191 }
1192
1193 static int _wrap_wxNullPen_set(PyObject *val) {
1194
1195 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1196 return 1;
1197 }
1198
1199 static PyObject *_wrap_wxNullPen_get() {
1200 PyObject * pyobj;
1201 char ptemp[128];
1202
1203 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1204 pyobj = PyString_FromString(ptemp);
1205 return pyobj;
1206 }
1207
1208 static int _wrap_wxNullBrush_set(PyObject *val) {
1209
1210 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1211 return 1;
1212 }
1213
1214 static PyObject *_wrap_wxNullBrush_get() {
1215 PyObject * pyobj;
1216 char ptemp[128];
1217
1218 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1219 pyobj = PyString_FromString(ptemp);
1220 return pyobj;
1221 }
1222
1223 static int _wrap_wxNullPalette_set(PyObject *val) {
1224
1225 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1226 return 1;
1227 }
1228
1229 static PyObject *_wrap_wxNullPalette_get() {
1230 PyObject * pyobj;
1231 char ptemp[128];
1232
1233 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1234 pyobj = PyString_FromString(ptemp);
1235 return pyobj;
1236 }
1237
1238 static int _wrap_wxNullFont_set(PyObject *val) {
1239
1240 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1241 return 1;
1242 }
1243
1244 static PyObject *_wrap_wxNullFont_get() {
1245 PyObject * pyobj;
1246 char ptemp[128];
1247
1248 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1249 pyobj = PyString_FromString(ptemp);
1250 return pyobj;
1251 }
1252
1253 static int _wrap_wxNullColour_set(PyObject *val) {
1254
1255 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1256 return 1;
1257 }
1258
1259 static PyObject *_wrap_wxNullColour_get() {
1260 PyObject * pyobj;
1261 char ptemp[128];
1262
1263 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1264 pyobj = PyString_FromString(ptemp);
1265 return pyobj;
1266 }
1267
1268 static int _wrap_wxTheFontList_set(PyObject *val) {
1269
1270 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1271 return 1;
1272 }
1273
1274 static PyObject *_wrap_wxTheFontList_get() {
1275 PyObject * pyobj;
1276 char ptemp[128];
1277
1278 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1279 pyobj = PyString_FromString(ptemp);
1280 return pyobj;
1281 }
1282
1283 static int _wrap_wxThePenList_set(PyObject *val) {
1284
1285 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1286 return 1;
1287 }
1288
1289 static PyObject *_wrap_wxThePenList_get() {
1290 PyObject * pyobj;
1291 char ptemp[128];
1292
1293 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1294 pyobj = PyString_FromString(ptemp);
1295 return pyobj;
1296 }
1297
1298 static int _wrap_wxTheBrushList_set(PyObject *val) {
1299
1300 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1301 return 1;
1302 }
1303
1304 static PyObject *_wrap_wxTheBrushList_get() {
1305 PyObject * pyobj;
1306 char ptemp[128];
1307
1308 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1309 pyobj = PyString_FromString(ptemp);
1310 return pyobj;
1311 }
1312
1313 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1314
1315 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1316 return 1;
1317 }
1318
1319 static PyObject *_wrap_wxTheColourDatabase_get() {
1320 PyObject * pyobj;
1321 char ptemp[128];
1322
1323 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1324 pyobj = PyString_FromString(ptemp);
1325 return pyobj;
1326 }
1327
1328 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1329 wxGDIObject *src;
1330 wxObject *dest;
1331 src = (wxGDIObject *) ptr;
1332 dest = (wxObject *) src;
1333 return (void *) dest;
1334 }
1335
1336 #define new_wxGDIObject() (new wxGDIObject())
1337 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject * _resultobj;
1339 wxGDIObject * _result;
1340 char *_kwnames[] = { NULL };
1341 char _ptemp[128];
1342
1343 self = self;
1344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1345 return NULL;
1346 {
1347 PyThreadState* __tstate = wxPyBeginAllowThreads();
1348 _result = (wxGDIObject *)new_wxGDIObject();
1349
1350 wxPyEndAllowThreads(__tstate);
1351 if (PyErr_Occurred()) return NULL;
1352 } if (_result) {
1353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1354 _resultobj = Py_BuildValue("s",_ptemp);
1355 } else {
1356 Py_INCREF(Py_None);
1357 _resultobj = Py_None;
1358 }
1359 return _resultobj;
1360 }
1361
1362 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1363 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1364 PyObject * _resultobj;
1365 wxGDIObject * _arg0;
1366 PyObject * _argo0 = 0;
1367 char *_kwnames[] = { "self", NULL };
1368
1369 self = self;
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1371 return NULL;
1372 if (_argo0) {
1373 if (_argo0 == Py_None) { _arg0 = NULL; }
1374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1376 return NULL;
1377 }
1378 }
1379 {
1380 PyThreadState* __tstate = wxPyBeginAllowThreads();
1381 delete_wxGDIObject(_arg0);
1382
1383 wxPyEndAllowThreads(__tstate);
1384 if (PyErr_Occurred()) return NULL;
1385 } Py_INCREF(Py_None);
1386 _resultobj = Py_None;
1387 return _resultobj;
1388 }
1389
1390 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1391 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1392 PyObject * _resultobj;
1393 bool _result;
1394 wxGDIObject * _arg0;
1395 PyObject * _argo0 = 0;
1396 char *_kwnames[] = { "self", NULL };
1397
1398 self = self;
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1400 return NULL;
1401 if (_argo0) {
1402 if (_argo0 == Py_None) { _arg0 = NULL; }
1403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1405 return NULL;
1406 }
1407 }
1408 {
1409 PyThreadState* __tstate = wxPyBeginAllowThreads();
1410 _result = (bool )wxGDIObject_GetVisible(_arg0);
1411
1412 wxPyEndAllowThreads(__tstate);
1413 if (PyErr_Occurred()) return NULL;
1414 } _resultobj = Py_BuildValue("i",_result);
1415 return _resultobj;
1416 }
1417
1418 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1419 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1420 PyObject * _resultobj;
1421 wxGDIObject * _arg0;
1422 bool _arg1;
1423 PyObject * _argo0 = 0;
1424 int tempbool1;
1425 char *_kwnames[] = { "self","visible", NULL };
1426
1427 self = self;
1428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1429 return NULL;
1430 if (_argo0) {
1431 if (_argo0 == Py_None) { _arg0 = NULL; }
1432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1434 return NULL;
1435 }
1436 }
1437 _arg1 = (bool ) tempbool1;
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 wxGDIObject_SetVisible(_arg0,_arg1);
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) return NULL;
1444 } Py_INCREF(Py_None);
1445 _resultobj = Py_None;
1446 return _resultobj;
1447 }
1448
1449 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1450 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1451 PyObject * _resultobj;
1452 bool _result;
1453 wxGDIObject * _arg0;
1454 PyObject * _argo0 = 0;
1455 char *_kwnames[] = { "self", NULL };
1456
1457 self = self;
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1459 return NULL;
1460 if (_argo0) {
1461 if (_argo0 == Py_None) { _arg0 = NULL; }
1462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1464 return NULL;
1465 }
1466 }
1467 {
1468 PyThreadState* __tstate = wxPyBeginAllowThreads();
1469 _result = (bool )wxGDIObject_IsNull(_arg0);
1470
1471 wxPyEndAllowThreads(__tstate);
1472 if (PyErr_Occurred()) return NULL;
1473 } _resultobj = Py_BuildValue("i",_result);
1474 return _resultobj;
1475 }
1476
1477 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1478 wxBitmap *src;
1479 wxGDIObject *dest;
1480 src = (wxBitmap *) ptr;
1481 dest = (wxGDIObject *) src;
1482 return (void *) dest;
1483 }
1484
1485 static void *SwigwxBitmapTowxObject(void *ptr) {
1486 wxBitmap *src;
1487 wxObject *dest;
1488 src = (wxBitmap *) ptr;
1489 dest = (wxObject *) src;
1490 return (void *) dest;
1491 }
1492
1493 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1494 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1495 PyObject * _resultobj;
1496 wxBitmap * _result;
1497 wxString * _arg0;
1498 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1499 PyObject * _obj0 = 0;
1500 char *_kwnames[] = { "name","type", NULL };
1501 char _ptemp[128];
1502
1503 self = self;
1504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1505 return NULL;
1506 {
1507 #if PYTHON_API_VERSION >= 1009
1508 char* tmpPtr; int tmpSize;
1509 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1510 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1511 return NULL;
1512 }
1513 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1514 return NULL;
1515 _arg0 = new wxString(tmpPtr, tmpSize);
1516 #else
1517 if (!PyString_Check(_obj0)) {
1518 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1519 return NULL;
1520 }
1521 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1522 #endif
1523 }
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
1526 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) return NULL;
1530 } if (_result) {
1531 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1532 _resultobj = Py_BuildValue("s",_ptemp);
1533 } else {
1534 Py_INCREF(Py_None);
1535 _resultobj = Py_None;
1536 }
1537 {
1538 if (_obj0)
1539 delete _arg0;
1540 }
1541 return _resultobj;
1542 }
1543
1544 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1545 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1546 PyObject * _resultobj;
1547 wxBitmap * _arg0;
1548 PyObject * _argo0 = 0;
1549 char *_kwnames[] = { "self", NULL };
1550
1551 self = self;
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1553 return NULL;
1554 if (_argo0) {
1555 if (_argo0 == Py_None) { _arg0 = NULL; }
1556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1558 return NULL;
1559 }
1560 }
1561 {
1562 PyThreadState* __tstate = wxPyBeginAllowThreads();
1563 delete_wxBitmap(_arg0);
1564
1565 wxPyEndAllowThreads(__tstate);
1566 if (PyErr_Occurred()) return NULL;
1567 } Py_INCREF(Py_None);
1568 _resultobj = Py_None;
1569 return _resultobj;
1570 }
1571
1572 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1573 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1574 PyObject * _resultobj;
1575 wxPalette * _result;
1576 wxBitmap * _arg0;
1577 PyObject * _argo0 = 0;
1578 char *_kwnames[] = { "self", NULL };
1579 char _ptemp[128];
1580
1581 self = self;
1582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1583 return NULL;
1584 if (_argo0) {
1585 if (_argo0 == Py_None) { _arg0 = NULL; }
1586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1588 return NULL;
1589 }
1590 }
1591 {
1592 PyThreadState* __tstate = wxPyBeginAllowThreads();
1593 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1594
1595 wxPyEndAllowThreads(__tstate);
1596 if (PyErr_Occurred()) return NULL;
1597 } if (_result) {
1598 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1599 _resultobj = Py_BuildValue("s",_ptemp);
1600 } else {
1601 Py_INCREF(Py_None);
1602 _resultobj = Py_None;
1603 }
1604 return _resultobj;
1605 }
1606
1607 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1608 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1609 PyObject * _resultobj;
1610 wxMask * _result;
1611 wxBitmap * _arg0;
1612 PyObject * _argo0 = 0;
1613 char *_kwnames[] = { "self", NULL };
1614 char _ptemp[128];
1615
1616 self = self;
1617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1618 return NULL;
1619 if (_argo0) {
1620 if (_argo0 == Py_None) { _arg0 = NULL; }
1621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1623 return NULL;
1624 }
1625 }
1626 {
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) return NULL;
1632 } if (_result) {
1633 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1634 _resultobj = Py_BuildValue("s",_ptemp);
1635 } else {
1636 Py_INCREF(Py_None);
1637 _resultobj = Py_None;
1638 }
1639 return _resultobj;
1640 }
1641
1642 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1643 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1644 PyObject * _resultobj;
1645 bool _result;
1646 wxBitmap * _arg0;
1647 wxString * _arg1;
1648 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1649 PyObject * _argo0 = 0;
1650 PyObject * _obj1 = 0;
1651 char *_kwnames[] = { "self","name","type", NULL };
1652
1653 self = self;
1654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1655 return NULL;
1656 if (_argo0) {
1657 if (_argo0 == Py_None) { _arg0 = NULL; }
1658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1660 return NULL;
1661 }
1662 }
1663 {
1664 #if PYTHON_API_VERSION >= 1009
1665 char* tmpPtr; int tmpSize;
1666 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1667 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1668 return NULL;
1669 }
1670 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1671 return NULL;
1672 _arg1 = new wxString(tmpPtr, tmpSize);
1673 #else
1674 if (!PyString_Check(_obj1)) {
1675 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1676 return NULL;
1677 }
1678 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1679 #endif
1680 }
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) return NULL;
1687 } _resultobj = Py_BuildValue("i",_result);
1688 {
1689 if (_obj1)
1690 delete _arg1;
1691 }
1692 return _resultobj;
1693 }
1694
1695 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1696 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1697 PyObject * _resultobj;
1698 bool _result;
1699 wxBitmap * _arg0;
1700 wxString * _arg1;
1701 wxBitmapType _arg2;
1702 wxPalette * _arg3 = (wxPalette *) NULL;
1703 PyObject * _argo0 = 0;
1704 PyObject * _obj1 = 0;
1705 PyObject * _argo3 = 0;
1706 char *_kwnames[] = { "self","name","type","palette", NULL };
1707
1708 self = self;
1709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
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_SaveFile. Expected _wxBitmap_p.");
1715 return NULL;
1716 }
1717 }
1718 {
1719 #if PYTHON_API_VERSION >= 1009
1720 char* tmpPtr; int tmpSize;
1721 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1722 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1723 return NULL;
1724 }
1725 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1726 return NULL;
1727 _arg1 = new wxString(tmpPtr, tmpSize);
1728 #else
1729 if (!PyString_Check(_obj1)) {
1730 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1731 return NULL;
1732 }
1733 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1734 #endif
1735 }
1736 if (_argo3) {
1737 if (_argo3 == Py_None) { _arg3 = NULL; }
1738 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1739 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1740 return NULL;
1741 }
1742 }
1743 {
1744 PyThreadState* __tstate = wxPyBeginAllowThreads();
1745 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1746
1747 wxPyEndAllowThreads(__tstate);
1748 if (PyErr_Occurred()) return NULL;
1749 } _resultobj = Py_BuildValue("i",_result);
1750 {
1751 if (_obj1)
1752 delete _arg1;
1753 }
1754 return _resultobj;
1755 }
1756
1757 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1758 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject * _resultobj;
1760 wxBitmap * _arg0;
1761 wxMask * _arg1;
1762 PyObject * _argo0 = 0;
1763 PyObject * _argo1 = 0;
1764 char *_kwnames[] = { "self","mask", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1773 return NULL;
1774 }
1775 }
1776 if (_argo1) {
1777 if (_argo1 == Py_None) { _arg1 = NULL; }
1778 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1779 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1780 return NULL;
1781 }
1782 }
1783 {
1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
1785 wxBitmap_SetMask(_arg0,_arg1);
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) return NULL;
1789 } Py_INCREF(Py_None);
1790 _resultobj = Py_None;
1791 return _resultobj;
1792 }
1793
1794 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1795 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject * _resultobj;
1797 bool _result;
1798 wxBitmap * _arg0;
1799 PyObject * _argo0 = 0;
1800 char *_kwnames[] = { "self", NULL };
1801
1802 self = self;
1803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1804 return NULL;
1805 if (_argo0) {
1806 if (_argo0 == Py_None) { _arg0 = NULL; }
1807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1809 return NULL;
1810 }
1811 }
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 _result = (bool )wxBitmap_Ok(_arg0);
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) return NULL;
1818 } _resultobj = Py_BuildValue("i",_result);
1819 return _resultobj;
1820 }
1821
1822 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1823 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1824 PyObject * _resultobj;
1825 int _result;
1826 wxBitmap * _arg0;
1827 PyObject * _argo0 = 0;
1828 char *_kwnames[] = { "self", NULL };
1829
1830 self = self;
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1832 return NULL;
1833 if (_argo0) {
1834 if (_argo0 == Py_None) { _arg0 = NULL; }
1835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1837 return NULL;
1838 }
1839 }
1840 {
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 _result = (int )wxBitmap_GetWidth(_arg0);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) return NULL;
1846 } _resultobj = Py_BuildValue("i",_result);
1847 return _resultobj;
1848 }
1849
1850 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1851 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject * _resultobj;
1853 int _result;
1854 wxBitmap * _arg0;
1855 PyObject * _argo0 = 0;
1856 char *_kwnames[] = { "self", NULL };
1857
1858 self = self;
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1860 return NULL;
1861 if (_argo0) {
1862 if (_argo0 == Py_None) { _arg0 = NULL; }
1863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1865 return NULL;
1866 }
1867 }
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 _result = (int )wxBitmap_GetHeight(_arg0);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) return NULL;
1874 } _resultobj = Py_BuildValue("i",_result);
1875 return _resultobj;
1876 }
1877
1878 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1879 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1880 PyObject * _resultobj;
1881 int _result;
1882 wxBitmap * _arg0;
1883 PyObject * _argo0 = 0;
1884 char *_kwnames[] = { "self", NULL };
1885
1886 self = self;
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1888 return NULL;
1889 if (_argo0) {
1890 if (_argo0 == Py_None) { _arg0 = NULL; }
1891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1893 return NULL;
1894 }
1895 }
1896 {
1897 PyThreadState* __tstate = wxPyBeginAllowThreads();
1898 _result = (int )wxBitmap_GetDepth(_arg0);
1899
1900 wxPyEndAllowThreads(__tstate);
1901 if (PyErr_Occurred()) return NULL;
1902 } _resultobj = Py_BuildValue("i",_result);
1903 return _resultobj;
1904 }
1905
1906 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1907 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject * _resultobj;
1909 wxBitmap * _arg0;
1910 int _arg1;
1911 PyObject * _argo0 = 0;
1912 char *_kwnames[] = { "self","w", NULL };
1913
1914 self = self;
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_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_SetWidth. Expected _wxBitmap_p.");
1921 return NULL;
1922 }
1923 }
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 wxBitmap_SetWidth(_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_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1936 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject * _resultobj;
1938 wxBitmap * _arg0;
1939 int _arg1;
1940 PyObject * _argo0 = 0;
1941 char *_kwnames[] = { "self","h", NULL };
1942
1943 self = self;
1944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
1945 return NULL;
1946 if (_argo0) {
1947 if (_argo0 == Py_None) { _arg0 = NULL; }
1948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1950 return NULL;
1951 }
1952 }
1953 {
1954 PyThreadState* __tstate = wxPyBeginAllowThreads();
1955 wxBitmap_SetHeight(_arg0,_arg1);
1956
1957 wxPyEndAllowThreads(__tstate);
1958 if (PyErr_Occurred()) return NULL;
1959 } Py_INCREF(Py_None);
1960 _resultobj = Py_None;
1961 return _resultobj;
1962 }
1963
1964 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1965 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject * _resultobj;
1967 wxBitmap * _arg0;
1968 int _arg1;
1969 PyObject * _argo0 = 0;
1970 char *_kwnames[] = { "self","d", NULL };
1971
1972 self = self;
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
1974 return NULL;
1975 if (_argo0) {
1976 if (_argo0 == Py_None) { _arg0 = NULL; }
1977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1979 return NULL;
1980 }
1981 }
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 wxBitmap_SetDepth(_arg0,_arg1);
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) return NULL;
1988 } Py_INCREF(Py_None);
1989 _resultobj = Py_None;
1990 return _resultobj;
1991 }
1992
1993 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1994 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxBitmap * _result;
1997 wxBitmap * _arg0;
1998 wxRect * _arg1;
1999 PyObject * _argo0 = 0;
2000 wxRect temp;
2001 PyObject * _obj1 = 0;
2002 char *_kwnames[] = { "self","rect", NULL };
2003 char _ptemp[128];
2004
2005 self = self;
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2007 return NULL;
2008 if (_argo0) {
2009 if (_argo0 == Py_None) { _arg0 = NULL; }
2010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2012 return NULL;
2013 }
2014 }
2015 {
2016 _arg1 = &temp;
2017 if (! wxRect_helper(_obj1, &_arg1))
2018 return NULL;
2019 }
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) return NULL;
2026 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2027 _resultobj = Py_BuildValue("s",_ptemp);
2028 return _resultobj;
2029 }
2030
2031 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2032 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2033 PyObject * _resultobj;
2034 bool _result;
2035 wxBitmap * _arg0;
2036 wxIcon * _arg1;
2037 PyObject * _argo0 = 0;
2038 PyObject * _argo1 = 0;
2039 char *_kwnames[] = { "self","icon", NULL };
2040
2041 self = self;
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2043 return NULL;
2044 if (_argo0) {
2045 if (_argo0 == Py_None) { _arg0 = NULL; }
2046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2048 return NULL;
2049 }
2050 }
2051 if (_argo1) {
2052 if (_argo1 == Py_None) { _arg1 = NULL; }
2053 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2054 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2055 return NULL;
2056 }
2057 }
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) return NULL;
2064 } _resultobj = Py_BuildValue("i",_result);
2065 return _resultobj;
2066 }
2067
2068 static void *SwigwxMaskTowxObject(void *ptr) {
2069 wxMask *src;
2070 wxObject *dest;
2071 src = (wxMask *) ptr;
2072 dest = (wxObject *) src;
2073 return (void *) dest;
2074 }
2075
2076 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2077 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2078 PyObject * _resultobj;
2079 wxMask * _result;
2080 wxBitmap * _arg0;
2081 PyObject * _argo0 = 0;
2082 char *_kwnames[] = { "bitmap", NULL };
2083 char _ptemp[128];
2084
2085 self = self;
2086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2087 return NULL;
2088 if (_argo0) {
2089 if (_argo0 == Py_None) { _arg0 = NULL; }
2090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2092 return NULL;
2093 }
2094 }
2095 {
2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
2097 _result = (wxMask *)new_wxMask(*_arg0);
2098
2099 wxPyEndAllowThreads(__tstate);
2100 if (PyErr_Occurred()) return NULL;
2101 } if (_result) {
2102 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2103 _resultobj = Py_BuildValue("s",_ptemp);
2104 } else {
2105 Py_INCREF(Py_None);
2106 _resultobj = Py_None;
2107 }
2108 return _resultobj;
2109 }
2110
2111 static void wxMask_Destroy(wxMask *self) { delete self; }
2112 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2113 PyObject * _resultobj;
2114 wxMask * _arg0;
2115 PyObject * _argo0 = 0;
2116 char *_kwnames[] = { "self", NULL };
2117
2118 self = self;
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2120 return NULL;
2121 if (_argo0) {
2122 if (_argo0 == Py_None) { _arg0 = NULL; }
2123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2125 return NULL;
2126 }
2127 }
2128 {
2129 PyThreadState* __tstate = wxPyBeginAllowThreads();
2130 wxMask_Destroy(_arg0);
2131
2132 wxPyEndAllowThreads(__tstate);
2133 if (PyErr_Occurred()) return NULL;
2134 } Py_INCREF(Py_None);
2135 _resultobj = Py_None;
2136 return _resultobj;
2137 }
2138
2139 static void *SwigwxIconTowxGDIObject(void *ptr) {
2140 wxIcon *src;
2141 wxGDIObject *dest;
2142 src = (wxIcon *) ptr;
2143 dest = (wxGDIObject *) src;
2144 return (void *) dest;
2145 }
2146
2147 static void *SwigwxIconTowxObject(void *ptr) {
2148 wxIcon *src;
2149 wxObject *dest;
2150 src = (wxIcon *) ptr;
2151 dest = (wxObject *) src;
2152 return (void *) dest;
2153 }
2154
2155 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2156 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2157 PyObject * _resultobj;
2158 wxIcon * _result;
2159 wxString * _arg0;
2160 long _arg1;
2161 int _arg2 = (int ) -1;
2162 int _arg3 = (int ) -1;
2163 PyObject * _obj0 = 0;
2164 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2165 char _ptemp[128];
2166
2167 self = self;
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2169 return NULL;
2170 {
2171 #if PYTHON_API_VERSION >= 1009
2172 char* tmpPtr; int tmpSize;
2173 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2174 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2175 return NULL;
2176 }
2177 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2178 return NULL;
2179 _arg0 = new wxString(tmpPtr, tmpSize);
2180 #else
2181 if (!PyString_Check(_obj0)) {
2182 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2183 return NULL;
2184 }
2185 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2186 #endif
2187 }
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) return NULL;
2194 } if (_result) {
2195 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2196 _resultobj = Py_BuildValue("s",_ptemp);
2197 } else {
2198 Py_INCREF(Py_None);
2199 _resultobj = Py_None;
2200 }
2201 {
2202 if (_obj0)
2203 delete _arg0;
2204 }
2205 return _resultobj;
2206 }
2207
2208 #define delete_wxIcon(_swigobj) (delete _swigobj)
2209 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject * _resultobj;
2211 wxIcon * _arg0;
2212 PyObject * _argo0 = 0;
2213 char *_kwnames[] = { "self", NULL };
2214
2215 self = self;
2216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2217 return NULL;
2218 if (_argo0) {
2219 if (_argo0 == Py_None) { _arg0 = NULL; }
2220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2222 return NULL;
2223 }
2224 }
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 delete_wxIcon(_arg0);
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) return NULL;
2231 } Py_INCREF(Py_None);
2232 _resultobj = Py_None;
2233 return _resultobj;
2234 }
2235
2236 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2237 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject * _resultobj;
2239 bool _result;
2240 wxIcon * _arg0;
2241 wxString * _arg1;
2242 long _arg2;
2243 PyObject * _argo0 = 0;
2244 PyObject * _obj1 = 0;
2245 char *_kwnames[] = { "self","name","flags", NULL };
2246
2247 self = self;
2248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2249 return NULL;
2250 if (_argo0) {
2251 if (_argo0 == Py_None) { _arg0 = NULL; }
2252 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2253 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2254 return NULL;
2255 }
2256 }
2257 {
2258 #if PYTHON_API_VERSION >= 1009
2259 char* tmpPtr; int tmpSize;
2260 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2261 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2262 return NULL;
2263 }
2264 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2265 return NULL;
2266 _arg1 = new wxString(tmpPtr, tmpSize);
2267 #else
2268 if (!PyString_Check(_obj1)) {
2269 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2270 return NULL;
2271 }
2272 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2273 #endif
2274 }
2275 {
2276 PyThreadState* __tstate = wxPyBeginAllowThreads();
2277 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2278
2279 wxPyEndAllowThreads(__tstate);
2280 if (PyErr_Occurred()) return NULL;
2281 } _resultobj = Py_BuildValue("i",_result);
2282 {
2283 if (_obj1)
2284 delete _arg1;
2285 }
2286 return _resultobj;
2287 }
2288
2289 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2290 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject * _resultobj;
2292 bool _result;
2293 wxIcon * _arg0;
2294 PyObject * _argo0 = 0;
2295 char *_kwnames[] = { "self", NULL };
2296
2297 self = self;
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2299 return NULL;
2300 if (_argo0) {
2301 if (_argo0 == Py_None) { _arg0 = NULL; }
2302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2304 return NULL;
2305 }
2306 }
2307 {
2308 PyThreadState* __tstate = wxPyBeginAllowThreads();
2309 _result = (bool )wxIcon_Ok(_arg0);
2310
2311 wxPyEndAllowThreads(__tstate);
2312 if (PyErr_Occurred()) return NULL;
2313 } _resultobj = Py_BuildValue("i",_result);
2314 return _resultobj;
2315 }
2316
2317 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2318 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2319 PyObject * _resultobj;
2320 int _result;
2321 wxIcon * _arg0;
2322 PyObject * _argo0 = 0;
2323 char *_kwnames[] = { "self", NULL };
2324
2325 self = self;
2326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2327 return NULL;
2328 if (_argo0) {
2329 if (_argo0 == Py_None) { _arg0 = NULL; }
2330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2332 return NULL;
2333 }
2334 }
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 _result = (int )wxIcon_GetWidth(_arg0);
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) return NULL;
2341 } _resultobj = Py_BuildValue("i",_result);
2342 return _resultobj;
2343 }
2344
2345 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2346 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2347 PyObject * _resultobj;
2348 int _result;
2349 wxIcon * _arg0;
2350 PyObject * _argo0 = 0;
2351 char *_kwnames[] = { "self", NULL };
2352
2353 self = self;
2354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2355 return NULL;
2356 if (_argo0) {
2357 if (_argo0 == Py_None) { _arg0 = NULL; }
2358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2360 return NULL;
2361 }
2362 }
2363 {
2364 PyThreadState* __tstate = wxPyBeginAllowThreads();
2365 _result = (int )wxIcon_GetHeight(_arg0);
2366
2367 wxPyEndAllowThreads(__tstate);
2368 if (PyErr_Occurred()) return NULL;
2369 } _resultobj = Py_BuildValue("i",_result);
2370 return _resultobj;
2371 }
2372
2373 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2374 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2375 PyObject * _resultobj;
2376 int _result;
2377 wxIcon * _arg0;
2378 PyObject * _argo0 = 0;
2379 char *_kwnames[] = { "self", NULL };
2380
2381 self = self;
2382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2383 return NULL;
2384 if (_argo0) {
2385 if (_argo0 == Py_None) { _arg0 = NULL; }
2386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2388 return NULL;
2389 }
2390 }
2391 {
2392 PyThreadState* __tstate = wxPyBeginAllowThreads();
2393 _result = (int )wxIcon_GetDepth(_arg0);
2394
2395 wxPyEndAllowThreads(__tstate);
2396 if (PyErr_Occurred()) return NULL;
2397 } _resultobj = Py_BuildValue("i",_result);
2398 return _resultobj;
2399 }
2400
2401 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2402 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject * _resultobj;
2404 wxIcon * _arg0;
2405 int _arg1;
2406 PyObject * _argo0 = 0;
2407 char *_kwnames[] = { "self","w", NULL };
2408
2409 self = self;
2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2411 return NULL;
2412 if (_argo0) {
2413 if (_argo0 == Py_None) { _arg0 = NULL; }
2414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2416 return NULL;
2417 }
2418 }
2419 {
2420 PyThreadState* __tstate = wxPyBeginAllowThreads();
2421 wxIcon_SetWidth(_arg0,_arg1);
2422
2423 wxPyEndAllowThreads(__tstate);
2424 if (PyErr_Occurred()) return NULL;
2425 } Py_INCREF(Py_None);
2426 _resultobj = Py_None;
2427 return _resultobj;
2428 }
2429
2430 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2431 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2432 PyObject * _resultobj;
2433 wxIcon * _arg0;
2434 int _arg1;
2435 PyObject * _argo0 = 0;
2436 char *_kwnames[] = { "self","h", NULL };
2437
2438 self = self;
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2440 return NULL;
2441 if (_argo0) {
2442 if (_argo0 == Py_None) { _arg0 = NULL; }
2443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2445 return NULL;
2446 }
2447 }
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 wxIcon_SetHeight(_arg0,_arg1);
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) return NULL;
2454 } Py_INCREF(Py_None);
2455 _resultobj = Py_None;
2456 return _resultobj;
2457 }
2458
2459 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2460 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2461 PyObject * _resultobj;
2462 wxIcon * _arg0;
2463 int _arg1;
2464 PyObject * _argo0 = 0;
2465 char *_kwnames[] = { "self","d", NULL };
2466
2467 self = self;
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2469 return NULL;
2470 if (_argo0) {
2471 if (_argo0 == Py_None) { _arg0 = NULL; }
2472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2474 return NULL;
2475 }
2476 }
2477 {
2478 PyThreadState* __tstate = wxPyBeginAllowThreads();
2479 wxIcon_SetDepth(_arg0,_arg1);
2480
2481 wxPyEndAllowThreads(__tstate);
2482 if (PyErr_Occurred()) return NULL;
2483 } Py_INCREF(Py_None);
2484 _resultobj = Py_None;
2485 return _resultobj;
2486 }
2487
2488 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2489 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2490 PyObject * _resultobj;
2491 wxIcon * _arg0;
2492 wxBitmap * _arg1;
2493 PyObject * _argo0 = 0;
2494 PyObject * _argo1 = 0;
2495 char *_kwnames[] = { "self","bmp", NULL };
2496
2497 self = self;
2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2499 return NULL;
2500 if (_argo0) {
2501 if (_argo0 == Py_None) { _arg0 = NULL; }
2502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2504 return NULL;
2505 }
2506 }
2507 if (_argo1) {
2508 if (_argo1 == Py_None) { _arg1 = NULL; }
2509 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2510 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2511 return NULL;
2512 }
2513 }
2514 {
2515 PyThreadState* __tstate = wxPyBeginAllowThreads();
2516 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2517
2518 wxPyEndAllowThreads(__tstate);
2519 if (PyErr_Occurred()) return NULL;
2520 } Py_INCREF(Py_None);
2521 _resultobj = Py_None;
2522 return _resultobj;
2523 }
2524
2525 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2526 wxCursor *src;
2527 wxGDIObject *dest;
2528 src = (wxCursor *) ptr;
2529 dest = (wxGDIObject *) src;
2530 return (void *) dest;
2531 }
2532
2533 static void *SwigwxCursorTowxObject(void *ptr) {
2534 wxCursor *src;
2535 wxObject *dest;
2536 src = (wxCursor *) ptr;
2537 dest = (wxObject *) src;
2538 return (void *) dest;
2539 }
2540
2541 #define delete_wxCursor(_swigobj) (delete _swigobj)
2542 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2543 PyObject * _resultobj;
2544 wxCursor * _arg0;
2545 PyObject * _argo0 = 0;
2546 char *_kwnames[] = { "self", NULL };
2547
2548 self = self;
2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2550 return NULL;
2551 if (_argo0) {
2552 if (_argo0 == Py_None) { _arg0 = NULL; }
2553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2555 return NULL;
2556 }
2557 }
2558 {
2559 PyThreadState* __tstate = wxPyBeginAllowThreads();
2560 delete_wxCursor(_arg0);
2561
2562 wxPyEndAllowThreads(__tstate);
2563 if (PyErr_Occurred()) return NULL;
2564 } Py_INCREF(Py_None);
2565 _resultobj = Py_None;
2566 return _resultobj;
2567 }
2568
2569 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2570 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2571 PyObject * _resultobj;
2572 bool _result;
2573 wxCursor * _arg0;
2574 PyObject * _argo0 = 0;
2575 char *_kwnames[] = { "self", NULL };
2576
2577 self = self;
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2579 return NULL;
2580 if (_argo0) {
2581 if (_argo0 == Py_None) { _arg0 = NULL; }
2582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2584 return NULL;
2585 }
2586 }
2587 {
2588 PyThreadState* __tstate = wxPyBeginAllowThreads();
2589 _result = (bool )wxCursor_Ok(_arg0);
2590
2591 wxPyEndAllowThreads(__tstate);
2592 if (PyErr_Occurred()) return NULL;
2593 } _resultobj = Py_BuildValue("i",_result);
2594 return _resultobj;
2595 }
2596
2597 #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2598 static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2599 PyObject * _resultobj;
2600 bool _result;
2601 wxNativeFontInfo * _arg0;
2602 wxString * _arg1;
2603 PyObject * _argo0 = 0;
2604 PyObject * _obj1 = 0;
2605 char *_kwnames[] = { "self","xFontName", NULL };
2606
2607 self = self;
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
2609 return NULL;
2610 if (_argo0) {
2611 if (_argo0 == Py_None) { _arg0 = NULL; }
2612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2614 return NULL;
2615 }
2616 }
2617 {
2618 #if PYTHON_API_VERSION >= 1009
2619 char* tmpPtr; int tmpSize;
2620 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2621 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2622 return NULL;
2623 }
2624 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2625 return NULL;
2626 _arg1 = new wxString(tmpPtr, tmpSize);
2627 #else
2628 if (!PyString_Check(_obj1)) {
2629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2630 return NULL;
2631 }
2632 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2633 #endif
2634 }
2635 {
2636 PyThreadState* __tstate = wxPyBeginAllowThreads();
2637 _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
2638
2639 wxPyEndAllowThreads(__tstate);
2640 if (PyErr_Occurred()) return NULL;
2641 } _resultobj = Py_BuildValue("i",_result);
2642 {
2643 if (_obj1)
2644 delete _arg1;
2645 }
2646 return _resultobj;
2647 }
2648
2649 #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
2650 static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject * _resultobj;
2652 bool _result;
2653 wxNativeFontInfo * _arg0;
2654 PyObject * _argo0 = 0;
2655 char *_kwnames[] = { "self", NULL };
2656
2657 self = self;
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0))
2659 return NULL;
2660 if (_argo0) {
2661 if (_argo0 == Py_None) { _arg0 = NULL; }
2662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
2664 return NULL;
2665 }
2666 }
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 _result = (bool )wxNativeFontInfo_IsDefault(_arg0);
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) return NULL;
2673 } _resultobj = Py_BuildValue("i",_result);
2674 return _resultobj;
2675 }
2676
2677 #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2678 static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2679 PyObject * _resultobj;
2680 wxString * _result;
2681 wxNativeFontInfo * _arg0;
2682 PyObject * _argo0 = 0;
2683 char *_kwnames[] = { "self", NULL };
2684
2685 self = self;
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
2687 return NULL;
2688 if (_argo0) {
2689 if (_argo0 == Py_None) { _arg0 = NULL; }
2690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2692 return NULL;
2693 }
2694 }
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) return NULL;
2701 }{
2702 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2703 }
2704 {
2705 delete _result;
2706 }
2707 return _resultobj;
2708 }
2709
2710 #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
2711 static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject * _resultobj;
2713 wxNativeFontInfo * _arg0;
2714 wxString * _arg1;
2715 PyObject * _argo0 = 0;
2716 PyObject * _obj1 = 0;
2717 char *_kwnames[] = { "self","xFontName", NULL };
2718
2719 self = self;
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1))
2721 return NULL;
2722 if (_argo0) {
2723 if (_argo0 == Py_None) { _arg0 = NULL; }
2724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
2726 return NULL;
2727 }
2728 }
2729 {
2730 #if PYTHON_API_VERSION >= 1009
2731 char* tmpPtr; int tmpSize;
2732 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2733 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2734 return NULL;
2735 }
2736 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2737 return NULL;
2738 _arg1 = new wxString(tmpPtr, tmpSize);
2739 #else
2740 if (!PyString_Check(_obj1)) {
2741 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2742 return NULL;
2743 }
2744 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2745 #endif
2746 }
2747 {
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 wxNativeFontInfo_SetXFontName(_arg0,*_arg1);
2750
2751 wxPyEndAllowThreads(__tstate);
2752 if (PyErr_Occurred()) return NULL;
2753 } Py_INCREF(Py_None);
2754 _resultobj = Py_None;
2755 {
2756 if (_obj1)
2757 delete _arg1;
2758 }
2759 return _resultobj;
2760 }
2761
2762 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2763 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2764 PyObject * _resultobj;
2765 wxNativeFontInfo * _result;
2766 char *_kwnames[] = { NULL };
2767 char _ptemp[128];
2768
2769 self = self;
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
2771 return NULL;
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) return NULL;
2778 } if (_result) {
2779 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
2780 _resultobj = Py_BuildValue("s",_ptemp);
2781 } else {
2782 Py_INCREF(Py_None);
2783 _resultobj = Py_None;
2784 }
2785 return _resultobj;
2786 }
2787
2788 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2789 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2790 PyObject * _resultobj;
2791 wxNativeFontInfo * _arg0;
2792 PyObject * _argo0 = 0;
2793 char *_kwnames[] = { "self", NULL };
2794
2795 self = self;
2796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
2797 return NULL;
2798 if (_argo0) {
2799 if (_argo0 == Py_None) { _arg0 = NULL; }
2800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2802 return NULL;
2803 }
2804 }
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 wxNativeFontInfo_Init(_arg0);
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) return NULL;
2811 } Py_INCREF(Py_None);
2812 _resultobj = Py_None;
2813 return _resultobj;
2814 }
2815
2816 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2817 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
2818 PyObject * _resultobj;
2819 bool _result;
2820 wxNativeFontInfo * _arg0;
2821 wxString * _arg1;
2822 PyObject * _argo0 = 0;
2823 PyObject * _obj1 = 0;
2824 char *_kwnames[] = { "self","s", NULL };
2825
2826 self = self;
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
2828 return NULL;
2829 if (_argo0) {
2830 if (_argo0 == Py_None) { _arg0 = NULL; }
2831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2833 return NULL;
2834 }
2835 }
2836 {
2837 #if PYTHON_API_VERSION >= 1009
2838 char* tmpPtr; int tmpSize;
2839 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2841 return NULL;
2842 }
2843 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2844 return NULL;
2845 _arg1 = new wxString(tmpPtr, tmpSize);
2846 #else
2847 if (!PyString_Check(_obj1)) {
2848 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2849 return NULL;
2850 }
2851 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2852 #endif
2853 }
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) return NULL;
2860 } _resultobj = Py_BuildValue("i",_result);
2861 {
2862 if (_obj1)
2863 delete _arg1;
2864 }
2865 return _resultobj;
2866 }
2867
2868 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2869 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject * _resultobj;
2871 wxString * _result;
2872 wxNativeFontInfo * _arg0;
2873 PyObject * _argo0 = 0;
2874 char *_kwnames[] = { "self", NULL };
2875
2876 self = self;
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
2878 return NULL;
2879 if (_argo0) {
2880 if (_argo0 == Py_None) { _arg0 = NULL; }
2881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2883 return NULL;
2884 }
2885 }
2886 {
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) return NULL;
2892 }{
2893 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2894 }
2895 {
2896 delete _result;
2897 }
2898 return _resultobj;
2899 }
2900
2901 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
2902 return self->ToString();
2903 }
2904 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject * _resultobj;
2906 wxString * _result;
2907 wxNativeFontInfo * _arg0;
2908 PyObject * _argo0 = 0;
2909 char *_kwnames[] = { "self", NULL };
2910
2911 self = self;
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
2913 return NULL;
2914 if (_argo0) {
2915 if (_argo0 == Py_None) { _arg0 = NULL; }
2916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2918 return NULL;
2919 }
2920 }
2921 {
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 _result = new wxString (wxNativeFontInfo___str__(_arg0));
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) return NULL;
2927 }{
2928 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2929 }
2930 {
2931 delete _result;
2932 }
2933 return _resultobj;
2934 }
2935
2936 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2937 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2938 PyObject * _resultobj;
2939 bool _result;
2940 wxNativeFontInfo * _arg0;
2941 wxString * _arg1;
2942 PyObject * _argo0 = 0;
2943 PyObject * _obj1 = 0;
2944 char *_kwnames[] = { "self","s", NULL };
2945
2946 self = self;
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
2948 return NULL;
2949 if (_argo0) {
2950 if (_argo0 == Py_None) { _arg0 = NULL; }
2951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2953 return NULL;
2954 }
2955 }
2956 {
2957 #if PYTHON_API_VERSION >= 1009
2958 char* tmpPtr; int tmpSize;
2959 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2960 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2961 return NULL;
2962 }
2963 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2964 return NULL;
2965 _arg1 = new wxString(tmpPtr, tmpSize);
2966 #else
2967 if (!PyString_Check(_obj1)) {
2968 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2969 return NULL;
2970 }
2971 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2972 #endif
2973 }
2974 {
2975 PyThreadState* __tstate = wxPyBeginAllowThreads();
2976 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
2977
2978 wxPyEndAllowThreads(__tstate);
2979 if (PyErr_Occurred()) return NULL;
2980 } _resultobj = Py_BuildValue("i",_result);
2981 {
2982 if (_obj1)
2983 delete _arg1;
2984 }
2985 return _resultobj;
2986 }
2987
2988 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2989 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 wxString * _result;
2992 wxNativeFontInfo * _arg0;
2993 PyObject * _argo0 = 0;
2994 char *_kwnames[] = { "self", NULL };
2995
2996 self = self;
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
2998 return NULL;
2999 if (_argo0) {
3000 if (_argo0 == Py_None) { _arg0 = NULL; }
3001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3003 return NULL;
3004 }
3005 }
3006 {
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
3008 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) return NULL;
3012 }{
3013 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3014 }
3015 {
3016 delete _result;
3017 }
3018 return _resultobj;
3019 }
3020
3021 #define new_wxFontMapper() (new wxFontMapper())
3022 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3023 PyObject * _resultobj;
3024 wxFontMapper * _result;
3025 char *_kwnames[] = { NULL };
3026 char _ptemp[128];
3027
3028 self = self;
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3030 return NULL;
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 _result = (wxFontMapper *)new_wxFontMapper();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) return NULL;
3037 } if (_result) {
3038 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3039 _resultobj = Py_BuildValue("s",_ptemp);
3040 } else {
3041 Py_INCREF(Py_None);
3042 _resultobj = Py_None;
3043 }
3044 return _resultobj;
3045 }
3046
3047 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3048 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3049 PyObject * _resultobj;
3050 wxFontMapper * _arg0;
3051 PyObject * _argo0 = 0;
3052 char *_kwnames[] = { "self", NULL };
3053
3054 self = self;
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3056 return NULL;
3057 if (_argo0) {
3058 if (_argo0 == Py_None) { _arg0 = NULL; }
3059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3061 return NULL;
3062 }
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 delete_wxFontMapper(_arg0);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) return NULL;
3070 } Py_INCREF(Py_None);
3071 _resultobj = Py_None;
3072 return _resultobj;
3073 }
3074
3075 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3076 wxFontEncoding alt_enc;
3077 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3078 return PyInt_FromLong(alt_enc);
3079 else {
3080 Py_INCREF(Py_None);
3081 return Py_None;
3082 }
3083 }
3084 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3085 PyObject * _resultobj;
3086 PyObject * _result;
3087 wxFontMapper * _arg0;
3088 wxFontEncoding _arg1;
3089 wxString * _arg2 = (wxString *) &wxEmptyString;
3090 bool _arg3 = (bool ) TRUE;
3091 PyObject * _argo0 = 0;
3092 PyObject * _obj2 = 0;
3093 int tempbool3 = (int) TRUE;
3094 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3095
3096 self = self;
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3098 return NULL;
3099 if (_argo0) {
3100 if (_argo0 == Py_None) { _arg0 = NULL; }
3101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3103 return NULL;
3104 }
3105 }
3106 if (_obj2)
3107 {
3108 #if PYTHON_API_VERSION >= 1009
3109 char* tmpPtr; int tmpSize;
3110 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3111 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3112 return NULL;
3113 }
3114 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3115 return NULL;
3116 _arg2 = new wxString(tmpPtr, tmpSize);
3117 #else
3118 if (!PyString_Check(_obj2)) {
3119 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3120 return NULL;
3121 }
3122 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3123 #endif
3124 }
3125 _arg3 = (bool ) tempbool3;
3126 {
3127 PyThreadState* __tstate = wxPyBeginAllowThreads();
3128 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3129
3130 wxPyEndAllowThreads(__tstate);
3131 if (PyErr_Occurred()) return NULL;
3132 }{
3133 _resultobj = _result;
3134 }
3135 {
3136 if (_obj2)
3137 delete _arg2;
3138 }
3139 return _resultobj;
3140 }
3141
3142 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3143 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
3144 PyObject * _resultobj;
3145 bool _result;
3146 wxFontMapper * _arg0;
3147 wxFontEncoding _arg1;
3148 wxString * _arg2 = (wxString *) &wxEmptyString;
3149 PyObject * _argo0 = 0;
3150 PyObject * _obj2 = 0;
3151 char *_kwnames[] = { "self","encoding","facename", NULL };
3152
3153 self = self;
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
3155 return NULL;
3156 if (_argo0) {
3157 if (_argo0 == Py_None) { _arg0 = NULL; }
3158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3160 return NULL;
3161 }
3162 }
3163 if (_obj2)
3164 {
3165 #if PYTHON_API_VERSION >= 1009
3166 char* tmpPtr; int tmpSize;
3167 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3168 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3169 return NULL;
3170 }
3171 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3172 return NULL;
3173 _arg2 = new wxString(tmpPtr, tmpSize);
3174 #else
3175 if (!PyString_Check(_obj2)) {
3176 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3177 return NULL;
3178 }
3179 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3180 #endif
3181 }
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) return NULL;
3188 } _resultobj = Py_BuildValue("i",_result);
3189 {
3190 if (_obj2)
3191 delete _arg2;
3192 }
3193 return _resultobj;
3194 }
3195
3196 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3197 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3198 PyObject * _resultobj;
3199 wxFontEncoding _result;
3200 wxFontMapper * _arg0;
3201 wxString * _arg1;
3202 bool _arg2 = (bool ) TRUE;
3203 PyObject * _argo0 = 0;
3204 PyObject * _obj1 = 0;
3205 int tempbool2 = (int) TRUE;
3206 char *_kwnames[] = { "self","charset","interactive", NULL };
3207
3208 self = self;
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
3210 return NULL;
3211 if (_argo0) {
3212 if (_argo0 == Py_None) { _arg0 = NULL; }
3213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3215 return NULL;
3216 }
3217 }
3218 {
3219 #if PYTHON_API_VERSION >= 1009
3220 char* tmpPtr; int tmpSize;
3221 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3222 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3223 return NULL;
3224 }
3225 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3226 return NULL;
3227 _arg1 = new wxString(tmpPtr, tmpSize);
3228 #else
3229 if (!PyString_Check(_obj1)) {
3230 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3231 return NULL;
3232 }
3233 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3234 #endif
3235 }
3236 _arg2 = (bool ) tempbool2;
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) return NULL;
3243 } _resultobj = Py_BuildValue("i",_result);
3244 {
3245 if (_obj1)
3246 delete _arg1;
3247 }
3248 return _resultobj;
3249 }
3250
3251 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3252 PyObject * _resultobj;
3253 wxString * _result;
3254 wxFontEncoding _arg0;
3255 char *_kwnames[] = { "encoding", NULL };
3256
3257 self = self;
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3259 return NULL;
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) return NULL;
3266 }{
3267 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3268 }
3269 {
3270 delete _result;
3271 }
3272 return _resultobj;
3273 }
3274
3275 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3276 PyObject * _resultobj;
3277 wxString * _result;
3278 wxFontEncoding _arg0;
3279 char *_kwnames[] = { "encoding", NULL };
3280
3281 self = self;
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3283 return NULL;
3284 {
3285 PyThreadState* __tstate = wxPyBeginAllowThreads();
3286 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
3287
3288 wxPyEndAllowThreads(__tstate);
3289 if (PyErr_Occurred()) return NULL;
3290 }{
3291 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3292 }
3293 {
3294 delete _result;
3295 }
3296 return _resultobj;
3297 }
3298
3299 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3300 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject * _resultobj;
3302 wxFontMapper * _arg0;
3303 wxWindow * _arg1;
3304 PyObject * _argo0 = 0;
3305 PyObject * _argo1 = 0;
3306 char *_kwnames[] = { "self","parent", NULL };
3307
3308 self = self;
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3310 return NULL;
3311 if (_argo0) {
3312 if (_argo0 == Py_None) { _arg0 = NULL; }
3313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3315 return NULL;
3316 }
3317 }
3318 if (_argo1) {
3319 if (_argo1 == Py_None) { _arg1 = NULL; }
3320 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3321 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3322 return NULL;
3323 }
3324 }
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
3327 wxFontMapper_SetDialogParent(_arg0,_arg1);
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) return NULL;
3331 } Py_INCREF(Py_None);
3332 _resultobj = Py_None;
3333 return _resultobj;
3334 }
3335
3336 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3337 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3338 PyObject * _resultobj;
3339 wxFontMapper * _arg0;
3340 wxString * _arg1;
3341 PyObject * _argo0 = 0;
3342 PyObject * _obj1 = 0;
3343 char *_kwnames[] = { "self","title", NULL };
3344
3345 self = self;
3346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3347 return NULL;
3348 if (_argo0) {
3349 if (_argo0 == Py_None) { _arg0 = NULL; }
3350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3352 return NULL;
3353 }
3354 }
3355 {
3356 #if PYTHON_API_VERSION >= 1009
3357 char* tmpPtr; int tmpSize;
3358 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3359 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3360 return NULL;
3361 }
3362 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3363 return NULL;
3364 _arg1 = new wxString(tmpPtr, tmpSize);
3365 #else
3366 if (!PyString_Check(_obj1)) {
3367 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3368 return NULL;
3369 }
3370 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3371 #endif
3372 }
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) return NULL;
3379 } Py_INCREF(Py_None);
3380 _resultobj = Py_None;
3381 {
3382 if (_obj1)
3383 delete _arg1;
3384 }
3385 return _resultobj;
3386 }
3387
3388 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3389 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3390 PyObject * _resultobj;
3391 wxFontMapper * _arg0;
3392 wxConfigBase * _arg1;
3393 PyObject * _argo0 = 0;
3394 PyObject * _argo1 = 0;
3395 char *_kwnames[] = { "self","config", NULL };
3396
3397 self = self;
3398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3399 return NULL;
3400 if (_argo0) {
3401 if (_argo0 == Py_None) { _arg0 = NULL; }
3402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3404 return NULL;
3405 }
3406 }
3407 if (_argo1) {
3408 if (_argo1 == Py_None) { _arg1 = NULL; }
3409 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3410 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3411 return NULL;
3412 }
3413 }
3414 {
3415 PyThreadState* __tstate = wxPyBeginAllowThreads();
3416 wxFontMapper_SetConfig(_arg0,_arg1);
3417
3418 wxPyEndAllowThreads(__tstate);
3419 if (PyErr_Occurred()) return NULL;
3420 } Py_INCREF(Py_None);
3421 _resultobj = Py_None;
3422 return _resultobj;
3423 }
3424
3425 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3426 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3427 PyObject * _resultobj;
3428 wxFontMapper * _arg0;
3429 wxString * _arg1;
3430 PyObject * _argo0 = 0;
3431 PyObject * _obj1 = 0;
3432 char *_kwnames[] = { "self","prefix", NULL };
3433
3434 self = self;
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3436 return NULL;
3437 if (_argo0) {
3438 if (_argo0 == Py_None) { _arg0 = NULL; }
3439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3441 return NULL;
3442 }
3443 }
3444 {
3445 #if PYTHON_API_VERSION >= 1009
3446 char* tmpPtr; int tmpSize;
3447 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3448 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3449 return NULL;
3450 }
3451 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3452 return NULL;
3453 _arg1 = new wxString(tmpPtr, tmpSize);
3454 #else
3455 if (!PyString_Check(_obj1)) {
3456 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3457 return NULL;
3458 }
3459 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3460 #endif
3461 }
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 wxFontMapper_SetConfigPath(_arg0,*_arg1);
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) return NULL;
3468 } Py_INCREF(Py_None);
3469 _resultobj = Py_None;
3470 {
3471 if (_obj1)
3472 delete _arg1;
3473 }
3474 return _resultobj;
3475 }
3476
3477 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3478 PyObject * _resultobj;
3479 wxChar * _result;
3480 char *_kwnames[] = { NULL };
3481
3482 self = self;
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3484 return NULL;
3485 {
3486 PyThreadState* __tstate = wxPyBeginAllowThreads();
3487 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
3488
3489 wxPyEndAllowThreads(__tstate);
3490 if (PyErr_Occurred()) return NULL;
3491 } _resultobj = Py_BuildValue("s", _result);
3492 return _resultobj;
3493 }
3494
3495 static void *SwigwxFontTowxGDIObject(void *ptr) {
3496 wxFont *src;
3497 wxGDIObject *dest;
3498 src = (wxFont *) ptr;
3499 dest = (wxGDIObject *) src;
3500 return (void *) dest;
3501 }
3502
3503 static void *SwigwxFontTowxObject(void *ptr) {
3504 wxFont *src;
3505 wxObject *dest;
3506 src = (wxFont *) ptr;
3507 dest = (wxObject *) src;
3508 return (void *) dest;
3509 }
3510
3511 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3512 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3513 PyObject * _resultobj;
3514 wxFont * _result;
3515 int _arg0;
3516 int _arg1;
3517 int _arg2;
3518 int _arg3;
3519 int _arg4 = (int ) FALSE;
3520 char * _arg5 = (char *) "";
3521 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3522 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3523 char _ptemp[128];
3524
3525 self = self;
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3527 return NULL;
3528 {
3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
3530 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3531
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) return NULL;
3534 } if (_result) {
3535 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3536 _resultobj = Py_BuildValue("s",_ptemp);
3537 } else {
3538 Py_INCREF(Py_None);
3539 _resultobj = Py_None;
3540 }
3541 return _resultobj;
3542 }
3543
3544 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3545 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject * _resultobj;
3547 wxFont * _result;
3548 wxNativeFontInfo * _arg0;
3549 PyObject * _argo0 = 0;
3550 char *_kwnames[] = { "info", NULL };
3551 char _ptemp[128];
3552
3553 self = self;
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3555 return NULL;
3556 if (_argo0) {
3557 if (_argo0 == Py_None) { _arg0 = NULL; }
3558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3560 return NULL;
3561 }
3562 }
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) return NULL;
3569 } if (_result) {
3570 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3571 _resultobj = Py_BuildValue("s",_ptemp);
3572 } else {
3573 Py_INCREF(Py_None);
3574 _resultobj = Py_None;
3575 }
3576 return _resultobj;
3577 }
3578
3579 #define delete_wxFont(_swigobj) (delete _swigobj)
3580 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3581 PyObject * _resultobj;
3582 wxFont * _arg0;
3583 PyObject * _argo0 = 0;
3584 char *_kwnames[] = { "self", NULL };
3585
3586 self = self;
3587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3588 return NULL;
3589 if (_argo0) {
3590 if (_argo0 == Py_None) { _arg0 = NULL; }
3591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3593 return NULL;
3594 }
3595 }
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 delete_wxFont(_arg0);
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) return NULL;
3602 } Py_INCREF(Py_None);
3603 _resultobj = Py_None;
3604 return _resultobj;
3605 }
3606
3607 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3608 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject * _resultobj;
3610 bool _result;
3611 wxFont * _arg0;
3612 PyObject * _argo0 = 0;
3613 char *_kwnames[] = { "self", NULL };
3614
3615 self = self;
3616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3617 return NULL;
3618 if (_argo0) {
3619 if (_argo0 == Py_None) { _arg0 = NULL; }
3620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3622 return NULL;
3623 }
3624 }
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 _result = (bool )wxFont_Ok(_arg0);
3628
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) return NULL;
3631 } _resultobj = Py_BuildValue("i",_result);
3632 return _resultobj;
3633 }
3634
3635 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3636 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3637 PyObject * _resultobj;
3638 int _result;
3639 wxFont * _arg0;
3640 PyObject * _argo0 = 0;
3641 char *_kwnames[] = { "self", NULL };
3642
3643 self = self;
3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3645 return NULL;
3646 if (_argo0) {
3647 if (_argo0 == Py_None) { _arg0 = NULL; }
3648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3650 return NULL;
3651 }
3652 }
3653 {
3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
3655 _result = (int )wxFont_GetPointSize(_arg0);
3656
3657 wxPyEndAllowThreads(__tstate);
3658 if (PyErr_Occurred()) return NULL;
3659 } _resultobj = Py_BuildValue("i",_result);
3660 return _resultobj;
3661 }
3662
3663 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3664 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3665 PyObject * _resultobj;
3666 int _result;
3667 wxFont * _arg0;
3668 PyObject * _argo0 = 0;
3669 char *_kwnames[] = { "self", NULL };
3670
3671 self = self;
3672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3673 return NULL;
3674 if (_argo0) {
3675 if (_argo0 == Py_None) { _arg0 = NULL; }
3676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3678 return NULL;
3679 }
3680 }
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 _result = (int )wxFont_GetFamily(_arg0);
3684
3685 wxPyEndAllowThreads(__tstate);
3686 if (PyErr_Occurred()) return NULL;
3687 } _resultobj = Py_BuildValue("i",_result);
3688 return _resultobj;
3689 }
3690
3691 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3692 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3693 PyObject * _resultobj;
3694 int _result;
3695 wxFont * _arg0;
3696 PyObject * _argo0 = 0;
3697 char *_kwnames[] = { "self", NULL };
3698
3699 self = self;
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3701 return NULL;
3702 if (_argo0) {
3703 if (_argo0 == Py_None) { _arg0 = NULL; }
3704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3706 return NULL;
3707 }
3708 }
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 _result = (int )wxFont_GetStyle(_arg0);
3712
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) return NULL;
3715 } _resultobj = Py_BuildValue("i",_result);
3716 return _resultobj;
3717 }
3718
3719 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3720 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3721 PyObject * _resultobj;
3722 int _result;
3723 wxFont * _arg0;
3724 PyObject * _argo0 = 0;
3725 char *_kwnames[] = { "self", NULL };
3726
3727 self = self;
3728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3729 return NULL;
3730 if (_argo0) {
3731 if (_argo0 == Py_None) { _arg0 = NULL; }
3732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3734 return NULL;
3735 }
3736 }
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 _result = (int )wxFont_GetWeight(_arg0);
3740
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) return NULL;
3743 } _resultobj = Py_BuildValue("i",_result);
3744 return _resultobj;
3745 }
3746
3747 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3748 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3749 PyObject * _resultobj;
3750 bool _result;
3751 wxFont * _arg0;
3752 PyObject * _argo0 = 0;
3753 char *_kwnames[] = { "self", NULL };
3754
3755 self = self;
3756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3757 return NULL;
3758 if (_argo0) {
3759 if (_argo0 == Py_None) { _arg0 = NULL; }
3760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3762 return NULL;
3763 }
3764 }
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 _result = (bool )wxFont_GetUnderlined(_arg0);
3768
3769 wxPyEndAllowThreads(__tstate);
3770 if (PyErr_Occurred()) return NULL;
3771 } _resultobj = Py_BuildValue("i",_result);
3772 return _resultobj;
3773 }
3774
3775 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3776 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3777 PyObject * _resultobj;
3778 wxString * _result;
3779 wxFont * _arg0;
3780 PyObject * _argo0 = 0;
3781 char *_kwnames[] = { "self", NULL };
3782
3783 self = self;
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3785 return NULL;
3786 if (_argo0) {
3787 if (_argo0 == Py_None) { _arg0 = NULL; }
3788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3790 return NULL;
3791 }
3792 }
3793 {
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 _result = new wxString (wxFont_GetFaceName(_arg0));
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) return NULL;
3799 }{
3800 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3801 }
3802 {
3803 delete _result;
3804 }
3805 return _resultobj;
3806 }
3807
3808 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3809 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject * _resultobj;
3811 wxFontEncoding _result;
3812 wxFont * _arg0;
3813 PyObject * _argo0 = 0;
3814 char *_kwnames[] = { "self", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3823 return NULL;
3824 }
3825 }
3826 {
3827 PyThreadState* __tstate = wxPyBeginAllowThreads();
3828 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
3829
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) return NULL;
3832 } _resultobj = Py_BuildValue("i",_result);
3833 return _resultobj;
3834 }
3835
3836 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3837 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject * _resultobj;
3839 bool _result;
3840 wxFont * _arg0;
3841 PyObject * _argo0 = 0;
3842 char *_kwnames[] = { "self", NULL };
3843
3844 self = self;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
3846 return NULL;
3847 if (_argo0) {
3848 if (_argo0 == Py_None) { _arg0 = NULL; }
3849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3851 return NULL;
3852 }
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 _result = (bool )wxFont_IsFixedWidth(_arg0);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) return NULL;
3860 } _resultobj = Py_BuildValue("i",_result);
3861 return _resultobj;
3862 }
3863
3864 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3865 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject * _resultobj;
3867 wxNativeFontInfo * _result;
3868 wxFont * _arg0;
3869 PyObject * _argo0 = 0;
3870 char *_kwnames[] = { "self", NULL };
3871 char _ptemp[128];
3872
3873 self = self;
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
3875 return NULL;
3876 if (_argo0) {
3877 if (_argo0 == Py_None) { _arg0 = NULL; }
3878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3880 return NULL;
3881 }
3882 }
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) return NULL;
3889 } if (_result) {
3890 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3891 _resultobj = Py_BuildValue("s",_ptemp);
3892 } else {
3893 Py_INCREF(Py_None);
3894 _resultobj = Py_None;
3895 }
3896 return _resultobj;
3897 }
3898
3899 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3900 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3901 PyObject * _resultobj;
3902 wxString * _result;
3903 wxFont * _arg0;
3904 PyObject * _argo0 = 0;
3905 char *_kwnames[] = { "self", NULL };
3906
3907 self = self;
3908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
3909 return NULL;
3910 if (_argo0) {
3911 if (_argo0 == Py_None) { _arg0 = NULL; }
3912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3914 return NULL;
3915 }
3916 }
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
3920
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) return NULL;
3923 }{
3924 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3925 }
3926 {
3927 delete _result;
3928 }
3929 return _resultobj;
3930 }
3931
3932 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3933 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3934 PyObject * _resultobj;
3935 wxString * _result;
3936 wxFont * _arg0;
3937 PyObject * _argo0 = 0;
3938 char *_kwnames[] = { "self", NULL };
3939
3940 self = self;
3941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
3942 return NULL;
3943 if (_argo0) {
3944 if (_argo0 == Py_None) { _arg0 = NULL; }
3945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3947 return NULL;
3948 }
3949 }
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
3953
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) return NULL;
3956 }{
3957 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3958 }
3959 {
3960 delete _result;
3961 }
3962 return _resultobj;
3963 }
3964
3965 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3966 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject * _resultobj;
3968 wxFont * _arg0;
3969 int _arg1;
3970 PyObject * _argo0 = 0;
3971 char *_kwnames[] = { "self","pointSize", NULL };
3972
3973 self = self;
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
3975 return NULL;
3976 if (_argo0) {
3977 if (_argo0 == Py_None) { _arg0 = NULL; }
3978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3980 return NULL;
3981 }
3982 }
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 wxFont_SetPointSize(_arg0,_arg1);
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) return NULL;
3989 } Py_INCREF(Py_None);
3990 _resultobj = Py_None;
3991 return _resultobj;
3992 }
3993
3994 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3995 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject * _resultobj;
3997 wxFont * _arg0;
3998 int _arg1;
3999 PyObject * _argo0 = 0;
4000 char *_kwnames[] = { "self","family", NULL };
4001
4002 self = self;
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4004 return NULL;
4005 if (_argo0) {
4006 if (_argo0 == Py_None) { _arg0 = NULL; }
4007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4009 return NULL;
4010 }
4011 }
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 wxFont_SetFamily(_arg0,_arg1);
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) return NULL;
4018 } Py_INCREF(Py_None);
4019 _resultobj = Py_None;
4020 return _resultobj;
4021 }
4022
4023 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4024 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4025 PyObject * _resultobj;
4026 wxFont * _arg0;
4027 int _arg1;
4028 PyObject * _argo0 = 0;
4029 char *_kwnames[] = { "self","style", NULL };
4030
4031 self = self;
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4033 return NULL;
4034 if (_argo0) {
4035 if (_argo0 == Py_None) { _arg0 = NULL; }
4036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4038 return NULL;
4039 }
4040 }
4041 {
4042 PyThreadState* __tstate = wxPyBeginAllowThreads();
4043 wxFont_SetStyle(_arg0,_arg1);
4044
4045 wxPyEndAllowThreads(__tstate);
4046 if (PyErr_Occurred()) return NULL;
4047 } Py_INCREF(Py_None);
4048 _resultobj = Py_None;
4049 return _resultobj;
4050 }
4051
4052 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4053 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4054 PyObject * _resultobj;
4055 wxFont * _arg0;
4056 int _arg1;
4057 PyObject * _argo0 = 0;
4058 char *_kwnames[] = { "self","weight", NULL };
4059
4060 self = self;
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4062 return NULL;
4063 if (_argo0) {
4064 if (_argo0 == Py_None) { _arg0 = NULL; }
4065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4067 return NULL;
4068 }
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 wxFont_SetWeight(_arg0,_arg1);
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) return NULL;
4076 } Py_INCREF(Py_None);
4077 _resultobj = Py_None;
4078 return _resultobj;
4079 }
4080
4081 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4082 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4083 PyObject * _resultobj;
4084 wxFont * _arg0;
4085 wxString * _arg1;
4086 PyObject * _argo0 = 0;
4087 PyObject * _obj1 = 0;
4088 char *_kwnames[] = { "self","faceName", NULL };
4089
4090 self = self;
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4092 return NULL;
4093 if (_argo0) {
4094 if (_argo0 == Py_None) { _arg0 = NULL; }
4095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4097 return NULL;
4098 }
4099 }
4100 {
4101 #if PYTHON_API_VERSION >= 1009
4102 char* tmpPtr; int tmpSize;
4103 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4104 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4105 return NULL;
4106 }
4107 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4108 return NULL;
4109 _arg1 = new wxString(tmpPtr, tmpSize);
4110 #else
4111 if (!PyString_Check(_obj1)) {
4112 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4113 return NULL;
4114 }
4115 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4116 #endif
4117 }
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 wxFont_SetFaceName(_arg0,*_arg1);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) return NULL;
4124 } Py_INCREF(Py_None);
4125 _resultobj = Py_None;
4126 {
4127 if (_obj1)
4128 delete _arg1;
4129 }
4130 return _resultobj;
4131 }
4132
4133 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4134 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4135 PyObject * _resultobj;
4136 wxFont * _arg0;
4137 bool _arg1;
4138 PyObject * _argo0 = 0;
4139 int tempbool1;
4140 char *_kwnames[] = { "self","underlined", NULL };
4141
4142 self = self;
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4144 return NULL;
4145 if (_argo0) {
4146 if (_argo0 == Py_None) { _arg0 = NULL; }
4147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4149 return NULL;
4150 }
4151 }
4152 _arg1 = (bool ) tempbool1;
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 wxFont_SetUnderlined(_arg0,_arg1);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) return NULL;
4159 } Py_INCREF(Py_None);
4160 _resultobj = Py_None;
4161 return _resultobj;
4162 }
4163
4164 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4165 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject * _resultobj;
4167 wxFont * _arg0;
4168 wxFontEncoding _arg1;
4169 PyObject * _argo0 = 0;
4170 char *_kwnames[] = { "self","encoding", NULL };
4171
4172 self = self;
4173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
4174 return NULL;
4175 if (_argo0) {
4176 if (_argo0 == Py_None) { _arg0 = NULL; }
4177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4179 return NULL;
4180 }
4181 }
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 wxFont_SetEncoding(_arg0,_arg1);
4185
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) return NULL;
4188 } Py_INCREF(Py_None);
4189 _resultobj = Py_None;
4190 return _resultobj;
4191 }
4192
4193 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4194 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4195 PyObject * _resultobj;
4196 wxFont * _arg0;
4197 wxNativeFontInfo * _arg1;
4198 PyObject * _argo0 = 0;
4199 PyObject * _argo1 = 0;
4200 char *_kwnames[] = { "self","info", NULL };
4201
4202 self = self;
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
4204 return NULL;
4205 if (_argo0) {
4206 if (_argo0 == Py_None) { _arg0 = NULL; }
4207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4209 return NULL;
4210 }
4211 }
4212 if (_argo1) {
4213 if (_argo1 == Py_None) { _arg1 = NULL; }
4214 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4215 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4216 return NULL;
4217 }
4218 }
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 wxFont_SetNativeFontInfo(_arg0,*_arg1);
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) return NULL;
4225 } Py_INCREF(Py_None);
4226 _resultobj = Py_None;
4227 return _resultobj;
4228 }
4229
4230 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4231 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject * _resultobj;
4233 wxFont * _arg0;
4234 wxString * _arg1;
4235 PyObject * _argo0 = 0;
4236 PyObject * _obj1 = 0;
4237 char *_kwnames[] = { "self","info", NULL };
4238
4239 self = self;
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4241 return NULL;
4242 if (_argo0) {
4243 if (_argo0 == Py_None) { _arg0 = NULL; }
4244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4246 return NULL;
4247 }
4248 }
4249 {
4250 #if PYTHON_API_VERSION >= 1009
4251 char* tmpPtr; int tmpSize;
4252 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4253 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4254 return NULL;
4255 }
4256 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4257 return NULL;
4258 _arg1 = new wxString(tmpPtr, tmpSize);
4259 #else
4260 if (!PyString_Check(_obj1)) {
4261 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4262 return NULL;
4263 }
4264 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4265 #endif
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) return NULL;
4273 } Py_INCREF(Py_None);
4274 _resultobj = Py_None;
4275 {
4276 if (_obj1)
4277 delete _arg1;
4278 }
4279 return _resultobj;
4280 }
4281
4282 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4283 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4284 PyObject * _resultobj;
4285 wxString * _result;
4286 wxFont * _arg0;
4287 PyObject * _argo0 = 0;
4288 char *_kwnames[] = { "self", NULL };
4289
4290 self = self;
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4292 return NULL;
4293 if (_argo0) {
4294 if (_argo0 == Py_None) { _arg0 = NULL; }
4295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4297 return NULL;
4298 }
4299 }
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 _result = new wxString (wxFont_GetFamilyString(_arg0));
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) return NULL;
4306 }{
4307 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4308 }
4309 {
4310 delete _result;
4311 }
4312 return _resultobj;
4313 }
4314
4315 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4316 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4317 PyObject * _resultobj;
4318 wxString * _result;
4319 wxFont * _arg0;
4320 PyObject * _argo0 = 0;
4321 char *_kwnames[] = { "self", NULL };
4322
4323 self = self;
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4325 return NULL;
4326 if (_argo0) {
4327 if (_argo0 == Py_None) { _arg0 = NULL; }
4328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4330 return NULL;
4331 }
4332 }
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 _result = new wxString (wxFont_GetStyleString(_arg0));
4336
4337 wxPyEndAllowThreads(__tstate);
4338 if (PyErr_Occurred()) return NULL;
4339 }{
4340 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4341 }
4342 {
4343 delete _result;
4344 }
4345 return _resultobj;
4346 }
4347
4348 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4349 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4350 PyObject * _resultobj;
4351 wxString * _result;
4352 wxFont * _arg0;
4353 PyObject * _argo0 = 0;
4354 char *_kwnames[] = { "self", NULL };
4355
4356 self = self;
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4358 return NULL;
4359 if (_argo0) {
4360 if (_argo0 == Py_None) { _arg0 = NULL; }
4361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4363 return NULL;
4364 }
4365 }
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 _result = new wxString (wxFont_GetWeightString(_arg0));
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) return NULL;
4372 }{
4373 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4374 }
4375 {
4376 delete _result;
4377 }
4378 return _resultobj;
4379 }
4380
4381 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4382 PyObject * _resultobj;
4383 wxFontEncoding _result;
4384 char *_kwnames[] = { NULL };
4385
4386 self = self;
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4388 return NULL;
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) return NULL;
4395 } _resultobj = Py_BuildValue("i",_result);
4396 return _resultobj;
4397 }
4398
4399 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject * _resultobj;
4401 wxFontEncoding _arg0;
4402 char *_kwnames[] = { "encoding", NULL };
4403
4404 self = self;
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4406 return NULL;
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 wxFont::SetDefaultEncoding(_arg0);
4410
4411 wxPyEndAllowThreads(__tstate);
4412 if (PyErr_Occurred()) return NULL;
4413 } Py_INCREF(Py_None);
4414 _resultobj = Py_None;
4415 return _resultobj;
4416 }
4417
4418 static void *SwigwxFontListTowxObject(void *ptr) {
4419 wxFontList *src;
4420 wxObject *dest;
4421 src = (wxFontList *) ptr;
4422 dest = (wxObject *) src;
4423 return (void *) dest;
4424 }
4425
4426 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4427 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4428 PyObject * _resultobj;
4429 wxFontList * _arg0;
4430 wxFont * _arg1;
4431 PyObject * _argo0 = 0;
4432 PyObject * _argo1 = 0;
4433 char *_kwnames[] = { "self","font", NULL };
4434
4435 self = self;
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4437 return NULL;
4438 if (_argo0) {
4439 if (_argo0 == Py_None) { _arg0 = NULL; }
4440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4442 return NULL;
4443 }
4444 }
4445 if (_argo1) {
4446 if (_argo1 == Py_None) { _arg1 = NULL; }
4447 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4448 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4449 return NULL;
4450 }
4451 }
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 wxFontList_AddFont(_arg0,_arg1);
4455
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) return NULL;
4458 } Py_INCREF(Py_None);
4459 _resultobj = Py_None;
4460 return _resultobj;
4461 }
4462
4463 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4464 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject * _resultobj;
4466 wxFont * _result;
4467 wxFontList * _arg0;
4468 int _arg1;
4469 int _arg2;
4470 int _arg3;
4471 int _arg4;
4472 bool _arg5 = (bool ) FALSE;
4473 char * _arg6 = (char *) NULL;
4474 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4475 PyObject * _argo0 = 0;
4476 int tempbool5 = (int) FALSE;
4477 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4478 char _ptemp[128];
4479
4480 self = self;
4481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4482 return NULL;
4483 if (_argo0) {
4484 if (_argo0 == Py_None) { _arg0 = NULL; }
4485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4487 return NULL;
4488 }
4489 }
4490 _arg5 = (bool ) tempbool5;
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
4494
4495 wxPyEndAllowThreads(__tstate);
4496 if (PyErr_Occurred()) return NULL;
4497 } if (_result) {
4498 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4499 _resultobj = Py_BuildValue("s",_ptemp);
4500 } else {
4501 Py_INCREF(Py_None);
4502 _resultobj = Py_None;
4503 }
4504 return _resultobj;
4505 }
4506
4507 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4508 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject * _resultobj;
4510 wxFontList * _arg0;
4511 wxFont * _arg1;
4512 PyObject * _argo0 = 0;
4513 PyObject * _argo1 = 0;
4514 char *_kwnames[] = { "self","font", NULL };
4515
4516 self = self;
4517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4518 return NULL;
4519 if (_argo0) {
4520 if (_argo0 == Py_None) { _arg0 = NULL; }
4521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4523 return NULL;
4524 }
4525 }
4526 if (_argo1) {
4527 if (_argo1 == Py_None) { _arg1 = NULL; }
4528 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4529 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4530 return NULL;
4531 }
4532 }
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 wxFontList_RemoveFont(_arg0,_arg1);
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) return NULL;
4539 } Py_INCREF(Py_None);
4540 _resultobj = Py_None;
4541 return _resultobj;
4542 }
4543
4544 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4545 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4546 PyObject * _resultobj;
4547 int _result;
4548 wxFontList * _arg0;
4549 PyObject * _argo0 = 0;
4550 char *_kwnames[] = { "self", NULL };
4551
4552 self = self;
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4554 return NULL;
4555 if (_argo0) {
4556 if (_argo0 == Py_None) { _arg0 = NULL; }
4557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4559 return NULL;
4560 }
4561 }
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 _result = (int )wxFontList_GetCount(_arg0);
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) return NULL;
4568 } _resultobj = Py_BuildValue("i",_result);
4569 return _resultobj;
4570 }
4571
4572 static void *SwigwxColourTowxObject(void *ptr) {
4573 wxColour *src;
4574 wxObject *dest;
4575 src = (wxColour *) ptr;
4576 dest = (wxObject *) src;
4577 return (void *) dest;
4578 }
4579
4580 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4581 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject * _resultobj;
4583 wxColour * _result;
4584 unsigned char _arg0 = (unsigned char ) 0;
4585 unsigned char _arg1 = (unsigned char ) 0;
4586 unsigned char _arg2 = (unsigned char ) 0;
4587 char *_kwnames[] = { "red","green","blue", NULL };
4588 char _ptemp[128];
4589
4590 self = self;
4591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
4592 return NULL;
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
4596
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) return NULL;
4599 } if (_result) {
4600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4601 _resultobj = Py_BuildValue("s",_ptemp);
4602 } else {
4603 Py_INCREF(Py_None);
4604 _resultobj = Py_None;
4605 }
4606 return _resultobj;
4607 }
4608
4609 #define delete_wxColour(_swigobj) (delete _swigobj)
4610 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject * _resultobj;
4612 wxColour * _arg0;
4613 wxColour temp;
4614 PyObject * _obj0 = 0;
4615 char *_kwnames[] = { "self", NULL };
4616
4617 self = self;
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
4619 return NULL;
4620 {
4621 _arg0 = &temp;
4622 if (! wxColour_helper(_obj0, &_arg0))
4623 return NULL;
4624 }
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 delete_wxColour(_arg0);
4628
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) return NULL;
4631 } Py_INCREF(Py_None);
4632 _resultobj = Py_None;
4633 return _resultobj;
4634 }
4635
4636 #define wxColour_Red(_swigobj) (_swigobj->Red())
4637 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
4638 PyObject * _resultobj;
4639 unsigned char _result;
4640 wxColour * _arg0;
4641 wxColour temp;
4642 PyObject * _obj0 = 0;
4643 char *_kwnames[] = { "self", NULL };
4644
4645 self = self;
4646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
4647 return NULL;
4648 {
4649 _arg0 = &temp;
4650 if (! wxColour_helper(_obj0, &_arg0))
4651 return NULL;
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 _result = (unsigned char )wxColour_Red(_arg0);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) return NULL;
4659 } _resultobj = Py_BuildValue("b",_result);
4660 return _resultobj;
4661 }
4662
4663 #define wxColour_Green(_swigobj) (_swigobj->Green())
4664 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
4665 PyObject * _resultobj;
4666 unsigned char _result;
4667 wxColour * _arg0;
4668 wxColour temp;
4669 PyObject * _obj0 = 0;
4670 char *_kwnames[] = { "self", NULL };
4671
4672 self = self;
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
4674 return NULL;
4675 {
4676 _arg0 = &temp;
4677 if (! wxColour_helper(_obj0, &_arg0))
4678 return NULL;
4679 }
4680 {
4681 PyThreadState* __tstate = wxPyBeginAllowThreads();
4682 _result = (unsigned char )wxColour_Green(_arg0);
4683
4684 wxPyEndAllowThreads(__tstate);
4685 if (PyErr_Occurred()) return NULL;
4686 } _resultobj = Py_BuildValue("b",_result);
4687 return _resultobj;
4688 }
4689
4690 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4691 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject * _resultobj;
4693 unsigned char _result;
4694 wxColour * _arg0;
4695 wxColour temp;
4696 PyObject * _obj0 = 0;
4697 char *_kwnames[] = { "self", NULL };
4698
4699 self = self;
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
4701 return NULL;
4702 {
4703 _arg0 = &temp;
4704 if (! wxColour_helper(_obj0, &_arg0))
4705 return NULL;
4706 }
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 _result = (unsigned char )wxColour_Blue(_arg0);
4710
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) return NULL;
4713 } _resultobj = Py_BuildValue("b",_result);
4714 return _resultobj;
4715 }
4716
4717 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4718 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject * _resultobj;
4720 bool _result;
4721 wxColour * _arg0;
4722 wxColour temp;
4723 PyObject * _obj0 = 0;
4724 char *_kwnames[] = { "self", NULL };
4725
4726 self = self;
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
4728 return NULL;
4729 {
4730 _arg0 = &temp;
4731 if (! wxColour_helper(_obj0, &_arg0))
4732 return NULL;
4733 }
4734 {
4735 PyThreadState* __tstate = wxPyBeginAllowThreads();
4736 _result = (bool )wxColour_Ok(_arg0);
4737
4738 wxPyEndAllowThreads(__tstate);
4739 if (PyErr_Occurred()) return NULL;
4740 } _resultobj = Py_BuildValue("i",_result);
4741 return _resultobj;
4742 }
4743
4744 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4745 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4746 PyObject * _resultobj;
4747 wxColour * _arg0;
4748 unsigned char _arg1;
4749 unsigned char _arg2;
4750 unsigned char _arg3;
4751 wxColour temp;
4752 PyObject * _obj0 = 0;
4753 char *_kwnames[] = { "self","red","green","blue", NULL };
4754
4755 self = self;
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
4757 return NULL;
4758 {
4759 _arg0 = &temp;
4760 if (! wxColour_helper(_obj0, &_arg0))
4761 return NULL;
4762 }
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) return NULL;
4769 } Py_INCREF(Py_None);
4770 _resultobj = Py_None;
4771 return _resultobj;
4772 }
4773
4774 static PyObject * wxColour_Get(wxColour *self) {
4775 PyObject* rv = PyTuple_New(3);
4776 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4777 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4778 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4779 return rv;
4780 }
4781 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4782 PyObject * _resultobj;
4783 PyObject * _result;
4784 wxColour * _arg0;
4785 wxColour temp;
4786 PyObject * _obj0 = 0;
4787 char *_kwnames[] = { "self", NULL };
4788
4789 self = self;
4790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
4791 return NULL;
4792 {
4793 _arg0 = &temp;
4794 if (! wxColour_helper(_obj0, &_arg0))
4795 return NULL;
4796 }
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 _result = (PyObject *)wxColour_Get(_arg0);
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) return NULL;
4803 }{
4804 _resultobj = _result;
4805 }
4806 return _resultobj;
4807 }
4808
4809 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4810 wxColourDatabase *src;
4811 wxObject *dest;
4812 src = (wxColourDatabase *) ptr;
4813 dest = (wxObject *) src;
4814 return (void *) dest;
4815 }
4816
4817 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4818 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject * _resultobj;
4820 wxColour * _result;
4821 wxColourDatabase * _arg0;
4822 wxString * _arg1;
4823 PyObject * _argo0 = 0;
4824 PyObject * _obj1 = 0;
4825 char *_kwnames[] = { "self","colour", NULL };
4826 char _ptemp[128];
4827
4828 self = self;
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4830 return NULL;
4831 if (_argo0) {
4832 if (_argo0 == Py_None) { _arg0 = NULL; }
4833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4835 return NULL;
4836 }
4837 }
4838 {
4839 #if PYTHON_API_VERSION >= 1009
4840 char* tmpPtr; int tmpSize;
4841 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4842 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4843 return NULL;
4844 }
4845 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4846 return NULL;
4847 _arg1 = new wxString(tmpPtr, tmpSize);
4848 #else
4849 if (!PyString_Check(_obj1)) {
4850 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4851 return NULL;
4852 }
4853 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4854 #endif
4855 }
4856 {
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
4859
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) return NULL;
4862 } if (_result) {
4863 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4864 _resultobj = Py_BuildValue("s",_ptemp);
4865 } else {
4866 Py_INCREF(Py_None);
4867 _resultobj = Py_None;
4868 }
4869 {
4870 if (_obj1)
4871 delete _arg1;
4872 }
4873 return _resultobj;
4874 }
4875
4876 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4877 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
4878 PyObject * _resultobj;
4879 wxString * _result;
4880 wxColourDatabase * _arg0;
4881 wxColour * _arg1;
4882 PyObject * _argo0 = 0;
4883 wxColour temp;
4884 PyObject * _obj1 = 0;
4885 char *_kwnames[] = { "self","colour", NULL };
4886
4887 self = self;
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
4889 return NULL;
4890 if (_argo0) {
4891 if (_argo0 == Py_None) { _arg0 = NULL; }
4892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4894 return NULL;
4895 }
4896 }
4897 {
4898 _arg1 = &temp;
4899 if (! wxColour_helper(_obj1, &_arg1))
4900 return NULL;
4901 }
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
4905
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) return NULL;
4908 }{
4909 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4910 }
4911 {
4912 delete _result;
4913 }
4914 return _resultobj;
4915 }
4916
4917 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
4918 // first see if the name is already there
4919 wxString cName = name;
4920 cName.MakeUpper();
4921 wxString cName2 = cName;
4922 if ( !cName2.Replace("GRAY", "GREY") )
4923 cName2.clear();
4924
4925 wxNode *node = self->First();
4926 while ( node ) {
4927 const wxChar *key = node->GetKeyString();
4928 if ( cName == key || cName2 == key ) {
4929 wxColour* c = (wxColour *)node->Data();
4930 c->Set(red, green, blue);
4931 return;
4932 }
4933 node = node->Next();
4934 }
4935
4936 // otherwise append the new colour
4937 self->Append(name.c_str(), new wxColour(red, green, blue));
4938 }
4939 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4940 PyObject * _resultobj;
4941 wxColourDatabase * _arg0;
4942 wxString * _arg1;
4943 int _arg2;
4944 int _arg3;
4945 int _arg4;
4946 PyObject * _argo0 = 0;
4947 PyObject * _obj1 = 0;
4948 char *_kwnames[] = { "self","name","red","green","blue", NULL };
4949
4950 self = self;
4951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
4952 return NULL;
4953 if (_argo0) {
4954 if (_argo0 == Py_None) { _arg0 = NULL; }
4955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4957 return NULL;
4958 }
4959 }
4960 {
4961 #if PYTHON_API_VERSION >= 1009
4962 char* tmpPtr; int tmpSize;
4963 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4964 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4965 return NULL;
4966 }
4967 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4968 return NULL;
4969 _arg1 = new wxString(tmpPtr, tmpSize);
4970 #else
4971 if (!PyString_Check(_obj1)) {
4972 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4973 return NULL;
4974 }
4975 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4976 #endif
4977 }
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) return NULL;
4984 } Py_INCREF(Py_None);
4985 _resultobj = Py_None;
4986 {
4987 if (_obj1)
4988 delete _arg1;
4989 }
4990 return _resultobj;
4991 }
4992
4993 static void *SwigwxPenTowxGDIObject(void *ptr) {
4994 wxPen *src;
4995 wxGDIObject *dest;
4996 src = (wxPen *) ptr;
4997 dest = (wxGDIObject *) src;
4998 return (void *) dest;
4999 }
5000
5001 static void *SwigwxPenTowxObject(void *ptr) {
5002 wxPen *src;
5003 wxObject *dest;
5004 src = (wxPen *) ptr;
5005 dest = (wxObject *) src;
5006 return (void *) dest;
5007 }
5008
5009 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5010 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5011 PyObject * _resultobj;
5012 wxPen * _result;
5013 wxColour * _arg0;
5014 int _arg1 = (int ) 1;
5015 int _arg2 = (int ) wxSOLID;
5016 wxColour temp;
5017 PyObject * _obj0 = 0;
5018 char *_kwnames[] = { "colour","width","style", NULL };
5019 char _ptemp[128];
5020
5021 self = self;
5022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5023 return NULL;
5024 {
5025 _arg0 = &temp;
5026 if (! wxColour_helper(_obj0, &_arg0))
5027 return NULL;
5028 }
5029 {
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5032
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) return NULL;
5035 } if (_result) {
5036 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5037 _resultobj = Py_BuildValue("s",_ptemp);
5038 } else {
5039 Py_INCREF(Py_None);
5040 _resultobj = Py_None;
5041 }
5042 return _resultobj;
5043 }
5044
5045 #define delete_wxPen(_swigobj) (delete _swigobj)
5046 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5047 PyObject * _resultobj;
5048 wxPen * _arg0;
5049 PyObject * _argo0 = 0;
5050 char *_kwnames[] = { "self", NULL };
5051
5052 self = self;
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5054 return NULL;
5055 if (_argo0) {
5056 if (_argo0 == Py_None) { _arg0 = NULL; }
5057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5059 return NULL;
5060 }
5061 }
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 delete_wxPen(_arg0);
5065
5066 wxPyEndAllowThreads(__tstate);
5067 if (PyErr_Occurred()) return NULL;
5068 } Py_INCREF(Py_None);
5069 _resultobj = Py_None;
5070 return _resultobj;
5071 }
5072
5073 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5074 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5075 PyObject * _resultobj;
5076 int _result;
5077 wxPen * _arg0;
5078 PyObject * _argo0 = 0;
5079 char *_kwnames[] = { "self", NULL };
5080
5081 self = self;
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5083 return NULL;
5084 if (_argo0) {
5085 if (_argo0 == Py_None) { _arg0 = NULL; }
5086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5088 return NULL;
5089 }
5090 }
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 _result = (int )wxPen_GetCap(_arg0);
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) return NULL;
5097 } _resultobj = Py_BuildValue("i",_result);
5098 return _resultobj;
5099 }
5100
5101 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5102 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5103 PyObject * _resultobj;
5104 wxColour * _result;
5105 wxPen * _arg0;
5106 PyObject * _argo0 = 0;
5107 char *_kwnames[] = { "self", NULL };
5108 char _ptemp[128];
5109
5110 self = self;
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5112 return NULL;
5113 if (_argo0) {
5114 if (_argo0 == Py_None) { _arg0 = NULL; }
5115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5117 return NULL;
5118 }
5119 }
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 _result = new wxColour (wxPen_GetColour(_arg0));
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) return NULL;
5126 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5127 _resultobj = Py_BuildValue("s",_ptemp);
5128 return _resultobj;
5129 }
5130
5131 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5132 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject * _resultobj;
5134 int _result;
5135 wxPen * _arg0;
5136 PyObject * _argo0 = 0;
5137 char *_kwnames[] = { "self", NULL };
5138
5139 self = self;
5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5141 return NULL;
5142 if (_argo0) {
5143 if (_argo0 == Py_None) { _arg0 = NULL; }
5144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5146 return NULL;
5147 }
5148 }
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 _result = (int )wxPen_GetJoin(_arg0);
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) return NULL;
5155 } _resultobj = Py_BuildValue("i",_result);
5156 return _resultobj;
5157 }
5158
5159 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5160 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject * _resultobj;
5162 int _result;
5163 wxPen * _arg0;
5164 PyObject * _argo0 = 0;
5165 char *_kwnames[] = { "self", NULL };
5166
5167 self = self;
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5169 return NULL;
5170 if (_argo0) {
5171 if (_argo0 == Py_None) { _arg0 = NULL; }
5172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5174 return NULL;
5175 }
5176 }
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 _result = (int )wxPen_GetStyle(_arg0);
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) return NULL;
5183 } _resultobj = Py_BuildValue("i",_result);
5184 return _resultobj;
5185 }
5186
5187 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5188 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5189 PyObject * _resultobj;
5190 int _result;
5191 wxPen * _arg0;
5192 PyObject * _argo0 = 0;
5193 char *_kwnames[] = { "self", NULL };
5194
5195 self = self;
5196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5197 return NULL;
5198 if (_argo0) {
5199 if (_argo0 == Py_None) { _arg0 = NULL; }
5200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5202 return NULL;
5203 }
5204 }
5205 {
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 _result = (int )wxPen_GetWidth(_arg0);
5208
5209 wxPyEndAllowThreads(__tstate);
5210 if (PyErr_Occurred()) return NULL;
5211 } _resultobj = Py_BuildValue("i",_result);
5212 return _resultobj;
5213 }
5214
5215 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5216 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject * _resultobj;
5218 bool _result;
5219 wxPen * _arg0;
5220 PyObject * _argo0 = 0;
5221 char *_kwnames[] = { "self", NULL };
5222
5223 self = self;
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5225 return NULL;
5226 if (_argo0) {
5227 if (_argo0 == Py_None) { _arg0 = NULL; }
5228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5230 return NULL;
5231 }
5232 }
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 _result = (bool )wxPen_Ok(_arg0);
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) return NULL;
5239 } _resultobj = Py_BuildValue("i",_result);
5240 return _resultobj;
5241 }
5242
5243 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5244 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5245 PyObject * _resultobj;
5246 wxPen * _arg0;
5247 int _arg1;
5248 PyObject * _argo0 = 0;
5249 char *_kwnames[] = { "self","cap_style", NULL };
5250
5251 self = self;
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5253 return NULL;
5254 if (_argo0) {
5255 if (_argo0 == Py_None) { _arg0 = NULL; }
5256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5258 return NULL;
5259 }
5260 }
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 wxPen_SetCap(_arg0,_arg1);
5264
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) return NULL;
5267 } Py_INCREF(Py_None);
5268 _resultobj = Py_None;
5269 return _resultobj;
5270 }
5271
5272 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5273 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject * _resultobj;
5275 wxPen * _arg0;
5276 wxColour * _arg1;
5277 PyObject * _argo0 = 0;
5278 wxColour temp;
5279 PyObject * _obj1 = 0;
5280 char *_kwnames[] = { "self","colour", NULL };
5281
5282 self = self;
5283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
5284 return NULL;
5285 if (_argo0) {
5286 if (_argo0 == Py_None) { _arg0 = NULL; }
5287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5289 return NULL;
5290 }
5291 }
5292 {
5293 _arg1 = &temp;
5294 if (! wxColour_helper(_obj1, &_arg1))
5295 return NULL;
5296 }
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 wxPen_SetColour(_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_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5309 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5310 PyObject * _resultobj;
5311 wxPen * _arg0;
5312 int _arg1;
5313 PyObject * _argo0 = 0;
5314 char *_kwnames[] = { "self","join_style", NULL };
5315
5316 self = self;
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
5318 return NULL;
5319 if (_argo0) {
5320 if (_argo0 == Py_None) { _arg0 = NULL; }
5321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5323 return NULL;
5324 }
5325 }
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 wxPen_SetJoin(_arg0,_arg1);
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) return NULL;
5332 } Py_INCREF(Py_None);
5333 _resultobj = Py_None;
5334 return _resultobj;
5335 }
5336
5337 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5338 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject * _resultobj;
5340 wxPen * _arg0;
5341 int _arg1;
5342 PyObject * _argo0 = 0;
5343 char *_kwnames[] = { "self","style", NULL };
5344
5345 self = self;
5346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
5347 return NULL;
5348 if (_argo0) {
5349 if (_argo0 == Py_None) { _arg0 = NULL; }
5350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5352 return NULL;
5353 }
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 wxPen_SetStyle(_arg0,_arg1);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) return NULL;
5361 } Py_INCREF(Py_None);
5362 _resultobj = Py_None;
5363 return _resultobj;
5364 }
5365
5366 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5367 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5368 PyObject * _resultobj;
5369 wxPen * _arg0;
5370 int _arg1;
5371 PyObject * _argo0 = 0;
5372 char *_kwnames[] = { "self","width", NULL };
5373
5374 self = self;
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
5376 return NULL;
5377 if (_argo0) {
5378 if (_argo0 == Py_None) { _arg0 = NULL; }
5379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5381 return NULL;
5382 }
5383 }
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 wxPen_SetWidth(_arg0,_arg1);
5387
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) return NULL;
5390 } Py_INCREF(Py_None);
5391 _resultobj = Py_None;
5392 return _resultobj;
5393 }
5394
5395 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5396 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5397 PyObject * _resultobj;
5398 wxPen * _arg0;
5399 int _arg1;
5400 wxDash * _arg2;
5401 PyObject * _argo0 = 0;
5402 PyObject * _obj2 = 0;
5403 char *_kwnames[] = { "self","choices", NULL };
5404
5405 self = self;
5406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
5407 return NULL;
5408 if (_argo0) {
5409 if (_argo0 == Py_None) { _arg0 = NULL; }
5410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5412 return NULL;
5413 }
5414 }
5415 if (_obj2)
5416 {
5417 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5418 if (_arg2 == NULL) {
5419 return NULL;
5420 }
5421 }
5422 {
5423 if (_obj2) {
5424 _arg1 = PyList_Size(_obj2);
5425 }
5426 else {
5427 _arg1 = 0;
5428 }
5429 }
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 wxPen_SetDashes(_arg0,_arg1,_arg2);
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) return NULL;
5436 } Py_INCREF(Py_None);
5437 _resultobj = Py_None;
5438 {
5439 delete [] _arg2;
5440 }
5441 return _resultobj;
5442 }
5443
5444 static void *SwigwxPyPenTowxPen(void *ptr) {
5445 wxPyPen *src;
5446 wxPen *dest;
5447 src = (wxPyPen *) ptr;
5448 dest = (wxPen *) src;
5449 return (void *) dest;
5450 }
5451
5452 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5453 wxPyPen *src;
5454 wxGDIObject *dest;
5455 src = (wxPyPen *) ptr;
5456 dest = (wxGDIObject *) src;
5457 return (void *) dest;
5458 }
5459
5460 static void *SwigwxPyPenTowxObject(void *ptr) {
5461 wxPyPen *src;
5462 wxObject *dest;
5463 src = (wxPyPen *) ptr;
5464 dest = (wxObject *) src;
5465 return (void *) dest;
5466 }
5467
5468 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5469 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5470 PyObject * _resultobj;
5471 wxPyPen * _result;
5472 wxColour * _arg0;
5473 int _arg1 = (int ) 1;
5474 int _arg2 = (int ) wxSOLID;
5475 wxColour temp;
5476 PyObject * _obj0 = 0;
5477 char *_kwnames[] = { "colour","width","style", NULL };
5478 char _ptemp[128];
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5482 return NULL;
5483 {
5484 _arg0 = &temp;
5485 if (! wxColour_helper(_obj0, &_arg0))
5486 return NULL;
5487 }
5488 {
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5491
5492 wxPyEndAllowThreads(__tstate);
5493 if (PyErr_Occurred()) return NULL;
5494 } if (_result) {
5495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5496 _resultobj = Py_BuildValue("s",_ptemp);
5497 } else {
5498 Py_INCREF(Py_None);
5499 _resultobj = Py_None;
5500 }
5501 return _resultobj;
5502 }
5503
5504 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5505 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5506 PyObject * _resultobj;
5507 wxPyPen * _arg0;
5508 PyObject * _argo0 = 0;
5509 char *_kwnames[] = { "self", NULL };
5510
5511 self = self;
5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5513 return NULL;
5514 if (_argo0) {
5515 if (_argo0 == Py_None) { _arg0 = NULL; }
5516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5518 return NULL;
5519 }
5520 }
5521 {
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 delete_wxPyPen(_arg0);
5524
5525 wxPyEndAllowThreads(__tstate);
5526 if (PyErr_Occurred()) return NULL;
5527 } Py_INCREF(Py_None);
5528 _resultobj = Py_None;
5529 return _resultobj;
5530 }
5531
5532 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5533 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5534 PyObject * _resultobj;
5535 wxPyPen * _arg0;
5536 int _arg1;
5537 wxDash * _arg2;
5538 PyObject * _argo0 = 0;
5539 PyObject * _obj2 = 0;
5540 char *_kwnames[] = { "self","choices", NULL };
5541
5542 self = self;
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
5544 return NULL;
5545 if (_argo0) {
5546 if (_argo0 == Py_None) { _arg0 = NULL; }
5547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5549 return NULL;
5550 }
5551 }
5552 if (_obj2)
5553 {
5554 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5555 if (_arg2 == NULL) {
5556 return NULL;
5557 }
5558 }
5559 {
5560 if (_obj2) {
5561 _arg1 = PyList_Size(_obj2);
5562 }
5563 else {
5564 _arg1 = 0;
5565 }
5566 }
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5570
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) return NULL;
5573 } Py_INCREF(Py_None);
5574 _resultobj = Py_None;
5575 {
5576 delete [] _arg2;
5577 }
5578 return _resultobj;
5579 }
5580
5581 static void *SwigwxPenListTowxObject(void *ptr) {
5582 wxPenList *src;
5583 wxObject *dest;
5584 src = (wxPenList *) ptr;
5585 dest = (wxObject *) src;
5586 return (void *) dest;
5587 }
5588
5589 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5590 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject * _resultobj;
5592 wxPenList * _arg0;
5593 wxPen * _arg1;
5594 PyObject * _argo0 = 0;
5595 PyObject * _argo1 = 0;
5596 char *_kwnames[] = { "self","pen", NULL };
5597
5598 self = self;
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5600 return NULL;
5601 if (_argo0) {
5602 if (_argo0 == Py_None) { _arg0 = NULL; }
5603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5605 return NULL;
5606 }
5607 }
5608 if (_argo1) {
5609 if (_argo1 == Py_None) { _arg1 = NULL; }
5610 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5611 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5612 return NULL;
5613 }
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 wxPenList_AddPen(_arg0,_arg1);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) return NULL;
5621 } Py_INCREF(Py_None);
5622 _resultobj = Py_None;
5623 return _resultobj;
5624 }
5625
5626 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5627 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5628 PyObject * _resultobj;
5629 wxPen * _result;
5630 wxPenList * _arg0;
5631 wxColour * _arg1;
5632 int _arg2;
5633 int _arg3;
5634 PyObject * _argo0 = 0;
5635 wxColour temp;
5636 PyObject * _obj1 = 0;
5637 char *_kwnames[] = { "self","colour","width","style", NULL };
5638 char _ptemp[128];
5639
5640 self = self;
5641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5642 return NULL;
5643 if (_argo0) {
5644 if (_argo0 == Py_None) { _arg0 = NULL; }
5645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5647 return NULL;
5648 }
5649 }
5650 {
5651 _arg1 = &temp;
5652 if (! wxColour_helper(_obj1, &_arg1))
5653 return NULL;
5654 }
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5658
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) return NULL;
5661 } if (_result) {
5662 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5663 _resultobj = Py_BuildValue("s",_ptemp);
5664 } else {
5665 Py_INCREF(Py_None);
5666 _resultobj = Py_None;
5667 }
5668 return _resultobj;
5669 }
5670
5671 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5672 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5673 PyObject * _resultobj;
5674 wxPenList * _arg0;
5675 wxPen * _arg1;
5676 PyObject * _argo0 = 0;
5677 PyObject * _argo1 = 0;
5678 char *_kwnames[] = { "self","pen", NULL };
5679
5680 self = self;
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5682 return NULL;
5683 if (_argo0) {
5684 if (_argo0 == Py_None) { _arg0 = NULL; }
5685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5687 return NULL;
5688 }
5689 }
5690 if (_argo1) {
5691 if (_argo1 == Py_None) { _arg1 = NULL; }
5692 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5693 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5694 return NULL;
5695 }
5696 }
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 wxPenList_RemovePen(_arg0,_arg1);
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) return NULL;
5703 } Py_INCREF(Py_None);
5704 _resultobj = Py_None;
5705 return _resultobj;
5706 }
5707
5708 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5709 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5710 PyObject * _resultobj;
5711 int _result;
5712 wxPenList * _arg0;
5713 PyObject * _argo0 = 0;
5714 char *_kwnames[] = { "self", NULL };
5715
5716 self = self;
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
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_GetCount. Expected _wxPenList_p.");
5723 return NULL;
5724 }
5725 }
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 _result = (int )wxPenList_GetCount(_arg0);
5729
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) return NULL;
5732 } _resultobj = Py_BuildValue("i",_result);
5733 return _resultobj;
5734 }
5735
5736 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5737 wxBrush *src;
5738 wxGDIObject *dest;
5739 src = (wxBrush *) ptr;
5740 dest = (wxGDIObject *) src;
5741 return (void *) dest;
5742 }
5743
5744 static void *SwigwxBrushTowxObject(void *ptr) {
5745 wxBrush *src;
5746 wxObject *dest;
5747 src = (wxBrush *) ptr;
5748 dest = (wxObject *) src;
5749 return (void *) dest;
5750 }
5751
5752 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5753 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5754 PyObject * _resultobj;
5755 wxBrush * _result;
5756 wxColour * _arg0;
5757 int _arg1 = (int ) wxSOLID;
5758 wxColour temp;
5759 PyObject * _obj0 = 0;
5760 char *_kwnames[] = { "colour","style", NULL };
5761 char _ptemp[128];
5762
5763 self = self;
5764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5765 return NULL;
5766 {
5767 _arg0 = &temp;
5768 if (! wxColour_helper(_obj0, &_arg0))
5769 return NULL;
5770 }
5771 {
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) return NULL;
5777 } if (_result) {
5778 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5779 _resultobj = Py_BuildValue("s",_ptemp);
5780 } else {
5781 Py_INCREF(Py_None);
5782 _resultobj = Py_None;
5783 }
5784 return _resultobj;
5785 }
5786
5787 #define delete_wxBrush(_swigobj) (delete _swigobj)
5788 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5789 PyObject * _resultobj;
5790 wxBrush * _arg0;
5791 PyObject * _argo0 = 0;
5792 char *_kwnames[] = { "self", NULL };
5793
5794 self = self;
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5796 return NULL;
5797 if (_argo0) {
5798 if (_argo0 == Py_None) { _arg0 = NULL; }
5799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5801 return NULL;
5802 }
5803 }
5804 {
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 delete_wxBrush(_arg0);
5807
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) return NULL;
5810 } Py_INCREF(Py_None);
5811 _resultobj = Py_None;
5812 return _resultobj;
5813 }
5814
5815 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5816 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5817 PyObject * _resultobj;
5818 wxColour * _result;
5819 wxBrush * _arg0;
5820 PyObject * _argo0 = 0;
5821 char *_kwnames[] = { "self", NULL };
5822 char _ptemp[128];
5823
5824 self = self;
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5826 return NULL;
5827 if (_argo0) {
5828 if (_argo0 == Py_None) { _arg0 = NULL; }
5829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5831 return NULL;
5832 }
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 _result = new wxColour (wxBrush_GetColour(_arg0));
5837
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) return NULL;
5840 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5841 _resultobj = Py_BuildValue("s",_ptemp);
5842 return _resultobj;
5843 }
5844
5845 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5846 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5847 PyObject * _resultobj;
5848 wxBitmap * _result;
5849 wxBrush * _arg0;
5850 PyObject * _argo0 = 0;
5851 char *_kwnames[] = { "self", NULL };
5852 char _ptemp[128];
5853
5854 self = self;
5855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
5856 return NULL;
5857 if (_argo0) {
5858 if (_argo0 == Py_None) { _arg0 = NULL; }
5859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5861 return NULL;
5862 }
5863 }
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
5867
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) return NULL;
5870 } if (_result) {
5871 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5872 _resultobj = Py_BuildValue("s",_ptemp);
5873 } else {
5874 Py_INCREF(Py_None);
5875 _resultobj = Py_None;
5876 }
5877 return _resultobj;
5878 }
5879
5880 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5881 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5882 PyObject * _resultobj;
5883 int _result;
5884 wxBrush * _arg0;
5885 PyObject * _argo0 = 0;
5886 char *_kwnames[] = { "self", NULL };
5887
5888 self = self;
5889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
5890 return NULL;
5891 if (_argo0) {
5892 if (_argo0 == Py_None) { _arg0 = NULL; }
5893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5895 return NULL;
5896 }
5897 }
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 _result = (int )wxBrush_GetStyle(_arg0);
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) return NULL;
5904 } _resultobj = Py_BuildValue("i",_result);
5905 return _resultobj;
5906 }
5907
5908 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5909 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5910 PyObject * _resultobj;
5911 bool _result;
5912 wxBrush * _arg0;
5913 PyObject * _argo0 = 0;
5914 char *_kwnames[] = { "self", NULL };
5915
5916 self = self;
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
5918 return NULL;
5919 if (_argo0) {
5920 if (_argo0 == Py_None) { _arg0 = NULL; }
5921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5923 return NULL;
5924 }
5925 }
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 _result = (bool )wxBrush_Ok(_arg0);
5929
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) return NULL;
5932 } _resultobj = Py_BuildValue("i",_result);
5933 return _resultobj;
5934 }
5935
5936 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5937 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5938 PyObject * _resultobj;
5939 wxBrush * _arg0;
5940 wxColour * _arg1;
5941 PyObject * _argo0 = 0;
5942 wxColour temp;
5943 PyObject * _obj1 = 0;
5944 char *_kwnames[] = { "self","colour", NULL };
5945
5946 self = self;
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
5948 return NULL;
5949 if (_argo0) {
5950 if (_argo0 == Py_None) { _arg0 = NULL; }
5951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5953 return NULL;
5954 }
5955 }
5956 {
5957 _arg1 = &temp;
5958 if (! wxColour_helper(_obj1, &_arg1))
5959 return NULL;
5960 }
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 wxBrush_SetColour(_arg0,*_arg1);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) return NULL;
5967 } Py_INCREF(Py_None);
5968 _resultobj = Py_None;
5969 return _resultobj;
5970 }
5971
5972 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5973 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5974 PyObject * _resultobj;
5975 wxBrush * _arg0;
5976 wxBitmap * _arg1;
5977 PyObject * _argo0 = 0;
5978 PyObject * _argo1 = 0;
5979 char *_kwnames[] = { "self","bitmap", NULL };
5980
5981 self = self;
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
5983 return NULL;
5984 if (_argo0) {
5985 if (_argo0 == Py_None) { _arg0 = NULL; }
5986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5988 return NULL;
5989 }
5990 }
5991 if (_argo1) {
5992 if (_argo1 == Py_None) { _arg1 = NULL; }
5993 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5994 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5995 return NULL;
5996 }
5997 }
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 wxBrush_SetStipple(_arg0,*_arg1);
6001
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) return NULL;
6004 } Py_INCREF(Py_None);
6005 _resultobj = Py_None;
6006 return _resultobj;
6007 }
6008
6009 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6010 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6011 PyObject * _resultobj;
6012 wxBrush * _arg0;
6013 int _arg1;
6014 PyObject * _argo0 = 0;
6015 char *_kwnames[] = { "self","style", NULL };
6016
6017 self = self;
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
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_SetStyle. Expected _wxBrush_p.");
6024 return NULL;
6025 }
6026 }
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
6029 wxBrush_SetStyle(_arg0,_arg1);
6030
6031 wxPyEndAllowThreads(__tstate);
6032 if (PyErr_Occurred()) return NULL;
6033 } Py_INCREF(Py_None);
6034 _resultobj = Py_None;
6035 return _resultobj;
6036 }
6037
6038 static void *SwigwxBrushListTowxObject(void *ptr) {
6039 wxBrushList *src;
6040 wxObject *dest;
6041 src = (wxBrushList *) ptr;
6042 dest = (wxObject *) src;
6043 return (void *) dest;
6044 }
6045
6046 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6047 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject * _resultobj;
6049 wxBrushList * _arg0;
6050 wxBrush * _arg1;
6051 PyObject * _argo0 = 0;
6052 PyObject * _argo1 = 0;
6053 char *_kwnames[] = { "self","brush", NULL };
6054
6055 self = self;
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6057 return NULL;
6058 if (_argo0) {
6059 if (_argo0 == Py_None) { _arg0 = NULL; }
6060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6062 return NULL;
6063 }
6064 }
6065 if (_argo1) {
6066 if (_argo1 == Py_None) { _arg1 = NULL; }
6067 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6068 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6069 return NULL;
6070 }
6071 }
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 wxBrushList_AddBrush(_arg0,_arg1);
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) return NULL;
6078 } Py_INCREF(Py_None);
6079 _resultobj = Py_None;
6080 return _resultobj;
6081 }
6082
6083 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6084 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6085 PyObject * _resultobj;
6086 wxBrush * _result;
6087 wxBrushList * _arg0;
6088 wxColour * _arg1;
6089 int _arg2;
6090 PyObject * _argo0 = 0;
6091 wxColour temp;
6092 PyObject * _obj1 = 0;
6093 char *_kwnames[] = { "self","colour","style", NULL };
6094 char _ptemp[128];
6095
6096 self = self;
6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6098 return NULL;
6099 if (_argo0) {
6100 if (_argo0 == Py_None) { _arg0 = NULL; }
6101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6103 return NULL;
6104 }
6105 }
6106 {
6107 _arg1 = &temp;
6108 if (! wxColour_helper(_obj1, &_arg1))
6109 return NULL;
6110 }
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6114
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) return NULL;
6117 } if (_result) {
6118 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6119 _resultobj = Py_BuildValue("s",_ptemp);
6120 } else {
6121 Py_INCREF(Py_None);
6122 _resultobj = Py_None;
6123 }
6124 return _resultobj;
6125 }
6126
6127 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6128 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6129 PyObject * _resultobj;
6130 wxBrushList * _arg0;
6131 wxBrush * _arg1;
6132 PyObject * _argo0 = 0;
6133 PyObject * _argo1 = 0;
6134 char *_kwnames[] = { "self","brush", NULL };
6135
6136 self = self;
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6138 return NULL;
6139 if (_argo0) {
6140 if (_argo0 == Py_None) { _arg0 = NULL; }
6141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6143 return NULL;
6144 }
6145 }
6146 if (_argo1) {
6147 if (_argo1 == Py_None) { _arg1 = NULL; }
6148 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6149 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6150 return NULL;
6151 }
6152 }
6153 {
6154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6155 wxBrushList_RemoveBrush(_arg0,_arg1);
6156
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) return NULL;
6159 } Py_INCREF(Py_None);
6160 _resultobj = Py_None;
6161 return _resultobj;
6162 }
6163
6164 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6165 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6166 PyObject * _resultobj;
6167 int _result;
6168 wxBrushList * _arg0;
6169 PyObject * _argo0 = 0;
6170 char *_kwnames[] = { "self", NULL };
6171
6172 self = self;
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
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_GetCount. Expected _wxBrushList_p.");
6179 return NULL;
6180 }
6181 }
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 _result = (int )wxBrushList_GetCount(_arg0);
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) return NULL;
6188 } _resultobj = Py_BuildValue("i",_result);
6189 return _resultobj;
6190 }
6191
6192 static void *SwigwxDCTowxObject(void *ptr) {
6193 wxDC *src;
6194 wxObject *dest;
6195 src = (wxDC *) ptr;
6196 dest = (wxObject *) src;
6197 return (void *) dest;
6198 }
6199
6200 #define delete_wxDC(_swigobj) (delete _swigobj)
6201 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject * _resultobj;
6203 wxDC * _arg0;
6204 PyObject * _argo0 = 0;
6205 char *_kwnames[] = { "self", NULL };
6206
6207 self = self;
6208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
6209 return NULL;
6210 if (_argo0) {
6211 if (_argo0 == Py_None) { _arg0 = NULL; }
6212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6214 return NULL;
6215 }
6216 }
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 delete_wxDC(_arg0);
6220
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) return NULL;
6223 } Py_INCREF(Py_None);
6224 _resultobj = Py_None;
6225 return _resultobj;
6226 }
6227
6228 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6229 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject * _resultobj;
6231 wxDC * _arg0;
6232 PyObject * _argo0 = 0;
6233 char *_kwnames[] = { "self", NULL };
6234
6235 self = self;
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
6237 return NULL;
6238 if (_argo0) {
6239 if (_argo0 == Py_None) { _arg0 = NULL; }
6240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6242 return NULL;
6243 }
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 wxDC_BeginDrawing(_arg0);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) return NULL;
6251 } Py_INCREF(Py_None);
6252 _resultobj = Py_None;
6253 return _resultobj;
6254 }
6255
6256 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6257 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject * _resultobj;
6259 bool _result;
6260 wxDC * _arg0;
6261 long _arg1;
6262 long _arg2;
6263 long _arg3;
6264 long _arg4;
6265 wxDC * _arg5;
6266 long _arg6;
6267 long _arg7;
6268 int _arg8 = (int ) wxCOPY;
6269 int _arg9 = (int ) FALSE;
6270 PyObject * _argo0 = 0;
6271 PyObject * _argo5 = 0;
6272 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
6273
6274 self = self;
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
6276 return NULL;
6277 if (_argo0) {
6278 if (_argo0 == Py_None) { _arg0 = NULL; }
6279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6281 return NULL;
6282 }
6283 }
6284 if (_argo5) {
6285 if (_argo5 == Py_None) { _arg5 = NULL; }
6286 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
6287 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6288 return NULL;
6289 }
6290 }
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
6294
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) return NULL;
6297 } _resultobj = Py_BuildValue("i",_result);
6298 return _resultobj;
6299 }
6300
6301 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6302 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6303 PyObject * _resultobj;
6304 wxDC * _arg0;
6305 PyObject * _argo0 = 0;
6306 char *_kwnames[] = { "self", NULL };
6307
6308 self = self;
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
6310 return NULL;
6311 if (_argo0) {
6312 if (_argo0 == Py_None) { _arg0 = NULL; }
6313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6315 return NULL;
6316 }
6317 }
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 wxDC_Clear(_arg0);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) return NULL;
6324 } Py_INCREF(Py_None);
6325 _resultobj = Py_None;
6326 return _resultobj;
6327 }
6328
6329 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6330 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
6331 PyObject * _resultobj;
6332 wxDC * _arg0;
6333 long _arg1;
6334 long _arg2;
6335 PyObject * _argo0 = 0;
6336 char *_kwnames[] = { "self","x","y", NULL };
6337
6338 self = self;
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
6340 return NULL;
6341 if (_argo0) {
6342 if (_argo0 == Py_None) { _arg0 = NULL; }
6343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6345 return NULL;
6346 }
6347 }
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 wxDC_CrossHair(_arg0,_arg1,_arg2);
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) return NULL;
6354 } Py_INCREF(Py_None);
6355 _resultobj = Py_None;
6356 return _resultobj;
6357 }
6358
6359 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6360 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6361 PyObject * _resultobj;
6362 wxDC * _arg0;
6363 PyObject * _argo0 = 0;
6364 char *_kwnames[] = { "self", NULL };
6365
6366 self = self;
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
6368 return NULL;
6369 if (_argo0) {
6370 if (_argo0 == Py_None) { _arg0 = NULL; }
6371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6373 return NULL;
6374 }
6375 }
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 wxDC_DestroyClippingRegion(_arg0);
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) return NULL;
6382 } Py_INCREF(Py_None);
6383 _resultobj = Py_None;
6384 return _resultobj;
6385 }
6386
6387 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6388 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
6389 PyObject * _resultobj;
6390 long _result;
6391 wxDC * _arg0;
6392 long _arg1;
6393 PyObject * _argo0 = 0;
6394 char *_kwnames[] = { "self","x", NULL };
6395
6396 self = self;
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
6398 return NULL;
6399 if (_argo0) {
6400 if (_argo0 == Py_None) { _arg0 = NULL; }
6401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6403 return NULL;
6404 }
6405 }
6406 {
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6409
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) return NULL;
6412 } _resultobj = Py_BuildValue("l",_result);
6413 return _resultobj;
6414 }
6415
6416 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6417 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject * _resultobj;
6419 long _result;
6420 wxDC * _arg0;
6421 long _arg1;
6422 PyObject * _argo0 = 0;
6423 char *_kwnames[] = { "self","x", NULL };
6424
6425 self = self;
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
6427 return NULL;
6428 if (_argo0) {
6429 if (_argo0 == Py_None) { _arg0 = NULL; }
6430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6432 return NULL;
6433 }
6434 }
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) return NULL;
6441 } _resultobj = Py_BuildValue("l",_result);
6442 return _resultobj;
6443 }
6444
6445 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6446 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
6447 PyObject * _resultobj;
6448 long _result;
6449 wxDC * _arg0;
6450 long _arg1;
6451 PyObject * _argo0 = 0;
6452 char *_kwnames[] = { "self","y", NULL };
6453
6454 self = self;
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
6456 return NULL;
6457 if (_argo0) {
6458 if (_argo0 == Py_None) { _arg0 = NULL; }
6459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6461 return NULL;
6462 }
6463 }
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) return NULL;
6470 } _resultobj = Py_BuildValue("l",_result);
6471 return _resultobj;
6472 }
6473
6474 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6475 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6476 PyObject * _resultobj;
6477 long _result;
6478 wxDC * _arg0;
6479 long _arg1;
6480 PyObject * _argo0 = 0;
6481 char *_kwnames[] = { "self","y", NULL };
6482
6483 self = self;
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
6485 return NULL;
6486 if (_argo0) {
6487 if (_argo0 == Py_None) { _arg0 = NULL; }
6488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6490 return NULL;
6491 }
6492 }
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6496
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) return NULL;
6499 } _resultobj = Py_BuildValue("l",_result);
6500 return _resultobj;
6501 }
6502
6503 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6504 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6505 PyObject * _resultobj;
6506 wxDC * _arg0;
6507 long _arg1;
6508 long _arg2;
6509 long _arg3;
6510 long _arg4;
6511 long _arg5;
6512 long _arg6;
6513 PyObject * _argo0 = 0;
6514 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
6515
6516 self = self;
6517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6518 return NULL;
6519 if (_argo0) {
6520 if (_argo0 == Py_None) { _arg0 = NULL; }
6521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6523 return NULL;
6524 }
6525 }
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) return NULL;
6532 } Py_INCREF(Py_None);
6533 _resultobj = Py_None;
6534 return _resultobj;
6535 }
6536
6537 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6538 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject * _resultobj;
6540 wxDC * _arg0;
6541 long _arg1;
6542 long _arg2;
6543 long _arg3;
6544 PyObject * _argo0 = 0;
6545 char *_kwnames[] = { "self","x","y","radius", NULL };
6546
6547 self = self;
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
6549 return NULL;
6550 if (_argo0) {
6551 if (_argo0 == Py_None) { _arg0 = NULL; }
6552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6554 return NULL;
6555 }
6556 }
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) return NULL;
6563 } Py_INCREF(Py_None);
6564 _resultobj = Py_None;
6565 return _resultobj;
6566 }
6567
6568 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6569 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6570 PyObject * _resultobj;
6571 wxDC * _arg0;
6572 long _arg1;
6573 long _arg2;
6574 long _arg3;
6575 long _arg4;
6576 PyObject * _argo0 = 0;
6577 char *_kwnames[] = { "self","x","y","width","height", NULL };
6578
6579 self = self;
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6581 return NULL;
6582 if (_argo0) {
6583 if (_argo0 == Py_None) { _arg0 = NULL; }
6584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6586 return NULL;
6587 }
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) return NULL;
6595 } Py_INCREF(Py_None);
6596 _resultobj = Py_None;
6597 return _resultobj;
6598 }
6599
6600 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6601 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6602 PyObject * _resultobj;
6603 wxDC * _arg0;
6604 long _arg1;
6605 long _arg2;
6606 long _arg3;
6607 long _arg4;
6608 long _arg5;
6609 long _arg6;
6610 PyObject * _argo0 = 0;
6611 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6612
6613 self = self;
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6615 return NULL;
6616 if (_argo0) {
6617 if (_argo0 == Py_None) { _arg0 = NULL; }
6618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6620 return NULL;
6621 }
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) return NULL;
6629 } Py_INCREF(Py_None);
6630 _resultobj = Py_None;
6631 return _resultobj;
6632 }
6633
6634 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6635 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6636 PyObject * _resultobj;
6637 wxDC * _arg0;
6638 wxIcon * _arg1;
6639 long _arg2;
6640 long _arg3;
6641 PyObject * _argo0 = 0;
6642 PyObject * _argo1 = 0;
6643 char *_kwnames[] = { "self","icon","x","y", NULL };
6644
6645 self = self;
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6647 return NULL;
6648 if (_argo0) {
6649 if (_argo0 == Py_None) { _arg0 = NULL; }
6650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6652 return NULL;
6653 }
6654 }
6655 if (_argo1) {
6656 if (_argo1 == Py_None) { _arg1 = NULL; }
6657 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6658 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6659 return NULL;
6660 }
6661 }
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) return NULL;
6668 } Py_INCREF(Py_None);
6669 _resultobj = Py_None;
6670 return _resultobj;
6671 }
6672
6673 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6674 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6675 PyObject * _resultobj;
6676 wxDC * _arg0;
6677 wxString * _arg1;
6678 wxRect * _arg2;
6679 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6680 int _arg4 = (int ) -1;
6681 PyObject * _argo0 = 0;
6682 PyObject * _obj1 = 0;
6683 wxRect temp;
6684 PyObject * _obj2 = 0;
6685 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6686
6687 self = self;
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6689 return NULL;
6690 if (_argo0) {
6691 if (_argo0 == Py_None) { _arg0 = NULL; }
6692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6694 return NULL;
6695 }
6696 }
6697 {
6698 #if PYTHON_API_VERSION >= 1009
6699 char* tmpPtr; int tmpSize;
6700 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6701 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6702 return NULL;
6703 }
6704 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6705 return NULL;
6706 _arg1 = new wxString(tmpPtr, tmpSize);
6707 #else
6708 if (!PyString_Check(_obj1)) {
6709 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6710 return NULL;
6711 }
6712 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6713 #endif
6714 }
6715 {
6716 _arg2 = &temp;
6717 if (! wxRect_helper(_obj2, &_arg2))
6718 return NULL;
6719 }
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
6723
6724 wxPyEndAllowThreads(__tstate);
6725 if (PyErr_Occurred()) return NULL;
6726 } Py_INCREF(Py_None);
6727 _resultobj = Py_None;
6728 {
6729 if (_obj1)
6730 delete _arg1;
6731 }
6732 return _resultobj;
6733 }
6734
6735 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6736 wxRect rv;
6737 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6738 return rv;
6739 }
6740 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject * _resultobj;
6742 wxRect * _result;
6743 wxDC * _arg0;
6744 wxString * _arg1;
6745 wxBitmap * _arg2;
6746 wxRect * _arg3;
6747 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6748 int _arg5 = (int ) -1;
6749 PyObject * _argo0 = 0;
6750 PyObject * _obj1 = 0;
6751 PyObject * _argo2 = 0;
6752 wxRect temp;
6753 PyObject * _obj3 = 0;
6754 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6755 char _ptemp[128];
6756
6757 self = self;
6758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6759 return NULL;
6760 if (_argo0) {
6761 if (_argo0 == Py_None) { _arg0 = NULL; }
6762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6764 return NULL;
6765 }
6766 }
6767 {
6768 #if PYTHON_API_VERSION >= 1009
6769 char* tmpPtr; int tmpSize;
6770 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6771 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6772 return NULL;
6773 }
6774 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6775 return NULL;
6776 _arg1 = new wxString(tmpPtr, tmpSize);
6777 #else
6778 if (!PyString_Check(_obj1)) {
6779 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6780 return NULL;
6781 }
6782 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6783 #endif
6784 }
6785 if (_argo2) {
6786 if (_argo2 == Py_None) { _arg2 = NULL; }
6787 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6788 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6789 return NULL;
6790 }
6791 }
6792 {
6793 _arg3 = &temp;
6794 if (! wxRect_helper(_obj3, &_arg3))
6795 return NULL;
6796 }
6797 {
6798 PyThreadState* __tstate = wxPyBeginAllowThreads();
6799 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
6800
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) return NULL;
6803 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6804 _resultobj = Py_BuildValue("s",_ptemp);
6805 {
6806 if (_obj1)
6807 delete _arg1;
6808 }
6809 return _resultobj;
6810 }
6811
6812 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6813 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject * _resultobj;
6815 wxDC * _arg0;
6816 long _arg1;
6817 long _arg2;
6818 long _arg3;
6819 long _arg4;
6820 PyObject * _argo0 = 0;
6821 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6822
6823 self = self;
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6825 return NULL;
6826 if (_argo0) {
6827 if (_argo0 == Py_None) { _arg0 = NULL; }
6828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6830 return NULL;
6831 }
6832 }
6833 {
6834 PyThreadState* __tstate = wxPyBeginAllowThreads();
6835 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6836
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) return NULL;
6839 } Py_INCREF(Py_None);
6840 _resultobj = Py_None;
6841 return _resultobj;
6842 }
6843
6844 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6845 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject * _resultobj;
6847 wxDC * _arg0;
6848 int _arg1;
6849 wxPoint * _arg2;
6850 long _arg3 = (long ) 0;
6851 long _arg4 = (long ) 0;
6852 PyObject * _argo0 = 0;
6853 int NPOINTS;
6854 PyObject * _obj2 = 0;
6855 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6856
6857 self = self;
6858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6859 return NULL;
6860 if (_argo0) {
6861 if (_argo0 == Py_None) { _arg0 = NULL; }
6862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6864 return NULL;
6865 }
6866 }
6867 if (_obj2)
6868 {
6869 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6870 if (_arg2 == NULL) {
6871 return NULL;
6872 }
6873 }
6874 {
6875 _arg1 = NPOINTS;
6876 }
6877 {
6878 PyThreadState* __tstate = wxPyBeginAllowThreads();
6879 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6880
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) return NULL;
6883 } Py_INCREF(Py_None);
6884 _resultobj = Py_None;
6885 {
6886 delete [] _arg2;
6887 }
6888 return _resultobj;
6889 }
6890
6891 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6892 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject * _resultobj;
6894 wxDC * _arg0;
6895 int _arg1;
6896 wxPoint * _arg2;
6897 long _arg3 = (long ) 0;
6898 long _arg4 = (long ) 0;
6899 int _arg5 = (int ) wxODDEVEN_RULE;
6900 PyObject * _argo0 = 0;
6901 int NPOINTS;
6902 PyObject * _obj2 = 0;
6903 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6904
6905 self = self;
6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6907 return NULL;
6908 if (_argo0) {
6909 if (_argo0 == Py_None) { _arg0 = NULL; }
6910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6912 return NULL;
6913 }
6914 }
6915 if (_obj2)
6916 {
6917 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6918 if (_arg2 == NULL) {
6919 return NULL;
6920 }
6921 }
6922 {
6923 _arg1 = NPOINTS;
6924 }
6925 {
6926 PyThreadState* __tstate = wxPyBeginAllowThreads();
6927 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6928
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) return NULL;
6931 } Py_INCREF(Py_None);
6932 _resultobj = Py_None;
6933 {
6934 delete [] _arg2;
6935 }
6936 return _resultobj;
6937 }
6938
6939 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6940 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6941 PyObject * _resultobj;
6942 wxDC * _arg0;
6943 long _arg1;
6944 long _arg2;
6945 PyObject * _argo0 = 0;
6946 char *_kwnames[] = { "self","x","y", NULL };
6947
6948 self = self;
6949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6950 return NULL;
6951 if (_argo0) {
6952 if (_argo0 == Py_None) { _arg0 = NULL; }
6953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6955 return NULL;
6956 }
6957 }
6958 {
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6961
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) return NULL;
6964 } Py_INCREF(Py_None);
6965 _resultobj = Py_None;
6966 return _resultobj;
6967 }
6968
6969 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6970 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6971 PyObject * _resultobj;
6972 wxDC * _arg0;
6973 long _arg1;
6974 long _arg2;
6975 long _arg3;
6976 long _arg4;
6977 PyObject * _argo0 = 0;
6978 char *_kwnames[] = { "self","x","y","width","height", NULL };
6979
6980 self = self;
6981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6982 return NULL;
6983 if (_argo0) {
6984 if (_argo0 == Py_None) { _arg0 = NULL; }
6985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6987 return NULL;
6988 }
6989 }
6990 {
6991 PyThreadState* __tstate = wxPyBeginAllowThreads();
6992 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6993
6994 wxPyEndAllowThreads(__tstate);
6995 if (PyErr_Occurred()) return NULL;
6996 } Py_INCREF(Py_None);
6997 _resultobj = Py_None;
6998 return _resultobj;
6999 }
7000
7001 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7002 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7003 PyObject * _resultobj;
7004 wxDC * _arg0;
7005 wxString * _arg1;
7006 wxCoord _arg2;
7007 wxCoord _arg3;
7008 double _arg4;
7009 PyObject * _argo0 = 0;
7010 PyObject * _obj1 = 0;
7011 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7012
7013 self = self;
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7015 return NULL;
7016 if (_argo0) {
7017 if (_argo0 == Py_None) { _arg0 = NULL; }
7018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7020 return NULL;
7021 }
7022 }
7023 {
7024 #if PYTHON_API_VERSION >= 1009
7025 char* tmpPtr; int tmpSize;
7026 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7027 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7028 return NULL;
7029 }
7030 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7031 return NULL;
7032 _arg1 = new wxString(tmpPtr, tmpSize);
7033 #else
7034 if (!PyString_Check(_obj1)) {
7035 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7036 return NULL;
7037 }
7038 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7039 #endif
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) return NULL;
7047 } Py_INCREF(Py_None);
7048 _resultobj = Py_None;
7049 {
7050 if (_obj1)
7051 delete _arg1;
7052 }
7053 return _resultobj;
7054 }
7055
7056 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7057 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7058 PyObject * _resultobj;
7059 wxDC * _arg0;
7060 long _arg1;
7061 long _arg2;
7062 long _arg3;
7063 long _arg4;
7064 long _arg5 = (long ) 20;
7065 PyObject * _argo0 = 0;
7066 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7067
7068 self = self;
7069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7070 return NULL;
7071 if (_argo0) {
7072 if (_argo0 == Py_None) { _arg0 = NULL; }
7073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7075 return NULL;
7076 }
7077 }
7078 {
7079 PyThreadState* __tstate = wxPyBeginAllowThreads();
7080 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7081
7082 wxPyEndAllowThreads(__tstate);
7083 if (PyErr_Occurred()) return NULL;
7084 } Py_INCREF(Py_None);
7085 _resultobj = Py_None;
7086 return _resultobj;
7087 }
7088
7089 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7090 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7091 PyObject * _resultobj;
7092 wxDC * _arg0;
7093 int _arg1;
7094 wxPoint * _arg2;
7095 PyObject * _argo0 = 0;
7096 int NPOINTS;
7097 PyObject * _obj2 = 0;
7098 char *_kwnames[] = { "self","points", NULL };
7099
7100 self = self;
7101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7102 return NULL;
7103 if (_argo0) {
7104 if (_argo0 == Py_None) { _arg0 = NULL; }
7105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7107 return NULL;
7108 }
7109 }
7110 if (_obj2)
7111 {
7112 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7113 if (_arg2 == NULL) {
7114 return NULL;
7115 }
7116 }
7117 {
7118 _arg1 = NPOINTS;
7119 }
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) return NULL;
7126 } Py_INCREF(Py_None);
7127 _resultobj = Py_None;
7128 {
7129 delete [] _arg2;
7130 }
7131 return _resultobj;
7132 }
7133
7134 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7135 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject * _resultobj;
7137 wxDC * _arg0;
7138 wxString * _arg1;
7139 long _arg2;
7140 long _arg3;
7141 PyObject * _argo0 = 0;
7142 PyObject * _obj1 = 0;
7143 char *_kwnames[] = { "self","text","x","y", NULL };
7144
7145 self = self;
7146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7147 return NULL;
7148 if (_argo0) {
7149 if (_argo0 == Py_None) { _arg0 = NULL; }
7150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7152 return NULL;
7153 }
7154 }
7155 {
7156 #if PYTHON_API_VERSION >= 1009
7157 char* tmpPtr; int tmpSize;
7158 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7159 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7160 return NULL;
7161 }
7162 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7163 return NULL;
7164 _arg1 = new wxString(tmpPtr, tmpSize);
7165 #else
7166 if (!PyString_Check(_obj1)) {
7167 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7168 return NULL;
7169 }
7170 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7171 #endif
7172 }
7173 {
7174 PyThreadState* __tstate = wxPyBeginAllowThreads();
7175 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7176
7177 wxPyEndAllowThreads(__tstate);
7178 if (PyErr_Occurred()) return NULL;
7179 } Py_INCREF(Py_None);
7180 _resultobj = Py_None;
7181 {
7182 if (_obj1)
7183 delete _arg1;
7184 }
7185 return _resultobj;
7186 }
7187
7188 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7189 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7190 PyObject * _resultobj;
7191 wxDC * _arg0;
7192 PyObject * _argo0 = 0;
7193 char *_kwnames[] = { "self", NULL };
7194
7195 self = self;
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7197 return NULL;
7198 if (_argo0) {
7199 if (_argo0 == Py_None) { _arg0 = NULL; }
7200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7202 return NULL;
7203 }
7204 }
7205 {
7206 PyThreadState* __tstate = wxPyBeginAllowThreads();
7207 wxDC_EndDoc(_arg0);
7208
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) return NULL;
7211 } Py_INCREF(Py_None);
7212 _resultobj = Py_None;
7213 return _resultobj;
7214 }
7215
7216 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7217 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject * _resultobj;
7219 wxDC * _arg0;
7220 PyObject * _argo0 = 0;
7221 char *_kwnames[] = { "self", NULL };
7222
7223 self = self;
7224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7225 return NULL;
7226 if (_argo0) {
7227 if (_argo0 == Py_None) { _arg0 = NULL; }
7228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7230 return NULL;
7231 }
7232 }
7233 {
7234 PyThreadState* __tstate = wxPyBeginAllowThreads();
7235 wxDC_EndDrawing(_arg0);
7236
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) return NULL;
7239 } Py_INCREF(Py_None);
7240 _resultobj = Py_None;
7241 return _resultobj;
7242 }
7243
7244 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7245 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7246 PyObject * _resultobj;
7247 wxDC * _arg0;
7248 PyObject * _argo0 = 0;
7249 char *_kwnames[] = { "self", NULL };
7250
7251 self = self;
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
7253 return NULL;
7254 if (_argo0) {
7255 if (_argo0 == Py_None) { _arg0 = NULL; }
7256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7258 return NULL;
7259 }
7260 }
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 wxDC_EndPage(_arg0);
7264
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) return NULL;
7267 } Py_INCREF(Py_None);
7268 _resultobj = Py_None;
7269 return _resultobj;
7270 }
7271
7272 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7273 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
7274 PyObject * _resultobj;
7275 wxDC * _arg0;
7276 long _arg1;
7277 long _arg2;
7278 wxColour * _arg3;
7279 int _arg4 = (int ) wxFLOOD_SURFACE;
7280 PyObject * _argo0 = 0;
7281 wxColour temp;
7282 PyObject * _obj3 = 0;
7283 char *_kwnames[] = { "self","x","y","colour","style", NULL };
7284
7285 self = self;
7286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
7287 return NULL;
7288 if (_argo0) {
7289 if (_argo0 == Py_None) { _arg0 = NULL; }
7290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7292 return NULL;
7293 }
7294 }
7295 {
7296 _arg3 = &temp;
7297 if (! wxColour_helper(_obj3, &_arg3))
7298 return NULL;
7299 }
7300 {
7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
7302 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7303
7304 wxPyEndAllowThreads(__tstate);
7305 if (PyErr_Occurred()) return NULL;
7306 } Py_INCREF(Py_None);
7307 _resultobj = Py_None;
7308 return _resultobj;
7309 }
7310
7311 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7312 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7313 PyObject * _resultobj;
7314 wxBrush * _result;
7315 wxDC * _arg0;
7316 PyObject * _argo0 = 0;
7317 char *_kwnames[] = { "self", NULL };
7318 char _ptemp[128];
7319
7320 self = self;
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
7322 return NULL;
7323 if (_argo0) {
7324 if (_argo0 == Py_None) { _arg0 = NULL; }
7325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7327 return NULL;
7328 }
7329 }
7330 {
7331 PyThreadState* __tstate = wxPyBeginAllowThreads();
7332 _result = new wxBrush (wxDC_GetBackground(_arg0));
7333
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) return NULL;
7336 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7337 _resultobj = Py_BuildValue("s",_ptemp);
7338 return _resultobj;
7339 }
7340
7341 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7342 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject * _resultobj;
7344 wxBrush * _result;
7345 wxDC * _arg0;
7346 PyObject * _argo0 = 0;
7347 char *_kwnames[] = { "self", NULL };
7348 char _ptemp[128];
7349
7350 self = self;
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
7352 return NULL;
7353 if (_argo0) {
7354 if (_argo0 == Py_None) { _arg0 = NULL; }
7355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7357 return NULL;
7358 }
7359 }
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 _result = new wxBrush (wxDC_GetBrush(_arg0));
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) return NULL;
7366 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7367 _resultobj = Py_BuildValue("s",_ptemp);
7368 return _resultobj;
7369 }
7370
7371 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7372 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7373 PyObject * _resultobj;
7374 long _result;
7375 wxDC * _arg0;
7376 PyObject * _argo0 = 0;
7377 char *_kwnames[] = { "self", NULL };
7378
7379 self = self;
7380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
7381 return NULL;
7382 if (_argo0) {
7383 if (_argo0 == Py_None) { _arg0 = NULL; }
7384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7386 return NULL;
7387 }
7388 }
7389 {
7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
7391 _result = (long )wxDC_GetCharHeight(_arg0);
7392
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) return NULL;
7395 } _resultobj = Py_BuildValue("l",_result);
7396 return _resultobj;
7397 }
7398
7399 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7400 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7401 PyObject * _resultobj;
7402 long _result;
7403 wxDC * _arg0;
7404 PyObject * _argo0 = 0;
7405 char *_kwnames[] = { "self", NULL };
7406
7407 self = self;
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
7409 return NULL;
7410 if (_argo0) {
7411 if (_argo0 == Py_None) { _arg0 = NULL; }
7412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7414 return NULL;
7415 }
7416 }
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 _result = (long )wxDC_GetCharWidth(_arg0);
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) return NULL;
7423 } _resultobj = Py_BuildValue("l",_result);
7424 return _resultobj;
7425 }
7426
7427 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7428 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject * _resultobj;
7430 wxDC * _arg0;
7431 long * _arg1;
7432 long temp;
7433 long * _arg2;
7434 long temp0;
7435 long * _arg3;
7436 long temp1;
7437 long * _arg4;
7438 long temp2;
7439 PyObject * _argo0 = 0;
7440 char *_kwnames[] = { "self", NULL };
7441
7442 self = self;
7443 {
7444 _arg1 = &temp;
7445 }
7446 {
7447 _arg2 = &temp0;
7448 }
7449 {
7450 _arg3 = &temp1;
7451 }
7452 {
7453 _arg4 = &temp2;
7454 }
7455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
7456 return NULL;
7457 if (_argo0) {
7458 if (_argo0 == Py_None) { _arg0 = NULL; }
7459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7461 return NULL;
7462 }
7463 }
7464 {
7465 PyThreadState* __tstate = wxPyBeginAllowThreads();
7466 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7467
7468 wxPyEndAllowThreads(__tstate);
7469 if (PyErr_Occurred()) return NULL;
7470 } Py_INCREF(Py_None);
7471 _resultobj = Py_None;
7472 {
7473 PyObject *o;
7474 o = PyInt_FromLong((long) (*_arg1));
7475 _resultobj = t_output_helper(_resultobj, o);
7476 }
7477 {
7478 PyObject *o;
7479 o = PyInt_FromLong((long) (*_arg2));
7480 _resultobj = t_output_helper(_resultobj, o);
7481 }
7482 {
7483 PyObject *o;
7484 o = PyInt_FromLong((long) (*_arg3));
7485 _resultobj = t_output_helper(_resultobj, o);
7486 }
7487 {
7488 PyObject *o;
7489 o = PyInt_FromLong((long) (*_arg4));
7490 _resultobj = t_output_helper(_resultobj, o);
7491 }
7492 return _resultobj;
7493 }
7494
7495 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7496 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject * _resultobj;
7498 wxFont * _result;
7499 wxDC * _arg0;
7500 PyObject * _argo0 = 0;
7501 char *_kwnames[] = { "self", NULL };
7502 char _ptemp[128];
7503
7504 self = self;
7505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
7506 return NULL;
7507 if (_argo0) {
7508 if (_argo0 == Py_None) { _arg0 = NULL; }
7509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7511 return NULL;
7512 }
7513 }
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 _result = new wxFont (wxDC_GetFont(_arg0));
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) return NULL;
7520 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7521 _resultobj = Py_BuildValue("s",_ptemp);
7522 return _resultobj;
7523 }
7524
7525 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7526 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7527 PyObject * _resultobj;
7528 int _result;
7529 wxDC * _arg0;
7530 PyObject * _argo0 = 0;
7531 char *_kwnames[] = { "self", NULL };
7532
7533 self = self;
7534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
7535 return NULL;
7536 if (_argo0) {
7537 if (_argo0 == Py_None) { _arg0 = NULL; }
7538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7540 return NULL;
7541 }
7542 }
7543 {
7544 PyThreadState* __tstate = wxPyBeginAllowThreads();
7545 _result = (int )wxDC_GetLogicalFunction(_arg0);
7546
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) return NULL;
7549 } _resultobj = Py_BuildValue("i",_result);
7550 return _resultobj;
7551 }
7552
7553 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7554 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject * _resultobj;
7556 wxDC * _arg0;
7557 double * _arg1;
7558 double temp;
7559 double * _arg2;
7560 double temp0;
7561 PyObject * _argo0 = 0;
7562 char *_kwnames[] = { "self", NULL };
7563
7564 self = self;
7565 {
7566 _arg1 = &temp;
7567 }
7568 {
7569 _arg2 = &temp0;
7570 }
7571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7572 return NULL;
7573 if (_argo0) {
7574 if (_argo0 == Py_None) { _arg0 = NULL; }
7575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7577 return NULL;
7578 }
7579 }
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) return NULL;
7586 } Py_INCREF(Py_None);
7587 _resultobj = Py_None;
7588 {
7589 PyObject *o;
7590 o = PyFloat_FromDouble((double) (*_arg1));
7591 _resultobj = t_output_helper(_resultobj, o);
7592 }
7593 {
7594 PyObject *o;
7595 o = PyFloat_FromDouble((double) (*_arg2));
7596 _resultobj = t_output_helper(_resultobj, o);
7597 }
7598 return _resultobj;
7599 }
7600
7601 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7602 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7603 PyObject * _resultobj;
7604 int _result;
7605 wxDC * _arg0;
7606 PyObject * _argo0 = 0;
7607 char *_kwnames[] = { "self", NULL };
7608
7609 self = self;
7610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7611 return NULL;
7612 if (_argo0) {
7613 if (_argo0 == Py_None) { _arg0 = NULL; }
7614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7616 return NULL;
7617 }
7618 }
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 _result = (int )wxDC_GetMapMode(_arg0);
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) return NULL;
7625 } _resultobj = Py_BuildValue("i",_result);
7626 return _resultobj;
7627 }
7628
7629 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7630 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7631 PyObject * _resultobj;
7632 bool _result;
7633 wxDC * _arg0;
7634 PyObject * _argo0 = 0;
7635 char *_kwnames[] = { "self", NULL };
7636
7637 self = self;
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7639 return NULL;
7640 if (_argo0) {
7641 if (_argo0 == Py_None) { _arg0 = NULL; }
7642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7644 return NULL;
7645 }
7646 }
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 _result = (bool )wxDC_GetOptimization(_arg0);
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) return NULL;
7653 } _resultobj = Py_BuildValue("i",_result);
7654 return _resultobj;
7655 }
7656
7657 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7658 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7659 PyObject * _resultobj;
7660 wxPen * _result;
7661 wxDC * _arg0;
7662 PyObject * _argo0 = 0;
7663 char *_kwnames[] = { "self", NULL };
7664 char _ptemp[128];
7665
7666 self = self;
7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7668 return NULL;
7669 if (_argo0) {
7670 if (_argo0 == Py_None) { _arg0 = NULL; }
7671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7673 return NULL;
7674 }
7675 }
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 _result = new wxPen (wxDC_GetPen(_arg0));
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) return NULL;
7682 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7683 _resultobj = Py_BuildValue("s",_ptemp);
7684 return _resultobj;
7685 }
7686
7687 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7688 wxColour* wc = new wxColour();
7689 self->GetPixel(x, y, wc);
7690 return wc;
7691 }
7692 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7693 PyObject * _resultobj;
7694 wxColour * _result;
7695 wxDC * _arg0;
7696 long _arg1;
7697 long _arg2;
7698 PyObject * _argo0 = 0;
7699 char *_kwnames[] = { "self","x","y", NULL };
7700 char _ptemp[128];
7701
7702 self = self;
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7704 return NULL;
7705 if (_argo0) {
7706 if (_argo0 == Py_None) { _arg0 = NULL; }
7707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7709 return NULL;
7710 }
7711 }
7712 {
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7715
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) return NULL;
7718 } if (_result) {
7719 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7720 _resultobj = Py_BuildValue("s",_ptemp);
7721 } else {
7722 Py_INCREF(Py_None);
7723 _resultobj = Py_None;
7724 }
7725 return _resultobj;
7726 }
7727
7728 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7729 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7730 PyObject * _resultobj;
7731 wxDC * _arg0;
7732 int * _arg1;
7733 int temp;
7734 int * _arg2;
7735 int temp0;
7736 PyObject * _argo0 = 0;
7737 char *_kwnames[] = { "self", NULL };
7738
7739 self = self;
7740 {
7741 _arg1 = &temp;
7742 }
7743 {
7744 _arg2 = &temp0;
7745 }
7746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7747 return NULL;
7748 if (_argo0) {
7749 if (_argo0 == Py_None) { _arg0 = NULL; }
7750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7752 return NULL;
7753 }
7754 }
7755 {
7756 PyThreadState* __tstate = wxPyBeginAllowThreads();
7757 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7758
7759 wxPyEndAllowThreads(__tstate);
7760 if (PyErr_Occurred()) return NULL;
7761 } Py_INCREF(Py_None);
7762 _resultobj = Py_None;
7763 {
7764 PyObject *o;
7765 o = PyInt_FromLong((long) (*_arg1));
7766 _resultobj = t_output_helper(_resultobj, o);
7767 }
7768 {
7769 PyObject *o;
7770 o = PyInt_FromLong((long) (*_arg2));
7771 _resultobj = t_output_helper(_resultobj, o);
7772 }
7773 return _resultobj;
7774 }
7775
7776 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7777 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject * _resultobj;
7779 wxSize * _result;
7780 wxDC * _arg0;
7781 PyObject * _argo0 = 0;
7782 char *_kwnames[] = { "self", NULL };
7783 char _ptemp[128];
7784
7785 self = self;
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7787 return NULL;
7788 if (_argo0) {
7789 if (_argo0 == Py_None) { _arg0 = NULL; }
7790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7792 return NULL;
7793 }
7794 }
7795 {
7796 PyThreadState* __tstate = wxPyBeginAllowThreads();
7797 _result = new wxSize (wxDC_GetSize(_arg0));
7798
7799 wxPyEndAllowThreads(__tstate);
7800 if (PyErr_Occurred()) return NULL;
7801 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7802 _resultobj = Py_BuildValue("s",_ptemp);
7803 return _resultobj;
7804 }
7805
7806 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7807 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject * _resultobj;
7809 wxSize * _result;
7810 wxDC * _arg0;
7811 PyObject * _argo0 = 0;
7812 char *_kwnames[] = { "self", NULL };
7813 char _ptemp[128];
7814
7815 self = self;
7816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7817 return NULL;
7818 if (_argo0) {
7819 if (_argo0 == Py_None) { _arg0 = NULL; }
7820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7822 return NULL;
7823 }
7824 }
7825 {
7826 PyThreadState* __tstate = wxPyBeginAllowThreads();
7827 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) return NULL;
7831 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7832 _resultobj = Py_BuildValue("s",_ptemp);
7833 return _resultobj;
7834 }
7835
7836 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7837 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7838 PyObject * _resultobj;
7839 wxColour * _result;
7840 wxDC * _arg0;
7841 PyObject * _argo0 = 0;
7842 char *_kwnames[] = { "self", NULL };
7843 char _ptemp[128];
7844
7845 self = self;
7846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7847 return NULL;
7848 if (_argo0) {
7849 if (_argo0 == Py_None) { _arg0 = NULL; }
7850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7852 return NULL;
7853 }
7854 }
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) return NULL;
7861 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7862 _resultobj = Py_BuildValue("s",_ptemp);
7863 return _resultobj;
7864 }
7865
7866 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7867 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7868 PyObject * _resultobj;
7869 wxDC * _arg0;
7870 wxString * _arg1;
7871 long * _arg2;
7872 long temp;
7873 long * _arg3;
7874 long temp0;
7875 PyObject * _argo0 = 0;
7876 PyObject * _obj1 = 0;
7877 char *_kwnames[] = { "self","string", NULL };
7878
7879 self = self;
7880 {
7881 _arg2 = &temp;
7882 }
7883 {
7884 _arg3 = &temp0;
7885 }
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7887 return NULL;
7888 if (_argo0) {
7889 if (_argo0 == Py_None) { _arg0 = NULL; }
7890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7892 return NULL;
7893 }
7894 }
7895 {
7896 #if PYTHON_API_VERSION >= 1009
7897 char* tmpPtr; int tmpSize;
7898 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7899 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7900 return NULL;
7901 }
7902 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7903 return NULL;
7904 _arg1 = new wxString(tmpPtr, tmpSize);
7905 #else
7906 if (!PyString_Check(_obj1)) {
7907 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7908 return NULL;
7909 }
7910 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7911 #endif
7912 }
7913 {
7914 PyThreadState* __tstate = wxPyBeginAllowThreads();
7915 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
7916
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) return NULL;
7919 } Py_INCREF(Py_None);
7920 _resultobj = Py_None;
7921 {
7922 PyObject *o;
7923 o = PyInt_FromLong((long) (*_arg2));
7924 _resultobj = t_output_helper(_resultobj, o);
7925 }
7926 {
7927 PyObject *o;
7928 o = PyInt_FromLong((long) (*_arg3));
7929 _resultobj = t_output_helper(_resultobj, o);
7930 }
7931 {
7932 if (_obj1)
7933 delete _arg1;
7934 }
7935 return _resultobj;
7936 }
7937
7938 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7939 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7940 PyObject * _resultobj;
7941 wxDC * _arg0;
7942 wxString * _arg1;
7943 long * _arg2;
7944 long temp;
7945 long * _arg3;
7946 long temp0;
7947 long * _arg4;
7948 long temp1;
7949 long * _arg5;
7950 long temp2;
7951 wxFont * _arg6 = (wxFont *) NULL;
7952 PyObject * _argo0 = 0;
7953 PyObject * _obj1 = 0;
7954 PyObject * _argo6 = 0;
7955 char *_kwnames[] = { "self","string","font", NULL };
7956
7957 self = self;
7958 {
7959 _arg2 = &temp;
7960 }
7961 {
7962 _arg3 = &temp0;
7963 }
7964 {
7965 _arg4 = &temp1;
7966 }
7967 {
7968 _arg5 = &temp2;
7969 }
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7971 return NULL;
7972 if (_argo0) {
7973 if (_argo0 == Py_None) { _arg0 = NULL; }
7974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7976 return NULL;
7977 }
7978 }
7979 {
7980 #if PYTHON_API_VERSION >= 1009
7981 char* tmpPtr; int tmpSize;
7982 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7983 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7984 return NULL;
7985 }
7986 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7987 return NULL;
7988 _arg1 = new wxString(tmpPtr, tmpSize);
7989 #else
7990 if (!PyString_Check(_obj1)) {
7991 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7992 return NULL;
7993 }
7994 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7995 #endif
7996 }
7997 if (_argo6) {
7998 if (_argo6 == Py_None) { _arg6 = NULL; }
7999 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8000 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8001 return NULL;
8002 }
8003 }
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8007
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) return NULL;
8010 } Py_INCREF(Py_None);
8011 _resultobj = Py_None;
8012 {
8013 PyObject *o;
8014 o = PyInt_FromLong((long) (*_arg2));
8015 _resultobj = t_output_helper(_resultobj, o);
8016 }
8017 {
8018 PyObject *o;
8019 o = PyInt_FromLong((long) (*_arg3));
8020 _resultobj = t_output_helper(_resultobj, o);
8021 }
8022 {
8023 PyObject *o;
8024 o = PyInt_FromLong((long) (*_arg4));
8025 _resultobj = t_output_helper(_resultobj, o);
8026 }
8027 {
8028 PyObject *o;
8029 o = PyInt_FromLong((long) (*_arg5));
8030 _resultobj = t_output_helper(_resultobj, o);
8031 }
8032 {
8033 if (_obj1)
8034 delete _arg1;
8035 }
8036 return _resultobj;
8037 }
8038
8039 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8040 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject * _resultobj;
8042 wxColour * _result;
8043 wxDC * _arg0;
8044 PyObject * _argo0 = 0;
8045 char *_kwnames[] = { "self", NULL };
8046 char _ptemp[128];
8047
8048 self = self;
8049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8050 return NULL;
8051 if (_argo0) {
8052 if (_argo0 == Py_None) { _arg0 = NULL; }
8053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8055 return NULL;
8056 }
8057 }
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8061
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) return NULL;
8064 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8065 _resultobj = Py_BuildValue("s",_ptemp);
8066 return _resultobj;
8067 }
8068
8069 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8070 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8071 PyObject * _resultobj;
8072 wxDC * _arg0;
8073 double * _arg1;
8074 double temp;
8075 double * _arg2;
8076 double temp0;
8077 PyObject * _argo0 = 0;
8078 char *_kwnames[] = { "self", NULL };
8079
8080 self = self;
8081 {
8082 _arg1 = &temp;
8083 }
8084 {
8085 _arg2 = &temp0;
8086 }
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8088 return NULL;
8089 if (_argo0) {
8090 if (_argo0 == Py_None) { _arg0 = NULL; }
8091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8093 return NULL;
8094 }
8095 }
8096 {
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8099
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) return NULL;
8102 } Py_INCREF(Py_None);
8103 _resultobj = Py_None;
8104 {
8105 PyObject *o;
8106 o = PyFloat_FromDouble((double) (*_arg1));
8107 _resultobj = t_output_helper(_resultobj, o);
8108 }
8109 {
8110 PyObject *o;
8111 o = PyFloat_FromDouble((double) (*_arg2));
8112 _resultobj = t_output_helper(_resultobj, o);
8113 }
8114 return _resultobj;
8115 }
8116
8117 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8118 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject * _resultobj;
8120 long _result;
8121 wxDC * _arg0;
8122 long _arg1;
8123 PyObject * _argo0 = 0;
8124 char *_kwnames[] = { "self","x", NULL };
8125
8126 self = self;
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8128 return NULL;
8129 if (_argo0) {
8130 if (_argo0 == Py_None) { _arg0 = NULL; }
8131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8133 return NULL;
8134 }
8135 }
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) return NULL;
8142 } _resultobj = Py_BuildValue("l",_result);
8143 return _resultobj;
8144 }
8145
8146 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8147 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8148 PyObject * _resultobj;
8149 long _result;
8150 wxDC * _arg0;
8151 long _arg1;
8152 PyObject * _argo0 = 0;
8153 char *_kwnames[] = { "self","x", NULL };
8154
8155 self = self;
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8157 return NULL;
8158 if (_argo0) {
8159 if (_argo0 == Py_None) { _arg0 = NULL; }
8160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8162 return NULL;
8163 }
8164 }
8165 {
8166 PyThreadState* __tstate = wxPyBeginAllowThreads();
8167 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8168
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) return NULL;
8171 } _resultobj = Py_BuildValue("l",_result);
8172 return _resultobj;
8173 }
8174
8175 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8176 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject * _resultobj;
8178 long _result;
8179 wxDC * _arg0;
8180 long _arg1;
8181 PyObject * _argo0 = 0;
8182 char *_kwnames[] = { "self","y", NULL };
8183
8184 self = self;
8185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8186 return NULL;
8187 if (_argo0) {
8188 if (_argo0 == Py_None) { _arg0 = NULL; }
8189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8191 return NULL;
8192 }
8193 }
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) return NULL;
8200 } _resultobj = Py_BuildValue("l",_result);
8201 return _resultobj;
8202 }
8203
8204 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8205 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject * _resultobj;
8207 long _result;
8208 wxDC * _arg0;
8209 long _arg1;
8210 PyObject * _argo0 = 0;
8211 char *_kwnames[] = { "self","y", NULL };
8212
8213 self = self;
8214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8215 return NULL;
8216 if (_argo0) {
8217 if (_argo0 == Py_None) { _arg0 = NULL; }
8218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8220 return NULL;
8221 }
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) return NULL;
8229 } _resultobj = Py_BuildValue("l",_result);
8230 return _resultobj;
8231 }
8232
8233 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8234 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8235 PyObject * _resultobj;
8236 long _result;
8237 wxDC * _arg0;
8238 PyObject * _argo0 = 0;
8239 char *_kwnames[] = { "self", NULL };
8240
8241 self = self;
8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8243 return NULL;
8244 if (_argo0) {
8245 if (_argo0 == Py_None) { _arg0 = NULL; }
8246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8248 return NULL;
8249 }
8250 }
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 _result = (long )wxDC_MaxX(_arg0);
8254
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) return NULL;
8257 } _resultobj = Py_BuildValue("l",_result);
8258 return _resultobj;
8259 }
8260
8261 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8262 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8263 PyObject * _resultobj;
8264 long _result;
8265 wxDC * _arg0;
8266 PyObject * _argo0 = 0;
8267 char *_kwnames[] = { "self", NULL };
8268
8269 self = self;
8270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8271 return NULL;
8272 if (_argo0) {
8273 if (_argo0 == Py_None) { _arg0 = NULL; }
8274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8276 return NULL;
8277 }
8278 }
8279 {
8280 PyThreadState* __tstate = wxPyBeginAllowThreads();
8281 _result = (long )wxDC_MaxY(_arg0);
8282
8283 wxPyEndAllowThreads(__tstate);
8284 if (PyErr_Occurred()) return NULL;
8285 } _resultobj = Py_BuildValue("l",_result);
8286 return _resultobj;
8287 }
8288
8289 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8290 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
8291 PyObject * _resultobj;
8292 long _result;
8293 wxDC * _arg0;
8294 PyObject * _argo0 = 0;
8295 char *_kwnames[] = { "self", NULL };
8296
8297 self = self;
8298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
8299 return NULL;
8300 if (_argo0) {
8301 if (_argo0 == Py_None) { _arg0 = NULL; }
8302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8304 return NULL;
8305 }
8306 }
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 _result = (long )wxDC_MinX(_arg0);
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) return NULL;
8313 } _resultobj = Py_BuildValue("l",_result);
8314 return _resultobj;
8315 }
8316
8317 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8318 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject * _resultobj;
8320 long _result;
8321 wxDC * _arg0;
8322 PyObject * _argo0 = 0;
8323 char *_kwnames[] = { "self", NULL };
8324
8325 self = self;
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
8327 return NULL;
8328 if (_argo0) {
8329 if (_argo0 == Py_None) { _arg0 = NULL; }
8330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8332 return NULL;
8333 }
8334 }
8335 {
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 _result = (long )wxDC_MinY(_arg0);
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) return NULL;
8341 } _resultobj = Py_BuildValue("l",_result);
8342 return _resultobj;
8343 }
8344
8345 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8346 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8347 PyObject * _resultobj;
8348 bool _result;
8349 wxDC * _arg0;
8350 PyObject * _argo0 = 0;
8351 char *_kwnames[] = { "self", NULL };
8352
8353 self = self;
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
8355 return NULL;
8356 if (_argo0) {
8357 if (_argo0 == Py_None) { _arg0 = NULL; }
8358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8360 return NULL;
8361 }
8362 }
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 _result = (bool )wxDC_Ok(_arg0);
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) return NULL;
8369 } _resultobj = Py_BuildValue("i",_result);
8370 return _resultobj;
8371 }
8372
8373 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8374 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8375 PyObject * _resultobj;
8376 wxDC * _arg0;
8377 long _arg1;
8378 long _arg2;
8379 PyObject * _argo0 = 0;
8380 char *_kwnames[] = { "self","x","y", NULL };
8381
8382 self = self;
8383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8384 return NULL;
8385 if (_argo0) {
8386 if (_argo0 == Py_None) { _arg0 = NULL; }
8387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8389 return NULL;
8390 }
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) return NULL;
8398 } Py_INCREF(Py_None);
8399 _resultobj = Py_None;
8400 return _resultobj;
8401 }
8402
8403 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8404 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8405 PyObject * _resultobj;
8406 wxDC * _arg0;
8407 wxBrush * _arg1;
8408 PyObject * _argo0 = 0;
8409 PyObject * _argo1 = 0;
8410 char *_kwnames[] = { "self","brush", NULL };
8411
8412 self = self;
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
8414 return NULL;
8415 if (_argo0) {
8416 if (_argo0 == Py_None) { _arg0 = NULL; }
8417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8419 return NULL;
8420 }
8421 }
8422 if (_argo1) {
8423 if (_argo1 == Py_None) { _arg1 = NULL; }
8424 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8425 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8426 return NULL;
8427 }
8428 }
8429 {
8430 PyThreadState* __tstate = wxPyBeginAllowThreads();
8431 wxDC_SetBackground(_arg0,*_arg1);
8432
8433 wxPyEndAllowThreads(__tstate);
8434 if (PyErr_Occurred()) return NULL;
8435 } Py_INCREF(Py_None);
8436 _resultobj = Py_None;
8437 return _resultobj;
8438 }
8439
8440 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8441 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8442 PyObject * _resultobj;
8443 wxDC * _arg0;
8444 int _arg1;
8445 PyObject * _argo0 = 0;
8446 char *_kwnames[] = { "self","mode", NULL };
8447
8448 self = self;
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
8450 return NULL;
8451 if (_argo0) {
8452 if (_argo0 == Py_None) { _arg0 = NULL; }
8453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8455 return NULL;
8456 }
8457 }
8458 {
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 wxDC_SetBackgroundMode(_arg0,_arg1);
8461
8462 wxPyEndAllowThreads(__tstate);
8463 if (PyErr_Occurred()) return NULL;
8464 } Py_INCREF(Py_None);
8465 _resultobj = Py_None;
8466 return _resultobj;
8467 }
8468
8469 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8470 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8471 PyObject * _resultobj;
8472 wxDC * _arg0;
8473 long _arg1;
8474 long _arg2;
8475 long _arg3;
8476 long _arg4;
8477 PyObject * _argo0 = 0;
8478 char *_kwnames[] = { "self","x","y","width","height", NULL };
8479
8480 self = self;
8481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8482 return NULL;
8483 if (_argo0) {
8484 if (_argo0 == Py_None) { _arg0 = NULL; }
8485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8487 return NULL;
8488 }
8489 }
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8493
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) return NULL;
8496 } Py_INCREF(Py_None);
8497 _resultobj = Py_None;
8498 return _resultobj;
8499 }
8500
8501 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8502 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8503 PyObject * _resultobj;
8504 wxDC * _arg0;
8505 wxRegion * _arg1;
8506 PyObject * _argo0 = 0;
8507 PyObject * _argo1 = 0;
8508 char *_kwnames[] = { "self","region", NULL };
8509
8510 self = self;
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8512 return NULL;
8513 if (_argo0) {
8514 if (_argo0 == Py_None) { _arg0 = NULL; }
8515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8517 return NULL;
8518 }
8519 }
8520 if (_argo1) {
8521 if (_argo1 == Py_None) { _arg1 = NULL; }
8522 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8523 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8524 return NULL;
8525 }
8526 }
8527 {
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8530
8531 wxPyEndAllowThreads(__tstate);
8532 if (PyErr_Occurred()) return NULL;
8533 } Py_INCREF(Py_None);
8534 _resultobj = Py_None;
8535 return _resultobj;
8536 }
8537
8538 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8539 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8540 PyObject * _resultobj;
8541 wxDC * _arg0;
8542 wxPalette * _arg1;
8543 PyObject * _argo0 = 0;
8544 PyObject * _argo1 = 0;
8545 char *_kwnames[] = { "self","colourMap", NULL };
8546
8547 self = self;
8548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8549 return NULL;
8550 if (_argo0) {
8551 if (_argo0 == Py_None) { _arg0 = NULL; }
8552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8554 return NULL;
8555 }
8556 }
8557 if (_argo1) {
8558 if (_argo1 == Py_None) { _arg1 = NULL; }
8559 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8560 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8561 return NULL;
8562 }
8563 }
8564 {
8565 PyThreadState* __tstate = wxPyBeginAllowThreads();
8566 wxDC_SetPalette(_arg0,*_arg1);
8567
8568 wxPyEndAllowThreads(__tstate);
8569 if (PyErr_Occurred()) return NULL;
8570 } Py_INCREF(Py_None);
8571 _resultobj = Py_None;
8572 return _resultobj;
8573 }
8574
8575 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8576 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8577 PyObject * _resultobj;
8578 wxDC * _arg0;
8579 wxBrush * _arg1;
8580 PyObject * _argo0 = 0;
8581 PyObject * _argo1 = 0;
8582 char *_kwnames[] = { "self","brush", NULL };
8583
8584 self = self;
8585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8586 return NULL;
8587 if (_argo0) {
8588 if (_argo0 == Py_None) { _arg0 = NULL; }
8589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8591 return NULL;
8592 }
8593 }
8594 if (_argo1) {
8595 if (_argo1 == Py_None) { _arg1 = NULL; }
8596 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8597 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8598 return NULL;
8599 }
8600 }
8601 {
8602 PyThreadState* __tstate = wxPyBeginAllowThreads();
8603 wxDC_SetBrush(_arg0,*_arg1);
8604
8605 wxPyEndAllowThreads(__tstate);
8606 if (PyErr_Occurred()) return NULL;
8607 } Py_INCREF(Py_None);
8608 _resultobj = Py_None;
8609 return _resultobj;
8610 }
8611
8612 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8613 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8614 PyObject * _resultobj;
8615 wxDC * _arg0;
8616 wxFont * _arg1;
8617 PyObject * _argo0 = 0;
8618 PyObject * _argo1 = 0;
8619 char *_kwnames[] = { "self","font", NULL };
8620
8621 self = self;
8622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8623 return NULL;
8624 if (_argo0) {
8625 if (_argo0 == Py_None) { _arg0 = NULL; }
8626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8628 return NULL;
8629 }
8630 }
8631 if (_argo1) {
8632 if (_argo1 == Py_None) { _arg1 = NULL; }
8633 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8634 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8635 return NULL;
8636 }
8637 }
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 wxDC_SetFont(_arg0,*_arg1);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) return NULL;
8644 } Py_INCREF(Py_None);
8645 _resultobj = Py_None;
8646 return _resultobj;
8647 }
8648
8649 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8650 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8651 PyObject * _resultobj;
8652 wxDC * _arg0;
8653 int _arg1;
8654 PyObject * _argo0 = 0;
8655 char *_kwnames[] = { "self","function", NULL };
8656
8657 self = self;
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8659 return NULL;
8660 if (_argo0) {
8661 if (_argo0 == Py_None) { _arg0 = NULL; }
8662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8664 return NULL;
8665 }
8666 }
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 wxDC_SetLogicalFunction(_arg0,_arg1);
8670
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) return NULL;
8673 } Py_INCREF(Py_None);
8674 _resultobj = Py_None;
8675 return _resultobj;
8676 }
8677
8678 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8679 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8680 PyObject * _resultobj;
8681 wxDC * _arg0;
8682 double _arg1;
8683 double _arg2;
8684 PyObject * _argo0 = 0;
8685 char *_kwnames[] = { "self","x","y", NULL };
8686
8687 self = self;
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8689 return NULL;
8690 if (_argo0) {
8691 if (_argo0 == Py_None) { _arg0 = NULL; }
8692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8694 return NULL;
8695 }
8696 }
8697 {
8698 PyThreadState* __tstate = wxPyBeginAllowThreads();
8699 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8700
8701 wxPyEndAllowThreads(__tstate);
8702 if (PyErr_Occurred()) return NULL;
8703 } Py_INCREF(Py_None);
8704 _resultobj = Py_None;
8705 return _resultobj;
8706 }
8707
8708 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8709 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject * _resultobj;
8711 wxDC * _arg0;
8712 int _arg1;
8713 PyObject * _argo0 = 0;
8714 char *_kwnames[] = { "self","mode", NULL };
8715
8716 self = self;
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8718 return NULL;
8719 if (_argo0) {
8720 if (_argo0 == Py_None) { _arg0 = NULL; }
8721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8723 return NULL;
8724 }
8725 }
8726 {
8727 PyThreadState* __tstate = wxPyBeginAllowThreads();
8728 wxDC_SetMapMode(_arg0,_arg1);
8729
8730 wxPyEndAllowThreads(__tstate);
8731 if (PyErr_Occurred()) return NULL;
8732 } Py_INCREF(Py_None);
8733 _resultobj = Py_None;
8734 return _resultobj;
8735 }
8736
8737 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8738 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8739 PyObject * _resultobj;
8740 wxDC * _arg0;
8741 bool _arg1;
8742 PyObject * _argo0 = 0;
8743 int tempbool1;
8744 char *_kwnames[] = { "self","optimize", NULL };
8745
8746 self = self;
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8748 return NULL;
8749 if (_argo0) {
8750 if (_argo0 == Py_None) { _arg0 = NULL; }
8751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8753 return NULL;
8754 }
8755 }
8756 _arg1 = (bool ) tempbool1;
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 wxDC_SetOptimization(_arg0,_arg1);
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) return NULL;
8763 } Py_INCREF(Py_None);
8764 _resultobj = Py_None;
8765 return _resultobj;
8766 }
8767
8768 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8769 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject * _resultobj;
8771 wxDC * _arg0;
8772 wxPen * _arg1;
8773 PyObject * _argo0 = 0;
8774 PyObject * _argo1 = 0;
8775 char *_kwnames[] = { "self","pen", NULL };
8776
8777 self = self;
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8779 return NULL;
8780 if (_argo0) {
8781 if (_argo0 == Py_None) { _arg0 = NULL; }
8782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8784 return NULL;
8785 }
8786 }
8787 if (_argo1) {
8788 if (_argo1 == Py_None) { _arg1 = NULL; }
8789 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8790 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8791 return NULL;
8792 }
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 wxDC_SetPen(_arg0,*_arg1);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) return NULL;
8800 } Py_INCREF(Py_None);
8801 _resultobj = Py_None;
8802 return _resultobj;
8803 }
8804
8805 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8806 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8807 PyObject * _resultobj;
8808 wxDC * _arg0;
8809 wxColour * _arg1;
8810 PyObject * _argo0 = 0;
8811 wxColour temp;
8812 PyObject * _obj1 = 0;
8813 char *_kwnames[] = { "self","colour", NULL };
8814
8815 self = self;
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8817 return NULL;
8818 if (_argo0) {
8819 if (_argo0 == Py_None) { _arg0 = NULL; }
8820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8822 return NULL;
8823 }
8824 }
8825 {
8826 _arg1 = &temp;
8827 if (! wxColour_helper(_obj1, &_arg1))
8828 return NULL;
8829 }
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 wxDC_SetTextBackground(_arg0,*_arg1);
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) return NULL;
8836 } Py_INCREF(Py_None);
8837 _resultobj = Py_None;
8838 return _resultobj;
8839 }
8840
8841 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8842 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8843 PyObject * _resultobj;
8844 wxDC * _arg0;
8845 wxColour * _arg1;
8846 PyObject * _argo0 = 0;
8847 wxColour temp;
8848 PyObject * _obj1 = 0;
8849 char *_kwnames[] = { "self","colour", NULL };
8850
8851 self = self;
8852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8853 return NULL;
8854 if (_argo0) {
8855 if (_argo0 == Py_None) { _arg0 = NULL; }
8856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8858 return NULL;
8859 }
8860 }
8861 {
8862 _arg1 = &temp;
8863 if (! wxColour_helper(_obj1, &_arg1))
8864 return NULL;
8865 }
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 wxDC_SetTextForeground(_arg0,*_arg1);
8869
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) return NULL;
8872 } Py_INCREF(Py_None);
8873 _resultobj = Py_None;
8874 return _resultobj;
8875 }
8876
8877 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8878 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject * _resultobj;
8880 wxDC * _arg0;
8881 double _arg1;
8882 double _arg2;
8883 PyObject * _argo0 = 0;
8884 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8885
8886 self = self;
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8888 return NULL;
8889 if (_argo0) {
8890 if (_argo0 == Py_None) { _arg0 = NULL; }
8891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8893 return NULL;
8894 }
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) return NULL;
8902 } Py_INCREF(Py_None);
8903 _resultobj = Py_None;
8904 return _resultobj;
8905 }
8906
8907 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8908 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8909 PyObject * _resultobj;
8910 bool _result;
8911 wxDC * _arg0;
8912 wxString * _arg1;
8913 PyObject * _argo0 = 0;
8914 PyObject * _obj1 = 0;
8915 char *_kwnames[] = { "self","message", NULL };
8916
8917 self = self;
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
8919 return NULL;
8920 if (_argo0) {
8921 if (_argo0 == Py_None) { _arg0 = NULL; }
8922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8924 return NULL;
8925 }
8926 }
8927 {
8928 #if PYTHON_API_VERSION >= 1009
8929 char* tmpPtr; int tmpSize;
8930 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8931 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8932 return NULL;
8933 }
8934 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8935 return NULL;
8936 _arg1 = new wxString(tmpPtr, tmpSize);
8937 #else
8938 if (!PyString_Check(_obj1)) {
8939 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8940 return NULL;
8941 }
8942 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8943 #endif
8944 }
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) return NULL;
8951 } _resultobj = Py_BuildValue("i",_result);
8952 {
8953 if (_obj1)
8954 delete _arg1;
8955 }
8956 return _resultobj;
8957 }
8958
8959 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8960 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8961 PyObject * _resultobj;
8962 wxDC * _arg0;
8963 PyObject * _argo0 = 0;
8964 char *_kwnames[] = { "self", NULL };
8965
8966 self = self;
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
8968 return NULL;
8969 if (_argo0) {
8970 if (_argo0 == Py_None) { _arg0 = NULL; }
8971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8973 return NULL;
8974 }
8975 }
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 wxDC_StartPage(_arg0);
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) return NULL;
8982 } Py_INCREF(Py_None);
8983 _resultobj = Py_None;
8984 return _resultobj;
8985 }
8986
8987 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8988 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8989 PyObject * _resultobj;
8990 wxDC * _arg0;
8991 wxBitmap * _arg1;
8992 long _arg2;
8993 long _arg3;
8994 int _arg4 = (int ) FALSE;
8995 PyObject * _argo0 = 0;
8996 PyObject * _argo1 = 0;
8997 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
8998
8999 self = self;
9000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9001 return NULL;
9002 if (_argo0) {
9003 if (_argo0 == Py_None) { _arg0 = NULL; }
9004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9006 return NULL;
9007 }
9008 }
9009 if (_argo1) {
9010 if (_argo1 == Py_None) { _arg1 = NULL; }
9011 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9012 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9013 return NULL;
9014 }
9015 }
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) return NULL;
9022 } Py_INCREF(Py_None);
9023 _resultobj = Py_None;
9024 return _resultobj;
9025 }
9026
9027 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9028 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject * _resultobj;
9030 bool _result;
9031 wxDC * _arg0;
9032 PyObject * _argo0 = 0;
9033 char *_kwnames[] = { "self", NULL };
9034
9035 self = self;
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9037 return NULL;
9038 if (_argo0) {
9039 if (_argo0 == Py_None) { _arg0 = NULL; }
9040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9042 return NULL;
9043 }
9044 }
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) return NULL;
9051 } _resultobj = Py_BuildValue("i",_result);
9052 return _resultobj;
9053 }
9054
9055 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9056 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject * _resultobj;
9058 bool _result;
9059 wxDC * _arg0;
9060 PyObject * _argo0 = 0;
9061 char *_kwnames[] = { "self", NULL };
9062
9063 self = self;
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9065 return NULL;
9066 if (_argo0) {
9067 if (_argo0 == Py_None) { _arg0 = NULL; }
9068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9070 return NULL;
9071 }
9072 }
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) return NULL;
9079 } _resultobj = Py_BuildValue("i",_result);
9080 return _resultobj;
9081 }
9082
9083 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9084 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject * _resultobj;
9086 int _result;
9087 wxDC * _arg0;
9088 PyObject * _argo0 = 0;
9089 char *_kwnames[] = { "self", NULL };
9090
9091 self = self;
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9093 return NULL;
9094 if (_argo0) {
9095 if (_argo0 == Py_None) { _arg0 = NULL; }
9096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9098 return NULL;
9099 }
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 _result = (int )wxDC_GetDepth(_arg0);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) return NULL;
9107 } _resultobj = Py_BuildValue("i",_result);
9108 return _resultobj;
9109 }
9110
9111 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9112 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9113 PyObject * _resultobj;
9114 wxSize * _result;
9115 wxDC * _arg0;
9116 PyObject * _argo0 = 0;
9117 char *_kwnames[] = { "self", NULL };
9118 char _ptemp[128];
9119
9120 self = self;
9121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9122 return NULL;
9123 if (_argo0) {
9124 if (_argo0 == Py_None) { _arg0 = NULL; }
9125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9127 return NULL;
9128 }
9129 }
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 _result = new wxSize (wxDC_GetPPI(_arg0));
9133
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) return NULL;
9136 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9137 _resultobj = Py_BuildValue("s",_ptemp);
9138 return _resultobj;
9139 }
9140
9141 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9142 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9143 PyObject * _resultobj;
9144 wxDC * _arg0;
9145 int * _arg1;
9146 int temp;
9147 int * _arg2;
9148 int temp0;
9149 PyObject * _argo0 = 0;
9150 char *_kwnames[] = { "self", NULL };
9151
9152 self = self;
9153 {
9154 _arg1 = &temp;
9155 }
9156 {
9157 _arg2 = &temp0;
9158 }
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9160 return NULL;
9161 if (_argo0) {
9162 if (_argo0 == Py_None) { _arg0 = NULL; }
9163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9165 return NULL;
9166 }
9167 }
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9171
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) return NULL;
9174 } Py_INCREF(Py_None);
9175 _resultobj = Py_None;
9176 {
9177 PyObject *o;
9178 o = PyInt_FromLong((long) (*_arg1));
9179 _resultobj = t_output_helper(_resultobj, o);
9180 }
9181 {
9182 PyObject *o;
9183 o = PyInt_FromLong((long) (*_arg2));
9184 _resultobj = t_output_helper(_resultobj, o);
9185 }
9186 return _resultobj;
9187 }
9188
9189 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9190 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9191 PyObject * _resultobj;
9192 wxDC * _arg0;
9193 int _arg1;
9194 int _arg2;
9195 PyObject * _argo0 = 0;
9196 char *_kwnames[] = { "self","x","y", NULL };
9197
9198 self = self;
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9200 return NULL;
9201 if (_argo0) {
9202 if (_argo0 == Py_None) { _arg0 = NULL; }
9203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9205 return NULL;
9206 }
9207 }
9208 {
9209 PyThreadState* __tstate = wxPyBeginAllowThreads();
9210 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9211
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) return NULL;
9214 } Py_INCREF(Py_None);
9215 _resultobj = Py_None;
9216 return _resultobj;
9217 }
9218
9219 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9220 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9221 PyObject * _resultobj;
9222 wxDC * _arg0;
9223 int * _arg1;
9224 int temp;
9225 int * _arg2;
9226 int temp0;
9227 PyObject * _argo0 = 0;
9228 char *_kwnames[] = { "self", NULL };
9229
9230 self = self;
9231 {
9232 _arg1 = &temp;
9233 }
9234 {
9235 _arg2 = &temp0;
9236 }
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9238 return NULL;
9239 if (_argo0) {
9240 if (_argo0 == Py_None) { _arg0 = NULL; }
9241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9243 return NULL;
9244 }
9245 }
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) return NULL;
9252 } Py_INCREF(Py_None);
9253 _resultobj = Py_None;
9254 {
9255 PyObject *o;
9256 o = PyInt_FromLong((long) (*_arg1));
9257 _resultobj = t_output_helper(_resultobj, o);
9258 }
9259 {
9260 PyObject *o;
9261 o = PyInt_FromLong((long) (*_arg2));
9262 _resultobj = t_output_helper(_resultobj, o);
9263 }
9264 return _resultobj;
9265 }
9266
9267 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9268 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject * _resultobj;
9270 wxDC * _arg0;
9271 bool _arg1;
9272 bool _arg2;
9273 PyObject * _argo0 = 0;
9274 int tempbool1;
9275 int tempbool2;
9276 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9277
9278 self = self;
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9280 return NULL;
9281 if (_argo0) {
9282 if (_argo0 == Py_None) { _arg0 = NULL; }
9283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9285 return NULL;
9286 }
9287 }
9288 _arg1 = (bool ) tempbool1;
9289 _arg2 = (bool ) tempbool2;
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9293
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) return NULL;
9296 } Py_INCREF(Py_None);
9297 _resultobj = Py_None;
9298 return _resultobj;
9299 }
9300
9301 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9302 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject * _resultobj;
9304 wxDC * _arg0;
9305 int _arg1;
9306 int _arg2;
9307 PyObject * _argo0 = 0;
9308 char *_kwnames[] = { "self","x","y", NULL };
9309
9310 self = self;
9311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9312 return NULL;
9313 if (_argo0) {
9314 if (_argo0 == Py_None) { _arg0 = NULL; }
9315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9317 return NULL;
9318 }
9319 }
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9323
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) return NULL;
9326 } Py_INCREF(Py_None);
9327 _resultobj = Py_None;
9328 return _resultobj;
9329 }
9330
9331 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9332 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9333 PyObject * _resultobj;
9334 wxDC * _arg0;
9335 PyObject * _argo0 = 0;
9336 char *_kwnames[] = { "self", NULL };
9337
9338 self = self;
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9340 return NULL;
9341 if (_argo0) {
9342 if (_argo0 == Py_None) { _arg0 = NULL; }
9343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9345 return NULL;
9346 }
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 wxDC_ResetBoundingBox(_arg0);
9351
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) return NULL;
9354 } Py_INCREF(Py_None);
9355 _resultobj = Py_None;
9356 return _resultobj;
9357 }
9358
9359 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject * _resultobj;
9361 wxDC * _arg0;
9362 int * _arg1;
9363 int temp;
9364 int * _arg2;
9365 int temp0;
9366 int * _arg3;
9367 int temp1;
9368 int * _arg4;
9369 int temp2;
9370 PyObject * _argo0 = 0;
9371 char *_kwnames[] = { "self", NULL };
9372
9373 self = self;
9374 {
9375 _arg1 = &temp;
9376 }
9377 {
9378 _arg2 = &temp0;
9379 }
9380 {
9381 _arg3 = &temp1;
9382 }
9383 {
9384 _arg4 = &temp2;
9385 }
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9387 return NULL;
9388 if (_argo0) {
9389 if (_argo0 == Py_None) { _arg0 = NULL; }
9390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9392 return NULL;
9393 }
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) return NULL;
9401 } Py_INCREF(Py_None);
9402 _resultobj = Py_None;
9403 {
9404 PyObject *o;
9405 o = PyInt_FromLong((long) (*_arg1));
9406 _resultobj = t_output_helper(_resultobj, o);
9407 }
9408 {
9409 PyObject *o;
9410 o = PyInt_FromLong((long) (*_arg2));
9411 _resultobj = t_output_helper(_resultobj, o);
9412 }
9413 {
9414 PyObject *o;
9415 o = PyInt_FromLong((long) (*_arg3));
9416 _resultobj = t_output_helper(_resultobj, o);
9417 }
9418 {
9419 PyObject *o;
9420 o = PyInt_FromLong((long) (*_arg4));
9421 _resultobj = t_output_helper(_resultobj, o);
9422 }
9423 return _resultobj;
9424 }
9425
9426 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9427 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9428 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9429 int numObjs = 0;
9430 int numPens = 0;
9431 wxPen* pen;
9432 PyObject* obj;
9433 int x1, y1;
9434 int i = 0;
9435
9436 if (!PySequence_Check(pyPoints)) {
9437 goto err0;
9438 }
9439 if (!PySequence_Check(pyPens)) {
9440 goto err1;
9441 }
9442 numObjs = PySequence_Length(pyPoints);
9443 numPens = PySequence_Length(pyPens);
9444
9445 for (i = 0; i < numObjs; i++) {
9446 // Use a new pen?
9447 if (i < numPens) {
9448 if (isFastPens) {
9449 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9450 }
9451 else {
9452 obj = PySequence_GetItem(pyPens, i);
9453 }
9454 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9455 if (!isFastPens)
9456 Py_DECREF(obj);
9457 goto err1;
9458 }
9459
9460 self->SetPen(*pen);
9461 if (!isFastPens)
9462 Py_DECREF(obj);
9463 }
9464
9465 // Get the point coordinants
9466 if (isFastSeq) {
9467 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9468 }
9469 else {
9470 obj = PySequence_GetItem(pyPoints, i);
9471 }
9472 if (! _2int_seq_helper(obj, &x1, &y1)) {
9473 if (!isFastPens)
9474 Py_DECREF(obj);
9475 goto err0;
9476 }
9477
9478 // Now draw the point
9479 self->DrawPoint(x1, y1);
9480
9481 if (!isFastSeq)
9482 Py_DECREF(obj);
9483 }
9484
9485 Py_INCREF(Py_None);
9486 return Py_None;
9487
9488 err1:
9489 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9490 return NULL;
9491 err0:
9492 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9493 return NULL;
9494 }
9495 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9496 PyObject * _resultobj;
9497 PyObject * _result;
9498 wxDC * _arg0;
9499 PyObject * _arg1;
9500 PyObject * _arg2;
9501 PyObject * _argo0 = 0;
9502 PyObject * _obj1 = 0;
9503 PyObject * _obj2 = 0;
9504 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9505
9506 self = self;
9507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9508 return NULL;
9509 if (_argo0) {
9510 if (_argo0 == Py_None) { _arg0 = NULL; }
9511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9513 return NULL;
9514 }
9515 }
9516 {
9517 _arg1 = _obj1;
9518 }
9519 {
9520 _arg2 = _obj2;
9521 }
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9525
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) return NULL;
9528 }{
9529 _resultobj = _result;
9530 }
9531 return _resultobj;
9532 }
9533
9534 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9535 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9536 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9537 int numObjs = 0;
9538 int numPens = 0;
9539 wxPen* pen;
9540 PyObject* obj;
9541 int x1, y1, x2, y2;
9542 int i = 0;
9543
9544 if (!PySequence_Check(pyLines)) {
9545 goto err0;
9546 }
9547 if (!PySequence_Check(pyPens)) {
9548 goto err1;
9549 }
9550 numObjs = PySequence_Length(pyLines);
9551 numPens = PySequence_Length(pyPens);
9552
9553 for (i = 0; i < numObjs; i++) {
9554 // Use a new pen?
9555 if (i < numPens) {
9556 if (isFastPens) {
9557 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9558 }
9559 else {
9560 obj = PySequence_GetItem(pyPens, i);
9561 }
9562 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9563 if (!isFastPens)
9564 Py_DECREF(obj);
9565 goto err1;
9566 }
9567
9568 self->SetPen(*pen);
9569 if (!isFastPens)
9570 Py_DECREF(obj);
9571 }
9572
9573 // Get the line coordinants
9574 if (isFastSeq) {
9575 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9576 }
9577 else {
9578 obj = PySequence_GetItem(pyLines, i);
9579 }
9580 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9581 if (!isFastPens)
9582 Py_DECREF(obj);
9583 goto err0;
9584 }
9585
9586 // Now draw the line
9587 self->DrawLine(x1, y1, x2, y2);
9588
9589 if (!isFastSeq)
9590 Py_DECREF(obj);
9591 }
9592
9593 Py_INCREF(Py_None);
9594 return Py_None;
9595
9596 err1:
9597 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9598 return NULL;
9599 err0:
9600 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9601 return NULL;
9602 }
9603 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject * _resultobj;
9605 PyObject * _result;
9606 wxDC * _arg0;
9607 PyObject * _arg1;
9608 PyObject * _arg2;
9609 PyObject * _argo0 = 0;
9610 PyObject * _obj1 = 0;
9611 PyObject * _obj2 = 0;
9612 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9613
9614 self = self;
9615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9616 return NULL;
9617 if (_argo0) {
9618 if (_argo0 == Py_None) { _arg0 = NULL; }
9619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9621 return NULL;
9622 }
9623 }
9624 {
9625 _arg1 = _obj1;
9626 }
9627 {
9628 _arg2 = _obj2;
9629 }
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) return NULL;
9636 }{
9637 _resultobj = _result;
9638 }
9639 return _resultobj;
9640 }
9641
9642 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9643 wxMemoryDC *src;
9644 wxDC *dest;
9645 src = (wxMemoryDC *) ptr;
9646 dest = (wxDC *) src;
9647 return (void *) dest;
9648 }
9649
9650 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9651 wxMemoryDC *src;
9652 wxObject *dest;
9653 src = (wxMemoryDC *) ptr;
9654 dest = (wxObject *) src;
9655 return (void *) dest;
9656 }
9657
9658 #define new_wxMemoryDC() (new wxMemoryDC())
9659 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9660 PyObject * _resultobj;
9661 wxMemoryDC * _result;
9662 char *_kwnames[] = { NULL };
9663 char _ptemp[128];
9664
9665 self = self;
9666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9667 return NULL;
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 _result = (wxMemoryDC *)new_wxMemoryDC();
9671
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) return NULL;
9674 } if (_result) {
9675 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9676 _resultobj = Py_BuildValue("s",_ptemp);
9677 } else {
9678 Py_INCREF(Py_None);
9679 _resultobj = Py_None;
9680 }
9681 return _resultobj;
9682 }
9683
9684 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9685 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9686 PyObject * _resultobj;
9687 wxMemoryDC * _arg0;
9688 wxBitmap * _arg1;
9689 PyObject * _argo0 = 0;
9690 PyObject * _argo1 = 0;
9691 char *_kwnames[] = { "self","bitmap", NULL };
9692
9693 self = self;
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9695 return NULL;
9696 if (_argo0) {
9697 if (_argo0 == Py_None) { _arg0 = NULL; }
9698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9700 return NULL;
9701 }
9702 }
9703 if (_argo1) {
9704 if (_argo1 == Py_None) { _arg1 = NULL; }
9705 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9706 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9707 return NULL;
9708 }
9709 }
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 wxMemoryDC_SelectObject(_arg0,*_arg1);
9713
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) return NULL;
9716 } Py_INCREF(Py_None);
9717 _resultobj = Py_None;
9718 return _resultobj;
9719 }
9720
9721 static void *SwigwxScreenDCTowxDC(void *ptr) {
9722 wxScreenDC *src;
9723 wxDC *dest;
9724 src = (wxScreenDC *) ptr;
9725 dest = (wxDC *) src;
9726 return (void *) dest;
9727 }
9728
9729 static void *SwigwxScreenDCTowxObject(void *ptr) {
9730 wxScreenDC *src;
9731 wxObject *dest;
9732 src = (wxScreenDC *) ptr;
9733 dest = (wxObject *) src;
9734 return (void *) dest;
9735 }
9736
9737 #define new_wxScreenDC() (new wxScreenDC())
9738 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject * _resultobj;
9740 wxScreenDC * _result;
9741 char *_kwnames[] = { NULL };
9742 char _ptemp[128];
9743
9744 self = self;
9745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9746 return NULL;
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 _result = (wxScreenDC *)new_wxScreenDC();
9750
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) return NULL;
9753 } if (_result) {
9754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9755 _resultobj = Py_BuildValue("s",_ptemp);
9756 } else {
9757 Py_INCREF(Py_None);
9758 _resultobj = Py_None;
9759 }
9760 return _resultobj;
9761 }
9762
9763 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9764 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9765 PyObject * _resultobj;
9766 bool _result;
9767 wxScreenDC * _arg0;
9768 wxWindow * _arg1;
9769 PyObject * _argo0 = 0;
9770 PyObject * _argo1 = 0;
9771 char *_kwnames[] = { "self","window", NULL };
9772
9773 self = self;
9774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9775 return NULL;
9776 if (_argo0) {
9777 if (_argo0 == Py_None) { _arg0 = NULL; }
9778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9780 return NULL;
9781 }
9782 }
9783 if (_argo1) {
9784 if (_argo1 == Py_None) { _arg1 = NULL; }
9785 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9786 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9787 return NULL;
9788 }
9789 }
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9793
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) return NULL;
9796 } _resultobj = Py_BuildValue("i",_result);
9797 return _resultobj;
9798 }
9799
9800 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9801 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9802 PyObject * _resultobj;
9803 bool _result;
9804 wxScreenDC * _arg0;
9805 wxRect * _arg1 = (wxRect *) NULL;
9806 PyObject * _argo0 = 0;
9807 wxRect temp;
9808 PyObject * _obj1 = 0;
9809 char *_kwnames[] = { "self","rect", NULL };
9810
9811 self = self;
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9813 return NULL;
9814 if (_argo0) {
9815 if (_argo0 == Py_None) { _arg0 = NULL; }
9816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9818 return NULL;
9819 }
9820 }
9821 if (_obj1)
9822 {
9823 _arg1 = &temp;
9824 if (! wxRect_helper(_obj1, &_arg1))
9825 return NULL;
9826 }
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9830
9831 wxPyEndAllowThreads(__tstate);
9832 if (PyErr_Occurred()) return NULL;
9833 } _resultobj = Py_BuildValue("i",_result);
9834 return _resultobj;
9835 }
9836
9837 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9838 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9839 PyObject * _resultobj;
9840 bool _result;
9841 wxScreenDC * _arg0;
9842 PyObject * _argo0 = 0;
9843 char *_kwnames[] = { "self", NULL };
9844
9845 self = self;
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9847 return NULL;
9848 if (_argo0) {
9849 if (_argo0 == Py_None) { _arg0 = NULL; }
9850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9852 return NULL;
9853 }
9854 }
9855 {
9856 PyThreadState* __tstate = wxPyBeginAllowThreads();
9857 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9858
9859 wxPyEndAllowThreads(__tstate);
9860 if (PyErr_Occurred()) return NULL;
9861 } _resultobj = Py_BuildValue("i",_result);
9862 return _resultobj;
9863 }
9864
9865 static void *SwigwxClientDCTowxDC(void *ptr) {
9866 wxClientDC *src;
9867 wxDC *dest;
9868 src = (wxClientDC *) ptr;
9869 dest = (wxDC *) src;
9870 return (void *) dest;
9871 }
9872
9873 static void *SwigwxClientDCTowxObject(void *ptr) {
9874 wxClientDC *src;
9875 wxObject *dest;
9876 src = (wxClientDC *) ptr;
9877 dest = (wxObject *) src;
9878 return (void *) dest;
9879 }
9880
9881 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9882 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9883 PyObject * _resultobj;
9884 wxClientDC * _result;
9885 wxWindow * _arg0;
9886 PyObject * _argo0 = 0;
9887 char *_kwnames[] = { "win", NULL };
9888 char _ptemp[128];
9889
9890 self = self;
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
9892 return NULL;
9893 if (_argo0) {
9894 if (_argo0 == Py_None) { _arg0 = NULL; }
9895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9897 return NULL;
9898 }
9899 }
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 _result = (wxClientDC *)new_wxClientDC(_arg0);
9903
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) return NULL;
9906 } if (_result) {
9907 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9908 _resultobj = Py_BuildValue("s",_ptemp);
9909 } else {
9910 Py_INCREF(Py_None);
9911 _resultobj = Py_None;
9912 }
9913 return _resultobj;
9914 }
9915
9916 static void *SwigwxPaintDCTowxDC(void *ptr) {
9917 wxPaintDC *src;
9918 wxDC *dest;
9919 src = (wxPaintDC *) ptr;
9920 dest = (wxDC *) src;
9921 return (void *) dest;
9922 }
9923
9924 static void *SwigwxPaintDCTowxObject(void *ptr) {
9925 wxPaintDC *src;
9926 wxObject *dest;
9927 src = (wxPaintDC *) ptr;
9928 dest = (wxObject *) src;
9929 return (void *) dest;
9930 }
9931
9932 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9933 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9934 PyObject * _resultobj;
9935 wxPaintDC * _result;
9936 wxWindow * _arg0;
9937 PyObject * _argo0 = 0;
9938 char *_kwnames[] = { "win", NULL };
9939 char _ptemp[128];
9940
9941 self = self;
9942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
9943 return NULL;
9944 if (_argo0) {
9945 if (_argo0 == Py_None) { _arg0 = NULL; }
9946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9948 return NULL;
9949 }
9950 }
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9954
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) return NULL;
9957 } if (_result) {
9958 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9959 _resultobj = Py_BuildValue("s",_ptemp);
9960 } else {
9961 Py_INCREF(Py_None);
9962 _resultobj = Py_None;
9963 }
9964 return _resultobj;
9965 }
9966
9967 static void *SwigwxWindowDCTowxDC(void *ptr) {
9968 wxWindowDC *src;
9969 wxDC *dest;
9970 src = (wxWindowDC *) ptr;
9971 dest = (wxDC *) src;
9972 return (void *) dest;
9973 }
9974
9975 static void *SwigwxWindowDCTowxObject(void *ptr) {
9976 wxWindowDC *src;
9977 wxObject *dest;
9978 src = (wxWindowDC *) ptr;
9979 dest = (wxObject *) src;
9980 return (void *) dest;
9981 }
9982
9983 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9984 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9985 PyObject * _resultobj;
9986 wxWindowDC * _result;
9987 wxWindow * _arg0;
9988 PyObject * _argo0 = 0;
9989 char *_kwnames[] = { "win", NULL };
9990 char _ptemp[128];
9991
9992 self = self;
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
9994 return NULL;
9995 if (_argo0) {
9996 if (_argo0 == Py_None) { _arg0 = NULL; }
9997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9999 return NULL;
10000 }
10001 }
10002 {
10003 PyThreadState* __tstate = wxPyBeginAllowThreads();
10004 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10005
10006 wxPyEndAllowThreads(__tstate);
10007 if (PyErr_Occurred()) return NULL;
10008 } if (_result) {
10009 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10010 _resultobj = Py_BuildValue("s",_ptemp);
10011 } else {
10012 Py_INCREF(Py_None);
10013 _resultobj = Py_None;
10014 }
10015 return _resultobj;
10016 }
10017
10018 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10019 wxPalette *src;
10020 wxGDIObject *dest;
10021 src = (wxPalette *) ptr;
10022 dest = (wxGDIObject *) src;
10023 return (void *) dest;
10024 }
10025
10026 static void *SwigwxPaletteTowxObject(void *ptr) {
10027 wxPalette *src;
10028 wxObject *dest;
10029 src = (wxPalette *) ptr;
10030 dest = (wxObject *) src;
10031 return (void *) dest;
10032 }
10033
10034 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10035 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject * _resultobj;
10037 wxPalette * _result;
10038 int _arg0;
10039 byte * _arg1;
10040 byte * _arg2;
10041 byte * _arg3;
10042 PyObject * _obj1 = 0;
10043 PyObject * _obj2 = 0;
10044 PyObject * _obj3 = 0;
10045 char *_kwnames[] = { "choices","choices","choices", NULL };
10046 char _ptemp[128];
10047
10048 self = self;
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10050 return NULL;
10051 {
10052 _arg1 = byte_LIST_helper(_obj1);
10053 if (_arg1 == NULL) {
10054 return NULL;
10055 }
10056 }
10057 {
10058 _arg2 = byte_LIST_helper(_obj2);
10059 if (_arg2 == NULL) {
10060 return NULL;
10061 }
10062 }
10063 if (_obj3)
10064 {
10065 _arg3 = byte_LIST_helper(_obj3);
10066 if (_arg3 == NULL) {
10067 return NULL;
10068 }
10069 }
10070 {
10071 if (_obj1) {
10072 _arg0 = PyList_Size(_obj1);
10073 }
10074 else {
10075 _arg0 = 0;
10076 }
10077 }
10078 {
10079 PyThreadState* __tstate = wxPyBeginAllowThreads();
10080 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10081
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) return NULL;
10084 } if (_result) {
10085 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10086 _resultobj = Py_BuildValue("s",_ptemp);
10087 } else {
10088 Py_INCREF(Py_None);
10089 _resultobj = Py_None;
10090 }
10091 {
10092 delete [] _arg1;
10093 }
10094 {
10095 delete [] _arg2;
10096 }
10097 {
10098 delete [] _arg3;
10099 }
10100 return _resultobj;
10101 }
10102
10103 #define delete_wxPalette(_swigobj) (delete _swigobj)
10104 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10105 PyObject * _resultobj;
10106 wxPalette * _arg0;
10107 PyObject * _argo0 = 0;
10108 char *_kwnames[] = { "self", NULL };
10109
10110 self = self;
10111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10112 return NULL;
10113 if (_argo0) {
10114 if (_argo0 == Py_None) { _arg0 = NULL; }
10115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10117 return NULL;
10118 }
10119 }
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 delete_wxPalette(_arg0);
10123
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) return NULL;
10126 } Py_INCREF(Py_None);
10127 _resultobj = Py_None;
10128 return _resultobj;
10129 }
10130
10131 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10132 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject * _resultobj;
10134 int _result;
10135 wxPalette * _arg0;
10136 byte _arg1;
10137 byte _arg2;
10138 byte _arg3;
10139 PyObject * _argo0 = 0;
10140 char *_kwnames[] = { "self","red","green","blue", NULL };
10141
10142 self = self;
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10144 return NULL;
10145 if (_argo0) {
10146 if (_argo0 == Py_None) { _arg0 = NULL; }
10147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10149 return NULL;
10150 }
10151 }
10152 {
10153 PyThreadState* __tstate = wxPyBeginAllowThreads();
10154 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10155
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) return NULL;
10158 } _resultobj = Py_BuildValue("i",_result);
10159 return _resultobj;
10160 }
10161
10162 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10163 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10164 PyObject * _resultobj;
10165 bool _result;
10166 wxPalette * _arg0;
10167 int _arg1;
10168 byte * _arg2;
10169 int temp;
10170 byte * _arg3;
10171 int temp0;
10172 byte * _arg4;
10173 int temp1;
10174 PyObject * _argo0 = 0;
10175 char *_kwnames[] = { "self","pixel", NULL };
10176
10177 self = self;
10178 {
10179 _arg2 = (byte*)&temp;
10180 }
10181 {
10182 _arg3 = (byte*)&temp0;
10183 }
10184 {
10185 _arg4 = (byte*)&temp1;
10186 }
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
10188 return NULL;
10189 if (_argo0) {
10190 if (_argo0 == Py_None) { _arg0 = NULL; }
10191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10193 return NULL;
10194 }
10195 }
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10199
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) return NULL;
10202 } _resultobj = Py_BuildValue("i",_result);
10203 {
10204 PyObject *o;
10205 o = PyInt_FromLong((long) (*_arg2));
10206 _resultobj = t_output_helper(_resultobj, o);
10207 }
10208 {
10209 PyObject *o;
10210 o = PyInt_FromLong((long) (*_arg3));
10211 _resultobj = t_output_helper(_resultobj, o);
10212 }
10213 {
10214 PyObject *o;
10215 o = PyInt_FromLong((long) (*_arg4));
10216 _resultobj = t_output_helper(_resultobj, o);
10217 }
10218 return _resultobj;
10219 }
10220
10221 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10222 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10223 PyObject * _resultobj;
10224 bool _result;
10225 wxPalette * _arg0;
10226 PyObject * _argo0 = 0;
10227 char *_kwnames[] = { "self", NULL };
10228
10229 self = self;
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10231 return NULL;
10232 if (_argo0) {
10233 if (_argo0 == Py_None) { _arg0 = NULL; }
10234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10236 return NULL;
10237 }
10238 }
10239 {
10240 PyThreadState* __tstate = wxPyBeginAllowThreads();
10241 _result = (bool )wxPalette_Ok(_arg0);
10242
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) return NULL;
10245 } _resultobj = Py_BuildValue("i",_result);
10246 return _resultobj;
10247 }
10248
10249 static void *SwigwxImageListTowxObject(void *ptr) {
10250 wxImageList *src;
10251 wxObject *dest;
10252 src = (wxImageList *) ptr;
10253 dest = (wxObject *) src;
10254 return (void *) dest;
10255 }
10256
10257 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10258 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10259 PyObject * _resultobj;
10260 wxImageList * _result;
10261 int _arg0;
10262 int _arg1;
10263 int _arg2 = (int ) TRUE;
10264 int _arg3 = (int ) 1;
10265 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10266 char _ptemp[128];
10267
10268 self = self;
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10270 return NULL;
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10274
10275 wxPyEndAllowThreads(__tstate);
10276 if (PyErr_Occurred()) return NULL;
10277 } if (_result) {
10278 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10279 _resultobj = Py_BuildValue("s",_ptemp);
10280 } else {
10281 Py_INCREF(Py_None);
10282 _resultobj = Py_None;
10283 }
10284 return _resultobj;
10285 }
10286
10287 #define delete_wxImageList(_swigobj) (delete _swigobj)
10288 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10289 PyObject * _resultobj;
10290 wxImageList * _arg0;
10291 PyObject * _argo0 = 0;
10292 char *_kwnames[] = { "self", NULL };
10293
10294 self = self;
10295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10296 return NULL;
10297 if (_argo0) {
10298 if (_argo0 == Py_None) { _arg0 = NULL; }
10299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10301 return NULL;
10302 }
10303 }
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 delete_wxImageList(_arg0);
10307
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) return NULL;
10310 } Py_INCREF(Py_None);
10311 _resultobj = Py_None;
10312 return _resultobj;
10313 }
10314
10315 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10316 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10317 PyObject * _resultobj;
10318 int _result;
10319 wxImageList * _arg0;
10320 wxBitmap * _arg1;
10321 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10322 PyObject * _argo0 = 0;
10323 PyObject * _argo1 = 0;
10324 PyObject * _argo2 = 0;
10325 char *_kwnames[] = { "self","bitmap","mask", NULL };
10326
10327 self = self;
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10329 return NULL;
10330 if (_argo0) {
10331 if (_argo0 == Py_None) { _arg0 = NULL; }
10332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10334 return NULL;
10335 }
10336 }
10337 if (_argo1) {
10338 if (_argo1 == Py_None) { _arg1 = NULL; }
10339 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10340 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10341 return NULL;
10342 }
10343 }
10344 if (_argo2) {
10345 if (_argo2 == Py_None) { _arg2 = NULL; }
10346 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10347 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10348 return NULL;
10349 }
10350 }
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) return NULL;
10357 } _resultobj = Py_BuildValue("i",_result);
10358 return _resultobj;
10359 }
10360
10361 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10362 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10363 PyObject * _resultobj;
10364 int _result;
10365 wxImageList * _arg0;
10366 wxBitmap * _arg1;
10367 wxColour * _arg2;
10368 PyObject * _argo0 = 0;
10369 PyObject * _argo1 = 0;
10370 wxColour temp;
10371 PyObject * _obj2 = 0;
10372 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10373
10374 self = self;
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10376 return NULL;
10377 if (_argo0) {
10378 if (_argo0 == Py_None) { _arg0 = NULL; }
10379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10381 return NULL;
10382 }
10383 }
10384 if (_argo1) {
10385 if (_argo1 == Py_None) { _arg1 = NULL; }
10386 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10387 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10388 return NULL;
10389 }
10390 }
10391 {
10392 _arg2 = &temp;
10393 if (! wxColour_helper(_obj2, &_arg2))
10394 return NULL;
10395 }
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10399
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) return NULL;
10402 } _resultobj = Py_BuildValue("i",_result);
10403 return _resultobj;
10404 }
10405
10406 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10407 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10408 PyObject * _resultobj;
10409 int _result;
10410 wxImageList * _arg0;
10411 wxIcon * _arg1;
10412 PyObject * _argo0 = 0;
10413 PyObject * _argo1 = 0;
10414 char *_kwnames[] = { "self","icon", NULL };
10415
10416 self = self;
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10418 return NULL;
10419 if (_argo0) {
10420 if (_argo0 == Py_None) { _arg0 = NULL; }
10421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10423 return NULL;
10424 }
10425 }
10426 if (_argo1) {
10427 if (_argo1 == Py_None) { _arg1 = NULL; }
10428 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10429 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10430 return NULL;
10431 }
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) return NULL;
10439 } _resultobj = Py_BuildValue("i",_result);
10440 return _resultobj;
10441 }
10442
10443 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10444 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10445 PyObject * _resultobj;
10446 bool _result;
10447 wxImageList * _arg0;
10448 int _arg1;
10449 wxBitmap * _arg2;
10450 PyObject * _argo0 = 0;
10451 PyObject * _argo2 = 0;
10452 char *_kwnames[] = { "self","index","bitmap", NULL };
10453
10454 self = self;
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
10456 return NULL;
10457 if (_argo0) {
10458 if (_argo0 == Py_None) { _arg0 = NULL; }
10459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10461 return NULL;
10462 }
10463 }
10464 if (_argo2) {
10465 if (_argo2 == Py_None) { _arg2 = NULL; }
10466 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10467 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10468 return NULL;
10469 }
10470 }
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
10474
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) return NULL;
10477 } _resultobj = Py_BuildValue("i",_result);
10478 return _resultobj;
10479 }
10480
10481 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10482 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10483 PyObject * _resultobj;
10484 bool _result;
10485 wxImageList * _arg0;
10486 int _arg1;
10487 wxDC * _arg2;
10488 int _arg3;
10489 int _arg4;
10490 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10491 bool _arg6 = (bool ) FALSE;
10492 PyObject * _argo0 = 0;
10493 PyObject * _argo2 = 0;
10494 int tempbool6 = (int) FALSE;
10495 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
10496
10497 self = self;
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
10499 return NULL;
10500 if (_argo0) {
10501 if (_argo0 == Py_None) { _arg0 = NULL; }
10502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10504 return NULL;
10505 }
10506 }
10507 if (_argo2) {
10508 if (_argo2 == Py_None) { _arg2 = NULL; }
10509 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10510 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10511 return NULL;
10512 }
10513 }
10514 _arg6 = (bool ) tempbool6;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) return NULL;
10521 } _resultobj = Py_BuildValue("i",_result);
10522 return _resultobj;
10523 }
10524
10525 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10526 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10527 PyObject * _resultobj;
10528 int _result;
10529 wxImageList * _arg0;
10530 PyObject * _argo0 = 0;
10531 char *_kwnames[] = { "self", NULL };
10532
10533 self = self;
10534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
10535 return NULL;
10536 if (_argo0) {
10537 if (_argo0 == Py_None) { _arg0 = NULL; }
10538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10540 return NULL;
10541 }
10542 }
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 _result = (int )wxImageList_GetImageCount(_arg0);
10546
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) return NULL;
10549 } _resultobj = Py_BuildValue("i",_result);
10550 return _resultobj;
10551 }
10552
10553 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10554 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject * _resultobj;
10556 bool _result;
10557 wxImageList * _arg0;
10558 int _arg1;
10559 PyObject * _argo0 = 0;
10560 char *_kwnames[] = { "self","index", NULL };
10561
10562 self = self;
10563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
10564 return NULL;
10565 if (_argo0) {
10566 if (_argo0 == Py_None) { _arg0 = NULL; }
10567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10569 return NULL;
10570 }
10571 }
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 _result = (bool )wxImageList_Remove(_arg0,_arg1);
10575
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) return NULL;
10578 } _resultobj = Py_BuildValue("i",_result);
10579 return _resultobj;
10580 }
10581
10582 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10583 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
10584 PyObject * _resultobj;
10585 bool _result;
10586 wxImageList * _arg0;
10587 PyObject * _argo0 = 0;
10588 char *_kwnames[] = { "self", NULL };
10589
10590 self = self;
10591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
10592 return NULL;
10593 if (_argo0) {
10594 if (_argo0 == Py_None) { _arg0 = NULL; }
10595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10597 return NULL;
10598 }
10599 }
10600 {
10601 PyThreadState* __tstate = wxPyBeginAllowThreads();
10602 _result = (bool )wxImageList_RemoveAll(_arg0);
10603
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) return NULL;
10606 } _resultobj = Py_BuildValue("i",_result);
10607 return _resultobj;
10608 }
10609
10610 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10611 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10612 PyObject * _resultobj;
10613 wxImageList * _arg0;
10614 int _arg1;
10615 int * _arg2;
10616 int temp;
10617 int * _arg3;
10618 int temp0;
10619 PyObject * _argo0 = 0;
10620 char *_kwnames[] = { "self","index", NULL };
10621
10622 self = self;
10623 {
10624 _arg2 = &temp;
10625 }
10626 {
10627 _arg3 = &temp0;
10628 }
10629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10630 return NULL;
10631 if (_argo0) {
10632 if (_argo0 == Py_None) { _arg0 = NULL; }
10633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10635 return NULL;
10636 }
10637 }
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
10641
10642 wxPyEndAllowThreads(__tstate);
10643 if (PyErr_Occurred()) return NULL;
10644 } Py_INCREF(Py_None);
10645 _resultobj = Py_None;
10646 {
10647 PyObject *o;
10648 o = PyInt_FromLong((long) (*_arg2));
10649 _resultobj = t_output_helper(_resultobj, o);
10650 }
10651 {
10652 PyObject *o;
10653 o = PyInt_FromLong((long) (*_arg3));
10654 _resultobj = t_output_helper(_resultobj, o);
10655 }
10656 return _resultobj;
10657 }
10658
10659 static void *SwigwxRegionTowxGDIObject(void *ptr) {
10660 wxRegion *src;
10661 wxGDIObject *dest;
10662 src = (wxRegion *) ptr;
10663 dest = (wxGDIObject *) src;
10664 return (void *) dest;
10665 }
10666
10667 static void *SwigwxRegionTowxObject(void *ptr) {
10668 wxRegion *src;
10669 wxObject *dest;
10670 src = (wxRegion *) ptr;
10671 dest = (wxObject *) src;
10672 return (void *) dest;
10673 }
10674
10675 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10676 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10677 PyObject * _resultobj;
10678 wxRegion * _result;
10679 long _arg0 = (long ) 0;
10680 long _arg1 = (long ) 0;
10681 long _arg2 = (long ) 0;
10682 long _arg3 = (long ) 0;
10683 char *_kwnames[] = { "x","y","width","height", NULL };
10684 char _ptemp[128];
10685
10686 self = self;
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10688 return NULL;
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) return NULL;
10695 } if (_result) {
10696 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10697 _resultobj = Py_BuildValue("s",_ptemp);
10698 } else {
10699 Py_INCREF(Py_None);
10700 _resultobj = Py_None;
10701 }
10702 return _resultobj;
10703 }
10704
10705 #define delete_wxRegion(_swigobj) (delete _swigobj)
10706 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10707 PyObject * _resultobj;
10708 wxRegion * _arg0;
10709 PyObject * _argo0 = 0;
10710 char *_kwnames[] = { "self", NULL };
10711
10712 self = self;
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
10714 return NULL;
10715 if (_argo0) {
10716 if (_argo0 == Py_None) { _arg0 = NULL; }
10717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10719 return NULL;
10720 }
10721 }
10722 {
10723 PyThreadState* __tstate = wxPyBeginAllowThreads();
10724 delete_wxRegion(_arg0);
10725
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) return NULL;
10728 } Py_INCREF(Py_None);
10729 _resultobj = Py_None;
10730 return _resultobj;
10731 }
10732
10733 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10734 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10735 PyObject * _resultobj;
10736 wxRegion * _arg0;
10737 PyObject * _argo0 = 0;
10738 char *_kwnames[] = { "self", NULL };
10739
10740 self = self;
10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10742 return NULL;
10743 if (_argo0) {
10744 if (_argo0 == Py_None) { _arg0 = NULL; }
10745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10747 return NULL;
10748 }
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 wxRegion_Clear(_arg0);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) return NULL;
10756 } Py_INCREF(Py_None);
10757 _resultobj = Py_None;
10758 return _resultobj;
10759 }
10760
10761 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10762 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
10763 PyObject * _resultobj;
10764 bool _result;
10765 wxRegion * _arg0;
10766 wxCoord _arg1;
10767 wxCoord _arg2;
10768 PyObject * _argo0 = 0;
10769 char *_kwnames[] = { "self","x","y", NULL };
10770
10771 self = self;
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
10773 return NULL;
10774 if (_argo0) {
10775 if (_argo0 == Py_None) { _arg0 = NULL; }
10776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10778 return NULL;
10779 }
10780 }
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) return NULL;
10787 } _resultobj = Py_BuildValue("i",_result);
10788 return _resultobj;
10789 }
10790
10791 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10792 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10793 PyObject * _resultobj;
10794 wxRegionContain _result;
10795 wxRegion * _arg0;
10796 long _arg1;
10797 long _arg2;
10798 PyObject * _argo0 = 0;
10799 char *_kwnames[] = { "self","x","y", NULL };
10800
10801 self = self;
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
10803 return NULL;
10804 if (_argo0) {
10805 if (_argo0 == Py_None) { _arg0 = NULL; }
10806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10808 return NULL;
10809 }
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) return NULL;
10817 } _resultobj = Py_BuildValue("i",_result);
10818 return _resultobj;
10819 }
10820
10821 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10822 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject * _resultobj;
10824 wxRegionContain _result;
10825 wxRegion * _arg0;
10826 wxPoint * _arg1;
10827 PyObject * _argo0 = 0;
10828 wxPoint temp;
10829 PyObject * _obj1 = 0;
10830 char *_kwnames[] = { "self","pt", NULL };
10831
10832 self = self;
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10834 return NULL;
10835 if (_argo0) {
10836 if (_argo0 == Py_None) { _arg0 = NULL; }
10837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10839 return NULL;
10840 }
10841 }
10842 {
10843 _arg1 = &temp;
10844 if (! wxPoint_helper(_obj1, &_arg1))
10845 return NULL;
10846 }
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
10850
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) return NULL;
10853 } _resultobj = Py_BuildValue("i",_result);
10854 return _resultobj;
10855 }
10856
10857 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10858 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10859 PyObject * _resultobj;
10860 wxRegionContain _result;
10861 wxRegion * _arg0;
10862 wxRect * _arg1;
10863 PyObject * _argo0 = 0;
10864 wxRect temp;
10865 PyObject * _obj1 = 0;
10866 char *_kwnames[] = { "self","rect", NULL };
10867
10868 self = self;
10869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10870 return NULL;
10871 if (_argo0) {
10872 if (_argo0 == Py_None) { _arg0 = NULL; }
10873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10875 return NULL;
10876 }
10877 }
10878 {
10879 _arg1 = &temp;
10880 if (! wxRect_helper(_obj1, &_arg1))
10881 return NULL;
10882 }
10883 {
10884 PyThreadState* __tstate = wxPyBeginAllowThreads();
10885 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
10886
10887 wxPyEndAllowThreads(__tstate);
10888 if (PyErr_Occurred()) return NULL;
10889 } _resultobj = Py_BuildValue("i",_result);
10890 return _resultobj;
10891 }
10892
10893 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10894 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10895 PyObject * _resultobj;
10896 wxRegionContain _result;
10897 wxRegion * _arg0;
10898 long _arg1;
10899 long _arg2;
10900 long _arg3;
10901 long _arg4;
10902 PyObject * _argo0 = 0;
10903 char *_kwnames[] = { "self","x","y","w","h", NULL };
10904
10905 self = self;
10906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10907 return NULL;
10908 if (_argo0) {
10909 if (_argo0 == Py_None) { _arg0 = NULL; }
10910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10912 return NULL;
10913 }
10914 }
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) return NULL;
10921 } _resultobj = Py_BuildValue("i",_result);
10922 return _resultobj;
10923 }
10924
10925 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10926 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject * _resultobj;
10928 wxRect * _result;
10929 wxRegion * _arg0;
10930 PyObject * _argo0 = 0;
10931 char *_kwnames[] = { "self", NULL };
10932 char _ptemp[128];
10933
10934 self = self;
10935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10936 return NULL;
10937 if (_argo0) {
10938 if (_argo0 == Py_None) { _arg0 = NULL; }
10939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10941 return NULL;
10942 }
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 _result = new wxRect (wxRegion_GetBox(_arg0));
10947
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) return NULL;
10950 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10951 _resultobj = Py_BuildValue("s",_ptemp);
10952 return _resultobj;
10953 }
10954
10955 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10956 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10957 PyObject * _resultobj;
10958 bool _result;
10959 wxRegion * _arg0;
10960 long _arg1;
10961 long _arg2;
10962 long _arg3;
10963 long _arg4;
10964 PyObject * _argo0 = 0;
10965 char *_kwnames[] = { "self","x","y","width","height", NULL };
10966
10967 self = self;
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10969 return NULL;
10970 if (_argo0) {
10971 if (_argo0 == Py_None) { _arg0 = NULL; }
10972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10974 return NULL;
10975 }
10976 }
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) return NULL;
10983 } _resultobj = Py_BuildValue("i",_result);
10984 return _resultobj;
10985 }
10986
10987 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10988 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10989 PyObject * _resultobj;
10990 bool _result;
10991 wxRegion * _arg0;
10992 wxRect * _arg1;
10993 PyObject * _argo0 = 0;
10994 wxRect temp;
10995 PyObject * _obj1 = 0;
10996 char *_kwnames[] = { "self","rect", NULL };
10997
10998 self = self;
10999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11000 return NULL;
11001 if (_argo0) {
11002 if (_argo0 == Py_None) { _arg0 = NULL; }
11003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11005 return NULL;
11006 }
11007 }
11008 {
11009 _arg1 = &temp;
11010 if (! wxRect_helper(_obj1, &_arg1))
11011 return NULL;
11012 }
11013 {
11014 PyThreadState* __tstate = wxPyBeginAllowThreads();
11015 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11016
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) return NULL;
11019 } _resultobj = Py_BuildValue("i",_result);
11020 return _resultobj;
11021 }
11022
11023 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11024 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11025 PyObject * _resultobj;
11026 bool _result;
11027 wxRegion * _arg0;
11028 wxRegion * _arg1;
11029 PyObject * _argo0 = 0;
11030 PyObject * _argo1 = 0;
11031 char *_kwnames[] = { "self","region", NULL };
11032
11033 self = self;
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11035 return NULL;
11036 if (_argo0) {
11037 if (_argo0 == Py_None) { _arg0 = NULL; }
11038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11040 return NULL;
11041 }
11042 }
11043 if (_argo1) {
11044 if (_argo1 == Py_None) { _arg1 = NULL; }
11045 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11046 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11047 return NULL;
11048 }
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) return NULL;
11056 } _resultobj = Py_BuildValue("i",_result);
11057 return _resultobj;
11058 }
11059
11060 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11061 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11062 PyObject * _resultobj;
11063 bool _result;
11064 wxRegion * _arg0;
11065 PyObject * _argo0 = 0;
11066 char *_kwnames[] = { "self", NULL };
11067
11068 self = self;
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11070 return NULL;
11071 if (_argo0) {
11072 if (_argo0 == Py_None) { _arg0 = NULL; }
11073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11075 return NULL;
11076 }
11077 }
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 _result = (bool )wxRegion_IsEmpty(_arg0);
11081
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) return NULL;
11084 } _resultobj = Py_BuildValue("i",_result);
11085 return _resultobj;
11086 }
11087
11088 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11089 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11090 PyObject * _resultobj;
11091 bool _result;
11092 wxRegion * _arg0;
11093 long _arg1;
11094 long _arg2;
11095 long _arg3;
11096 long _arg4;
11097 PyObject * _argo0 = 0;
11098 char *_kwnames[] = { "self","x","y","width","height", NULL };
11099
11100 self = self;
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11102 return NULL;
11103 if (_argo0) {
11104 if (_argo0 == Py_None) { _arg0 = NULL; }
11105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11107 return NULL;
11108 }
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11113
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) return NULL;
11116 } _resultobj = Py_BuildValue("i",_result);
11117 return _resultobj;
11118 }
11119
11120 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11121 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11122 PyObject * _resultobj;
11123 bool _result;
11124 wxRegion * _arg0;
11125 wxRect * _arg1;
11126 PyObject * _argo0 = 0;
11127 wxRect temp;
11128 PyObject * _obj1 = 0;
11129 char *_kwnames[] = { "self","rect", NULL };
11130
11131 self = self;
11132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11133 return NULL;
11134 if (_argo0) {
11135 if (_argo0 == Py_None) { _arg0 = NULL; }
11136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11138 return NULL;
11139 }
11140 }
11141 {
11142 _arg1 = &temp;
11143 if (! wxRect_helper(_obj1, &_arg1))
11144 return NULL;
11145 }
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11149
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) return NULL;
11152 } _resultobj = Py_BuildValue("i",_result);
11153 return _resultobj;
11154 }
11155
11156 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11157 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11158 PyObject * _resultobj;
11159 bool _result;
11160 wxRegion * _arg0;
11161 wxRegion * _arg1;
11162 PyObject * _argo0 = 0;
11163 PyObject * _argo1 = 0;
11164 char *_kwnames[] = { "self","region", NULL };
11165
11166 self = self;
11167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11168 return NULL;
11169 if (_argo0) {
11170 if (_argo0 == Py_None) { _arg0 = NULL; }
11171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11173 return NULL;
11174 }
11175 }
11176 if (_argo1) {
11177 if (_argo1 == Py_None) { _arg1 = NULL; }
11178 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11179 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11180 return NULL;
11181 }
11182 }
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) return NULL;
11189 } _resultobj = Py_BuildValue("i",_result);
11190 return _resultobj;
11191 }
11192
11193 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11194 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11195 PyObject * _resultobj;
11196 bool _result;
11197 wxRegion * _arg0;
11198 long _arg1;
11199 long _arg2;
11200 long _arg3;
11201 long _arg4;
11202 PyObject * _argo0 = 0;
11203 char *_kwnames[] = { "self","x","y","width","height", NULL };
11204
11205 self = self;
11206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11207 return NULL;
11208 if (_argo0) {
11209 if (_argo0 == Py_None) { _arg0 = NULL; }
11210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11212 return NULL;
11213 }
11214 }
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11218
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) return NULL;
11221 } _resultobj = Py_BuildValue("i",_result);
11222 return _resultobj;
11223 }
11224
11225 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11226 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11227 PyObject * _resultobj;
11228 bool _result;
11229 wxRegion * _arg0;
11230 wxRect * _arg1;
11231 PyObject * _argo0 = 0;
11232 wxRect temp;
11233 PyObject * _obj1 = 0;
11234 char *_kwnames[] = { "self","rect", NULL };
11235
11236 self = self;
11237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11238 return NULL;
11239 if (_argo0) {
11240 if (_argo0 == Py_None) { _arg0 = NULL; }
11241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11243 return NULL;
11244 }
11245 }
11246 {
11247 _arg1 = &temp;
11248 if (! wxRect_helper(_obj1, &_arg1))
11249 return NULL;
11250 }
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) return NULL;
11257 } _resultobj = Py_BuildValue("i",_result);
11258 return _resultobj;
11259 }
11260
11261 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11262 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11263 PyObject * _resultobj;
11264 bool _result;
11265 wxRegion * _arg0;
11266 wxRegion * _arg1;
11267 PyObject * _argo0 = 0;
11268 PyObject * _argo1 = 0;
11269 char *_kwnames[] = { "self","region", NULL };
11270
11271 self = self;
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11273 return NULL;
11274 if (_argo0) {
11275 if (_argo0 == Py_None) { _arg0 = NULL; }
11276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11278 return NULL;
11279 }
11280 }
11281 if (_argo1) {
11282 if (_argo1 == Py_None) { _arg1 = NULL; }
11283 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11284 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11285 return NULL;
11286 }
11287 }
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) return NULL;
11294 } _resultobj = Py_BuildValue("i",_result);
11295 return _resultobj;
11296 }
11297
11298 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11299 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11300 PyObject * _resultobj;
11301 bool _result;
11302 wxRegion * _arg0;
11303 long _arg1;
11304 long _arg2;
11305 long _arg3;
11306 long _arg4;
11307 PyObject * _argo0 = 0;
11308 char *_kwnames[] = { "self","x","y","width","height", NULL };
11309
11310 self = self;
11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11312 return NULL;
11313 if (_argo0) {
11314 if (_argo0 == Py_None) { _arg0 = NULL; }
11315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11317 return NULL;
11318 }
11319 }
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) return NULL;
11326 } _resultobj = Py_BuildValue("i",_result);
11327 return _resultobj;
11328 }
11329
11330 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11331 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11332 PyObject * _resultobj;
11333 bool _result;
11334 wxRegion * _arg0;
11335 wxRect * _arg1;
11336 PyObject * _argo0 = 0;
11337 wxRect temp;
11338 PyObject * _obj1 = 0;
11339 char *_kwnames[] = { "self","rect", NULL };
11340
11341 self = self;
11342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11343 return NULL;
11344 if (_argo0) {
11345 if (_argo0 == Py_None) { _arg0 = NULL; }
11346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11348 return NULL;
11349 }
11350 }
11351 {
11352 _arg1 = &temp;
11353 if (! wxRect_helper(_obj1, &_arg1))
11354 return NULL;
11355 }
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11359
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) return NULL;
11362 } _resultobj = Py_BuildValue("i",_result);
11363 return _resultobj;
11364 }
11365
11366 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11367 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11368 PyObject * _resultobj;
11369 bool _result;
11370 wxRegion * _arg0;
11371 wxRegion * _arg1;
11372 PyObject * _argo0 = 0;
11373 PyObject * _argo1 = 0;
11374 char *_kwnames[] = { "self","region", NULL };
11375
11376 self = self;
11377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11378 return NULL;
11379 if (_argo0) {
11380 if (_argo0 == Py_None) { _arg0 = NULL; }
11381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11383 return NULL;
11384 }
11385 }
11386 if (_argo1) {
11387 if (_argo1 == Py_None) { _arg1 = NULL; }
11388 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11389 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11390 return NULL;
11391 }
11392 }
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) return NULL;
11399 } _resultobj = Py_BuildValue("i",_result);
11400 return _resultobj;
11401 }
11402
11403 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11404 wxRegionIterator *src;
11405 wxObject *dest;
11406 src = (wxRegionIterator *) ptr;
11407 dest = (wxObject *) src;
11408 return (void *) dest;
11409 }
11410
11411 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11412 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11413 PyObject * _resultobj;
11414 wxRegionIterator * _result;
11415 wxRegion * _arg0;
11416 PyObject * _argo0 = 0;
11417 char *_kwnames[] = { "region", NULL };
11418 char _ptemp[128];
11419
11420 self = self;
11421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11422 return NULL;
11423 if (_argo0) {
11424 if (_argo0 == Py_None) { _arg0 = NULL; }
11425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11427 return NULL;
11428 }
11429 }
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11433
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) return NULL;
11436 } if (_result) {
11437 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11438 _resultobj = Py_BuildValue("s",_ptemp);
11439 } else {
11440 Py_INCREF(Py_None);
11441 _resultobj = Py_None;
11442 }
11443 return _resultobj;
11444 }
11445
11446 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11447 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11448 PyObject * _resultobj;
11449 wxRegionIterator * _arg0;
11450 PyObject * _argo0 = 0;
11451 char *_kwnames[] = { "self", NULL };
11452
11453 self = self;
11454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_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 delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11460 return NULL;
11461 }
11462 }
11463 {
11464 PyThreadState* __tstate = wxPyBeginAllowThreads();
11465 delete_wxRegionIterator(_arg0);
11466
11467 wxPyEndAllowThreads(__tstate);
11468 if (PyErr_Occurred()) return NULL;
11469 } Py_INCREF(Py_None);
11470 _resultobj = Py_None;
11471 return _resultobj;
11472 }
11473
11474 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11475 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11476 PyObject * _resultobj;
11477 long _result;
11478 wxRegionIterator * _arg0;
11479 PyObject * _argo0 = 0;
11480 char *_kwnames[] = { "self", NULL };
11481
11482 self = self;
11483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11484 return NULL;
11485 if (_argo0) {
11486 if (_argo0 == Py_None) { _arg0 = NULL; }
11487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11489 return NULL;
11490 }
11491 }
11492 {
11493 PyThreadState* __tstate = wxPyBeginAllowThreads();
11494 _result = (long )wxRegionIterator_GetX(_arg0);
11495
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) return NULL;
11498 } _resultobj = Py_BuildValue("l",_result);
11499 return _resultobj;
11500 }
11501
11502 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11503 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11504 PyObject * _resultobj;
11505 long _result;
11506 wxRegionIterator * _arg0;
11507 PyObject * _argo0 = 0;
11508 char *_kwnames[] = { "self", NULL };
11509
11510 self = self;
11511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11512 return NULL;
11513 if (_argo0) {
11514 if (_argo0 == Py_None) { _arg0 = NULL; }
11515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11517 return NULL;
11518 }
11519 }
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 _result = (long )wxRegionIterator_GetY(_arg0);
11523
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) return NULL;
11526 } _resultobj = Py_BuildValue("l",_result);
11527 return _resultobj;
11528 }
11529
11530 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11531 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11532 PyObject * _resultobj;
11533 long _result;
11534 wxRegionIterator * _arg0;
11535 PyObject * _argo0 = 0;
11536 char *_kwnames[] = { "self", NULL };
11537
11538 self = self;
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11540 return NULL;
11541 if (_argo0) {
11542 if (_argo0 == Py_None) { _arg0 = NULL; }
11543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11545 return NULL;
11546 }
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 _result = (long )wxRegionIterator_GetW(_arg0);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) return NULL;
11554 } _resultobj = Py_BuildValue("l",_result);
11555 return _resultobj;
11556 }
11557
11558 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11559 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject * _resultobj;
11561 long _result;
11562 wxRegionIterator * _arg0;
11563 PyObject * _argo0 = 0;
11564 char *_kwnames[] = { "self", NULL };
11565
11566 self = self;
11567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_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_GetWidth. Expected _wxRegionIterator_p.");
11573 return NULL;
11574 }
11575 }
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 _result = (long )wxRegionIterator_GetWidth(_arg0);
11579
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) return NULL;
11582 } _resultobj = Py_BuildValue("l",_result);
11583 return _resultobj;
11584 }
11585
11586 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11587 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11588 PyObject * _resultobj;
11589 long _result;
11590 wxRegionIterator * _arg0;
11591 PyObject * _argo0 = 0;
11592 char *_kwnames[] = { "self", NULL };
11593
11594 self = self;
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11596 return NULL;
11597 if (_argo0) {
11598 if (_argo0 == Py_None) { _arg0 = NULL; }
11599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11601 return NULL;
11602 }
11603 }
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 _result = (long )wxRegionIterator_GetH(_arg0);
11607
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) return NULL;
11610 } _resultobj = Py_BuildValue("l",_result);
11611 return _resultobj;
11612 }
11613
11614 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11615 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11616 PyObject * _resultobj;
11617 long _result;
11618 wxRegionIterator * _arg0;
11619 PyObject * _argo0 = 0;
11620 char *_kwnames[] = { "self", NULL };
11621
11622 self = self;
11623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_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_GetHeight. Expected _wxRegionIterator_p.");
11629 return NULL;
11630 }
11631 }
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 _result = (long )wxRegionIterator_GetHeight(_arg0);
11635
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) return NULL;
11638 } _resultobj = Py_BuildValue("l",_result);
11639 return _resultobj;
11640 }
11641
11642 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11643 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11644 PyObject * _resultobj;
11645 wxRect * _result;
11646 wxRegionIterator * _arg0;
11647 PyObject * _argo0 = 0;
11648 char *_kwnames[] = { "self", NULL };
11649 char _ptemp[128];
11650
11651 self = self;
11652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
11653 return NULL;
11654 if (_argo0) {
11655 if (_argo0 == Py_None) { _arg0 = NULL; }
11656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11658 return NULL;
11659 }
11660 }
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) return NULL;
11667 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11668 _resultobj = Py_BuildValue("s",_ptemp);
11669 return _resultobj;
11670 }
11671
11672 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11673 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11674 PyObject * _resultobj;
11675 bool _result;
11676 wxRegionIterator * _arg0;
11677 PyObject * _argo0 = 0;
11678 char *_kwnames[] = { "self", NULL };
11679
11680 self = self;
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11682 return NULL;
11683 if (_argo0) {
11684 if (_argo0 == Py_None) { _arg0 = NULL; }
11685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11687 return NULL;
11688 }
11689 }
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 _result = (bool )wxRegionIterator_HaveRects(_arg0);
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) return NULL;
11696 } _resultobj = Py_BuildValue("i",_result);
11697 return _resultobj;
11698 }
11699
11700 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11701 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11702 PyObject * _resultobj;
11703 wxRegionIterator * _arg0;
11704 PyObject * _argo0 = 0;
11705 char *_kwnames[] = { "self", NULL };
11706
11707 self = self;
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11709 return NULL;
11710 if (_argo0) {
11711 if (_argo0 == Py_None) { _arg0 = NULL; }
11712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11714 return NULL;
11715 }
11716 }
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 wxRegionIterator_Reset(_arg0);
11720
11721 wxPyEndAllowThreads(__tstate);
11722 if (PyErr_Occurred()) return NULL;
11723 } Py_INCREF(Py_None);
11724 _resultobj = Py_None;
11725 return _resultobj;
11726 }
11727
11728 static void wxRegionIterator_Next(wxRegionIterator *self) {
11729 (*self) ++;
11730 }
11731 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11732 PyObject * _resultobj;
11733 wxRegionIterator * _arg0;
11734 PyObject * _argo0 = 0;
11735 char *_kwnames[] = { "self", NULL };
11736
11737 self = self;
11738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11739 return NULL;
11740 if (_argo0) {
11741 if (_argo0 == Py_None) { _arg0 = NULL; }
11742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11744 return NULL;
11745 }
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 wxRegionIterator_Next(_arg0);
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) return NULL;
11753 } Py_INCREF(Py_None);
11754 _resultobj = Py_None;
11755 return _resultobj;
11756 }
11757
11758 static PyMethodDef gdicMethods[] = {
11759 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11760 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11761 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11762 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11763 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11764 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11765 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11766 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11767 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11768 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11769 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11770 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11771 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11772 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11773 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11774 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11775 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11776 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11777 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11778 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11779 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11780 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11781 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11782 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11783 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11784 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11785 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11786 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11787 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11788 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
11789 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
11790 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11791 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
11792 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
11793 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
11794 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11795 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11796 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11797 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11798 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
11799 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11800 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
11801 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11802 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11803 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11804 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11805 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11806 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11807 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11808 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
11809 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11810 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11811 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11812 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
11813 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
11814 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
11815 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
11816 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11817 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
11818 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11819 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11820 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11821 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11822 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
11823 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11824 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11825 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11826 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11827 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11828 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11829 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11830 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
11831 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11832 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11833 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11834 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11835 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11836 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11837 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11838 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11839 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
11840 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
11841 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11842 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11843 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11844 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
11845 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
11846 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11847 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11848 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11849 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11850 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11851 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11852 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11853 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11854 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11855 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11856 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11857 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11858 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
11859 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
11860 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
11861 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11862 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11863 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
11864 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
11865 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11866 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11867 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11868 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11869 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11870 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
11871 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
11872 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11873 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11874 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11875 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11876 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11877 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11878 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11879 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11880 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11881 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11882 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11883 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11884 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11885 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
11886 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
11887 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11888 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11889 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11890 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11891 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
11892 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
11893 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
11894 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11895 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11896 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11897 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11898 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11899 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11900 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11901 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11902 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11903 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11904 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11905 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11906 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11907 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11908 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
11909 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
11910 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11911 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11912 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
11913 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11914 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11915 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11916 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11917 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11918 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11919 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
11920 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
11921 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
11922 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
11923 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11924 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11925 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
11926 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11927 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11928 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11929 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11930 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11931 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11932 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11933 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11934 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11935 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11936 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11937 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11938 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11939 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11940 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
11941 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
11942 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
11943 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
11944 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
11945 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
11946 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11947 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11948 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11949 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11950 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11951 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11952 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11953 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
11954 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
11955 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
11956 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
11957 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
11958 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11959 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11960 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
11961 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
11962 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
11963 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11964 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11965 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
11966 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
11967 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11968 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
11969 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
11970 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
11971 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
11972 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11973 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
11974 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11975 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
11976 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
11977 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
11978 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
11979 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
11980 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
11981 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
11982 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
11983 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
11984 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
11985 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
11986 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
11987 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
11988 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
11989 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
11990 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
11991 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
11992 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
11993 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
11994 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
11995 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
11996 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
11997 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11998 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11999 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
12000 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
12001 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
12002 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
12003 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
12004 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
12005 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12006 { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS },
12007 { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
12008 { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS },
12009 { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
12010 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12011 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12012 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12013 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12014 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12015 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12016 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12017 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12018 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12019 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12020 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
12021 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12022 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12023 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12024 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12025 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12026 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12027 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12028 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12029 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12030 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12031 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12032 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12033 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12034 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12035 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12036 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12037 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12038 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12039 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12040 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12041 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12042 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12043 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12044 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12045 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12046 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12047 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12048 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12049 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
12050 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12051 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12052 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12053 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12054 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12055 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12056 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12057 { NULL, NULL }
12058 };
12059 #ifdef __cplusplus
12060 }
12061 #endif
12062 /*
12063 * This table is used by the pointer type-checker
12064 */
12065 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12066 { "_signed_long","_long",0},
12067 { "_wxPrintQuality","_wxCoord",0},
12068 { "_wxPrintQuality","_int",0},
12069 { "_wxPrintQuality","_signed_int",0},
12070 { "_wxPrintQuality","_unsigned_int",0},
12071 { "_wxPrintQuality","_wxWindowID",0},
12072 { "_wxPrintQuality","_uint",0},
12073 { "_wxPrintQuality","_EBool",0},
12074 { "_wxPrintQuality","_size_t",0},
12075 { "_wxPrintQuality","_time_t",0},
12076 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12077 { "_byte","_unsigned_char",0},
12078 { "_long","_unsigned_long",0},
12079 { "_long","_signed_long",0},
12080 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12081 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12082 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12083 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12084 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12085 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
12086 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12087 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12088 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12089 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12090 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12091 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12092 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12093 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12094 { "_size_t","_wxCoord",0},
12095 { "_size_t","_wxPrintQuality",0},
12096 { "_size_t","_time_t",0},
12097 { "_size_t","_unsigned_int",0},
12098 { "_size_t","_int",0},
12099 { "_size_t","_wxWindowID",0},
12100 { "_size_t","_uint",0},
12101 { "_uint","_wxCoord",0},
12102 { "_uint","_wxPrintQuality",0},
12103 { "_uint","_time_t",0},
12104 { "_uint","_size_t",0},
12105 { "_uint","_unsigned_int",0},
12106 { "_uint","_int",0},
12107 { "_uint","_wxWindowID",0},
12108 { "_wxChar","_char",0},
12109 { "_char","_wxChar",0},
12110 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12111 { "_EBool","_wxCoord",0},
12112 { "_EBool","_wxPrintQuality",0},
12113 { "_EBool","_signed_int",0},
12114 { "_EBool","_int",0},
12115 { "_EBool","_wxWindowID",0},
12116 { "_unsigned_long","_long",0},
12117 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12118 { "_signed_int","_wxCoord",0},
12119 { "_signed_int","_wxPrintQuality",0},
12120 { "_signed_int","_EBool",0},
12121 { "_signed_int","_wxWindowID",0},
12122 { "_signed_int","_int",0},
12123 { "_WXTYPE","_short",0},
12124 { "_WXTYPE","_signed_short",0},
12125 { "_WXTYPE","_unsigned_short",0},
12126 { "_unsigned_short","_WXTYPE",0},
12127 { "_unsigned_short","_short",0},
12128 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12129 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12130 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12131 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12132 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12133 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12134 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12135 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12136 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12137 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12138 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12139 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12140 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12141 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12142 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12143 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12144 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12145 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
12146 { "_wxObject","_wxFont",SwigwxFontTowxObject},
12147 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12148 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12149 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12150 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12151 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12152 { "_signed_short","_WXTYPE",0},
12153 { "_signed_short","_short",0},
12154 { "_unsigned_char","_byte",0},
12155 { "_unsigned_int","_wxCoord",0},
12156 { "_unsigned_int","_wxPrintQuality",0},
12157 { "_unsigned_int","_time_t",0},
12158 { "_unsigned_int","_size_t",0},
12159 { "_unsigned_int","_uint",0},
12160 { "_unsigned_int","_wxWindowID",0},
12161 { "_unsigned_int","_int",0},
12162 { "_short","_WXTYPE",0},
12163 { "_short","_unsigned_short",0},
12164 { "_short","_signed_short",0},
12165 { "_wxWindowID","_wxCoord",0},
12166 { "_wxWindowID","_wxPrintQuality",0},
12167 { "_wxWindowID","_time_t",0},
12168 { "_wxWindowID","_size_t",0},
12169 { "_wxWindowID","_EBool",0},
12170 { "_wxWindowID","_uint",0},
12171 { "_wxWindowID","_int",0},
12172 { "_wxWindowID","_signed_int",0},
12173 { "_wxWindowID","_unsigned_int",0},
12174 { "_int","_wxCoord",0},
12175 { "_int","_wxPrintQuality",0},
12176 { "_int","_time_t",0},
12177 { "_int","_size_t",0},
12178 { "_int","_EBool",0},
12179 { "_int","_uint",0},
12180 { "_int","_wxWindowID",0},
12181 { "_int","_unsigned_int",0},
12182 { "_int","_signed_int",0},
12183 { "_time_t","_wxCoord",0},
12184 { "_time_t","_wxPrintQuality",0},
12185 { "_time_t","_unsigned_int",0},
12186 { "_time_t","_int",0},
12187 { "_time_t","_wxWindowID",0},
12188 { "_time_t","_uint",0},
12189 { "_time_t","_size_t",0},
12190 { "_wxCoord","_int",0},
12191 { "_wxCoord","_signed_int",0},
12192 { "_wxCoord","_unsigned_int",0},
12193 { "_wxCoord","_wxWindowID",0},
12194 { "_wxCoord","_uint",0},
12195 { "_wxCoord","_EBool",0},
12196 { "_wxCoord","_size_t",0},
12197 { "_wxCoord","_time_t",0},
12198 { "_wxCoord","_wxPrintQuality",0},
12199 {0,0,0}};
12200
12201 static PyObject *SWIG_globals;
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 SWIGEXPORT(void) initgdic() {
12206 PyObject *m, *d;
12207 SWIG_globals = SWIG_newvarlink();
12208 m = Py_InitModule("gdic", gdicMethods);
12209 d = PyModule_GetDict(m);
12210 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12211 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12212 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12213 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12214 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12215 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12216 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12217 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
12218 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
12219 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12220 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12221 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12222 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12223 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12224 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12225 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12226 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
12227 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12228 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12229 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12230 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12231 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12232 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12233 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12234 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12235 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12236 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12237 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12238 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12239 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12240 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12241 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12242 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12243 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
12244 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
12245 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12246 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12247 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12248 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12249 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12250 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12251 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12252 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
12253 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
12254 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12255 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12256 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12257 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
12258 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12259 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12260 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
12261 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12262 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12263 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12264 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12265 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12266 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12267 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12268 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12269 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
12270 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
12271 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12272 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12273 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12274 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12275 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12276 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12277 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12278 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12279 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12280 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12281 PyDict_SetItemString(d,"cvar", SWIG_globals);
12282 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12283 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12284 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12285 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12286 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12287 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12288 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12289 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12290 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12291 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12292 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12293 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12294 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12295 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12296 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12297 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12298 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12299 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12300 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12301 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12302 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12303 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12304 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12305 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12306 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12307 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12308 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12309 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12310 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12311 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12312 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12313 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12314 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12315 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12316 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12317 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12318 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12319 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12320 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12321 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12322 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12323 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12324 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12325 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12326 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12327 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12328 {
12329 int i;
12330 for (i = 0; _swig_mapping[i].n1; i++)
12331 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12332 }
12333 }