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