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