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