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