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