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