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