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