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