]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
backport wxRegConfig enumeration fix
[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/dcmirror.h>
65 #include <wx/iconbndl.h>
66
67
68 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
69 PyObject* o2;
70 PyObject* o3;
71
72 if (!target) {
73 target = o;
74 } else if (target == Py_None) {
75 Py_DECREF(Py_None);
76 target = o;
77 } else {
78 if (!PyTuple_Check(target)) {
79 o2 = target;
80 target = PyTuple_New(1);
81 PyTuple_SetItem(target, 0, o2);
82 }
83 o3 = PyTuple_New(1);
84 PyTuple_SetItem(o3, 0, o);
85
86 o2 = target;
87 target = PySequence_Concat(o2, o3);
88 Py_DECREF(o2);
89 Py_DECREF(o3);
90 }
91 return target;
92 }
93
94 // Put some wx default wxChar* values into wxStrings.
95 static const wxString wxPyEmptyString(wxT(""));
96 // Implementations of some alternate "constructors"
97
98 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
99 return new wxBitmap(width, height, depth);
100 }
101
102 static char** ConvertListOfStrings(PyObject* listOfStrings) {
103 char** cArray = NULL;
104 int count;
105
106 if (!PyList_Check(listOfStrings)) {
107 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
108 return NULL;
109 }
110 count = PyList_Size(listOfStrings);
111 cArray = new char*[count];
112
113 for(int x=0; x<count; x++) {
114 // TODO: Need some validation and error checking here
115 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
116 }
117 return cArray;
118 }
119
120
121 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
122 char** cArray = NULL;
123 wxBitmap* bmp;
124
125 cArray = ConvertListOfStrings(listOfStrings);
126 if (! cArray)
127 return NULL;
128 bmp = new wxBitmap(cArray);
129 delete [] cArray;
130 return bmp;
131 }
132
133
134 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
135 return new wxBitmap(icon);
136 }
137
138
139 wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) {
140 char* buf;
141 int length;
142 PyString_AsStringAndSize(bits, &buf, &length);
143 return new wxBitmap(buf, width, height, depth);
144 }
145
146
147 // #ifdef __WXMSW__
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return NULL;
153 // }
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155 // }
156 // #endif
157
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
176 }
177
178 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
179 wxIcon* icon = new wxIcon();
180 icon->CopyFromBitmap(bmp);
181 return icon;
182 }
183
184 wxIcon* wxIconFromLocation(const wxIconLocation& loc) {
185 wxIcon* icon = new wxIcon(loc);
186 return icon;
187 }
188
189 wxCursor* wxPyStockCursor(int id) {
190 return new wxCursor(id);
191 }
192
193 wxCursor* wxCursorFromImage(const wxImage& image) {
194 return new wxCursor(image);
195 }
196
197 wxCursor* wxCursorFromBits(PyObject* bits, int width, int height,
198 int hotSpotX=-1, int hotSpotY=-1,
199 PyObject* maskBits=0) {
200 char* bitsbuf;
201 char* maskbuf = NULL;
202 int length;
203 PyString_AsStringAndSize(bits, &bitsbuf, &length);
204 if (maskBits)
205 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
206 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
207 }
208 // Alternate 'constructor'
209 wxColour* wxNamedColour(const wxString& colorName) {
210 return new wxColour(colorName);
211 }
212
213 class wxPyPen : public wxPen {
214 public:
215 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
216 : wxPen(colour, width, style)
217 { m_dash = NULL; }
218 ~wxPyPen() {
219 if (m_dash)
220 delete [] m_dash;
221 }
222
223 void SetDashes(int nb_dashes, const wxDash *dash) {
224 if (m_dash)
225 delete [] m_dash;
226 m_dash = new wxDash[nb_dashes];
227 for (int i=0; i<nb_dashes; i++) {
228 m_dash[i] = dash[i];
229 }
230 wxPen::SetDashes(nb_dashes, m_dash);
231 }
232
233 private:
234 wxDash* m_dash;
235 };
236
237 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
238 *x1 = dc->MinX();
239 *y1 = dc->MinY();
240 *x2 = dc->MaxX();
241 *y2 = dc->MaxY();
242 }
243 // Alternate 'constructor'
244 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
245 return new wxMemoryDC(oldDC);
246 }
247
248 #include <wx/metafile.h>
249
250 #if 0
251 extern wxFont * wxNORMAL_FONT;
252 extern wxFont * wxSMALL_FONT;
253 extern wxFont * wxITALIC_FONT;
254 extern wxFont * wxSWISS_FONT;
255 extern wxPen * wxRED_PEN;
256 extern wxPen * wxCYAN_PEN;
257 extern wxPen * wxGREEN_PEN;
258 extern wxPen * wxBLACK_PEN;
259 extern wxPen * wxWHITE_PEN;
260 extern wxPen * wxTRANSPARENT_PEN;
261 extern wxPen * wxBLACK_DASHED_PEN;
262 extern wxPen * wxGREY_PEN;
263 extern wxPen * wxMEDIUM_GREY_PEN;
264 extern wxPen * wxLIGHT_GREY_PEN;
265 extern wxBrush * wxBLUE_BRUSH;
266 extern wxBrush * wxGREEN_BRUSH;
267 extern wxBrush * wxWHITE_BRUSH;
268 extern wxBrush * wxBLACK_BRUSH;
269 extern wxBrush * wxTRANSPARENT_BRUSH;
270 extern wxBrush * wxCYAN_BRUSH;
271 extern wxBrush * wxRED_BRUSH;
272 extern wxBrush * wxGREY_BRUSH;
273 extern wxBrush * wxMEDIUM_GREY_BRUSH;
274 extern wxBrush * wxLIGHT_GREY_BRUSH;
275 extern wxColour * wxBLACK;
276 extern wxColour * wxWHITE;
277 extern wxColour * wxRED;
278 extern wxColour * wxBLUE;
279 extern wxColour * wxGREEN;
280 extern wxColour * wxCYAN;
281 extern wxColour * wxLIGHT_GREY;
282 extern wxCursor * wxSTANDARD_CURSOR;
283 extern wxCursor * wxHOURGLASS_CURSOR;
284 extern wxCursor * wxCROSS_CURSOR;
285 extern wxBitmap wxNullBitmap;
286 extern wxIcon wxNullIcon;
287 extern wxCursor wxNullCursor;
288 extern wxPen wxNullPen;
289 extern wxBrush wxNullBrush;
290 extern wxPalette wxNullPalette;
291 extern wxFont wxNullFont;
292 extern wxColour wxNullColour;
293 extern wxFontList * wxTheFontList;
294 extern wxPenList * wxThePenList;
295 extern wxBrushList * wxTheBrushList;
296 extern wxColourDatabase * wxTheColourDatabase;
297
298 #endif
299 #ifdef __cplusplus
300 extern "C" {
301 #endif
302 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
303 PyObject * _resultobj;
304 wxBitmap * _result;
305 int _arg0;
306 int _arg1;
307 int _arg2 = (int ) -1;
308 char *_kwnames[] = { "width","height","depth", NULL };
309 char _ptemp[128];
310
311 self = self;
312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
313 return NULL;
314 {
315 PyThreadState* __tstate = wxPyBeginAllowThreads();
316 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
317
318 wxPyEndAllowThreads(__tstate);
319 if (PyErr_Occurred()) return NULL;
320 } if (_result) {
321 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
322 _resultobj = Py_BuildValue("s",_ptemp);
323 } else {
324 Py_INCREF(Py_None);
325 _resultobj = Py_None;
326 }
327 return _resultobj;
328 }
329
330 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
331 PyObject * _resultobj;
332 wxBitmap * _result;
333 PyObject * _arg0;
334 PyObject * _obj0 = 0;
335 char *_kwnames[] = { "listOfStrings", NULL };
336 char _ptemp[128];
337
338 self = self;
339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
340 return NULL;
341 {
342 _arg0 = _obj0;
343 }
344 {
345 PyThreadState* __tstate = wxPyBeginAllowThreads();
346 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
347
348 wxPyEndAllowThreads(__tstate);
349 if (PyErr_Occurred()) return NULL;
350 } if (_result) {
351 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
352 _resultobj = Py_BuildValue("s",_ptemp);
353 } else {
354 Py_INCREF(Py_None);
355 _resultobj = Py_None;
356 }
357 return _resultobj;
358 }
359
360 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
361 PyObject * _resultobj;
362 wxBitmap * _result;
363 wxIcon * _arg0;
364 PyObject * _argo0 = 0;
365 char *_kwnames[] = { "icon", NULL };
366 char _ptemp[128];
367
368 self = self;
369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
370 return NULL;
371 if (_argo0) {
372 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
374 return NULL;
375 }
376 }
377 {
378 PyThreadState* __tstate = wxPyBeginAllowThreads();
379 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
380
381 wxPyEndAllowThreads(__tstate);
382 if (PyErr_Occurred()) return NULL;
383 } if (_result) {
384 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
385 _resultobj = Py_BuildValue("s",_ptemp);
386 } else {
387 Py_INCREF(Py_None);
388 _resultobj = Py_None;
389 }
390 return _resultobj;
391 }
392
393 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
394 PyObject * _resultobj;
395 wxBitmap * _result;
396 PyObject * _arg0;
397 int _arg1;
398 int _arg2;
399 int _arg3 = (int ) 1;
400 PyObject * _obj0 = 0;
401 char *_kwnames[] = { "bits","width","height","depth", NULL };
402 char _ptemp[128];
403
404 self = self;
405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
406 return NULL;
407 {
408 _arg0 = _obj0;
409 }
410 {
411 PyThreadState* __tstate = wxPyBeginAllowThreads();
412 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
413
414 wxPyEndAllowThreads(__tstate);
415 if (PyErr_Occurred()) return NULL;
416 } if (_result) {
417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
418 _resultobj = Py_BuildValue("s",_ptemp);
419 } else {
420 Py_INCREF(Py_None);
421 _resultobj = Py_None;
422 }
423 return _resultobj;
424 }
425
426 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
427 PyObject * _resultobj;
428 wxMask * _result;
429 wxBitmap * _arg0;
430 wxColour * _arg1;
431 PyObject * _argo0 = 0;
432 wxColour temp;
433 PyObject * _obj1 = 0;
434 char *_kwnames[] = { "bitmap","colour", NULL };
435 char _ptemp[128];
436
437 self = self;
438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
439 return NULL;
440 if (_argo0) {
441 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
443 return NULL;
444 }
445 }
446 {
447 _arg1 = &temp;
448 if (! wxColour_helper(_obj1, &_arg1))
449 return NULL;
450 }
451 {
452 PyThreadState* __tstate = wxPyBeginAllowThreads();
453 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
454
455 wxPyEndAllowThreads(__tstate);
456 if (PyErr_Occurred()) return NULL;
457 } if (_result) {
458 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
459 _resultobj = Py_BuildValue("s",_ptemp);
460 } else {
461 Py_INCREF(Py_None);
462 _resultobj = Py_None;
463 }
464 return _resultobj;
465 }
466
467 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
468 PyObject * _resultobj;
469 wxIcon * _result;
470 char *_kwnames[] = { NULL };
471 char _ptemp[128];
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
475 return NULL;
476 {
477 PyThreadState* __tstate = wxPyBeginAllowThreads();
478 _result = (wxIcon *)wxEmptyIcon();
479
480 wxPyEndAllowThreads(__tstate);
481 if (PyErr_Occurred()) return NULL;
482 } if (_result) {
483 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
484 _resultobj = Py_BuildValue("s",_ptemp);
485 } else {
486 Py_INCREF(Py_None);
487 _resultobj = Py_None;
488 }
489 return _resultobj;
490 }
491
492 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
493 PyObject * _resultobj;
494 wxIcon * _result;
495 PyObject * _arg0;
496 PyObject * _obj0 = 0;
497 char *_kwnames[] = { "listOfStrings", NULL };
498 char _ptemp[128];
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
502 return NULL;
503 {
504 _arg0 = _obj0;
505 }
506 {
507 PyThreadState* __tstate = wxPyBeginAllowThreads();
508 _result = (wxIcon *)wxIconFromXPMData(_arg0);
509
510 wxPyEndAllowThreads(__tstate);
511 if (PyErr_Occurred()) return NULL;
512 } if (_result) {
513 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
514 _resultobj = Py_BuildValue("s",_ptemp);
515 } else {
516 Py_INCREF(Py_None);
517 _resultobj = Py_None;
518 }
519 return _resultobj;
520 }
521
522 static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
523 PyObject * _resultobj;
524 wxIcon * _result;
525 wxBitmap * _arg0;
526 PyObject * _argo0 = 0;
527 char *_kwnames[] = { "bmp", NULL };
528 char _ptemp[128];
529
530 self = self;
531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
532 return NULL;
533 if (_argo0) {
534 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
536 return NULL;
537 }
538 }
539 {
540 PyThreadState* __tstate = wxPyBeginAllowThreads();
541 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
542
543 wxPyEndAllowThreads(__tstate);
544 if (PyErr_Occurred()) return NULL;
545 } if (_result) {
546 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
547 _resultobj = Py_BuildValue("s",_ptemp);
548 } else {
549 Py_INCREF(Py_None);
550 _resultobj = Py_None;
551 }
552 return _resultobj;
553 }
554
555 static PyObject *_wrap_wxIconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
556 PyObject * _resultobj;
557 wxIcon * _result;
558 wxIconLocation * _arg0;
559 PyObject * _argo0 = 0;
560 char *_kwnames[] = { "loc", NULL };
561 char _ptemp[128];
562
563 self = self;
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromLocation",_kwnames,&_argo0))
565 return NULL;
566 if (_argo0) {
567 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromLocation. Expected _wxIconLocation_p.");
569 return NULL;
570 }
571 }
572 {
573 PyThreadState* __tstate = wxPyBeginAllowThreads();
574 _result = (wxIcon *)wxIconFromLocation(*_arg0);
575
576 wxPyEndAllowThreads(__tstate);
577 if (PyErr_Occurred()) return NULL;
578 } if (_result) {
579 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
580 _resultobj = Py_BuildValue("s",_ptemp);
581 } else {
582 Py_INCREF(Py_None);
583 _resultobj = Py_None;
584 }
585 return _resultobj;
586 }
587
588 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
589 PyObject * _resultobj;
590 wxCursor * _result;
591 int _arg0;
592 char *_kwnames[] = { "id", NULL };
593 char _ptemp[128];
594
595 self = self;
596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
597 return NULL;
598 {
599 PyThreadState* __tstate = wxPyBeginAllowThreads();
600 _result = (wxCursor *)wxPyStockCursor(_arg0);
601
602 wxPyEndAllowThreads(__tstate);
603 if (PyErr_Occurred()) return NULL;
604 } if (_result) {
605 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
606 _resultobj = Py_BuildValue("s",_ptemp);
607 } else {
608 Py_INCREF(Py_None);
609 _resultobj = Py_None;
610 }
611 return _resultobj;
612 }
613
614 static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
615 PyObject * _resultobj;
616 wxCursor * _result;
617 wxImage * _arg0;
618 PyObject * _argo0 = 0;
619 char *_kwnames[] = { "image", NULL };
620 char _ptemp[128];
621
622 self = self;
623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursorFromImage",_kwnames,&_argo0))
624 return NULL;
625 if (_argo0) {
626 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
628 return NULL;
629 }
630 }
631 {
632 PyThreadState* __tstate = wxPyBeginAllowThreads();
633 _result = (wxCursor *)wxCursorFromImage(*_arg0);
634
635 wxPyEndAllowThreads(__tstate);
636 if (PyErr_Occurred()) return NULL;
637 } if (_result) {
638 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
639 _resultobj = Py_BuildValue("s",_ptemp);
640 } else {
641 Py_INCREF(Py_None);
642 _resultobj = Py_None;
643 }
644 return _resultobj;
645 }
646
647 static PyObject *_wrap_wxCursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
648 PyObject * _resultobj;
649 wxCursor * _result;
650 PyObject * _arg0;
651 int _arg1;
652 int _arg2;
653 int _arg3 = (int ) -1;
654 int _arg4 = (int ) -1;
655 PyObject * _arg5 = (PyObject *) 0;
656 PyObject * _obj0 = 0;
657 PyObject * _obj5 = 0;
658 char *_kwnames[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL };
659 char _ptemp[128];
660
661 self = self;
662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiO:wxCursorFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
663 return NULL;
664 {
665 _arg0 = _obj0;
666 }
667 if (_obj5)
668 {
669 _arg5 = _obj5;
670 }
671 {
672 PyThreadState* __tstate = wxPyBeginAllowThreads();
673 _result = (wxCursor *)wxCursorFromBits(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
674
675 wxPyEndAllowThreads(__tstate);
676 if (PyErr_Occurred()) return NULL;
677 } if (_result) {
678 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
679 _resultobj = Py_BuildValue("s",_ptemp);
680 } else {
681 Py_INCREF(Py_None);
682 _resultobj = Py_None;
683 }
684 return _resultobj;
685 }
686
687 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
688 PyObject * _resultobj;
689 wxColour * _result;
690 wxString * _arg0;
691 PyObject * _obj0 = 0;
692 char *_kwnames[] = { "colorName", NULL };
693 char _ptemp[128];
694
695 self = self;
696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
697 return NULL;
698 {
699 _arg0 = wxString_in_helper(_obj0);
700 if (_arg0 == NULL)
701 return NULL;
702 }
703 {
704 PyThreadState* __tstate = wxPyBeginAllowThreads();
705 _result = (wxColour *)wxNamedColour(*_arg0);
706
707 wxPyEndAllowThreads(__tstate);
708 if (PyErr_Occurred()) return NULL;
709 } if (_result) {
710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
711 _resultobj = Py_BuildValue("s",_ptemp);
712 } else {
713 Py_INCREF(Py_None);
714 _resultobj = Py_None;
715 }
716 {
717 if (_obj0)
718 delete _arg0;
719 }
720 return _resultobj;
721 }
722
723 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
724 PyObject * _resultobj;
725 wxMemoryDC * _result;
726 wxDC * _arg0;
727 PyObject * _argo0 = 0;
728 char *_kwnames[] = { "oldDC", NULL };
729 char _ptemp[128];
730
731 self = self;
732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
733 return NULL;
734 if (_argo0) {
735 if (_argo0 == Py_None) { _arg0 = NULL; }
736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
738 return NULL;
739 }
740 }
741 {
742 PyThreadState* __tstate = wxPyBeginAllowThreads();
743 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
744
745 wxPyEndAllowThreads(__tstate);
746 if (PyErr_Occurred()) return NULL;
747 } if (_result) {
748 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
749 _resultobj = Py_BuildValue("s",_ptemp);
750 } else {
751 Py_INCREF(Py_None);
752 _resultobj = Py_None;
753 }
754 return _resultobj;
755 }
756
757 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
758
759 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
760 return 1;
761 }
762
763 static PyObject *_wrap_wxNORMAL_FONT_get() {
764 PyObject * pyobj;
765 char ptemp[128];
766
767 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
768 pyobj = PyString_FromString(ptemp);
769 return pyobj;
770 }
771
772 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
773
774 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
775 return 1;
776 }
777
778 static PyObject *_wrap_wxSMALL_FONT_get() {
779 PyObject * pyobj;
780 char ptemp[128];
781
782 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
783 pyobj = PyString_FromString(ptemp);
784 return pyobj;
785 }
786
787 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
788
789 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
790 return 1;
791 }
792
793 static PyObject *_wrap_wxITALIC_FONT_get() {
794 PyObject * pyobj;
795 char ptemp[128];
796
797 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
798 pyobj = PyString_FromString(ptemp);
799 return pyobj;
800 }
801
802 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
803
804 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
805 return 1;
806 }
807
808 static PyObject *_wrap_wxSWISS_FONT_get() {
809 PyObject * pyobj;
810 char ptemp[128];
811
812 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
813 pyobj = PyString_FromString(ptemp);
814 return pyobj;
815 }
816
817 static int _wrap_wxRED_PEN_set(PyObject *val) {
818
819 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
820 return 1;
821 }
822
823 static PyObject *_wrap_wxRED_PEN_get() {
824 PyObject * pyobj;
825 char ptemp[128];
826
827 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
828 pyobj = PyString_FromString(ptemp);
829 return pyobj;
830 }
831
832 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
833
834 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
835 return 1;
836 }
837
838 static PyObject *_wrap_wxCYAN_PEN_get() {
839 PyObject * pyobj;
840 char ptemp[128];
841
842 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
843 pyobj = PyString_FromString(ptemp);
844 return pyobj;
845 }
846
847 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
848
849 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
850 return 1;
851 }
852
853 static PyObject *_wrap_wxGREEN_PEN_get() {
854 PyObject * pyobj;
855 char ptemp[128];
856
857 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
858 pyobj = PyString_FromString(ptemp);
859 return pyobj;
860 }
861
862 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
863
864 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
865 return 1;
866 }
867
868 static PyObject *_wrap_wxBLACK_PEN_get() {
869 PyObject * pyobj;
870 char ptemp[128];
871
872 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
873 pyobj = PyString_FromString(ptemp);
874 return pyobj;
875 }
876
877 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
878
879 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
880 return 1;
881 }
882
883 static PyObject *_wrap_wxWHITE_PEN_get() {
884 PyObject * pyobj;
885 char ptemp[128];
886
887 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
888 pyobj = PyString_FromString(ptemp);
889 return pyobj;
890 }
891
892 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
893
894 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
895 return 1;
896 }
897
898 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
899 PyObject * pyobj;
900 char ptemp[128];
901
902 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
903 pyobj = PyString_FromString(ptemp);
904 return pyobj;
905 }
906
907 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
908
909 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
910 return 1;
911 }
912
913 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
914 PyObject * pyobj;
915 char ptemp[128];
916
917 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
918 pyobj = PyString_FromString(ptemp);
919 return pyobj;
920 }
921
922 static int _wrap_wxGREY_PEN_set(PyObject *val) {
923
924 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
925 return 1;
926 }
927
928 static PyObject *_wrap_wxGREY_PEN_get() {
929 PyObject * pyobj;
930 char ptemp[128];
931
932 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
933 pyobj = PyString_FromString(ptemp);
934 return pyobj;
935 }
936
937 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
938
939 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
940 return 1;
941 }
942
943 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
944 PyObject * pyobj;
945 char ptemp[128];
946
947 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
948 pyobj = PyString_FromString(ptemp);
949 return pyobj;
950 }
951
952 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
953
954 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
955 return 1;
956 }
957
958 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
959 PyObject * pyobj;
960 char ptemp[128];
961
962 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
963 pyobj = PyString_FromString(ptemp);
964 return pyobj;
965 }
966
967 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
968
969 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
970 return 1;
971 }
972
973 static PyObject *_wrap_wxBLUE_BRUSH_get() {
974 PyObject * pyobj;
975 char ptemp[128];
976
977 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
978 pyobj = PyString_FromString(ptemp);
979 return pyobj;
980 }
981
982 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
983
984 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
985 return 1;
986 }
987
988 static PyObject *_wrap_wxGREEN_BRUSH_get() {
989 PyObject * pyobj;
990 char ptemp[128];
991
992 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
993 pyobj = PyString_FromString(ptemp);
994 return pyobj;
995 }
996
997 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
998
999 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
1000 return 1;
1001 }
1002
1003 static PyObject *_wrap_wxWHITE_BRUSH_get() {
1004 PyObject * pyobj;
1005 char ptemp[128];
1006
1007 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
1008 pyobj = PyString_FromString(ptemp);
1009 return pyobj;
1010 }
1011
1012 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
1013
1014 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
1015 return 1;
1016 }
1017
1018 static PyObject *_wrap_wxBLACK_BRUSH_get() {
1019 PyObject * pyobj;
1020 char ptemp[128];
1021
1022 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
1023 pyobj = PyString_FromString(ptemp);
1024 return pyobj;
1025 }
1026
1027 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
1028
1029 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
1030 return 1;
1031 }
1032
1033 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
1034 PyObject * pyobj;
1035 char ptemp[128];
1036
1037 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
1038 pyobj = PyString_FromString(ptemp);
1039 return pyobj;
1040 }
1041
1042 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
1043
1044 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
1045 return 1;
1046 }
1047
1048 static PyObject *_wrap_wxCYAN_BRUSH_get() {
1049 PyObject * pyobj;
1050 char ptemp[128];
1051
1052 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
1053 pyobj = PyString_FromString(ptemp);
1054 return pyobj;
1055 }
1056
1057 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
1058
1059 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
1060 return 1;
1061 }
1062
1063 static PyObject *_wrap_wxRED_BRUSH_get() {
1064 PyObject * pyobj;
1065 char ptemp[128];
1066
1067 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
1068 pyobj = PyString_FromString(ptemp);
1069 return pyobj;
1070 }
1071
1072 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
1073
1074 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
1075 return 1;
1076 }
1077
1078 static PyObject *_wrap_wxGREY_BRUSH_get() {
1079 PyObject * pyobj;
1080 char ptemp[128];
1081
1082 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
1083 pyobj = PyString_FromString(ptemp);
1084 return pyobj;
1085 }
1086
1087 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
1088
1089 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1090 return 1;
1091 }
1092
1093 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
1094 PyObject * pyobj;
1095 char ptemp[128];
1096
1097 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
1098 pyobj = PyString_FromString(ptemp);
1099 return pyobj;
1100 }
1101
1102 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
1103
1104 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1105 return 1;
1106 }
1107
1108 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
1109 PyObject * pyobj;
1110 char ptemp[128];
1111
1112 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
1113 pyobj = PyString_FromString(ptemp);
1114 return pyobj;
1115 }
1116
1117 static int _wrap_wxBLACK_set(PyObject *val) {
1118
1119 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
1120 return 1;
1121 }
1122
1123 static PyObject *_wrap_wxBLACK_get() {
1124 PyObject * pyobj;
1125 char ptemp[128];
1126
1127 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
1128 pyobj = PyString_FromString(ptemp);
1129 return pyobj;
1130 }
1131
1132 static int _wrap_wxWHITE_set(PyObject *val) {
1133
1134 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1135 return 1;
1136 }
1137
1138 static PyObject *_wrap_wxWHITE_get() {
1139 PyObject * pyobj;
1140 char ptemp[128];
1141
1142 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1143 pyobj = PyString_FromString(ptemp);
1144 return pyobj;
1145 }
1146
1147 static int _wrap_wxRED_set(PyObject *val) {
1148
1149 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1150 return 1;
1151 }
1152
1153 static PyObject *_wrap_wxRED_get() {
1154 PyObject * pyobj;
1155 char ptemp[128];
1156
1157 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1158 pyobj = PyString_FromString(ptemp);
1159 return pyobj;
1160 }
1161
1162 static int _wrap_wxBLUE_set(PyObject *val) {
1163
1164 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1165 return 1;
1166 }
1167
1168 static PyObject *_wrap_wxBLUE_get() {
1169 PyObject * pyobj;
1170 char ptemp[128];
1171
1172 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1173 pyobj = PyString_FromString(ptemp);
1174 return pyobj;
1175 }
1176
1177 static int _wrap_wxGREEN_set(PyObject *val) {
1178
1179 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1180 return 1;
1181 }
1182
1183 static PyObject *_wrap_wxGREEN_get() {
1184 PyObject * pyobj;
1185 char ptemp[128];
1186
1187 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1188 pyobj = PyString_FromString(ptemp);
1189 return pyobj;
1190 }
1191
1192 static int _wrap_wxCYAN_set(PyObject *val) {
1193
1194 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1195 return 1;
1196 }
1197
1198 static PyObject *_wrap_wxCYAN_get() {
1199 PyObject * pyobj;
1200 char ptemp[128];
1201
1202 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1203 pyobj = PyString_FromString(ptemp);
1204 return pyobj;
1205 }
1206
1207 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1208
1209 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1210 return 1;
1211 }
1212
1213 static PyObject *_wrap_wxLIGHT_GREY_get() {
1214 PyObject * pyobj;
1215 char ptemp[128];
1216
1217 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1218 pyobj = PyString_FromString(ptemp);
1219 return pyobj;
1220 }
1221
1222 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1223
1224 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1225 return 1;
1226 }
1227
1228 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1229 PyObject * pyobj;
1230 char ptemp[128];
1231
1232 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1233 pyobj = PyString_FromString(ptemp);
1234 return pyobj;
1235 }
1236
1237 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1238
1239 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1240 return 1;
1241 }
1242
1243 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1244 PyObject * pyobj;
1245 char ptemp[128];
1246
1247 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1248 pyobj = PyString_FromString(ptemp);
1249 return pyobj;
1250 }
1251
1252 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1253
1254 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1255 return 1;
1256 }
1257
1258 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1259 PyObject * pyobj;
1260 char ptemp[128];
1261
1262 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1263 pyobj = PyString_FromString(ptemp);
1264 return pyobj;
1265 }
1266
1267 static int _wrap_wxNullBitmap_set(PyObject *val) {
1268
1269 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1270 return 1;
1271 }
1272
1273 static PyObject *_wrap_wxNullBitmap_get() {
1274 PyObject * pyobj;
1275 char ptemp[128];
1276
1277 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1278 pyobj = PyString_FromString(ptemp);
1279 return pyobj;
1280 }
1281
1282 static int _wrap_wxNullIcon_set(PyObject *val) {
1283
1284 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1285 return 1;
1286 }
1287
1288 static PyObject *_wrap_wxNullIcon_get() {
1289 PyObject * pyobj;
1290 char ptemp[128];
1291
1292 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1293 pyobj = PyString_FromString(ptemp);
1294 return pyobj;
1295 }
1296
1297 static int _wrap_wxNullCursor_set(PyObject *val) {
1298
1299 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1300 return 1;
1301 }
1302
1303 static PyObject *_wrap_wxNullCursor_get() {
1304 PyObject * pyobj;
1305 char ptemp[128];
1306
1307 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1308 pyobj = PyString_FromString(ptemp);
1309 return pyobj;
1310 }
1311
1312 static int _wrap_wxNullPen_set(PyObject *val) {
1313
1314 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1315 return 1;
1316 }
1317
1318 static PyObject *_wrap_wxNullPen_get() {
1319 PyObject * pyobj;
1320 char ptemp[128];
1321
1322 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1323 pyobj = PyString_FromString(ptemp);
1324 return pyobj;
1325 }
1326
1327 static int _wrap_wxNullBrush_set(PyObject *val) {
1328
1329 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1330 return 1;
1331 }
1332
1333 static PyObject *_wrap_wxNullBrush_get() {
1334 PyObject * pyobj;
1335 char ptemp[128];
1336
1337 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1338 pyobj = PyString_FromString(ptemp);
1339 return pyobj;
1340 }
1341
1342 static int _wrap_wxNullPalette_set(PyObject *val) {
1343
1344 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1345 return 1;
1346 }
1347
1348 static PyObject *_wrap_wxNullPalette_get() {
1349 PyObject * pyobj;
1350 char ptemp[128];
1351
1352 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1353 pyobj = PyString_FromString(ptemp);
1354 return pyobj;
1355 }
1356
1357 static int _wrap_wxNullFont_set(PyObject *val) {
1358
1359 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1360 return 1;
1361 }
1362
1363 static PyObject *_wrap_wxNullFont_get() {
1364 PyObject * pyobj;
1365 char ptemp[128];
1366
1367 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1368 pyobj = PyString_FromString(ptemp);
1369 return pyobj;
1370 }
1371
1372 static int _wrap_wxNullColour_set(PyObject *val) {
1373
1374 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1375 return 1;
1376 }
1377
1378 static PyObject *_wrap_wxNullColour_get() {
1379 PyObject * pyobj;
1380 char ptemp[128];
1381
1382 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1383 pyobj = PyString_FromString(ptemp);
1384 return pyobj;
1385 }
1386
1387 static int _wrap_wxTheFontList_set(PyObject *val) {
1388
1389 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1390 return 1;
1391 }
1392
1393 static PyObject *_wrap_wxTheFontList_get() {
1394 PyObject * pyobj;
1395 char ptemp[128];
1396
1397 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1398 pyobj = PyString_FromString(ptemp);
1399 return pyobj;
1400 }
1401
1402 static int _wrap_wxThePenList_set(PyObject *val) {
1403
1404 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1405 return 1;
1406 }
1407
1408 static PyObject *_wrap_wxThePenList_get() {
1409 PyObject * pyobj;
1410 char ptemp[128];
1411
1412 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1413 pyobj = PyString_FromString(ptemp);
1414 return pyobj;
1415 }
1416
1417 static int _wrap_wxTheBrushList_set(PyObject *val) {
1418
1419 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1420 return 1;
1421 }
1422
1423 static PyObject *_wrap_wxTheBrushList_get() {
1424 PyObject * pyobj;
1425 char ptemp[128];
1426
1427 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1428 pyobj = PyString_FromString(ptemp);
1429 return pyobj;
1430 }
1431
1432 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1433
1434 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1435 return 1;
1436 }
1437
1438 static PyObject *_wrap_wxTheColourDatabase_get() {
1439 PyObject * pyobj;
1440 char ptemp[128];
1441
1442 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1443 pyobj = PyString_FromString(ptemp);
1444 return pyobj;
1445 }
1446
1447 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1448 wxGDIObject *src;
1449 wxObject *dest;
1450 src = (wxGDIObject *) ptr;
1451 dest = (wxObject *) src;
1452 return (void *) dest;
1453 }
1454
1455 #define new_wxGDIObject() (new wxGDIObject())
1456 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject * _resultobj;
1458 wxGDIObject * _result;
1459 char *_kwnames[] = { NULL };
1460 char _ptemp[128];
1461
1462 self = self;
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1464 return NULL;
1465 {
1466 PyThreadState* __tstate = wxPyBeginAllowThreads();
1467 _result = (wxGDIObject *)new_wxGDIObject();
1468
1469 wxPyEndAllowThreads(__tstate);
1470 if (PyErr_Occurred()) return NULL;
1471 } if (_result) {
1472 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1473 _resultobj = Py_BuildValue("s",_ptemp);
1474 } else {
1475 Py_INCREF(Py_None);
1476 _resultobj = Py_None;
1477 }
1478 return _resultobj;
1479 }
1480
1481 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1482 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1483 PyObject * _resultobj;
1484 wxGDIObject * _arg0;
1485 PyObject * _argo0 = 0;
1486 char *_kwnames[] = { "self", NULL };
1487
1488 self = self;
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1490 return NULL;
1491 if (_argo0) {
1492 if (_argo0 == Py_None) { _arg0 = NULL; }
1493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1495 return NULL;
1496 }
1497 }
1498 {
1499 PyThreadState* __tstate = wxPyBeginAllowThreads();
1500 delete_wxGDIObject(_arg0);
1501
1502 wxPyEndAllowThreads(__tstate);
1503 if (PyErr_Occurred()) return NULL;
1504 } Py_INCREF(Py_None);
1505 _resultobj = Py_None;
1506 return _resultobj;
1507 }
1508
1509 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1510 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1511 PyObject * _resultobj;
1512 bool _result;
1513 wxGDIObject * _arg0;
1514 PyObject * _argo0 = 0;
1515 char *_kwnames[] = { "self", NULL };
1516
1517 self = self;
1518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1519 return NULL;
1520 if (_argo0) {
1521 if (_argo0 == Py_None) { _arg0 = NULL; }
1522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1524 return NULL;
1525 }
1526 }
1527 {
1528 PyThreadState* __tstate = wxPyBeginAllowThreads();
1529 _result = (bool )wxGDIObject_GetVisible(_arg0);
1530
1531 wxPyEndAllowThreads(__tstate);
1532 if (PyErr_Occurred()) return NULL;
1533 } _resultobj = Py_BuildValue("i",_result);
1534 return _resultobj;
1535 }
1536
1537 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1538 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1539 PyObject * _resultobj;
1540 wxGDIObject * _arg0;
1541 bool _arg1;
1542 PyObject * _argo0 = 0;
1543 int tempbool1;
1544 char *_kwnames[] = { "self","visible", NULL };
1545
1546 self = self;
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1548 return NULL;
1549 if (_argo0) {
1550 if (_argo0 == Py_None) { _arg0 = NULL; }
1551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1553 return NULL;
1554 }
1555 }
1556 _arg1 = (bool ) tempbool1;
1557 {
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 wxGDIObject_SetVisible(_arg0,_arg1);
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) return NULL;
1563 } Py_INCREF(Py_None);
1564 _resultobj = Py_None;
1565 return _resultobj;
1566 }
1567
1568 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1569 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1570 PyObject * _resultobj;
1571 bool _result;
1572 wxGDIObject * _arg0;
1573 PyObject * _argo0 = 0;
1574 char *_kwnames[] = { "self", NULL };
1575
1576 self = self;
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1578 return NULL;
1579 if (_argo0) {
1580 if (_argo0 == Py_None) { _arg0 = NULL; }
1581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1583 return NULL;
1584 }
1585 }
1586 {
1587 PyThreadState* __tstate = wxPyBeginAllowThreads();
1588 _result = (bool )wxGDIObject_IsNull(_arg0);
1589
1590 wxPyEndAllowThreads(__tstate);
1591 if (PyErr_Occurred()) return NULL;
1592 } _resultobj = Py_BuildValue("i",_result);
1593 return _resultobj;
1594 }
1595
1596 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1597 wxBitmap *src;
1598 wxGDIObject *dest;
1599 src = (wxBitmap *) ptr;
1600 dest = (wxGDIObject *) src;
1601 return (void *) dest;
1602 }
1603
1604 static void *SwigwxBitmapTowxObject(void *ptr) {
1605 wxBitmap *src;
1606 wxObject *dest;
1607 src = (wxBitmap *) ptr;
1608 dest = (wxObject *) src;
1609 return (void *) dest;
1610 }
1611
1612 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1613 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject * _resultobj;
1615 wxBitmap * _result;
1616 wxString * _arg0;
1617 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1618 PyObject * _obj0 = 0;
1619 char *_kwnames[] = { "name","type", NULL };
1620 char _ptemp[128];
1621
1622 self = self;
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1624 return NULL;
1625 {
1626 _arg0 = wxString_in_helper(_obj0);
1627 if (_arg0 == NULL)
1628 return NULL;
1629 }
1630 {
1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
1632 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1633
1634 wxPyEndAllowThreads(__tstate);
1635 if (PyErr_Occurred()) return NULL;
1636 } if (_result) {
1637 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1638 _resultobj = Py_BuildValue("s",_ptemp);
1639 } else {
1640 Py_INCREF(Py_None);
1641 _resultobj = Py_None;
1642 }
1643 {
1644 if (_obj0)
1645 delete _arg0;
1646 }
1647 return _resultobj;
1648 }
1649
1650 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1651 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1652 PyObject * _resultobj;
1653 wxBitmap * _arg0;
1654 PyObject * _argo0 = 0;
1655 char *_kwnames[] = { "self", NULL };
1656
1657 self = self;
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1659 return NULL;
1660 if (_argo0) {
1661 if (_argo0 == Py_None) { _arg0 = NULL; }
1662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1664 return NULL;
1665 }
1666 }
1667 {
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 delete_wxBitmap(_arg0);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) return NULL;
1673 } Py_INCREF(Py_None);
1674 _resultobj = Py_None;
1675 return _resultobj;
1676 }
1677
1678 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1679 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1680 PyObject * _resultobj;
1681 wxPalette * _result;
1682 wxBitmap * _arg0;
1683 PyObject * _argo0 = 0;
1684 char *_kwnames[] = { "self", NULL };
1685 char _ptemp[128];
1686
1687 self = self;
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1689 return NULL;
1690 if (_argo0) {
1691 if (_argo0 == Py_None) { _arg0 = NULL; }
1692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1694 return NULL;
1695 }
1696 }
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) return NULL;
1703 } if (_result) {
1704 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1705 _resultobj = Py_BuildValue("s",_ptemp);
1706 } else {
1707 Py_INCREF(Py_None);
1708 _resultobj = Py_None;
1709 }
1710 return _resultobj;
1711 }
1712
1713 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1714 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1715 PyObject * _resultobj;
1716 wxMask * _result;
1717 wxBitmap * _arg0;
1718 PyObject * _argo0 = 0;
1719 char *_kwnames[] = { "self", NULL };
1720 char _ptemp[128];
1721
1722 self = self;
1723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1724 return NULL;
1725 if (_argo0) {
1726 if (_argo0 == Py_None) { _arg0 = NULL; }
1727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1729 return NULL;
1730 }
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
1734 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) return NULL;
1738 } if (_result) {
1739 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1740 _resultobj = Py_BuildValue("s",_ptemp);
1741 } else {
1742 Py_INCREF(Py_None);
1743 _resultobj = Py_None;
1744 }
1745 return _resultobj;
1746 }
1747
1748 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1749 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1750 PyObject * _resultobj;
1751 bool _result;
1752 wxBitmap * _arg0;
1753 wxString * _arg1;
1754 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1755 PyObject * _argo0 = 0;
1756 PyObject * _obj1 = 0;
1757 char *_kwnames[] = { "self","name","type", NULL };
1758
1759 self = self;
1760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
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_LoadFile. Expected _wxBitmap_p.");
1766 return NULL;
1767 }
1768 }
1769 {
1770 _arg1 = wxString_in_helper(_obj1);
1771 if (_arg1 == NULL)
1772 return NULL;
1773 }
1774 {
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) return NULL;
1780 } _resultobj = Py_BuildValue("i",_result);
1781 {
1782 if (_obj1)
1783 delete _arg1;
1784 }
1785 return _resultobj;
1786 }
1787
1788 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1789 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1790 PyObject * _resultobj;
1791 bool _result;
1792 wxBitmap * _arg0;
1793 wxString * _arg1;
1794 wxBitmapType _arg2;
1795 wxPalette * _arg3 = (wxPalette *) NULL;
1796 PyObject * _argo0 = 0;
1797 PyObject * _obj1 = 0;
1798 PyObject * _argo3 = 0;
1799 char *_kwnames[] = { "self","name","type","palette", NULL };
1800
1801 self = self;
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1803 return NULL;
1804 if (_argo0) {
1805 if (_argo0 == Py_None) { _arg0 = NULL; }
1806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1808 return NULL;
1809 }
1810 }
1811 {
1812 _arg1 = wxString_in_helper(_obj1);
1813 if (_arg1 == NULL)
1814 return NULL;
1815 }
1816 if (_argo3) {
1817 if (_argo3 == Py_None) { _arg3 = NULL; }
1818 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1819 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1820 return NULL;
1821 }
1822 }
1823 {
1824 PyThreadState* __tstate = wxPyBeginAllowThreads();
1825 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1826
1827 wxPyEndAllowThreads(__tstate);
1828 if (PyErr_Occurred()) return NULL;
1829 } _resultobj = Py_BuildValue("i",_result);
1830 {
1831 if (_obj1)
1832 delete _arg1;
1833 }
1834 return _resultobj;
1835 }
1836
1837 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1838 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1839 PyObject * _resultobj;
1840 wxBitmap * _arg0;
1841 wxMask * _arg1;
1842 PyObject * _argo0 = 0;
1843 PyObject * _argo1 = 0;
1844 char *_kwnames[] = { "self","mask", NULL };
1845
1846 self = self;
1847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1848 return NULL;
1849 if (_argo0) {
1850 if (_argo0 == Py_None) { _arg0 = NULL; }
1851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1853 return NULL;
1854 }
1855 }
1856 if (_argo1) {
1857 if (_argo1 == Py_None) { _arg1 = NULL; }
1858 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1859 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1860 return NULL;
1861 }
1862 }
1863 {
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 wxBitmap_SetMask(_arg0,_arg1);
1866
1867 wxPyEndAllowThreads(__tstate);
1868 if (PyErr_Occurred()) return NULL;
1869 } Py_INCREF(Py_None);
1870 _resultobj = Py_None;
1871 return _resultobj;
1872 }
1873
1874 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1875 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1876 PyObject * _resultobj;
1877 wxBitmap * _arg0;
1878 wxPalette * _arg1;
1879 PyObject * _argo0 = 0;
1880 PyObject * _argo1 = 0;
1881 char *_kwnames[] = { "self","palette", NULL };
1882
1883 self = self;
1884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1885 return NULL;
1886 if (_argo0) {
1887 if (_argo0 == Py_None) { _arg0 = NULL; }
1888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1890 return NULL;
1891 }
1892 }
1893 if (_argo1) {
1894 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1895 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1896 return NULL;
1897 }
1898 }
1899 {
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 wxBitmap_SetPalette(_arg0,*_arg1);
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) return NULL;
1905 } Py_INCREF(Py_None);
1906 _resultobj = Py_None;
1907 return _resultobj;
1908 }
1909
1910 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1911 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject * _resultobj;
1913 long _result;
1914 wxBitmap * _arg0;
1915 PyObject * _argo0 = 0;
1916 char *_kwnames[] = { "self", NULL };
1917
1918 self = self;
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1920 return NULL;
1921 if (_argo0) {
1922 if (_argo0 == Py_None) { _arg0 = NULL; }
1923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1925 return NULL;
1926 }
1927 }
1928 {
1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
1930 _result = (long )wxBitmap_GetHandle(_arg0);
1931
1932 wxPyEndAllowThreads(__tstate);
1933 if (PyErr_Occurred()) return NULL;
1934 } _resultobj = Py_BuildValue("l",_result);
1935 return _resultobj;
1936 }
1937
1938 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1939 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject * _resultobj;
1941 wxBitmap * _arg0;
1942 long _arg1;
1943 PyObject * _argo0 = 0;
1944 char *_kwnames[] = { "self","handle", NULL };
1945
1946 self = self;
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1948 return NULL;
1949 if (_argo0) {
1950 if (_argo0 == Py_None) { _arg0 = NULL; }
1951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1953 return NULL;
1954 }
1955 }
1956 {
1957 PyThreadState* __tstate = wxPyBeginAllowThreads();
1958 wxBitmap_SetHandle(_arg0,_arg1);
1959
1960 wxPyEndAllowThreads(__tstate);
1961 if (PyErr_Occurred()) return NULL;
1962 } Py_INCREF(Py_None);
1963 _resultobj = Py_None;
1964 return _resultobj;
1965 }
1966
1967 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1968 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1969 PyObject * _resultobj;
1970 bool _result;
1971 wxBitmap * _arg0;
1972 PyObject * _argo0 = 0;
1973 char *_kwnames[] = { "self", NULL };
1974
1975 self = self;
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1977 return NULL;
1978 if (_argo0) {
1979 if (_argo0 == Py_None) { _arg0 = NULL; }
1980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1982 return NULL;
1983 }
1984 }
1985 {
1986 PyThreadState* __tstate = wxPyBeginAllowThreads();
1987 _result = (bool )wxBitmap_Ok(_arg0);
1988
1989 wxPyEndAllowThreads(__tstate);
1990 if (PyErr_Occurred()) return NULL;
1991 } _resultobj = Py_BuildValue("i",_result);
1992 return _resultobj;
1993 }
1994
1995 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1996 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1997 PyObject * _resultobj;
1998 int _result;
1999 wxBitmap * _arg0;
2000 PyObject * _argo0 = 0;
2001 char *_kwnames[] = { "self", NULL };
2002
2003 self = self;
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
2005 return NULL;
2006 if (_argo0) {
2007 if (_argo0 == Py_None) { _arg0 = NULL; }
2008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
2010 return NULL;
2011 }
2012 }
2013 {
2014 PyThreadState* __tstate = wxPyBeginAllowThreads();
2015 _result = (int )wxBitmap_GetWidth(_arg0);
2016
2017 wxPyEndAllowThreads(__tstate);
2018 if (PyErr_Occurred()) return NULL;
2019 } _resultobj = Py_BuildValue("i",_result);
2020 return _resultobj;
2021 }
2022
2023 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
2024 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2025 PyObject * _resultobj;
2026 int _result;
2027 wxBitmap * _arg0;
2028 PyObject * _argo0 = 0;
2029 char *_kwnames[] = { "self", NULL };
2030
2031 self = self;
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
2033 return NULL;
2034 if (_argo0) {
2035 if (_argo0 == Py_None) { _arg0 = NULL; }
2036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
2038 return NULL;
2039 }
2040 }
2041 {
2042 PyThreadState* __tstate = wxPyBeginAllowThreads();
2043 _result = (int )wxBitmap_GetHeight(_arg0);
2044
2045 wxPyEndAllowThreads(__tstate);
2046 if (PyErr_Occurred()) return NULL;
2047 } _resultobj = Py_BuildValue("i",_result);
2048 return _resultobj;
2049 }
2050
2051 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
2052 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2053 PyObject * _resultobj;
2054 int _result;
2055 wxBitmap * _arg0;
2056 PyObject * _argo0 = 0;
2057 char *_kwnames[] = { "self", NULL };
2058
2059 self = self;
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
2061 return NULL;
2062 if (_argo0) {
2063 if (_argo0 == Py_None) { _arg0 = NULL; }
2064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
2066 return NULL;
2067 }
2068 }
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 _result = (int )wxBitmap_GetDepth(_arg0);
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) return NULL;
2075 } _resultobj = Py_BuildValue("i",_result);
2076 return _resultobj;
2077 }
2078
2079 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2080 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2081 PyObject * _resultobj;
2082 wxBitmap * _arg0;
2083 int _arg1;
2084 PyObject * _argo0 = 0;
2085 char *_kwnames[] = { "self","w", NULL };
2086
2087 self = self;
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
2089 return NULL;
2090 if (_argo0) {
2091 if (_argo0 == Py_None) { _arg0 = NULL; }
2092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2094 return NULL;
2095 }
2096 }
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 wxBitmap_SetWidth(_arg0,_arg1);
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) return NULL;
2103 } Py_INCREF(Py_None);
2104 _resultobj = Py_None;
2105 return _resultobj;
2106 }
2107
2108 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2109 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2110 PyObject * _resultobj;
2111 wxBitmap * _arg0;
2112 int _arg1;
2113 PyObject * _argo0 = 0;
2114 char *_kwnames[] = { "self","h", NULL };
2115
2116 self = self;
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2118 return NULL;
2119 if (_argo0) {
2120 if (_argo0 == Py_None) { _arg0 = NULL; }
2121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2123 return NULL;
2124 }
2125 }
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 wxBitmap_SetHeight(_arg0,_arg1);
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) return NULL;
2132 } Py_INCREF(Py_None);
2133 _resultobj = Py_None;
2134 return _resultobj;
2135 }
2136
2137 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2138 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject * _resultobj;
2140 wxBitmap * _arg0;
2141 int _arg1;
2142 PyObject * _argo0 = 0;
2143 char *_kwnames[] = { "self","d", NULL };
2144
2145 self = self;
2146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2147 return NULL;
2148 if (_argo0) {
2149 if (_argo0 == Py_None) { _arg0 = NULL; }
2150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2152 return NULL;
2153 }
2154 }
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 wxBitmap_SetDepth(_arg0,_arg1);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) return NULL;
2161 } Py_INCREF(Py_None);
2162 _resultobj = Py_None;
2163 return _resultobj;
2164 }
2165
2166 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2167 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject * _resultobj;
2169 wxBitmap * _arg0;
2170 wxSize * _arg1;
2171 PyObject * _argo0 = 0;
2172 wxSize temp;
2173 PyObject * _obj1 = 0;
2174 char *_kwnames[] = { "self","size", NULL };
2175
2176 self = self;
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2178 return NULL;
2179 if (_argo0) {
2180 if (_argo0 == Py_None) { _arg0 = NULL; }
2181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2183 return NULL;
2184 }
2185 }
2186 {
2187 _arg1 = &temp;
2188 if (! wxSize_helper(_obj1, &_arg1))
2189 return NULL;
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 wxBitmap_SetSize(_arg0,*_arg1);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) return NULL;
2197 } Py_INCREF(Py_None);
2198 _resultobj = Py_None;
2199 return _resultobj;
2200 }
2201
2202 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2203 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2204 PyObject * _resultobj;
2205 wxBitmap * _result;
2206 wxBitmap * _arg0;
2207 wxRect * _arg1;
2208 PyObject * _argo0 = 0;
2209 wxRect temp;
2210 PyObject * _obj1 = 0;
2211 char *_kwnames[] = { "self","rect", NULL };
2212 char _ptemp[128];
2213
2214 self = self;
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2216 return NULL;
2217 if (_argo0) {
2218 if (_argo0 == Py_None) { _arg0 = NULL; }
2219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2221 return NULL;
2222 }
2223 }
2224 {
2225 _arg1 = &temp;
2226 if (! wxRect_helper(_obj1, &_arg1))
2227 return NULL;
2228 }
2229 {
2230 PyThreadState* __tstate = wxPyBeginAllowThreads();
2231 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2232
2233 wxPyEndAllowThreads(__tstate);
2234 if (PyErr_Occurred()) return NULL;
2235 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2236 _resultobj = Py_BuildValue("s",_ptemp);
2237 return _resultobj;
2238 }
2239
2240 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2241 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject * _resultobj;
2243 bool _result;
2244 wxBitmap * _arg0;
2245 wxIcon * _arg1;
2246 PyObject * _argo0 = 0;
2247 PyObject * _argo1 = 0;
2248 char *_kwnames[] = { "self","icon", NULL };
2249
2250 self = self;
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2252 return NULL;
2253 if (_argo0) {
2254 if (_argo0 == Py_None) { _arg0 = NULL; }
2255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2257 return NULL;
2258 }
2259 }
2260 if (_argo1) {
2261 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2262 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2263 return NULL;
2264 }
2265 }
2266 {
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) return NULL;
2272 } _resultobj = Py_BuildValue("i",_result);
2273 return _resultobj;
2274 }
2275
2276 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2277 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject * _resultobj;
2279 bool _result;
2280 wxBitmap * _arg0;
2281 wxCursor * _arg1;
2282 PyObject * _argo0 = 0;
2283 PyObject * _argo1 = 0;
2284 char *_kwnames[] = { "self","cursor", NULL };
2285
2286 self = self;
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2288 return NULL;
2289 if (_argo0) {
2290 if (_argo0 == Py_None) { _arg0 = NULL; }
2291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2293 return NULL;
2294 }
2295 }
2296 if (_argo1) {
2297 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2298 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2299 return NULL;
2300 }
2301 }
2302 {
2303 PyThreadState* __tstate = wxPyBeginAllowThreads();
2304 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2305
2306 wxPyEndAllowThreads(__tstate);
2307 if (PyErr_Occurred()) return NULL;
2308 } _resultobj = Py_BuildValue("i",_result);
2309 return _resultobj;
2310 }
2311
2312 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2313 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2314 PyObject * _resultobj;
2315 int _result;
2316 wxBitmap * _arg0;
2317 PyObject * _argo0 = 0;
2318 char *_kwnames[] = { "self", NULL };
2319
2320 self = self;
2321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2322 return NULL;
2323 if (_argo0) {
2324 if (_argo0 == Py_None) { _arg0 = NULL; }
2325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2327 return NULL;
2328 }
2329 }
2330 {
2331 PyThreadState* __tstate = wxPyBeginAllowThreads();
2332 _result = (int )wxBitmap_GetQuality(_arg0);
2333
2334 wxPyEndAllowThreads(__tstate);
2335 if (PyErr_Occurred()) return NULL;
2336 } _resultobj = Py_BuildValue("i",_result);
2337 return _resultobj;
2338 }
2339
2340 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2341 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2342 PyObject * _resultobj;
2343 wxBitmap * _arg0;
2344 int _arg1;
2345 PyObject * _argo0 = 0;
2346 char *_kwnames[] = { "self","q", NULL };
2347
2348 self = self;
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2350 return NULL;
2351 if (_argo0) {
2352 if (_argo0 == Py_None) { _arg0 = NULL; }
2353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2355 return NULL;
2356 }
2357 }
2358 {
2359 PyThreadState* __tstate = wxPyBeginAllowThreads();
2360 wxBitmap_SetQuality(_arg0,_arg1);
2361
2362 wxPyEndAllowThreads(__tstate);
2363 if (PyErr_Occurred()) return NULL;
2364 } Py_INCREF(Py_None);
2365 _resultobj = Py_None;
2366 return _resultobj;
2367 }
2368
2369 static void *SwigwxMaskTowxObject(void *ptr) {
2370 wxMask *src;
2371 wxObject *dest;
2372 src = (wxMask *) ptr;
2373 dest = (wxObject *) src;
2374 return (void *) dest;
2375 }
2376
2377 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2378 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2379 PyObject * _resultobj;
2380 wxMask * _result;
2381 wxBitmap * _arg0;
2382 PyObject * _argo0 = 0;
2383 char *_kwnames[] = { "bitmap", NULL };
2384 char _ptemp[128];
2385
2386 self = self;
2387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2388 return NULL;
2389 if (_argo0) {
2390 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2392 return NULL;
2393 }
2394 }
2395 {
2396 PyThreadState* __tstate = wxPyBeginAllowThreads();
2397 _result = (wxMask *)new_wxMask(*_arg0);
2398
2399 wxPyEndAllowThreads(__tstate);
2400 if (PyErr_Occurred()) return NULL;
2401 } if (_result) {
2402 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2403 _resultobj = Py_BuildValue("s",_ptemp);
2404 } else {
2405 Py_INCREF(Py_None);
2406 _resultobj = Py_None;
2407 }
2408 return _resultobj;
2409 }
2410
2411 static void wxMask_Destroy(wxMask *self) { delete self; }
2412 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2413 PyObject * _resultobj;
2414 wxMask * _arg0;
2415 PyObject * _argo0 = 0;
2416 char *_kwnames[] = { "self", NULL };
2417
2418 self = self;
2419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2420 return NULL;
2421 if (_argo0) {
2422 if (_argo0 == Py_None) { _arg0 = NULL; }
2423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2425 return NULL;
2426 }
2427 }
2428 {
2429 PyThreadState* __tstate = wxPyBeginAllowThreads();
2430 wxMask_Destroy(_arg0);
2431
2432 wxPyEndAllowThreads(__tstate);
2433 if (PyErr_Occurred()) return NULL;
2434 } Py_INCREF(Py_None);
2435 _resultobj = Py_None;
2436 return _resultobj;
2437 }
2438
2439 static void *SwigwxIconTowxGDIObject(void *ptr) {
2440 wxIcon *src;
2441 wxGDIObject *dest;
2442 src = (wxIcon *) ptr;
2443 dest = (wxGDIObject *) src;
2444 return (void *) dest;
2445 }
2446
2447 static void *SwigwxIconTowxObject(void *ptr) {
2448 wxIcon *src;
2449 wxObject *dest;
2450 src = (wxIcon *) ptr;
2451 dest = (wxObject *) src;
2452 return (void *) dest;
2453 }
2454
2455 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2456 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2457 PyObject * _resultobj;
2458 wxIcon * _result;
2459 wxString * _arg0;
2460 long _arg1;
2461 int _arg2 = (int ) -1;
2462 int _arg3 = (int ) -1;
2463 PyObject * _obj0 = 0;
2464 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2465 char _ptemp[128];
2466
2467 self = self;
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2469 return NULL;
2470 {
2471 _arg0 = wxString_in_helper(_obj0);
2472 if (_arg0 == NULL)
2473 return NULL;
2474 }
2475 {
2476 PyThreadState* __tstate = wxPyBeginAllowThreads();
2477 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2478
2479 wxPyEndAllowThreads(__tstate);
2480 if (PyErr_Occurred()) return NULL;
2481 } if (_result) {
2482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2483 _resultobj = Py_BuildValue("s",_ptemp);
2484 } else {
2485 Py_INCREF(Py_None);
2486 _resultobj = Py_None;
2487 }
2488 {
2489 if (_obj0)
2490 delete _arg0;
2491 }
2492 return _resultobj;
2493 }
2494
2495 #define delete_wxIcon(_swigobj) (delete _swigobj)
2496 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2497 PyObject * _resultobj;
2498 wxIcon * _arg0;
2499 PyObject * _argo0 = 0;
2500 char *_kwnames[] = { "self", NULL };
2501
2502 self = self;
2503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2504 return NULL;
2505 if (_argo0) {
2506 if (_argo0 == Py_None) { _arg0 = NULL; }
2507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2509 return NULL;
2510 }
2511 }
2512 {
2513 PyThreadState* __tstate = wxPyBeginAllowThreads();
2514 delete_wxIcon(_arg0);
2515
2516 wxPyEndAllowThreads(__tstate);
2517 if (PyErr_Occurred()) return NULL;
2518 } Py_INCREF(Py_None);
2519 _resultobj = Py_None;
2520 return _resultobj;
2521 }
2522
2523 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2524 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2525 PyObject * _resultobj;
2526 bool _result;
2527 wxIcon * _arg0;
2528 wxString * _arg1;
2529 long _arg2;
2530 PyObject * _argo0 = 0;
2531 PyObject * _obj1 = 0;
2532 char *_kwnames[] = { "self","name","flags", NULL };
2533
2534 self = self;
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2536 return NULL;
2537 if (_argo0) {
2538 if (_argo0 == Py_None) { _arg0 = NULL; }
2539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2541 return NULL;
2542 }
2543 }
2544 {
2545 _arg1 = wxString_in_helper(_obj1);
2546 if (_arg1 == NULL)
2547 return NULL;
2548 }
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) return NULL;
2555 } _resultobj = Py_BuildValue("i",_result);
2556 {
2557 if (_obj1)
2558 delete _arg1;
2559 }
2560 return _resultobj;
2561 }
2562
2563 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2564 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject * _resultobj;
2566 long _result;
2567 wxIcon * _arg0;
2568 PyObject * _argo0 = 0;
2569 char *_kwnames[] = { "self", NULL };
2570
2571 self = self;
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2573 return NULL;
2574 if (_argo0) {
2575 if (_argo0 == Py_None) { _arg0 = NULL; }
2576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2578 return NULL;
2579 }
2580 }
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 _result = (long )wxIcon_GetHandle(_arg0);
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) return NULL;
2587 } _resultobj = Py_BuildValue("l",_result);
2588 return _resultobj;
2589 }
2590
2591 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2592 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2593 PyObject * _resultobj;
2594 wxIcon * _arg0;
2595 long _arg1;
2596 PyObject * _argo0 = 0;
2597 char *_kwnames[] = { "self","handle", NULL };
2598
2599 self = self;
2600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2601 return NULL;
2602 if (_argo0) {
2603 if (_argo0 == Py_None) { _arg0 = NULL; }
2604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2606 return NULL;
2607 }
2608 }
2609 {
2610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2611 wxIcon_SetHandle(_arg0,_arg1);
2612
2613 wxPyEndAllowThreads(__tstate);
2614 if (PyErr_Occurred()) return NULL;
2615 } Py_INCREF(Py_None);
2616 _resultobj = Py_None;
2617 return _resultobj;
2618 }
2619
2620 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2621 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject * _resultobj;
2623 bool _result;
2624 wxIcon * _arg0;
2625 PyObject * _argo0 = 0;
2626 char *_kwnames[] = { "self", NULL };
2627
2628 self = self;
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2630 return NULL;
2631 if (_argo0) {
2632 if (_argo0 == Py_None) { _arg0 = NULL; }
2633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2635 return NULL;
2636 }
2637 }
2638 {
2639 PyThreadState* __tstate = wxPyBeginAllowThreads();
2640 _result = (bool )wxIcon_Ok(_arg0);
2641
2642 wxPyEndAllowThreads(__tstate);
2643 if (PyErr_Occurred()) return NULL;
2644 } _resultobj = Py_BuildValue("i",_result);
2645 return _resultobj;
2646 }
2647
2648 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2649 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject * _resultobj;
2651 int _result;
2652 wxIcon * _arg0;
2653 PyObject * _argo0 = 0;
2654 char *_kwnames[] = { "self", NULL };
2655
2656 self = self;
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2658 return NULL;
2659 if (_argo0) {
2660 if (_argo0 == Py_None) { _arg0 = NULL; }
2661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2663 return NULL;
2664 }
2665 }
2666 {
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
2668 _result = (int )wxIcon_GetWidth(_arg0);
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) return NULL;
2672 } _resultobj = Py_BuildValue("i",_result);
2673 return _resultobj;
2674 }
2675
2676 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2677 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2678 PyObject * _resultobj;
2679 int _result;
2680 wxIcon * _arg0;
2681 PyObject * _argo0 = 0;
2682 char *_kwnames[] = { "self", NULL };
2683
2684 self = self;
2685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2686 return NULL;
2687 if (_argo0) {
2688 if (_argo0 == Py_None) { _arg0 = NULL; }
2689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2691 return NULL;
2692 }
2693 }
2694 {
2695 PyThreadState* __tstate = wxPyBeginAllowThreads();
2696 _result = (int )wxIcon_GetHeight(_arg0);
2697
2698 wxPyEndAllowThreads(__tstate);
2699 if (PyErr_Occurred()) return NULL;
2700 } _resultobj = Py_BuildValue("i",_result);
2701 return _resultobj;
2702 }
2703
2704 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2705 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 int _result;
2708 wxIcon * _arg0;
2709 PyObject * _argo0 = 0;
2710 char *_kwnames[] = { "self", NULL };
2711
2712 self = self;
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2714 return NULL;
2715 if (_argo0) {
2716 if (_argo0 == Py_None) { _arg0 = NULL; }
2717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2719 return NULL;
2720 }
2721 }
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 _result = (int )wxIcon_GetDepth(_arg0);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) return NULL;
2728 } _resultobj = Py_BuildValue("i",_result);
2729 return _resultobj;
2730 }
2731
2732 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2733 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject * _resultobj;
2735 wxIcon * _arg0;
2736 int _arg1;
2737 PyObject * _argo0 = 0;
2738 char *_kwnames[] = { "self","w", NULL };
2739
2740 self = self;
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2742 return NULL;
2743 if (_argo0) {
2744 if (_argo0 == Py_None) { _arg0 = NULL; }
2745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2747 return NULL;
2748 }
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 wxIcon_SetWidth(_arg0,_arg1);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) return NULL;
2756 } Py_INCREF(Py_None);
2757 _resultobj = Py_None;
2758 return _resultobj;
2759 }
2760
2761 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2762 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2763 PyObject * _resultobj;
2764 wxIcon * _arg0;
2765 int _arg1;
2766 PyObject * _argo0 = 0;
2767 char *_kwnames[] = { "self","h", NULL };
2768
2769 self = self;
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2771 return NULL;
2772 if (_argo0) {
2773 if (_argo0 == Py_None) { _arg0 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2776 return NULL;
2777 }
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 wxIcon_SetHeight(_arg0,_arg1);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) return NULL;
2785 } Py_INCREF(Py_None);
2786 _resultobj = Py_None;
2787 return _resultobj;
2788 }
2789
2790 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2791 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject * _resultobj;
2793 wxIcon * _arg0;
2794 int _arg1;
2795 PyObject * _argo0 = 0;
2796 char *_kwnames[] = { "self","d", NULL };
2797
2798 self = self;
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2800 return NULL;
2801 if (_argo0) {
2802 if (_argo0 == Py_None) { _arg0 = NULL; }
2803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2805 return NULL;
2806 }
2807 }
2808 {
2809 PyThreadState* __tstate = wxPyBeginAllowThreads();
2810 wxIcon_SetDepth(_arg0,_arg1);
2811
2812 wxPyEndAllowThreads(__tstate);
2813 if (PyErr_Occurred()) return NULL;
2814 } Py_INCREF(Py_None);
2815 _resultobj = Py_None;
2816 return _resultobj;
2817 }
2818
2819 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2820 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2821 PyObject * _resultobj;
2822 wxIcon * _arg0;
2823 wxSize * _arg1;
2824 PyObject * _argo0 = 0;
2825 wxSize temp;
2826 PyObject * _obj1 = 0;
2827 char *_kwnames[] = { "self","size", NULL };
2828
2829 self = self;
2830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2831 return NULL;
2832 if (_argo0) {
2833 if (_argo0 == Py_None) { _arg0 = NULL; }
2834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2836 return NULL;
2837 }
2838 }
2839 {
2840 _arg1 = &temp;
2841 if (! wxSize_helper(_obj1, &_arg1))
2842 return NULL;
2843 }
2844 {
2845 PyThreadState* __tstate = wxPyBeginAllowThreads();
2846 wxIcon_SetSize(_arg0,*_arg1);
2847
2848 wxPyEndAllowThreads(__tstate);
2849 if (PyErr_Occurred()) return NULL;
2850 } Py_INCREF(Py_None);
2851 _resultobj = Py_None;
2852 return _resultobj;
2853 }
2854
2855 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2856 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2857 PyObject * _resultobj;
2858 wxIcon * _arg0;
2859 wxBitmap * _arg1;
2860 PyObject * _argo0 = 0;
2861 PyObject * _argo1 = 0;
2862 char *_kwnames[] = { "self","bmp", NULL };
2863
2864 self = self;
2865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2866 return NULL;
2867 if (_argo0) {
2868 if (_argo0 == Py_None) { _arg0 = NULL; }
2869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2871 return NULL;
2872 }
2873 }
2874 if (_argo1) {
2875 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2876 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2877 return NULL;
2878 }
2879 }
2880 {
2881 PyThreadState* __tstate = wxPyBeginAllowThreads();
2882 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2883
2884 wxPyEndAllowThreads(__tstate);
2885 if (PyErr_Occurred()) return NULL;
2886 } Py_INCREF(Py_None);
2887 _resultobj = Py_None;
2888 return _resultobj;
2889 }
2890
2891 static wxIconLocation *new_wxIconLocation(const wxString *filename,int num) {
2892 #ifdef __WXMSW__
2893 return new wxIconLocation(*filename, num);
2894 #else
2895 return new wxIconLocation(*filename);
2896 #endif
2897 }
2898
2899 static PyObject *_wrap_new_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject * _resultobj;
2901 wxIconLocation * _result;
2902 wxString * _arg0 = (wxString *) &wxPyEmptyString;
2903 int _arg1 = (int ) 0;
2904 PyObject * _obj0 = 0;
2905 char *_kwnames[] = { "filename","num", NULL };
2906 char _ptemp[128];
2907
2908 self = self;
2909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxIconLocation",_kwnames,&_obj0,&_arg1))
2910 return NULL;
2911 if (_obj0)
2912 {
2913 _arg0 = wxString_in_helper(_obj0);
2914 if (_arg0 == NULL)
2915 return NULL;
2916 }
2917 {
2918 PyThreadState* __tstate = wxPyBeginAllowThreads();
2919 _result = (wxIconLocation *)new_wxIconLocation(_arg0,_arg1);
2920
2921 wxPyEndAllowThreads(__tstate);
2922 if (PyErr_Occurred()) return NULL;
2923 } if (_result) {
2924 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconLocation_p");
2925 _resultobj = Py_BuildValue("s",_ptemp);
2926 } else {
2927 Py_INCREF(Py_None);
2928 _resultobj = Py_None;
2929 }
2930 {
2931 if (_obj0)
2932 delete _arg0;
2933 }
2934 return _resultobj;
2935 }
2936
2937 #define delete_wxIconLocation(_swigobj) (delete _swigobj)
2938 static PyObject *_wrap_delete_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject * _resultobj;
2940 wxIconLocation * _arg0;
2941 PyObject * _argo0 = 0;
2942 char *_kwnames[] = { "self", NULL };
2943
2944 self = self;
2945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconLocation",_kwnames,&_argo0))
2946 return NULL;
2947 if (_argo0) {
2948 if (_argo0 == Py_None) { _arg0 = NULL; }
2949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconLocation. Expected _wxIconLocation_p.");
2951 return NULL;
2952 }
2953 }
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 delete_wxIconLocation(_arg0);
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) return NULL;
2960 } Py_INCREF(Py_None);
2961 _resultobj = Py_None;
2962 return _resultobj;
2963 }
2964
2965 #define wxIconLocation_IsOk(_swigobj) (_swigobj->IsOk())
2966 static PyObject *_wrap_wxIconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
2967 PyObject * _resultobj;
2968 bool _result;
2969 wxIconLocation * _arg0;
2970 PyObject * _argo0 = 0;
2971 char *_kwnames[] = { "self", NULL };
2972
2973 self = self;
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_IsOk",_kwnames,&_argo0))
2975 return NULL;
2976 if (_argo0) {
2977 if (_argo0 == Py_None) { _arg0 = NULL; }
2978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_IsOk. Expected _wxIconLocation_p.");
2980 return NULL;
2981 }
2982 }
2983 {
2984 PyThreadState* __tstate = wxPyBeginAllowThreads();
2985 _result = (bool )wxIconLocation_IsOk(_arg0);
2986
2987 wxPyEndAllowThreads(__tstate);
2988 if (PyErr_Occurred()) return NULL;
2989 } _resultobj = Py_BuildValue("i",_result);
2990 return _resultobj;
2991 }
2992
2993 #define wxIconLocation_SetFileName(_swigobj,_swigarg0) (_swigobj->SetFileName(_swigarg0))
2994 static PyObject *_wrap_wxIconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
2995 PyObject * _resultobj;
2996 wxIconLocation * _arg0;
2997 wxString * _arg1;
2998 PyObject * _argo0 = 0;
2999 PyObject * _obj1 = 0;
3000 char *_kwnames[] = { "self","filename", NULL };
3001
3002 self = self;
3003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconLocation_SetFileName",_kwnames,&_argo0,&_obj1))
3004 return NULL;
3005 if (_argo0) {
3006 if (_argo0 == Py_None) { _arg0 = NULL; }
3007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
3008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetFileName. Expected _wxIconLocation_p.");
3009 return NULL;
3010 }
3011 }
3012 {
3013 _arg1 = wxString_in_helper(_obj1);
3014 if (_arg1 == NULL)
3015 return NULL;
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 wxIconLocation_SetFileName(_arg0,*_arg1);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) return NULL;
3023 } Py_INCREF(Py_None);
3024 _resultobj = Py_None;
3025 {
3026 if (_obj1)
3027 delete _arg1;
3028 }
3029 return _resultobj;
3030 }
3031
3032 #define wxIconLocation_GetFileName(_swigobj) (_swigobj->GetFileName())
3033 static PyObject *_wrap_wxIconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject * _resultobj;
3035 wxString * _result;
3036 wxIconLocation * _arg0;
3037 PyObject * _argo0 = 0;
3038 char *_kwnames[] = { "self", NULL };
3039
3040 self = self;
3041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetFileName",_kwnames,&_argo0))
3042 return NULL;
3043 if (_argo0) {
3044 if (_argo0 == Py_None) { _arg0 = NULL; }
3045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
3046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetFileName. Expected _wxIconLocation_p.");
3047 return NULL;
3048 }
3049 }
3050 {
3051 PyThreadState* __tstate = wxPyBeginAllowThreads();
3052 const wxString & _result_ref = wxIconLocation_GetFileName(_arg0);
3053 _result = (wxString *) &_result_ref;
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) return NULL;
3057 }{
3058 #if wxUSE_UNICODE
3059 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3060 #else
3061 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3062 #endif
3063 }
3064 return _resultobj;
3065 }
3066
3067 static void wxIconLocation_SetIndex(wxIconLocation *self,int num) {
3068 #ifdef __WXMSW__
3069 self->SetIndex(num);
3070 #else
3071 // do nothing
3072 #endif
3073 }
3074 static PyObject *_wrap_wxIconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3075 PyObject * _resultobj;
3076 wxIconLocation * _arg0;
3077 int _arg1;
3078 PyObject * _argo0 = 0;
3079 char *_kwnames[] = { "self","num", NULL };
3080
3081 self = self;
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIconLocation_SetIndex",_kwnames,&_argo0,&_arg1))
3083 return NULL;
3084 if (_argo0) {
3085 if (_argo0 == Py_None) { _arg0 = NULL; }
3086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
3087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetIndex. Expected _wxIconLocation_p.");
3088 return NULL;
3089 }
3090 }
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 wxIconLocation_SetIndex(_arg0,_arg1);
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) return NULL;
3097 } Py_INCREF(Py_None);
3098 _resultobj = Py_None;
3099 return _resultobj;
3100 }
3101
3102 static int wxIconLocation_GetIndex(wxIconLocation *self) {
3103 #ifdef __WXMSW__
3104 return self->GetIndex();
3105 #else
3106 return -1;
3107 #endif
3108 }
3109 static PyObject *_wrap_wxIconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3110 PyObject * _resultobj;
3111 int _result;
3112 wxIconLocation * _arg0;
3113 PyObject * _argo0 = 0;
3114 char *_kwnames[] = { "self", NULL };
3115
3116 self = self;
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetIndex",_kwnames,&_argo0))
3118 return NULL;
3119 if (_argo0) {
3120 if (_argo0 == Py_None) { _arg0 = NULL; }
3121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
3122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetIndex. Expected _wxIconLocation_p.");
3123 return NULL;
3124 }
3125 }
3126 {
3127 PyThreadState* __tstate = wxPyBeginAllowThreads();
3128 _result = (int )wxIconLocation_GetIndex(_arg0);
3129
3130 wxPyEndAllowThreads(__tstate);
3131 if (PyErr_Occurred()) return NULL;
3132 } _resultobj = Py_BuildValue("i",_result);
3133 return _resultobj;
3134 }
3135
3136 #define new_wxIconBundle() (new wxIconBundle())
3137 static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3138 PyObject * _resultobj;
3139 wxIconBundle * _result;
3140 char *_kwnames[] = { NULL };
3141 char _ptemp[128];
3142
3143 self = self;
3144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames))
3145 return NULL;
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 _result = (wxIconBundle *)new_wxIconBundle();
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) return NULL;
3152 } if (_result) {
3153 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
3154 _resultobj = Py_BuildValue("s",_ptemp);
3155 } else {
3156 Py_INCREF(Py_None);
3157 _resultobj = Py_None;
3158 }
3159 return _resultobj;
3160 }
3161
3162 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
3163 static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject * _resultobj;
3165 wxIconBundle * _result;
3166 wxString * _arg0;
3167 long _arg1;
3168 PyObject * _obj0 = 0;
3169 char *_kwnames[] = { "file","type", NULL };
3170 char _ptemp[128];
3171
3172 self = self;
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1))
3174 return NULL;
3175 {
3176 _arg0 = wxString_in_helper(_obj0);
3177 if (_arg0 == NULL)
3178 return NULL;
3179 }
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
3182 _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1);
3183
3184 wxPyEndAllowThreads(__tstate);
3185 if (PyErr_Occurred()) return NULL;
3186 } if (_result) {
3187 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
3188 _resultobj = Py_BuildValue("s",_ptemp);
3189 } else {
3190 Py_INCREF(Py_None);
3191 _resultobj = Py_None;
3192 }
3193 {
3194 if (_obj0)
3195 delete _arg0;
3196 }
3197 return _resultobj;
3198 }
3199
3200 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
3201 static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject * _resultobj;
3203 wxIconBundle * _result;
3204 wxIcon * _arg0;
3205 PyObject * _argo0 = 0;
3206 char *_kwnames[] = { "icon", NULL };
3207 char _ptemp[128];
3208
3209 self = self;
3210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0))
3211 return NULL;
3212 if (_argo0) {
3213 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
3214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
3215 return NULL;
3216 }
3217 }
3218 {
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0);
3221
3222 wxPyEndAllowThreads(__tstate);
3223 if (PyErr_Occurred()) return NULL;
3224 } if (_result) {
3225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
3226 _resultobj = Py_BuildValue("s",_ptemp);
3227 } else {
3228 Py_INCREF(Py_None);
3229 _resultobj = Py_None;
3230 }
3231 return _resultobj;
3232 }
3233
3234 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
3235 static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3236 PyObject * _resultobj;
3237 wxIconBundle * _arg0;
3238 PyObject * _argo0 = 0;
3239 char *_kwnames[] = { "self", NULL };
3240
3241 self = self;
3242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0))
3243 return NULL;
3244 if (_argo0) {
3245 if (_argo0 == Py_None) { _arg0 = NULL; }
3246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
3247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
3248 return NULL;
3249 }
3250 }
3251 {
3252 PyThreadState* __tstate = wxPyBeginAllowThreads();
3253 delete_wxIconBundle(_arg0);
3254
3255 wxPyEndAllowThreads(__tstate);
3256 if (PyErr_Occurred()) return NULL;
3257 } Py_INCREF(Py_None);
3258 _resultobj = Py_None;
3259 return _resultobj;
3260 }
3261
3262 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
3263 static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject * _resultobj;
3265 wxIconBundle * _arg0;
3266 wxIcon * _arg1;
3267 PyObject * _argo0 = 0;
3268 PyObject * _argo1 = 0;
3269 char *_kwnames[] = { "self","icon", NULL };
3270
3271 self = self;
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1))
3273 return NULL;
3274 if (_argo0) {
3275 if (_argo0 == Py_None) { _arg0 = NULL; }
3276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
3277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
3278 return NULL;
3279 }
3280 }
3281 if (_argo1) {
3282 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
3283 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
3284 return NULL;
3285 }
3286 }
3287 {
3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
3289 wxIconBundle_AddIcon(_arg0,*_arg1);
3290
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) return NULL;
3293 } Py_INCREF(Py_None);
3294 _resultobj = Py_None;
3295 return _resultobj;
3296 }
3297
3298 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
3299 static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3300 PyObject * _resultobj;
3301 wxIconBundle * _arg0;
3302 wxString * _arg1;
3303 long _arg2;
3304 PyObject * _argo0 = 0;
3305 PyObject * _obj1 = 0;
3306 char *_kwnames[] = { "self","file","type", NULL };
3307
3308 self = self;
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2))
3310 return NULL;
3311 if (_argo0) {
3312 if (_argo0 == Py_None) { _arg0 = NULL; }
3313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
3314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
3315 return NULL;
3316 }
3317 }
3318 {
3319 _arg1 = wxString_in_helper(_obj1);
3320 if (_arg1 == NULL)
3321 return NULL;
3322 }
3323 {
3324 PyThreadState* __tstate = wxPyBeginAllowThreads();
3325 wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2);
3326
3327 wxPyEndAllowThreads(__tstate);
3328 if (PyErr_Occurred()) return NULL;
3329 } Py_INCREF(Py_None);
3330 _resultobj = Py_None;
3331 {
3332 if (_obj1)
3333 delete _arg1;
3334 }
3335 return _resultobj;
3336 }
3337
3338 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
3339 static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3340 PyObject * _resultobj;
3341 wxIcon * _result;
3342 wxIconBundle * _arg0;
3343 wxSize * _arg1;
3344 PyObject * _argo0 = 0;
3345 wxSize temp;
3346 PyObject * _obj1 = 0;
3347 char *_kwnames[] = { "self","size", NULL };
3348 char _ptemp[128];
3349
3350 self = self;
3351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1))
3352 return NULL;
3353 if (_argo0) {
3354 if (_argo0 == Py_None) { _arg0 = NULL; }
3355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
3356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
3357 return NULL;
3358 }
3359 }
3360 {
3361 _arg1 = &temp;
3362 if (! wxSize_helper(_obj1, &_arg1))
3363 return NULL;
3364 }
3365 {
3366 PyThreadState* __tstate = wxPyBeginAllowThreads();
3367 const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1);
3368 _result = (wxIcon *) &_result_ref;
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) return NULL;
3372 } if (_result) {
3373 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
3374 _resultobj = Py_BuildValue("s",_ptemp);
3375 } else {
3376 Py_INCREF(Py_None);
3377 _resultobj = Py_None;
3378 }
3379 return _resultobj;
3380 }
3381
3382 static void *SwigwxCursorTowxGDIObject(void *ptr) {
3383 wxCursor *src;
3384 wxGDIObject *dest;
3385 src = (wxCursor *) ptr;
3386 dest = (wxGDIObject *) src;
3387 return (void *) dest;
3388 }
3389
3390 static void *SwigwxCursorTowxObject(void *ptr) {
3391 wxCursor *src;
3392 wxObject *dest;
3393 src = (wxCursor *) ptr;
3394 dest = (wxObject *) src;
3395 return (void *) dest;
3396 }
3397
3398 static wxCursor *new_wxCursor(const wxString *cursorName,long flags,int hotSpotX,int hotSpotY) {
3399 #ifdef __WXGTK__
3400 wxCHECK_MSG(FALSE, NULL,
3401 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
3402 #else
3403 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
3404 #endif
3405 }
3406
3407 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3408 PyObject * _resultobj;
3409 wxCursor * _result;
3410 wxString * _arg0;
3411 long _arg1;
3412 int _arg2 = (int ) 0;
3413 int _arg3 = (int ) 0;
3414 PyObject * _obj0 = 0;
3415 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
3416 char _ptemp[128];
3417
3418 self = self;
3419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
3420 return NULL;
3421 {
3422 _arg0 = wxString_in_helper(_obj0);
3423 if (_arg0 == NULL)
3424 return NULL;
3425 }
3426 {
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 _result = (wxCursor *)new_wxCursor(_arg0,_arg1,_arg2,_arg3);
3429
3430 wxPyEndAllowThreads(__tstate);
3431 if (PyErr_Occurred()) return NULL;
3432 } if (_result) {
3433 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
3434 _resultobj = Py_BuildValue("s",_ptemp);
3435 } else {
3436 Py_INCREF(Py_None);
3437 _resultobj = Py_None;
3438 }
3439 {
3440 if (_obj0)
3441 delete _arg0;
3442 }
3443 return _resultobj;
3444 }
3445
3446 #define delete_wxCursor(_swigobj) (delete _swigobj)
3447 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject * _resultobj;
3449 wxCursor * _arg0;
3450 PyObject * _argo0 = 0;
3451 char *_kwnames[] = { "self", NULL };
3452
3453 self = self;
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
3455 return NULL;
3456 if (_argo0) {
3457 if (_argo0 == Py_None) { _arg0 = NULL; }
3458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
3460 return NULL;
3461 }
3462 }
3463 {
3464 PyThreadState* __tstate = wxPyBeginAllowThreads();
3465 delete_wxCursor(_arg0);
3466
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) return NULL;
3469 } Py_INCREF(Py_None);
3470 _resultobj = Py_None;
3471 return _resultobj;
3472 }
3473
3474 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
3475 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3476 PyObject * _resultobj;
3477 long _result;
3478 wxCursor * _arg0;
3479 PyObject * _argo0 = 0;
3480 char *_kwnames[] = { "self", NULL };
3481
3482 self = self;
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
3484 return NULL;
3485 if (_argo0) {
3486 if (_argo0 == Py_None) { _arg0 = NULL; }
3487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
3489 return NULL;
3490 }
3491 }
3492 {
3493 PyThreadState* __tstate = wxPyBeginAllowThreads();
3494 _result = (long )wxCursor_GetHandle(_arg0);
3495
3496 wxPyEndAllowThreads(__tstate);
3497 if (PyErr_Occurred()) return NULL;
3498 } _resultobj = Py_BuildValue("l",_result);
3499 return _resultobj;
3500 }
3501
3502 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
3503 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject * _resultobj;
3505 wxCursor * _arg0;
3506 long _arg1;
3507 PyObject * _argo0 = 0;
3508 char *_kwnames[] = { "self","handle", NULL };
3509
3510 self = self;
3511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
3512 return NULL;
3513 if (_argo0) {
3514 if (_argo0 == Py_None) { _arg0 = NULL; }
3515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
3517 return NULL;
3518 }
3519 }
3520 {
3521 PyThreadState* __tstate = wxPyBeginAllowThreads();
3522 wxCursor_SetHandle(_arg0,_arg1);
3523
3524 wxPyEndAllowThreads(__tstate);
3525 if (PyErr_Occurred()) return NULL;
3526 } Py_INCREF(Py_None);
3527 _resultobj = Py_None;
3528 return _resultobj;
3529 }
3530
3531 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3532 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3533 PyObject * _resultobj;
3534 bool _result;
3535 wxCursor * _arg0;
3536 PyObject * _argo0 = 0;
3537 char *_kwnames[] = { "self", NULL };
3538
3539 self = self;
3540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
3541 return NULL;
3542 if (_argo0) {
3543 if (_argo0 == Py_None) { _arg0 = NULL; }
3544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3546 return NULL;
3547 }
3548 }
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 _result = (bool )wxCursor_Ok(_arg0);
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) return NULL;
3555 } _resultobj = Py_BuildValue("i",_result);
3556 return _resultobj;
3557 }
3558
3559 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3560 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3561 PyObject * _resultobj;
3562 int _result;
3563 wxCursor * _arg0;
3564 PyObject * _argo0 = 0;
3565 char *_kwnames[] = { "self", NULL };
3566
3567 self = self;
3568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
3569 return NULL;
3570 if (_argo0) {
3571 if (_argo0 == Py_None) { _arg0 = NULL; }
3572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3574 return NULL;
3575 }
3576 }
3577 {
3578 PyThreadState* __tstate = wxPyBeginAllowThreads();
3579 _result = (int )wxCursor_GetWidth(_arg0);
3580
3581 wxPyEndAllowThreads(__tstate);
3582 if (PyErr_Occurred()) return NULL;
3583 } _resultobj = Py_BuildValue("i",_result);
3584 return _resultobj;
3585 }
3586
3587 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3588 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3589 PyObject * _resultobj;
3590 int _result;
3591 wxCursor * _arg0;
3592 PyObject * _argo0 = 0;
3593 char *_kwnames[] = { "self", NULL };
3594
3595 self = self;
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3597 return NULL;
3598 if (_argo0) {
3599 if (_argo0 == Py_None) { _arg0 = NULL; }
3600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3602 return NULL;
3603 }
3604 }
3605 {
3606 PyThreadState* __tstate = wxPyBeginAllowThreads();
3607 _result = (int )wxCursor_GetHeight(_arg0);
3608
3609 wxPyEndAllowThreads(__tstate);
3610 if (PyErr_Occurred()) return NULL;
3611 } _resultobj = Py_BuildValue("i",_result);
3612 return _resultobj;
3613 }
3614
3615 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3616 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3617 PyObject * _resultobj;
3618 int _result;
3619 wxCursor * _arg0;
3620 PyObject * _argo0 = 0;
3621 char *_kwnames[] = { "self", NULL };
3622
3623 self = self;
3624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3625 return NULL;
3626 if (_argo0) {
3627 if (_argo0 == Py_None) { _arg0 = NULL; }
3628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3630 return NULL;
3631 }
3632 }
3633 {
3634 PyThreadState* __tstate = wxPyBeginAllowThreads();
3635 _result = (int )wxCursor_GetDepth(_arg0);
3636
3637 wxPyEndAllowThreads(__tstate);
3638 if (PyErr_Occurred()) return NULL;
3639 } _resultobj = Py_BuildValue("i",_result);
3640 return _resultobj;
3641 }
3642
3643 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3644 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3645 PyObject * _resultobj;
3646 wxCursor * _arg0;
3647 int _arg1;
3648 PyObject * _argo0 = 0;
3649 char *_kwnames[] = { "self","w", NULL };
3650
3651 self = self;
3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3653 return NULL;
3654 if (_argo0) {
3655 if (_argo0 == Py_None) { _arg0 = NULL; }
3656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3658 return NULL;
3659 }
3660 }
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 wxCursor_SetWidth(_arg0,_arg1);
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) return NULL;
3667 } Py_INCREF(Py_None);
3668 _resultobj = Py_None;
3669 return _resultobj;
3670 }
3671
3672 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3673 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject * _resultobj;
3675 wxCursor * _arg0;
3676 int _arg1;
3677 PyObject * _argo0 = 0;
3678 char *_kwnames[] = { "self","h", NULL };
3679
3680 self = self;
3681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3682 return NULL;
3683 if (_argo0) {
3684 if (_argo0 == Py_None) { _arg0 = NULL; }
3685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3687 return NULL;
3688 }
3689 }
3690 {
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 wxCursor_SetHeight(_arg0,_arg1);
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) return NULL;
3696 } Py_INCREF(Py_None);
3697 _resultobj = Py_None;
3698 return _resultobj;
3699 }
3700
3701 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3702 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3703 PyObject * _resultobj;
3704 wxCursor * _arg0;
3705 int _arg1;
3706 PyObject * _argo0 = 0;
3707 char *_kwnames[] = { "self","d", NULL };
3708
3709 self = self;
3710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3711 return NULL;
3712 if (_argo0) {
3713 if (_argo0 == Py_None) { _arg0 = NULL; }
3714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3716 return NULL;
3717 }
3718 }
3719 {
3720 PyThreadState* __tstate = wxPyBeginAllowThreads();
3721 wxCursor_SetDepth(_arg0,_arg1);
3722
3723 wxPyEndAllowThreads(__tstate);
3724 if (PyErr_Occurred()) return NULL;
3725 } Py_INCREF(Py_None);
3726 _resultobj = Py_None;
3727 return _resultobj;
3728 }
3729
3730 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3731 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject * _resultobj;
3733 wxCursor * _arg0;
3734 wxSize * _arg1;
3735 PyObject * _argo0 = 0;
3736 wxSize temp;
3737 PyObject * _obj1 = 0;
3738 char *_kwnames[] = { "self","size", NULL };
3739
3740 self = self;
3741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3742 return NULL;
3743 if (_argo0) {
3744 if (_argo0 == Py_None) { _arg0 = NULL; }
3745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3747 return NULL;
3748 }
3749 }
3750 {
3751 _arg1 = &temp;
3752 if (! wxSize_helper(_obj1, &_arg1))
3753 return NULL;
3754 }
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 wxCursor_SetSize(_arg0,*_arg1);
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) return NULL;
3761 } Py_INCREF(Py_None);
3762 _resultobj = Py_None;
3763 return _resultobj;
3764 }
3765
3766 static void *SwigwxColourTowxObject(void *ptr) {
3767 wxColour *src;
3768 wxObject *dest;
3769 src = (wxColour *) ptr;
3770 dest = (wxObject *) src;
3771 return (void *) dest;
3772 }
3773
3774 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3775 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3776 PyObject * _resultobj;
3777 wxColour * _result;
3778 unsigned char _arg0 = (unsigned char ) 0;
3779 unsigned char _arg1 = (unsigned char ) 0;
3780 unsigned char _arg2 = (unsigned char ) 0;
3781 char *_kwnames[] = { "red","green","blue", NULL };
3782 char _ptemp[128];
3783
3784 self = self;
3785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
3786 return NULL;
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) return NULL;
3793 } if (_result) {
3794 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3795 _resultobj = Py_BuildValue("s",_ptemp);
3796 } else {
3797 Py_INCREF(Py_None);
3798 _resultobj = Py_None;
3799 }
3800 return _resultobj;
3801 }
3802
3803 #define delete_wxColour(_swigobj) (delete _swigobj)
3804 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject * _resultobj;
3806 wxColour * _arg0;
3807 wxColour temp;
3808 PyObject * _obj0 = 0;
3809 char *_kwnames[] = { "self", NULL };
3810
3811 self = self;
3812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
3813 return NULL;
3814 {
3815 _arg0 = &temp;
3816 if (! wxColour_helper(_obj0, &_arg0))
3817 return NULL;
3818 }
3819 {
3820 PyThreadState* __tstate = wxPyBeginAllowThreads();
3821 delete_wxColour(_arg0);
3822
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) return NULL;
3825 } Py_INCREF(Py_None);
3826 _resultobj = Py_None;
3827 return _resultobj;
3828 }
3829
3830 #define wxColour_Red(_swigobj) (_swigobj->Red())
3831 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
3832 PyObject * _resultobj;
3833 unsigned char _result;
3834 wxColour * _arg0;
3835 wxColour temp;
3836 PyObject * _obj0 = 0;
3837 char *_kwnames[] = { "self", NULL };
3838
3839 self = self;
3840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
3841 return NULL;
3842 {
3843 _arg0 = &temp;
3844 if (! wxColour_helper(_obj0, &_arg0))
3845 return NULL;
3846 }
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 _result = (unsigned char )wxColour_Red(_arg0);
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) return NULL;
3853 } _resultobj = Py_BuildValue("b",_result);
3854 return _resultobj;
3855 }
3856
3857 #define wxColour_Green(_swigobj) (_swigobj->Green())
3858 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
3859 PyObject * _resultobj;
3860 unsigned char _result;
3861 wxColour * _arg0;
3862 wxColour temp;
3863 PyObject * _obj0 = 0;
3864 char *_kwnames[] = { "self", NULL };
3865
3866 self = self;
3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
3868 return NULL;
3869 {
3870 _arg0 = &temp;
3871 if (! wxColour_helper(_obj0, &_arg0))
3872 return NULL;
3873 }
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 _result = (unsigned char )wxColour_Green(_arg0);
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) return NULL;
3880 } _resultobj = Py_BuildValue("b",_result);
3881 return _resultobj;
3882 }
3883
3884 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3885 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
3886 PyObject * _resultobj;
3887 unsigned char _result;
3888 wxColour * _arg0;
3889 wxColour temp;
3890 PyObject * _obj0 = 0;
3891 char *_kwnames[] = { "self", NULL };
3892
3893 self = self;
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
3895 return NULL;
3896 {
3897 _arg0 = &temp;
3898 if (! wxColour_helper(_obj0, &_arg0))
3899 return NULL;
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 _result = (unsigned char )wxColour_Blue(_arg0);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) return NULL;
3907 } _resultobj = Py_BuildValue("b",_result);
3908 return _resultobj;
3909 }
3910
3911 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3912 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3913 PyObject * _resultobj;
3914 bool _result;
3915 wxColour * _arg0;
3916 wxColour temp;
3917 PyObject * _obj0 = 0;
3918 char *_kwnames[] = { "self", NULL };
3919
3920 self = self;
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
3922 return NULL;
3923 {
3924 _arg0 = &temp;
3925 if (! wxColour_helper(_obj0, &_arg0))
3926 return NULL;
3927 }
3928 {
3929 PyThreadState* __tstate = wxPyBeginAllowThreads();
3930 _result = (bool )wxColour_Ok(_arg0);
3931
3932 wxPyEndAllowThreads(__tstate);
3933 if (PyErr_Occurred()) return NULL;
3934 } _resultobj = Py_BuildValue("i",_result);
3935 return _resultobj;
3936 }
3937
3938 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3939 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject * _resultobj;
3941 wxColour * _arg0;
3942 unsigned char _arg1;
3943 unsigned char _arg2;
3944 unsigned char _arg3;
3945 wxColour temp;
3946 PyObject * _obj0 = 0;
3947 char *_kwnames[] = { "self","red","green","blue", NULL };
3948
3949 self = self;
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
3951 return NULL;
3952 {
3953 _arg0 = &temp;
3954 if (! wxColour_helper(_obj0, &_arg0))
3955 return NULL;
3956 }
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) return NULL;
3963 } Py_INCREF(Py_None);
3964 _resultobj = Py_None;
3965 return _resultobj;
3966 }
3967
3968 static PyObject * wxColour_Get(wxColour *self) {
3969 PyObject* rv = PyTuple_New(3);
3970 int red = -1;
3971 int green = -1;
3972 int blue = -1;
3973 if (self->Ok()) {
3974 red = self->Red();
3975 green = self->Green();
3976 blue = self->Blue();
3977 }
3978 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
3979 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
3980 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
3981 return rv;
3982 }
3983 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject * _resultobj;
3985 PyObject * _result;
3986 wxColour * _arg0;
3987 wxColour temp;
3988 PyObject * _obj0 = 0;
3989 char *_kwnames[] = { "self", NULL };
3990
3991 self = self;
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
3993 return NULL;
3994 {
3995 _arg0 = &temp;
3996 if (! wxColour_helper(_obj0, &_arg0))
3997 return NULL;
3998 }
3999 {
4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
4001 _result = (PyObject *)wxColour_Get(_arg0);
4002
4003 wxPyEndAllowThreads(__tstate);
4004 if (PyErr_Occurred()) return NULL;
4005 }{
4006 _resultobj = _result;
4007 }
4008 return _resultobj;
4009 }
4010
4011 static bool wxColour___eq__(wxColour *self,PyObject * obj) {
4012 wxColour tmp;
4013 wxColour* ptr = &tmp;
4014 if (obj == Py_None) return FALSE;
4015 wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear());
4016 if (! success) return FALSE;
4017 return *self == *ptr;
4018 }
4019 static PyObject *_wrap_wxColour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject * _resultobj;
4021 bool _result;
4022 wxColour * _arg0;
4023 PyObject * _arg1;
4024 wxColour temp;
4025 PyObject * _obj0 = 0;
4026 PyObject * _obj1 = 0;
4027 char *_kwnames[] = { "self","obj", NULL };
4028
4029 self = self;
4030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___eq__",_kwnames,&_obj0,&_obj1))
4031 return NULL;
4032 {
4033 _arg0 = &temp;
4034 if (! wxColour_helper(_obj0, &_arg0))
4035 return NULL;
4036 }
4037 {
4038 _arg1 = _obj1;
4039 }
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 _result = (bool )wxColour___eq__(_arg0,_arg1);
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) return NULL;
4046 } _resultobj = Py_BuildValue("i",_result);
4047 return _resultobj;
4048 }
4049
4050 static bool wxColour___ne__(wxColour *self,PyObject * obj) {
4051 wxColour tmp;
4052 wxColour* ptr = &tmp;
4053 if (obj == Py_None) return TRUE;
4054 wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear());
4055 if (! success) return TRUE;
4056 return *self != *ptr;
4057 }
4058 static PyObject *_wrap_wxColour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4059 PyObject * _resultobj;
4060 bool _result;
4061 wxColour * _arg0;
4062 PyObject * _arg1;
4063 wxColour temp;
4064 PyObject * _obj0 = 0;
4065 PyObject * _obj1 = 0;
4066 char *_kwnames[] = { "self","obj", NULL };
4067
4068 self = self;
4069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___ne__",_kwnames,&_obj0,&_obj1))
4070 return NULL;
4071 {
4072 _arg0 = &temp;
4073 if (! wxColour_helper(_obj0, &_arg0))
4074 return NULL;
4075 }
4076 {
4077 _arg1 = _obj1;
4078 }
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 _result = (bool )wxColour___ne__(_arg0,_arg1);
4082
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) return NULL;
4085 } _resultobj = Py_BuildValue("i",_result);
4086 return _resultobj;
4087 }
4088
4089 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4090 wxColourDatabase *src;
4091 wxObject *dest;
4092 src = (wxColourDatabase *) ptr;
4093 dest = (wxObject *) src;
4094 return (void *) dest;
4095 }
4096
4097 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4098 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject * _resultobj;
4100 wxColour * _result;
4101 wxColourDatabase * _arg0;
4102 wxString * _arg1;
4103 PyObject * _argo0 = 0;
4104 PyObject * _obj1 = 0;
4105 char *_kwnames[] = { "self","colour", NULL };
4106 char _ptemp[128];
4107
4108 self = self;
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4110 return NULL;
4111 if (_argo0) {
4112 if (_argo0 == Py_None) { _arg0 = NULL; }
4113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4115 return NULL;
4116 }
4117 }
4118 {
4119 _arg1 = wxString_in_helper(_obj1);
4120 if (_arg1 == NULL)
4121 return NULL;
4122 }
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) return NULL;
4129 } if (_result) {
4130 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4131 _resultobj = Py_BuildValue("s",_ptemp);
4132 } else {
4133 Py_INCREF(Py_None);
4134 _resultobj = Py_None;
4135 }
4136 {
4137 if (_obj1)
4138 delete _arg1;
4139 }
4140 return _resultobj;
4141 }
4142
4143 #define wxColourDatabase_FindColourNoAdd(_swigobj,_swigarg0) (_swigobj->FindColourNoAdd(_swigarg0))
4144 static PyObject *_wrap_wxColourDatabase_FindColourNoAdd(PyObject *self, PyObject *args, PyObject *kwargs) {
4145 PyObject * _resultobj;
4146 wxColour * _result;
4147 wxColourDatabase * _arg0;
4148 wxString * _arg1;
4149 PyObject * _argo0 = 0;
4150 PyObject * _obj1 = 0;
4151 char *_kwnames[] = { "self","colour", NULL };
4152 char _ptemp[128];
4153
4154 self = self;
4155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColourNoAdd",_kwnames,&_argo0,&_obj1))
4156 return NULL;
4157 if (_argo0) {
4158 if (_argo0 == Py_None) { _arg0 = NULL; }
4159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColourNoAdd. Expected _wxColourDatabase_p.");
4161 return NULL;
4162 }
4163 }
4164 {
4165 _arg1 = wxString_in_helper(_obj1);
4166 if (_arg1 == NULL)
4167 return NULL;
4168 }
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 _result = (wxColour *)wxColourDatabase_FindColourNoAdd(_arg0,*_arg1);
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) return NULL;
4175 } if (_result) {
4176 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4177 _resultobj = Py_BuildValue("s",_ptemp);
4178 } else {
4179 Py_INCREF(Py_None);
4180 _resultobj = Py_None;
4181 }
4182 {
4183 if (_obj1)
4184 delete _arg1;
4185 }
4186 return _resultobj;
4187 }
4188
4189 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4190 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject * _resultobj;
4192 wxString * _result;
4193 wxColourDatabase * _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:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
4202 return NULL;
4203 if (_argo0) {
4204 if (_argo0 == Py_None) { _arg0 = NULL; }
4205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_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 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) return NULL;
4221 }{
4222 #if wxUSE_UNICODE
4223 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4224 #else
4225 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4226 #endif
4227 }
4228 {
4229 delete _result;
4230 }
4231 return _resultobj;
4232 }
4233
4234 static void wxColourDatabase_AddColour(wxColourDatabase *self,const wxString & name,wxColour * colour) {
4235 // make a copy since the python one will be GC'd
4236 wxColour* c = new wxColour(*colour);
4237 self->AddColour(name, c);
4238 }
4239 static PyObject *_wrap_wxColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4240 PyObject * _resultobj;
4241 wxColourDatabase * _arg0;
4242 wxString * _arg1;
4243 wxColour * _arg2;
4244 PyObject * _argo0 = 0;
4245 PyObject * _obj1 = 0;
4246 wxColour temp;
4247 PyObject * _obj2 = 0;
4248 char *_kwnames[] = { "self","name","colour", NULL };
4249
4250 self = self;
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxColourDatabase_AddColour",_kwnames,&_argo0,&_obj1,&_obj2))
4252 return NULL;
4253 if (_argo0) {
4254 if (_argo0 == Py_None) { _arg0 = NULL; }
4255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p.");
4257 return NULL;
4258 }
4259 }
4260 {
4261 _arg1 = wxString_in_helper(_obj1);
4262 if (_arg1 == NULL)
4263 return NULL;
4264 }
4265 {
4266 _arg2 = &temp;
4267 if (! wxColour_helper(_obj2, &_arg2))
4268 return NULL;
4269 }
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 wxColourDatabase_AddColour(_arg0,*_arg1,_arg2);
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) return NULL;
4276 } Py_INCREF(Py_None);
4277 _resultobj = Py_None;
4278 {
4279 if (_obj1)
4280 delete _arg1;
4281 }
4282 return _resultobj;
4283 }
4284
4285 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
4286 wxColour* c = new wxColour(red, green, blue);
4287 self->AddColour(name, c);
4288 }
4289 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject * _resultobj;
4291 wxColourDatabase * _arg0;
4292 wxString * _arg1;
4293 int _arg2;
4294 int _arg3;
4295 int _arg4;
4296 PyObject * _argo0 = 0;
4297 PyObject * _obj1 = 0;
4298 char *_kwnames[] = { "self","name","red","green","blue", NULL };
4299
4300 self = self;
4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
4302 return NULL;
4303 if (_argo0) {
4304 if (_argo0 == Py_None) { _arg0 = NULL; }
4305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4307 return NULL;
4308 }
4309 }
4310 {
4311 _arg1 = wxString_in_helper(_obj1);
4312 if (_arg1 == NULL)
4313 return NULL;
4314 }
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) return NULL;
4321 } Py_INCREF(Py_None);
4322 _resultobj = Py_None;
4323 {
4324 if (_obj1)
4325 delete _arg1;
4326 }
4327 return _resultobj;
4328 }
4329
4330 static void *SwigwxPenTowxGDIObject(void *ptr) {
4331 wxPen *src;
4332 wxGDIObject *dest;
4333 src = (wxPen *) ptr;
4334 dest = (wxGDIObject *) src;
4335 return (void *) dest;
4336 }
4337
4338 static void *SwigwxPenTowxObject(void *ptr) {
4339 wxPen *src;
4340 wxObject *dest;
4341 src = (wxPen *) ptr;
4342 dest = (wxObject *) src;
4343 return (void *) dest;
4344 }
4345
4346 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4347 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4348 PyObject * _resultobj;
4349 wxPen * _result;
4350 wxColour * _arg0;
4351 int _arg1 = (int ) 1;
4352 int _arg2 = (int ) wxSOLID;
4353 wxColour temp;
4354 PyObject * _obj0 = 0;
4355 char *_kwnames[] = { "colour","width","style", NULL };
4356 char _ptemp[128];
4357
4358 self = self;
4359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4360 return NULL;
4361 {
4362 _arg0 = &temp;
4363 if (! wxColour_helper(_obj0, &_arg0))
4364 return NULL;
4365 }
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) return NULL;
4372 } if (_result) {
4373 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4374 _resultobj = Py_BuildValue("s",_ptemp);
4375 } else {
4376 Py_INCREF(Py_None);
4377 _resultobj = Py_None;
4378 }
4379 return _resultobj;
4380 }
4381
4382 #define delete_wxPen(_swigobj) (delete _swigobj)
4383 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4384 PyObject * _resultobj;
4385 wxPen * _arg0;
4386 PyObject * _argo0 = 0;
4387 char *_kwnames[] = { "self", NULL };
4388
4389 self = self;
4390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4391 return NULL;
4392 if (_argo0) {
4393 if (_argo0 == Py_None) { _arg0 = NULL; }
4394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4396 return NULL;
4397 }
4398 }
4399 {
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 delete_wxPen(_arg0);
4402
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) return NULL;
4405 } Py_INCREF(Py_None);
4406 _resultobj = Py_None;
4407 return _resultobj;
4408 }
4409
4410 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4411 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4412 PyObject * _resultobj;
4413 int _result;
4414 wxPen * _arg0;
4415 PyObject * _argo0 = 0;
4416 char *_kwnames[] = { "self", NULL };
4417
4418 self = self;
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4420 return NULL;
4421 if (_argo0) {
4422 if (_argo0 == Py_None) { _arg0 = NULL; }
4423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4425 return NULL;
4426 }
4427 }
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 _result = (int )wxPen_GetCap(_arg0);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) return NULL;
4434 } _resultobj = Py_BuildValue("i",_result);
4435 return _resultobj;
4436 }
4437
4438 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4439 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject * _resultobj;
4441 wxColour * _result;
4442 wxPen * _arg0;
4443 PyObject * _argo0 = 0;
4444 char *_kwnames[] = { "self", NULL };
4445 char _ptemp[128];
4446
4447 self = self;
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4449 return NULL;
4450 if (_argo0) {
4451 if (_argo0 == Py_None) { _arg0 = NULL; }
4452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4454 return NULL;
4455 }
4456 }
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 _result = new wxColour (wxPen_GetColour(_arg0));
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) return NULL;
4463 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4464 _resultobj = Py_BuildValue("s",_ptemp);
4465 return _resultobj;
4466 }
4467
4468 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4469 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4470 PyObject * _resultobj;
4471 int _result;
4472 wxPen * _arg0;
4473 PyObject * _argo0 = 0;
4474 char *_kwnames[] = { "self", NULL };
4475
4476 self = self;
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
4478 return NULL;
4479 if (_argo0) {
4480 if (_argo0 == Py_None) { _arg0 = NULL; }
4481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4483 return NULL;
4484 }
4485 }
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 _result = (int )wxPen_GetJoin(_arg0);
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) return NULL;
4492 } _resultobj = Py_BuildValue("i",_result);
4493 return _resultobj;
4494 }
4495
4496 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4497 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject * _resultobj;
4499 int _result;
4500 wxPen * _arg0;
4501 PyObject * _argo0 = 0;
4502 char *_kwnames[] = { "self", NULL };
4503
4504 self = self;
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
4506 return NULL;
4507 if (_argo0) {
4508 if (_argo0 == Py_None) { _arg0 = NULL; }
4509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4511 return NULL;
4512 }
4513 }
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 _result = (int )wxPen_GetStyle(_arg0);
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) return NULL;
4520 } _resultobj = Py_BuildValue("i",_result);
4521 return _resultobj;
4522 }
4523
4524 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4525 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4526 PyObject * _resultobj;
4527 int _result;
4528 wxPen * _arg0;
4529 PyObject * _argo0 = 0;
4530 char *_kwnames[] = { "self", NULL };
4531
4532 self = self;
4533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
4534 return NULL;
4535 if (_argo0) {
4536 if (_argo0 == Py_None) { _arg0 = NULL; }
4537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4539 return NULL;
4540 }
4541 }
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 _result = (int )wxPen_GetWidth(_arg0);
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) return NULL;
4548 } _resultobj = Py_BuildValue("i",_result);
4549 return _resultobj;
4550 }
4551
4552 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4553 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4554 PyObject * _resultobj;
4555 bool _result;
4556 wxPen * _arg0;
4557 PyObject * _argo0 = 0;
4558 char *_kwnames[] = { "self", NULL };
4559
4560 self = self;
4561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
4562 return NULL;
4563 if (_argo0) {
4564 if (_argo0 == Py_None) { _arg0 = NULL; }
4565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4567 return NULL;
4568 }
4569 }
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 _result = (bool )wxPen_Ok(_arg0);
4573
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) return NULL;
4576 } _resultobj = Py_BuildValue("i",_result);
4577 return _resultobj;
4578 }
4579
4580 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4581 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject * _resultobj;
4583 wxPen * _arg0;
4584 int _arg1;
4585 PyObject * _argo0 = 0;
4586 char *_kwnames[] = { "self","cap_style", NULL };
4587
4588 self = self;
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
4590 return NULL;
4591 if (_argo0) {
4592 if (_argo0 == Py_None) { _arg0 = NULL; }
4593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4595 return NULL;
4596 }
4597 }
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 wxPen_SetCap(_arg0,_arg1);
4601
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) return NULL;
4604 } Py_INCREF(Py_None);
4605 _resultobj = Py_None;
4606 return _resultobj;
4607 }
4608
4609 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4610 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject * _resultobj;
4612 wxPen * _arg0;
4613 wxColour * _arg1;
4614 PyObject * _argo0 = 0;
4615 wxColour temp;
4616 PyObject * _obj1 = 0;
4617 char *_kwnames[] = { "self","colour", NULL };
4618
4619 self = self;
4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
4621 return NULL;
4622 if (_argo0) {
4623 if (_argo0 == Py_None) { _arg0 = NULL; }
4624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4626 return NULL;
4627 }
4628 }
4629 {
4630 _arg1 = &temp;
4631 if (! wxColour_helper(_obj1, &_arg1))
4632 return NULL;
4633 }
4634 {
4635 PyThreadState* __tstate = wxPyBeginAllowThreads();
4636 wxPen_SetColour(_arg0,*_arg1);
4637
4638 wxPyEndAllowThreads(__tstate);
4639 if (PyErr_Occurred()) return NULL;
4640 } Py_INCREF(Py_None);
4641 _resultobj = Py_None;
4642 return _resultobj;
4643 }
4644
4645 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4646 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4647 PyObject * _resultobj;
4648 wxPen * _arg0;
4649 int _arg1;
4650 PyObject * _argo0 = 0;
4651 char *_kwnames[] = { "self","join_style", NULL };
4652
4653 self = self;
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
4655 return NULL;
4656 if (_argo0) {
4657 if (_argo0 == Py_None) { _arg0 = NULL; }
4658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4660 return NULL;
4661 }
4662 }
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 wxPen_SetJoin(_arg0,_arg1);
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) return NULL;
4669 } Py_INCREF(Py_None);
4670 _resultobj = Py_None;
4671 return _resultobj;
4672 }
4673
4674 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4675 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4676 PyObject * _resultobj;
4677 wxPen * _arg0;
4678 int _arg1;
4679 PyObject * _argo0 = 0;
4680 char *_kwnames[] = { "self","style", NULL };
4681
4682 self = self;
4683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
4684 return NULL;
4685 if (_argo0) {
4686 if (_argo0 == Py_None) { _arg0 = NULL; }
4687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4689 return NULL;
4690 }
4691 }
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 wxPen_SetStyle(_arg0,_arg1);
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) return NULL;
4698 } Py_INCREF(Py_None);
4699 _resultobj = Py_None;
4700 return _resultobj;
4701 }
4702
4703 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4704 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4705 PyObject * _resultobj;
4706 wxPen * _arg0;
4707 int _arg1;
4708 PyObject * _argo0 = 0;
4709 char *_kwnames[] = { "self","width", NULL };
4710
4711 self = self;
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
4713 return NULL;
4714 if (_argo0) {
4715 if (_argo0 == Py_None) { _arg0 = NULL; }
4716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4718 return NULL;
4719 }
4720 }
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 wxPen_SetWidth(_arg0,_arg1);
4724
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) return NULL;
4727 } Py_INCREF(Py_None);
4728 _resultobj = Py_None;
4729 return _resultobj;
4730 }
4731
4732 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4733 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4734 PyObject * _resultobj;
4735 wxPen * _arg0;
4736 int _arg1;
4737 wxDash * _arg2;
4738 PyObject * _argo0 = 0;
4739 PyObject * _obj2 = 0;
4740 char *_kwnames[] = { "self","choices", NULL };
4741
4742 self = self;
4743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
4744 return NULL;
4745 if (_argo0) {
4746 if (_argo0 == Py_None) { _arg0 = NULL; }
4747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4749 return NULL;
4750 }
4751 }
4752 if (_obj2)
4753 {
4754 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
4755 if (_arg2 == NULL) {
4756 return NULL;
4757 }
4758 }
4759 {
4760 if (_obj2) {
4761 _arg1 = PyList_Size(_obj2);
4762 }
4763 else {
4764 _arg1 = 0;
4765 }
4766 }
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 wxPen_SetDashes(_arg0,_arg1,_arg2);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) return NULL;
4773 } Py_INCREF(Py_None);
4774 _resultobj = Py_None;
4775 {
4776 delete [] _arg2;
4777 }
4778 return _resultobj;
4779 }
4780
4781 static PyObject * wxPen_GetDashes(wxPen *self) {
4782 wxDash* dashes;
4783 int count = self->GetDashes(&dashes);
4784 wxPyBeginBlockThreads();
4785 PyObject* retval = PyList_New(0);
4786 for (int x=0; x<count; x++)
4787 PyList_Append(retval, PyInt_FromLong(dashes[x]));
4788 wxPyEndBlockThreads();
4789 return retval;
4790 }
4791 static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4792 PyObject * _resultobj;
4793 PyObject * _result;
4794 wxPen * _arg0;
4795 PyObject * _argo0 = 0;
4796 char *_kwnames[] = { "self", NULL };
4797
4798 self = self;
4799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0))
4800 return NULL;
4801 if (_argo0) {
4802 if (_argo0 == Py_None) { _arg0 = NULL; }
4803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4805 return NULL;
4806 }
4807 }
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 _result = (PyObject *)wxPen_GetDashes(_arg0);
4811
4812 wxPyEndAllowThreads(__tstate);
4813 if (PyErr_Occurred()) return NULL;
4814 }{
4815 _resultobj = _result;
4816 }
4817 return _resultobj;
4818 }
4819
4820 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4821 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject * _resultobj;
4823 wxBitmap * _result;
4824 wxPen * _arg0;
4825 PyObject * _argo0 = 0;
4826 char *_kwnames[] = { "self", NULL };
4827 char _ptemp[128];
4828
4829 self = self;
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
4831 return NULL;
4832 if (_argo0) {
4833 if (_argo0 == Py_None) { _arg0 = NULL; }
4834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4836 return NULL;
4837 }
4838 }
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) return NULL;
4845 } if (_result) {
4846 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4847 _resultobj = Py_BuildValue("s",_ptemp);
4848 } else {
4849 Py_INCREF(Py_None);
4850 _resultobj = Py_None;
4851 }
4852 return _resultobj;
4853 }
4854
4855 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4856 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4857 PyObject * _resultobj;
4858 wxPen * _arg0;
4859 wxBitmap * _arg1;
4860 PyObject * _argo0 = 0;
4861 PyObject * _argo1 = 0;
4862 char *_kwnames[] = { "self","stipple", NULL };
4863
4864 self = self;
4865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
4866 return NULL;
4867 if (_argo0) {
4868 if (_argo0 == Py_None) { _arg0 = NULL; }
4869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4871 return NULL;
4872 }
4873 }
4874 if (_argo1) {
4875 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
4876 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4877 return NULL;
4878 }
4879 }
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 wxPen_SetStipple(_arg0,*_arg1);
4883
4884 wxPyEndAllowThreads(__tstate);
4885 if (PyErr_Occurred()) return NULL;
4886 } Py_INCREF(Py_None);
4887 _resultobj = Py_None;
4888 return _resultobj;
4889 }
4890
4891 static void *SwigwxPyPenTowxPen(void *ptr) {
4892 wxPyPen *src;
4893 wxPen *dest;
4894 src = (wxPyPen *) ptr;
4895 dest = (wxPen *) src;
4896 return (void *) dest;
4897 }
4898
4899 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
4900 wxPyPen *src;
4901 wxGDIObject *dest;
4902 src = (wxPyPen *) ptr;
4903 dest = (wxGDIObject *) src;
4904 return (void *) dest;
4905 }
4906
4907 static void *SwigwxPyPenTowxObject(void *ptr) {
4908 wxPyPen *src;
4909 wxObject *dest;
4910 src = (wxPyPen *) ptr;
4911 dest = (wxObject *) src;
4912 return (void *) dest;
4913 }
4914
4915 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4916 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4917 PyObject * _resultobj;
4918 wxPyPen * _result;
4919 wxColour * _arg0;
4920 int _arg1 = (int ) 1;
4921 int _arg2 = (int ) wxSOLID;
4922 wxColour temp;
4923 PyObject * _obj0 = 0;
4924 char *_kwnames[] = { "colour","width","style", NULL };
4925 char _ptemp[128];
4926
4927 self = self;
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
4929 return NULL;
4930 {
4931 _arg0 = &temp;
4932 if (! wxColour_helper(_obj0, &_arg0))
4933 return NULL;
4934 }
4935 {
4936 PyThreadState* __tstate = wxPyBeginAllowThreads();
4937 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
4938
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) return NULL;
4941 } if (_result) {
4942 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
4943 _resultobj = Py_BuildValue("s",_ptemp);
4944 } else {
4945 Py_INCREF(Py_None);
4946 _resultobj = Py_None;
4947 }
4948 return _resultobj;
4949 }
4950
4951 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4952 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject * _resultobj;
4954 wxPyPen * _arg0;
4955 PyObject * _argo0 = 0;
4956 char *_kwnames[] = { "self", NULL };
4957
4958 self = self;
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
4960 return NULL;
4961 if (_argo0) {
4962 if (_argo0 == Py_None) { _arg0 = NULL; }
4963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4965 return NULL;
4966 }
4967 }
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 delete_wxPyPen(_arg0);
4971
4972 wxPyEndAllowThreads(__tstate);
4973 if (PyErr_Occurred()) return NULL;
4974 } Py_INCREF(Py_None);
4975 _resultobj = Py_None;
4976 return _resultobj;
4977 }
4978
4979 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4980 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4981 PyObject * _resultobj;
4982 wxPyPen * _arg0;
4983 int _arg1;
4984 wxDash * _arg2;
4985 PyObject * _argo0 = 0;
4986 PyObject * _obj2 = 0;
4987 char *_kwnames[] = { "self","choices", NULL };
4988
4989 self = self;
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
4991 return NULL;
4992 if (_argo0) {
4993 if (_argo0 == Py_None) { _arg0 = NULL; }
4994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
4996 return NULL;
4997 }
4998 }
4999 if (_obj2)
5000 {
5001 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5002 if (_arg2 == NULL) {
5003 return NULL;
5004 }
5005 }
5006 {
5007 if (_obj2) {
5008 _arg1 = PyList_Size(_obj2);
5009 }
5010 else {
5011 _arg1 = 0;
5012 }
5013 }
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5017
5018 wxPyEndAllowThreads(__tstate);
5019 if (PyErr_Occurred()) return NULL;
5020 } Py_INCREF(Py_None);
5021 _resultobj = Py_None;
5022 {
5023 delete [] _arg2;
5024 }
5025 return _resultobj;
5026 }
5027
5028 static void *SwigwxPenListTowxObject(void *ptr) {
5029 wxPenList *src;
5030 wxObject *dest;
5031 src = (wxPenList *) ptr;
5032 dest = (wxObject *) src;
5033 return (void *) dest;
5034 }
5035
5036 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5037 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5038 PyObject * _resultobj;
5039 wxPenList * _arg0;
5040 wxPen * _arg1;
5041 PyObject * _argo0 = 0;
5042 PyObject * _argo1 = 0;
5043 char *_kwnames[] = { "self","pen", NULL };
5044
5045 self = self;
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5047 return NULL;
5048 if (_argo0) {
5049 if (_argo0 == Py_None) { _arg0 = NULL; }
5050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5052 return NULL;
5053 }
5054 }
5055 if (_argo1) {
5056 if (_argo1 == Py_None) { _arg1 = NULL; }
5057 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5058 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5059 return NULL;
5060 }
5061 }
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 wxPenList_AddPen(_arg0,_arg1);
5065
5066 wxPyEndAllowThreads(__tstate);
5067 if (PyErr_Occurred()) return NULL;
5068 } Py_INCREF(Py_None);
5069 _resultobj = Py_None;
5070 return _resultobj;
5071 }
5072
5073 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5074 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5075 PyObject * _resultobj;
5076 wxPen * _result;
5077 wxPenList * _arg0;
5078 wxColour * _arg1;
5079 int _arg2;
5080 int _arg3;
5081 PyObject * _argo0 = 0;
5082 wxColour temp;
5083 PyObject * _obj1 = 0;
5084 char *_kwnames[] = { "self","colour","width","style", NULL };
5085 char _ptemp[128];
5086
5087 self = self;
5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5089 return NULL;
5090 if (_argo0) {
5091 if (_argo0 == Py_None) { _arg0 = NULL; }
5092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5094 return NULL;
5095 }
5096 }
5097 {
5098 _arg1 = &temp;
5099 if (! wxColour_helper(_obj1, &_arg1))
5100 return NULL;
5101 }
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) return NULL;
5108 } if (_result) {
5109 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5110 _resultobj = Py_BuildValue("s",_ptemp);
5111 } else {
5112 Py_INCREF(Py_None);
5113 _resultobj = Py_None;
5114 }
5115 return _resultobj;
5116 }
5117
5118 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5119 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5120 PyObject * _resultobj;
5121 wxPenList * _arg0;
5122 wxPen * _arg1;
5123 PyObject * _argo0 = 0;
5124 PyObject * _argo1 = 0;
5125 char *_kwnames[] = { "self","pen", NULL };
5126
5127 self = self;
5128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5129 return NULL;
5130 if (_argo0) {
5131 if (_argo0 == Py_None) { _arg0 = NULL; }
5132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5134 return NULL;
5135 }
5136 }
5137 if (_argo1) {
5138 if (_argo1 == Py_None) { _arg1 = NULL; }
5139 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5140 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5141 return NULL;
5142 }
5143 }
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 wxPenList_RemovePen(_arg0,_arg1);
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) return NULL;
5150 } Py_INCREF(Py_None);
5151 _resultobj = Py_None;
5152 return _resultobj;
5153 }
5154
5155 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5156 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5157 PyObject * _resultobj;
5158 int _result;
5159 wxPenList * _arg0;
5160 PyObject * _argo0 = 0;
5161 char *_kwnames[] = { "self", NULL };
5162
5163 self = self;
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5165 return NULL;
5166 if (_argo0) {
5167 if (_argo0 == Py_None) { _arg0 = NULL; }
5168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5170 return NULL;
5171 }
5172 }
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
5175 _result = (int )wxPenList_GetCount(_arg0);
5176
5177 wxPyEndAllowThreads(__tstate);
5178 if (PyErr_Occurred()) return NULL;
5179 } _resultobj = Py_BuildValue("i",_result);
5180 return _resultobj;
5181 }
5182
5183 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5184 wxBrush *src;
5185 wxGDIObject *dest;
5186 src = (wxBrush *) ptr;
5187 dest = (wxGDIObject *) src;
5188 return (void *) dest;
5189 }
5190
5191 static void *SwigwxBrushTowxObject(void *ptr) {
5192 wxBrush *src;
5193 wxObject *dest;
5194 src = (wxBrush *) ptr;
5195 dest = (wxObject *) src;
5196 return (void *) dest;
5197 }
5198
5199 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5200 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5201 PyObject * _resultobj;
5202 wxBrush * _result;
5203 wxColour * _arg0;
5204 int _arg1 = (int ) wxSOLID;
5205 wxColour temp;
5206 PyObject * _obj0 = 0;
5207 char *_kwnames[] = { "colour","style", NULL };
5208 char _ptemp[128];
5209
5210 self = self;
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5212 return NULL;
5213 {
5214 _arg0 = &temp;
5215 if (! wxColour_helper(_obj0, &_arg0))
5216 return NULL;
5217 }
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) return NULL;
5224 } if (_result) {
5225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5226 _resultobj = Py_BuildValue("s",_ptemp);
5227 } else {
5228 Py_INCREF(Py_None);
5229 _resultobj = Py_None;
5230 }
5231 return _resultobj;
5232 }
5233
5234 #define delete_wxBrush(_swigobj) (delete _swigobj)
5235 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5236 PyObject * _resultobj;
5237 wxBrush * _arg0;
5238 PyObject * _argo0 = 0;
5239 char *_kwnames[] = { "self", NULL };
5240
5241 self = self;
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5243 return NULL;
5244 if (_argo0) {
5245 if (_argo0 == Py_None) { _arg0 = NULL; }
5246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5248 return NULL;
5249 }
5250 }
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 delete_wxBrush(_arg0);
5254
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) return NULL;
5257 } Py_INCREF(Py_None);
5258 _resultobj = Py_None;
5259 return _resultobj;
5260 }
5261
5262 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5263 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5264 PyObject * _resultobj;
5265 wxColour * _result;
5266 wxBrush * _arg0;
5267 PyObject * _argo0 = 0;
5268 char *_kwnames[] = { "self", NULL };
5269 char _ptemp[128];
5270
5271 self = self;
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5273 return NULL;
5274 if (_argo0) {
5275 if (_argo0 == Py_None) { _arg0 = NULL; }
5276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5278 return NULL;
5279 }
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 _result = new wxColour (wxBrush_GetColour(_arg0));
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) return NULL;
5287 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5288 _resultobj = Py_BuildValue("s",_ptemp);
5289 return _resultobj;
5290 }
5291
5292 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5293 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5294 PyObject * _resultobj;
5295 wxBitmap * _result;
5296 wxBrush * _arg0;
5297 PyObject * _argo0 = 0;
5298 char *_kwnames[] = { "self", NULL };
5299 char _ptemp[128];
5300
5301 self = self;
5302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
5303 return NULL;
5304 if (_argo0) {
5305 if (_argo0 == Py_None) { _arg0 = NULL; }
5306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5308 return NULL;
5309 }
5310 }
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
5314
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) return NULL;
5317 } if (_result) {
5318 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5319 _resultobj = Py_BuildValue("s",_ptemp);
5320 } else {
5321 Py_INCREF(Py_None);
5322 _resultobj = Py_None;
5323 }
5324 return _resultobj;
5325 }
5326
5327 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5328 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5329 PyObject * _resultobj;
5330 int _result;
5331 wxBrush * _arg0;
5332 PyObject * _argo0 = 0;
5333 char *_kwnames[] = { "self", NULL };
5334
5335 self = self;
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
5337 return NULL;
5338 if (_argo0) {
5339 if (_argo0 == Py_None) { _arg0 = NULL; }
5340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5342 return NULL;
5343 }
5344 }
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 _result = (int )wxBrush_GetStyle(_arg0);
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) return NULL;
5351 } _resultobj = Py_BuildValue("i",_result);
5352 return _resultobj;
5353 }
5354
5355 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5356 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5357 PyObject * _resultobj;
5358 bool _result;
5359 wxBrush * _arg0;
5360 PyObject * _argo0 = 0;
5361 char *_kwnames[] = { "self", NULL };
5362
5363 self = self;
5364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
5365 return NULL;
5366 if (_argo0) {
5367 if (_argo0 == Py_None) { _arg0 = NULL; }
5368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5370 return NULL;
5371 }
5372 }
5373 {
5374 PyThreadState* __tstate = wxPyBeginAllowThreads();
5375 _result = (bool )wxBrush_Ok(_arg0);
5376
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) return NULL;
5379 } _resultobj = Py_BuildValue("i",_result);
5380 return _resultobj;
5381 }
5382
5383 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5384 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject * _resultobj;
5386 wxBrush * _arg0;
5387 wxColour * _arg1;
5388 PyObject * _argo0 = 0;
5389 wxColour temp;
5390 PyObject * _obj1 = 0;
5391 char *_kwnames[] = { "self","colour", NULL };
5392
5393 self = self;
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
5395 return NULL;
5396 if (_argo0) {
5397 if (_argo0 == Py_None) { _arg0 = NULL; }
5398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5400 return NULL;
5401 }
5402 }
5403 {
5404 _arg1 = &temp;
5405 if (! wxColour_helper(_obj1, &_arg1))
5406 return NULL;
5407 }
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 wxBrush_SetColour(_arg0,*_arg1);
5411
5412 wxPyEndAllowThreads(__tstate);
5413 if (PyErr_Occurred()) return NULL;
5414 } Py_INCREF(Py_None);
5415 _resultobj = Py_None;
5416 return _resultobj;
5417 }
5418
5419 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5420 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5421 PyObject * _resultobj;
5422 wxBrush * _arg0;
5423 wxBitmap * _arg1;
5424 PyObject * _argo0 = 0;
5425 PyObject * _argo1 = 0;
5426 char *_kwnames[] = { "self","bitmap", NULL };
5427
5428 self = self;
5429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
5430 return NULL;
5431 if (_argo0) {
5432 if (_argo0 == Py_None) { _arg0 = NULL; }
5433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5435 return NULL;
5436 }
5437 }
5438 if (_argo1) {
5439 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5440 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5441 return NULL;
5442 }
5443 }
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 wxBrush_SetStipple(_arg0,*_arg1);
5447
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) return NULL;
5450 } Py_INCREF(Py_None);
5451 _resultobj = Py_None;
5452 return _resultobj;
5453 }
5454
5455 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5456 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5457 PyObject * _resultobj;
5458 wxBrush * _arg0;
5459 int _arg1;
5460 PyObject * _argo0 = 0;
5461 char *_kwnames[] = { "self","style", NULL };
5462
5463 self = self;
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
5465 return NULL;
5466 if (_argo0) {
5467 if (_argo0 == Py_None) { _arg0 = NULL; }
5468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5470 return NULL;
5471 }
5472 }
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 wxBrush_SetStyle(_arg0,_arg1);
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) return NULL;
5479 } Py_INCREF(Py_None);
5480 _resultobj = Py_None;
5481 return _resultobj;
5482 }
5483
5484 static void *SwigwxBrushListTowxObject(void *ptr) {
5485 wxBrushList *src;
5486 wxObject *dest;
5487 src = (wxBrushList *) ptr;
5488 dest = (wxObject *) src;
5489 return (void *) dest;
5490 }
5491
5492 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5493 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5494 PyObject * _resultobj;
5495 wxBrushList * _arg0;
5496 wxBrush * _arg1;
5497 PyObject * _argo0 = 0;
5498 PyObject * _argo1 = 0;
5499 char *_kwnames[] = { "self","brush", NULL };
5500
5501 self = self;
5502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5503 return NULL;
5504 if (_argo0) {
5505 if (_argo0 == Py_None) { _arg0 = NULL; }
5506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5508 return NULL;
5509 }
5510 }
5511 if (_argo1) {
5512 if (_argo1 == Py_None) { _arg1 = NULL; }
5513 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5514 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5515 return NULL;
5516 }
5517 }
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 wxBrushList_AddBrush(_arg0,_arg1);
5521
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) return NULL;
5524 } Py_INCREF(Py_None);
5525 _resultobj = Py_None;
5526 return _resultobj;
5527 }
5528
5529 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5530 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject * _resultobj;
5532 wxBrush * _result;
5533 wxBrushList * _arg0;
5534 wxColour * _arg1;
5535 int _arg2;
5536 PyObject * _argo0 = 0;
5537 wxColour temp;
5538 PyObject * _obj1 = 0;
5539 char *_kwnames[] = { "self","colour","style", NULL };
5540 char _ptemp[128];
5541
5542 self = self;
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5544 return NULL;
5545 if (_argo0) {
5546 if (_argo0 == Py_None) { _arg0 = NULL; }
5547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5549 return NULL;
5550 }
5551 }
5552 {
5553 _arg1 = &temp;
5554 if (! wxColour_helper(_obj1, &_arg1))
5555 return NULL;
5556 }
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) return NULL;
5563 } if (_result) {
5564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5565 _resultobj = Py_BuildValue("s",_ptemp);
5566 } else {
5567 Py_INCREF(Py_None);
5568 _resultobj = Py_None;
5569 }
5570 return _resultobj;
5571 }
5572
5573 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5574 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5575 PyObject * _resultobj;
5576 wxBrushList * _arg0;
5577 wxBrush * _arg1;
5578 PyObject * _argo0 = 0;
5579 PyObject * _argo1 = 0;
5580 char *_kwnames[] = { "self","brush", NULL };
5581
5582 self = self;
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
5584 return NULL;
5585 if (_argo0) {
5586 if (_argo0 == Py_None) { _arg0 = NULL; }
5587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5589 return NULL;
5590 }
5591 }
5592 if (_argo1) {
5593 if (_argo1 == Py_None) { _arg1 = NULL; }
5594 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5595 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5596 return NULL;
5597 }
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 wxBrushList_RemoveBrush(_arg0,_arg1);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) return NULL;
5605 } Py_INCREF(Py_None);
5606 _resultobj = Py_None;
5607 return _resultobj;
5608 }
5609
5610 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5611 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject * _resultobj;
5613 int _result;
5614 wxBrushList * _arg0;
5615 PyObject * _argo0 = 0;
5616 char *_kwnames[] = { "self", NULL };
5617
5618 self = self;
5619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
5620 return NULL;
5621 if (_argo0) {
5622 if (_argo0 == Py_None) { _arg0 = NULL; }
5623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
5625 return NULL;
5626 }
5627 }
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 _result = (int )wxBrushList_GetCount(_arg0);
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) return NULL;
5634 } _resultobj = Py_BuildValue("i",_result);
5635 return _resultobj;
5636 }
5637
5638 static void *SwigwxDCTowxObject(void *ptr) {
5639 wxDC *src;
5640 wxObject *dest;
5641 src = (wxDC *) ptr;
5642 dest = (wxObject *) src;
5643 return (void *) dest;
5644 }
5645
5646 #define delete_wxDC(_swigobj) (delete _swigobj)
5647 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5648 PyObject * _resultobj;
5649 wxDC * _arg0;
5650 PyObject * _argo0 = 0;
5651 char *_kwnames[] = { "self", NULL };
5652
5653 self = self;
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
5655 return NULL;
5656 if (_argo0) {
5657 if (_argo0 == Py_None) { _arg0 = NULL; }
5658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5660 return NULL;
5661 }
5662 }
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 delete_wxDC(_arg0);
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) return NULL;
5669 } Py_INCREF(Py_None);
5670 _resultobj = Py_None;
5671 return _resultobj;
5672 }
5673
5674 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5675 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
5676 PyObject * _resultobj;
5677 wxDC * _arg0;
5678 PyObject * _argo0 = 0;
5679 char *_kwnames[] = { "self", NULL };
5680
5681 self = self;
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
5683 return NULL;
5684 if (_argo0) {
5685 if (_argo0 == Py_None) { _arg0 = NULL; }
5686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5688 return NULL;
5689 }
5690 }
5691 {
5692 PyThreadState* __tstate = wxPyBeginAllowThreads();
5693 wxDC_BeginDrawing(_arg0);
5694
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) return NULL;
5697 } Py_INCREF(Py_None);
5698 _resultobj = Py_None;
5699 return _resultobj;
5700 }
5701
5702 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5703 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
5704 PyObject * _resultobj;
5705 bool _result;
5706 wxDC * _arg0;
5707 wxCoord _arg1;
5708 wxCoord _arg2;
5709 wxCoord _arg3;
5710 wxCoord _arg4;
5711 wxDC * _arg5;
5712 wxCoord _arg6;
5713 wxCoord _arg7;
5714 int _arg8 = (int ) wxCOPY;
5715 int _arg9 = (int ) FALSE;
5716 PyObject * _argo0 = 0;
5717 PyObject * _argo5 = 0;
5718 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
5719
5720 self = self;
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiiOii|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
5722 return NULL;
5723 if (_argo0) {
5724 if (_argo0 == Py_None) { _arg0 = NULL; }
5725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5727 return NULL;
5728 }
5729 }
5730 if (_argo5) {
5731 if (_argo5 == Py_None) { _arg5 = NULL; }
5732 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
5733 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5734 return NULL;
5735 }
5736 }
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
5740
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) return NULL;
5743 } _resultobj = Py_BuildValue("i",_result);
5744 return _resultobj;
5745 }
5746
5747 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5748 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject * _resultobj;
5750 wxDC * _arg0;
5751 PyObject * _argo0 = 0;
5752 char *_kwnames[] = { "self", NULL };
5753
5754 self = self;
5755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
5756 return NULL;
5757 if (_argo0) {
5758 if (_argo0 == Py_None) { _arg0 = NULL; }
5759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5761 return NULL;
5762 }
5763 }
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 wxDC_Clear(_arg0);
5767
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) return NULL;
5770 } Py_INCREF(Py_None);
5771 _resultobj = Py_None;
5772 return _resultobj;
5773 }
5774
5775 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5776 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
5777 PyObject * _resultobj;
5778 wxDC * _arg0;
5779 wxCoord _arg1;
5780 wxCoord _arg2;
5781 PyObject * _argo0 = 0;
5782 char *_kwnames[] = { "self","x","y", NULL };
5783
5784 self = self;
5785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
5786 return NULL;
5787 if (_argo0) {
5788 if (_argo0 == Py_None) { _arg0 = NULL; }
5789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5791 return NULL;
5792 }
5793 }
5794 {
5795 PyThreadState* __tstate = wxPyBeginAllowThreads();
5796 wxDC_CrossHair(_arg0,_arg1,_arg2);
5797
5798 wxPyEndAllowThreads(__tstate);
5799 if (PyErr_Occurred()) return NULL;
5800 } Py_INCREF(Py_None);
5801 _resultobj = Py_None;
5802 return _resultobj;
5803 }
5804
5805 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5806 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5807 PyObject * _resultobj;
5808 wxDC * _arg0;
5809 PyObject * _argo0 = 0;
5810 char *_kwnames[] = { "self", NULL };
5811
5812 self = self;
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
5814 return NULL;
5815 if (_argo0) {
5816 if (_argo0 == Py_None) { _arg0 = NULL; }
5817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5819 return NULL;
5820 }
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 wxDC_DestroyClippingRegion(_arg0);
5825
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) return NULL;
5828 } Py_INCREF(Py_None);
5829 _resultobj = Py_None;
5830 return _resultobj;
5831 }
5832
5833 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5834 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
5835 PyObject * _resultobj;
5836 wxCoord _result;
5837 wxDC * _arg0;
5838 wxCoord _arg1;
5839 PyObject * _argo0 = 0;
5840 char *_kwnames[] = { "self","x", NULL };
5841
5842 self = self;
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
5844 return NULL;
5845 if (_argo0) {
5846 if (_argo0 == Py_None) { _arg0 = NULL; }
5847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5849 return NULL;
5850 }
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 _result = (wxCoord )wxDC_DeviceToLogicalX(_arg0,_arg1);
5855
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) return NULL;
5858 } _resultobj = Py_BuildValue("i",_result);
5859 return _resultobj;
5860 }
5861
5862 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5863 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject * _resultobj;
5865 wxCoord _result;
5866 wxDC * _arg0;
5867 wxCoord _arg1;
5868 PyObject * _argo0 = 0;
5869 char *_kwnames[] = { "self","x", NULL };
5870
5871 self = self;
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
5873 return NULL;
5874 if (_argo0) {
5875 if (_argo0 == Py_None) { _arg0 = NULL; }
5876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5878 return NULL;
5879 }
5880 }
5881 {
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 _result = (wxCoord )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
5884
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) return NULL;
5887 } _resultobj = Py_BuildValue("i",_result);
5888 return _resultobj;
5889 }
5890
5891 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5892 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
5893 PyObject * _resultobj;
5894 wxCoord _result;
5895 wxDC * _arg0;
5896 wxCoord _arg1;
5897 PyObject * _argo0 = 0;
5898 char *_kwnames[] = { "self","y", NULL };
5899
5900 self = self;
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
5902 return NULL;
5903 if (_argo0) {
5904 if (_argo0 == Py_None) { _arg0 = NULL; }
5905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5907 return NULL;
5908 }
5909 }
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 _result = (wxCoord )wxDC_DeviceToLogicalY(_arg0,_arg1);
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) return NULL;
5916 } _resultobj = Py_BuildValue("i",_result);
5917 return _resultobj;
5918 }
5919
5920 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5921 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject * _resultobj;
5923 wxCoord _result;
5924 wxDC * _arg0;
5925 wxCoord _arg1;
5926 PyObject * _argo0 = 0;
5927 char *_kwnames[] = { "self","y", NULL };
5928
5929 self = self;
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
5931 return NULL;
5932 if (_argo0) {
5933 if (_argo0 == Py_None) { _arg0 = NULL; }
5934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5936 return NULL;
5937 }
5938 }
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 _result = (wxCoord )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
5942
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) return NULL;
5945 } _resultobj = Py_BuildValue("i",_result);
5946 return _resultobj;
5947 }
5948
5949 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5950 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5951 PyObject * _resultobj;
5952 wxDC * _arg0;
5953 wxCoord _arg1;
5954 wxCoord _arg2;
5955 wxCoord _arg3;
5956 wxCoord _arg4;
5957 wxCoord _arg5;
5958 wxCoord _arg6;
5959 PyObject * _argo0 = 0;
5960 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
5961
5962 self = self;
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5964 return NULL;
5965 if (_argo0) {
5966 if (_argo0 == Py_None) { _arg0 = NULL; }
5967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5969 return NULL;
5970 }
5971 }
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5975
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) return NULL;
5978 } Py_INCREF(Py_None);
5979 _resultobj = Py_None;
5980 return _resultobj;
5981 }
5982
5983 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5984 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject * _resultobj;
5986 wxDC * _arg0;
5987 wxCoord _arg1;
5988 wxCoord _arg2;
5989 wxCoord _arg3;
5990 PyObject * _argo0 = 0;
5991 char *_kwnames[] = { "self","x","y","radius", NULL };
5992
5993 self = self;
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5995 return NULL;
5996 if (_argo0) {
5997 if (_argo0 == Py_None) { _arg0 = NULL; }
5998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6000 return NULL;
6001 }
6002 }
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6006
6007 wxPyEndAllowThreads(__tstate);
6008 if (PyErr_Occurred()) return NULL;
6009 } Py_INCREF(Py_None);
6010 _resultobj = Py_None;
6011 return _resultobj;
6012 }
6013
6014 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6015 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6016 PyObject * _resultobj;
6017 wxDC * _arg0;
6018 wxCoord _arg1;
6019 wxCoord _arg2;
6020 wxCoord _arg3;
6021 wxCoord _arg4;
6022 PyObject * _argo0 = 0;
6023 char *_kwnames[] = { "self","x","y","width","height", NULL };
6024
6025 self = self;
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6027 return NULL;
6028 if (_argo0) {
6029 if (_argo0 == Py_None) { _arg0 = NULL; }
6030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6032 return NULL;
6033 }
6034 }
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) return NULL;
6041 } Py_INCREF(Py_None);
6042 _resultobj = Py_None;
6043 return _resultobj;
6044 }
6045
6046 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6047 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject * _resultobj;
6049 wxDC * _arg0;
6050 wxCoord _arg1;
6051 wxCoord _arg2;
6052 wxCoord _arg3;
6053 wxCoord _arg4;
6054 wxCoord _arg5;
6055 wxCoord _arg6;
6056 PyObject * _argo0 = 0;
6057 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6058
6059 self = self;
6060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6061 return NULL;
6062 if (_argo0) {
6063 if (_argo0 == Py_None) { _arg0 = NULL; }
6064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6066 return NULL;
6067 }
6068 }
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) return NULL;
6075 } Py_INCREF(Py_None);
6076 _resultobj = Py_None;
6077 return _resultobj;
6078 }
6079
6080 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6081 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6082 PyObject * _resultobj;
6083 wxDC * _arg0;
6084 wxIcon * _arg1;
6085 wxCoord _arg2;
6086 wxCoord _arg3;
6087 PyObject * _argo0 = 0;
6088 PyObject * _argo1 = 0;
6089 char *_kwnames[] = { "self","icon","x","y", NULL };
6090
6091 self = self;
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6093 return NULL;
6094 if (_argo0) {
6095 if (_argo0 == Py_None) { _arg0 = NULL; }
6096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6098 return NULL;
6099 }
6100 }
6101 if (_argo1) {
6102 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6103 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6104 return NULL;
6105 }
6106 }
6107 {
6108 PyThreadState* __tstate = wxPyBeginAllowThreads();
6109 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6110
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) return NULL;
6113 } Py_INCREF(Py_None);
6114 _resultobj = Py_None;
6115 return _resultobj;
6116 }
6117
6118 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6119 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6120 PyObject * _resultobj;
6121 wxDC * _arg0;
6122 wxString * _arg1;
6123 wxRect * _arg2;
6124 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6125 int _arg4 = (int ) -1;
6126 PyObject * _argo0 = 0;
6127 PyObject * _obj1 = 0;
6128 wxRect temp;
6129 PyObject * _obj2 = 0;
6130 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6131
6132 self = self;
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6134 return NULL;
6135 if (_argo0) {
6136 if (_argo0 == Py_None) { _arg0 = NULL; }
6137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6139 return NULL;
6140 }
6141 }
6142 {
6143 _arg1 = wxString_in_helper(_obj1);
6144 if (_arg1 == NULL)
6145 return NULL;
6146 }
6147 {
6148 _arg2 = &temp;
6149 if (! wxRect_helper(_obj2, &_arg2))
6150 return NULL;
6151 }
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) return NULL;
6158 } Py_INCREF(Py_None);
6159 _resultobj = Py_None;
6160 {
6161 if (_obj1)
6162 delete _arg1;
6163 }
6164 return _resultobj;
6165 }
6166
6167 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6168 wxRect rv;
6169 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6170 return rv;
6171 }
6172 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject * _resultobj;
6174 wxRect * _result;
6175 wxDC * _arg0;
6176 wxString * _arg1;
6177 wxBitmap * _arg2;
6178 wxRect * _arg3;
6179 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6180 int _arg5 = (int ) -1;
6181 PyObject * _argo0 = 0;
6182 PyObject * _obj1 = 0;
6183 PyObject * _argo2 = 0;
6184 wxRect temp;
6185 PyObject * _obj3 = 0;
6186 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6187 char _ptemp[128];
6188
6189 self = self;
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6191 return NULL;
6192 if (_argo0) {
6193 if (_argo0 == Py_None) { _arg0 = NULL; }
6194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6196 return NULL;
6197 }
6198 }
6199 {
6200 _arg1 = wxString_in_helper(_obj1);
6201 if (_arg1 == NULL)
6202 return NULL;
6203 }
6204 if (_argo2) {
6205 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6207 return NULL;
6208 }
6209 }
6210 {
6211 _arg3 = &temp;
6212 if (! wxRect_helper(_obj3, &_arg3))
6213 return NULL;
6214 }
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) return NULL;
6221 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6222 _resultobj = Py_BuildValue("s",_ptemp);
6223 {
6224 if (_obj1)
6225 delete _arg1;
6226 }
6227 return _resultobj;
6228 }
6229
6230 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6231 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6232 PyObject * _resultobj;
6233 wxDC * _arg0;
6234 wxCoord _arg1;
6235 wxCoord _arg2;
6236 wxCoord _arg3;
6237 wxCoord _arg4;
6238 PyObject * _argo0 = 0;
6239 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6240
6241 self = self;
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6243 return NULL;
6244 if (_argo0) {
6245 if (_argo0 == Py_None) { _arg0 = NULL; }
6246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6248 return NULL;
6249 }
6250 }
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) return NULL;
6257 } Py_INCREF(Py_None);
6258 _resultobj = Py_None;
6259 return _resultobj;
6260 }
6261
6262 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6263 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6264 PyObject * _resultobj;
6265 wxDC * _arg0;
6266 int _arg1;
6267 wxPoint * _arg2;
6268 wxCoord _arg3 = (wxCoord ) 0;
6269 wxCoord _arg4 = (wxCoord ) 0;
6270 PyObject * _argo0 = 0;
6271 int NPOINTS;
6272 PyObject * _obj2 = 0;
6273 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6274
6275 self = self;
6276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6277 return NULL;
6278 if (_argo0) {
6279 if (_argo0 == Py_None) { _arg0 = NULL; }
6280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6282 return NULL;
6283 }
6284 }
6285 if (_obj2)
6286 {
6287 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6288 if (_arg2 == NULL) {
6289 return NULL;
6290 }
6291 }
6292 {
6293 _arg1 = NPOINTS;
6294 }
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6298
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) return NULL;
6301 } Py_INCREF(Py_None);
6302 _resultobj = Py_None;
6303 {
6304 delete [] _arg2;
6305 }
6306 return _resultobj;
6307 }
6308
6309 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6310 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6311 PyObject * _resultobj;
6312 wxDC * _arg0;
6313 int _arg1;
6314 wxPoint * _arg2;
6315 wxCoord _arg3 = (wxCoord ) 0;
6316 wxCoord _arg4 = (wxCoord ) 0;
6317 int _arg5 = (int ) wxODDEVEN_RULE;
6318 PyObject * _argo0 = 0;
6319 int NPOINTS;
6320 PyObject * _obj2 = 0;
6321 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6322
6323 self = self;
6324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iii:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6325 return NULL;
6326 if (_argo0) {
6327 if (_argo0 == Py_None) { _arg0 = NULL; }
6328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6330 return NULL;
6331 }
6332 }
6333 if (_obj2)
6334 {
6335 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6336 if (_arg2 == NULL) {
6337 return NULL;
6338 }
6339 }
6340 {
6341 _arg1 = NPOINTS;
6342 }
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) return NULL;
6349 } Py_INCREF(Py_None);
6350 _resultobj = Py_None;
6351 {
6352 delete [] _arg2;
6353 }
6354 return _resultobj;
6355 }
6356
6357 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6358 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6359 PyObject * _resultobj;
6360 wxDC * _arg0;
6361 wxCoord _arg1;
6362 wxCoord _arg2;
6363 PyObject * _argo0 = 0;
6364 char *_kwnames[] = { "self","x","y", NULL };
6365
6366 self = self;
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6368 return NULL;
6369 if (_argo0) {
6370 if (_argo0 == Py_None) { _arg0 = NULL; }
6371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6373 return NULL;
6374 }
6375 }
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) return NULL;
6382 } Py_INCREF(Py_None);
6383 _resultobj = Py_None;
6384 return _resultobj;
6385 }
6386
6387 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6388 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6389 PyObject * _resultobj;
6390 wxDC * _arg0;
6391 wxCoord _arg1;
6392 wxCoord _arg2;
6393 wxCoord _arg3;
6394 wxCoord _arg4;
6395 PyObject * _argo0 = 0;
6396 char *_kwnames[] = { "self","x","y","width","height", NULL };
6397
6398 self = self;
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6400 return NULL;
6401 if (_argo0) {
6402 if (_argo0 == Py_None) { _arg0 = NULL; }
6403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6405 return NULL;
6406 }
6407 }
6408 {
6409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6410 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6411
6412 wxPyEndAllowThreads(__tstate);
6413 if (PyErr_Occurred()) return NULL;
6414 } Py_INCREF(Py_None);
6415 _resultobj = Py_None;
6416 return _resultobj;
6417 }
6418
6419 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
6420 static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6421 PyObject * _resultobj;
6422 wxDC * _arg0;
6423 wxRect * _arg1;
6424 PyObject * _argo0 = 0;
6425 wxRect temp;
6426 PyObject * _obj1 = 0;
6427 char *_kwnames[] = { "self","rect", NULL };
6428
6429 self = self;
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1))
6431 return NULL;
6432 if (_argo0) {
6433 if (_argo0 == Py_None) { _arg0 = NULL; }
6434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
6436 return NULL;
6437 }
6438 }
6439 {
6440 _arg1 = &temp;
6441 if (! wxRect_helper(_obj1, &_arg1))
6442 return NULL;
6443 }
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 wxDC_DrawRectangleRect(_arg0,*_arg1);
6447
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) return NULL;
6450 } Py_INCREF(Py_None);
6451 _resultobj = Py_None;
6452 return _resultobj;
6453 }
6454
6455 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6456 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject * _resultobj;
6458 wxDC * _arg0;
6459 wxString * _arg1;
6460 wxCoord _arg2;
6461 wxCoord _arg3;
6462 double _arg4;
6463 PyObject * _argo0 = 0;
6464 PyObject * _obj1 = 0;
6465 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6466
6467 self = self;
6468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6469 return NULL;
6470 if (_argo0) {
6471 if (_argo0 == Py_None) { _arg0 = NULL; }
6472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6474 return NULL;
6475 }
6476 }
6477 {
6478 _arg1 = wxString_in_helper(_obj1);
6479 if (_arg1 == NULL)
6480 return NULL;
6481 }
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) return NULL;
6488 } Py_INCREF(Py_None);
6489 _resultobj = Py_None;
6490 {
6491 if (_obj1)
6492 delete _arg1;
6493 }
6494 return _resultobj;
6495 }
6496
6497 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6498 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6499 PyObject * _resultobj;
6500 wxDC * _arg0;
6501 wxCoord _arg1;
6502 wxCoord _arg2;
6503 wxCoord _arg3;
6504 wxCoord _arg4;
6505 wxCoord _arg5 = (wxCoord ) 20;
6506 PyObject * _argo0 = 0;
6507 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
6508
6509 self = self;
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
6511 return NULL;
6512 if (_argo0) {
6513 if (_argo0 == Py_None) { _arg0 = NULL; }
6514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6516 return NULL;
6517 }
6518 }
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) return NULL;
6525 } Py_INCREF(Py_None);
6526 _resultobj = Py_None;
6527 return _resultobj;
6528 }
6529
6530 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6531 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
6532 PyObject * _resultobj;
6533 wxDC * _arg0;
6534 int _arg1;
6535 wxPoint * _arg2;
6536 PyObject * _argo0 = 0;
6537 int NPOINTS;
6538 PyObject * _obj2 = 0;
6539 char *_kwnames[] = { "self","points", NULL };
6540
6541 self = self;
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
6543 return NULL;
6544 if (_argo0) {
6545 if (_argo0 == Py_None) { _arg0 = NULL; }
6546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6548 return NULL;
6549 }
6550 }
6551 if (_obj2)
6552 {
6553 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6554 if (_arg2 == NULL) {
6555 return NULL;
6556 }
6557 }
6558 {
6559 _arg1 = NPOINTS;
6560 }
6561 {
6562 PyThreadState* __tstate = wxPyBeginAllowThreads();
6563 wxDC_DrawSpline(_arg0,_arg1,_arg2);
6564
6565 wxPyEndAllowThreads(__tstate);
6566 if (PyErr_Occurred()) return NULL;
6567 } Py_INCREF(Py_None);
6568 _resultobj = Py_None;
6569 {
6570 delete [] _arg2;
6571 }
6572 return _resultobj;
6573 }
6574
6575 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6576 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
6577 PyObject * _resultobj;
6578 wxDC * _arg0;
6579 wxString * _arg1;
6580 wxCoord _arg2;
6581 wxCoord _arg3;
6582 PyObject * _argo0 = 0;
6583 PyObject * _obj1 = 0;
6584 char *_kwnames[] = { "self","text","x","y", NULL };
6585
6586 self = self;
6587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6588 return NULL;
6589 if (_argo0) {
6590 if (_argo0 == Py_None) { _arg0 = NULL; }
6591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6593 return NULL;
6594 }
6595 }
6596 {
6597 _arg1 = wxString_in_helper(_obj1);
6598 if (_arg1 == NULL)
6599 return NULL;
6600 }
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) return NULL;
6607 } Py_INCREF(Py_None);
6608 _resultobj = Py_None;
6609 {
6610 if (_obj1)
6611 delete _arg1;
6612 }
6613 return _resultobj;
6614 }
6615
6616 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6617 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject * _resultobj;
6619 wxDC * _arg0;
6620 PyObject * _argo0 = 0;
6621 char *_kwnames[] = { "self", NULL };
6622
6623 self = self;
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
6625 return NULL;
6626 if (_argo0) {
6627 if (_argo0 == Py_None) { _arg0 = NULL; }
6628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6630 return NULL;
6631 }
6632 }
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 wxDC_EndDoc(_arg0);
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) return NULL;
6639 } Py_INCREF(Py_None);
6640 _resultobj = Py_None;
6641 return _resultobj;
6642 }
6643
6644 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6645 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject * _resultobj;
6647 wxDC * _arg0;
6648 PyObject * _argo0 = 0;
6649 char *_kwnames[] = { "self", NULL };
6650
6651 self = self;
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
6653 return NULL;
6654 if (_argo0) {
6655 if (_argo0 == Py_None) { _arg0 = NULL; }
6656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6658 return NULL;
6659 }
6660 }
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 wxDC_EndDrawing(_arg0);
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) return NULL;
6667 } Py_INCREF(Py_None);
6668 _resultobj = Py_None;
6669 return _resultobj;
6670 }
6671
6672 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6673 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6674 PyObject * _resultobj;
6675 wxDC * _arg0;
6676 PyObject * _argo0 = 0;
6677 char *_kwnames[] = { "self", NULL };
6678
6679 self = self;
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
6681 return NULL;
6682 if (_argo0) {
6683 if (_argo0 == Py_None) { _arg0 = NULL; }
6684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6686 return NULL;
6687 }
6688 }
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 wxDC_EndPage(_arg0);
6692
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) return NULL;
6695 } Py_INCREF(Py_None);
6696 _resultobj = Py_None;
6697 return _resultobj;
6698 }
6699
6700 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6701 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
6702 PyObject * _resultobj;
6703 bool _result;
6704 wxDC * _arg0;
6705 wxCoord _arg1;
6706 wxCoord _arg2;
6707 wxColour * _arg3;
6708 int _arg4 = (int ) wxFLOOD_SURFACE;
6709 PyObject * _argo0 = 0;
6710 wxColour temp;
6711 PyObject * _obj3 = 0;
6712 char *_kwnames[] = { "self","x","y","colour","style", NULL };
6713
6714 self = self;
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
6716 return NULL;
6717 if (_argo0) {
6718 if (_argo0 == Py_None) { _arg0 = NULL; }
6719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6721 return NULL;
6722 }
6723 }
6724 {
6725 _arg3 = &temp;
6726 if (! wxColour_helper(_obj3, &_arg3))
6727 return NULL;
6728 }
6729 {
6730 PyThreadState* __tstate = wxPyBeginAllowThreads();
6731 _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
6732
6733 wxPyEndAllowThreads(__tstate);
6734 if (PyErr_Occurred()) return NULL;
6735 } _resultobj = Py_BuildValue("i",_result);
6736 return _resultobj;
6737 }
6738
6739 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6740 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject * _resultobj;
6742 wxBrush * _result;
6743 wxDC * _arg0;
6744 PyObject * _argo0 = 0;
6745 char *_kwnames[] = { "self", NULL };
6746 char _ptemp[128];
6747
6748 self = self;
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
6750 return NULL;
6751 if (_argo0) {
6752 if (_argo0 == Py_None) { _arg0 = NULL; }
6753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6755 return NULL;
6756 }
6757 }
6758 {
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 _result = new wxBrush (wxDC_GetBackground(_arg0));
6761
6762 wxPyEndAllowThreads(__tstate);
6763 if (PyErr_Occurred()) return NULL;
6764 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6765 _resultobj = Py_BuildValue("s",_ptemp);
6766 return _resultobj;
6767 }
6768
6769 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6770 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6771 PyObject * _resultobj;
6772 wxBrush * _result;
6773 wxDC * _arg0;
6774 PyObject * _argo0 = 0;
6775 char *_kwnames[] = { "self", NULL };
6776 char _ptemp[128];
6777
6778 self = self;
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
6780 return NULL;
6781 if (_argo0) {
6782 if (_argo0 == Py_None) { _arg0 = NULL; }
6783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6785 return NULL;
6786 }
6787 }
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 _result = new wxBrush (wxDC_GetBrush(_arg0));
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) return NULL;
6794 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6795 _resultobj = Py_BuildValue("s",_ptemp);
6796 return _resultobj;
6797 }
6798
6799 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6800 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject * _resultobj;
6802 wxCoord _result;
6803 wxDC * _arg0;
6804 PyObject * _argo0 = 0;
6805 char *_kwnames[] = { "self", NULL };
6806
6807 self = self;
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
6809 return NULL;
6810 if (_argo0) {
6811 if (_argo0 == Py_None) { _arg0 = NULL; }
6812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6814 return NULL;
6815 }
6816 }
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 _result = (wxCoord )wxDC_GetCharHeight(_arg0);
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) return NULL;
6823 } _resultobj = Py_BuildValue("i",_result);
6824 return _resultobj;
6825 }
6826
6827 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6828 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject * _resultobj;
6830 wxCoord _result;
6831 wxDC * _arg0;
6832 PyObject * _argo0 = 0;
6833 char *_kwnames[] = { "self", NULL };
6834
6835 self = self;
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
6837 return NULL;
6838 if (_argo0) {
6839 if (_argo0 == Py_None) { _arg0 = NULL; }
6840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6842 return NULL;
6843 }
6844 }
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 _result = (wxCoord )wxDC_GetCharWidth(_arg0);
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) return NULL;
6851 } _resultobj = Py_BuildValue("i",_result);
6852 return _resultobj;
6853 }
6854
6855 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6856 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6857 PyObject * _resultobj;
6858 wxDC * _arg0;
6859 wxCoord * _arg1;
6860 int temp;
6861 wxCoord * _arg2;
6862 int temp0;
6863 wxCoord * _arg3;
6864 int temp1;
6865 wxCoord * _arg4;
6866 int temp2;
6867 PyObject * _argo0 = 0;
6868 char *_kwnames[] = { "self", NULL };
6869
6870 self = self;
6871 {
6872 _arg1 = &temp;
6873 }
6874 {
6875 _arg2 = &temp0;
6876 }
6877 {
6878 _arg3 = &temp1;
6879 }
6880 {
6881 _arg4 = &temp2;
6882 }
6883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
6884 return NULL;
6885 if (_argo0) {
6886 if (_argo0 == Py_None) { _arg0 = NULL; }
6887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6889 return NULL;
6890 }
6891 }
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) return NULL;
6898 } Py_INCREF(Py_None);
6899 _resultobj = Py_None;
6900 {
6901 PyObject *o;
6902 o = PyInt_FromLong((long) (*_arg1));
6903 _resultobj = t_output_helper(_resultobj, o);
6904 }
6905 {
6906 PyObject *o;
6907 o = PyInt_FromLong((long) (*_arg2));
6908 _resultobj = t_output_helper(_resultobj, o);
6909 }
6910 {
6911 PyObject *o;
6912 o = PyInt_FromLong((long) (*_arg3));
6913 _resultobj = t_output_helper(_resultobj, o);
6914 }
6915 {
6916 PyObject *o;
6917 o = PyInt_FromLong((long) (*_arg4));
6918 _resultobj = t_output_helper(_resultobj, o);
6919 }
6920 return _resultobj;
6921 }
6922
6923 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6924 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6925 PyObject * _resultobj;
6926 wxFont * _result;
6927 wxDC * _arg0;
6928 PyObject * _argo0 = 0;
6929 char *_kwnames[] = { "self", NULL };
6930 char _ptemp[128];
6931
6932 self = self;
6933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
6934 return NULL;
6935 if (_argo0) {
6936 if (_argo0 == Py_None) { _arg0 = NULL; }
6937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6939 return NULL;
6940 }
6941 }
6942 {
6943 PyThreadState* __tstate = wxPyBeginAllowThreads();
6944 _result = new wxFont (wxDC_GetFont(_arg0));
6945
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) return NULL;
6948 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
6949 _resultobj = Py_BuildValue("s",_ptemp);
6950 return _resultobj;
6951 }
6952
6953 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6954 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
6955 PyObject * _resultobj;
6956 int _result;
6957 wxDC * _arg0;
6958 PyObject * _argo0 = 0;
6959 char *_kwnames[] = { "self", NULL };
6960
6961 self = self;
6962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
6963 return NULL;
6964 if (_argo0) {
6965 if (_argo0 == Py_None) { _arg0 = NULL; }
6966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6968 return NULL;
6969 }
6970 }
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 _result = (int )wxDC_GetLogicalFunction(_arg0);
6974
6975 wxPyEndAllowThreads(__tstate);
6976 if (PyErr_Occurred()) return NULL;
6977 } _resultobj = Py_BuildValue("i",_result);
6978 return _resultobj;
6979 }
6980
6981 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6982 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6983 PyObject * _resultobj;
6984 wxDC * _arg0;
6985 double * _arg1;
6986 double temp;
6987 double * _arg2;
6988 double temp0;
6989 PyObject * _argo0 = 0;
6990 char *_kwnames[] = { "self", NULL };
6991
6992 self = self;
6993 {
6994 _arg1 = &temp;
6995 }
6996 {
6997 _arg2 = &temp0;
6998 }
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7000 return NULL;
7001 if (_argo0) {
7002 if (_argo0 == Py_None) { _arg0 = NULL; }
7003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7005 return NULL;
7006 }
7007 }
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7011
7012 wxPyEndAllowThreads(__tstate);
7013 if (PyErr_Occurred()) return NULL;
7014 } Py_INCREF(Py_None);
7015 _resultobj = Py_None;
7016 {
7017 PyObject *o;
7018 o = PyFloat_FromDouble((double) (*_arg1));
7019 _resultobj = t_output_helper(_resultobj, o);
7020 }
7021 {
7022 PyObject *o;
7023 o = PyFloat_FromDouble((double) (*_arg2));
7024 _resultobj = t_output_helper(_resultobj, o);
7025 }
7026 return _resultobj;
7027 }
7028
7029 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7030 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject * _resultobj;
7032 int _result;
7033 wxDC * _arg0;
7034 PyObject * _argo0 = 0;
7035 char *_kwnames[] = { "self", NULL };
7036
7037 self = self;
7038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7039 return NULL;
7040 if (_argo0) {
7041 if (_argo0 == Py_None) { _arg0 = NULL; }
7042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7044 return NULL;
7045 }
7046 }
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 _result = (int )wxDC_GetMapMode(_arg0);
7050
7051 wxPyEndAllowThreads(__tstate);
7052 if (PyErr_Occurred()) return NULL;
7053 } _resultobj = Py_BuildValue("i",_result);
7054 return _resultobj;
7055 }
7056
7057 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7058 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7059 PyObject * _resultobj;
7060 bool _result;
7061 wxDC * _arg0;
7062 PyObject * _argo0 = 0;
7063 char *_kwnames[] = { "self", NULL };
7064
7065 self = self;
7066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7067 return NULL;
7068 if (_argo0) {
7069 if (_argo0 == Py_None) { _arg0 = NULL; }
7070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7072 return NULL;
7073 }
7074 }
7075 {
7076 PyThreadState* __tstate = wxPyBeginAllowThreads();
7077 _result = (bool )wxDC_GetOptimization(_arg0);
7078
7079 wxPyEndAllowThreads(__tstate);
7080 if (PyErr_Occurred()) return NULL;
7081 } _resultobj = Py_BuildValue("i",_result);
7082 return _resultobj;
7083 }
7084
7085 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7086 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7087 PyObject * _resultobj;
7088 wxPen * _result;
7089 wxDC * _arg0;
7090 PyObject * _argo0 = 0;
7091 char *_kwnames[] = { "self", NULL };
7092 char _ptemp[128];
7093
7094 self = self;
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7096 return NULL;
7097 if (_argo0) {
7098 if (_argo0 == Py_None) { _arg0 = NULL; }
7099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7101 return NULL;
7102 }
7103 }
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 _result = new wxPen (wxDC_GetPen(_arg0));
7107
7108 wxPyEndAllowThreads(__tstate);
7109 if (PyErr_Occurred()) return NULL;
7110 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7111 _resultobj = Py_BuildValue("s",_ptemp);
7112 return _resultobj;
7113 }
7114
7115 static wxColour * wxDC_GetPixel(wxDC *self,wxCoord x,wxCoord y) {
7116 wxColour* wc = new wxColour();
7117 self->GetPixel(x, y, wc);
7118 return wc;
7119 }
7120 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7121 PyObject * _resultobj;
7122 wxColour * _result;
7123 wxDC * _arg0;
7124 wxCoord _arg1;
7125 wxCoord _arg2;
7126 PyObject * _argo0 = 0;
7127 char *_kwnames[] = { "self","x","y", NULL };
7128 char _ptemp[128];
7129
7130 self = self;
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7132 return NULL;
7133 if (_argo0) {
7134 if (_argo0 == Py_None) { _arg0 = NULL; }
7135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7137 return NULL;
7138 }
7139 }
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) return NULL;
7146 } if (_result) {
7147 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7148 _resultobj = Py_BuildValue("s",_ptemp);
7149 } else {
7150 Py_INCREF(Py_None);
7151 _resultobj = Py_None;
7152 }
7153 return _resultobj;
7154 }
7155
7156 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7157 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7158 PyObject * _resultobj;
7159 wxDC * _arg0;
7160 int * _arg1;
7161 int temp;
7162 int * _arg2;
7163 int temp0;
7164 PyObject * _argo0 = 0;
7165 char *_kwnames[] = { "self", NULL };
7166
7167 self = self;
7168 {
7169 _arg1 = &temp;
7170 }
7171 {
7172 _arg2 = &temp0;
7173 }
7174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7175 return NULL;
7176 if (_argo0) {
7177 if (_argo0 == Py_None) { _arg0 = NULL; }
7178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7180 return NULL;
7181 }
7182 }
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7186
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) return NULL;
7189 } Py_INCREF(Py_None);
7190 _resultobj = Py_None;
7191 {
7192 PyObject *o;
7193 o = PyInt_FromLong((long) (*_arg1));
7194 _resultobj = t_output_helper(_resultobj, o);
7195 }
7196 {
7197 PyObject *o;
7198 o = PyInt_FromLong((long) (*_arg2));
7199 _resultobj = t_output_helper(_resultobj, o);
7200 }
7201 return _resultobj;
7202 }
7203
7204 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7205 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7206 PyObject * _resultobj;
7207 wxSize * _result;
7208 wxDC * _arg0;
7209 PyObject * _argo0 = 0;
7210 char *_kwnames[] = { "self", NULL };
7211 char _ptemp[128];
7212
7213 self = self;
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7215 return NULL;
7216 if (_argo0) {
7217 if (_argo0 == Py_None) { _arg0 = NULL; }
7218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7220 return NULL;
7221 }
7222 }
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 _result = new wxSize (wxDC_GetSize(_arg0));
7226
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) return NULL;
7229 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7230 _resultobj = Py_BuildValue("s",_ptemp);
7231 return _resultobj;
7232 }
7233
7234 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7235 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7236 PyObject * _resultobj;
7237 wxSize * _result;
7238 wxDC * _arg0;
7239 PyObject * _argo0 = 0;
7240 char *_kwnames[] = { "self", NULL };
7241 char _ptemp[128];
7242
7243 self = self;
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7245 return NULL;
7246 if (_argo0) {
7247 if (_argo0 == Py_None) { _arg0 = NULL; }
7248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7250 return NULL;
7251 }
7252 }
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) return NULL;
7259 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7260 _resultobj = Py_BuildValue("s",_ptemp);
7261 return _resultobj;
7262 }
7263
7264 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7265 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7266 PyObject * _resultobj;
7267 wxColour * _result;
7268 wxDC * _arg0;
7269 PyObject * _argo0 = 0;
7270 char *_kwnames[] = { "self", NULL };
7271 char _ptemp[128];
7272
7273 self = self;
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7275 return NULL;
7276 if (_argo0) {
7277 if (_argo0 == Py_None) { _arg0 = NULL; }
7278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7280 return NULL;
7281 }
7282 }
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) return NULL;
7289 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7290 _resultobj = Py_BuildValue("s",_ptemp);
7291 return _resultobj;
7292 }
7293
7294 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7295 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject * _resultobj;
7297 wxDC * _arg0;
7298 wxString * _arg1;
7299 wxCoord * _arg2;
7300 int temp;
7301 wxCoord * _arg3;
7302 int temp0;
7303 PyObject * _argo0 = 0;
7304 PyObject * _obj1 = 0;
7305 char *_kwnames[] = { "self","string", NULL };
7306
7307 self = self;
7308 {
7309 _arg2 = &temp;
7310 }
7311 {
7312 _arg3 = &temp0;
7313 }
7314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7315 return NULL;
7316 if (_argo0) {
7317 if (_argo0 == Py_None) { _arg0 = NULL; }
7318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7320 return NULL;
7321 }
7322 }
7323 {
7324 _arg1 = wxString_in_helper(_obj1);
7325 if (_arg1 == NULL)
7326 return NULL;
7327 }
7328 {
7329 PyThreadState* __tstate = wxPyBeginAllowThreads();
7330 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
7331
7332 wxPyEndAllowThreads(__tstate);
7333 if (PyErr_Occurred()) return NULL;
7334 } Py_INCREF(Py_None);
7335 _resultobj = Py_None;
7336 {
7337 PyObject *o;
7338 o = PyInt_FromLong((long) (*_arg2));
7339 _resultobj = t_output_helper(_resultobj, o);
7340 }
7341 {
7342 PyObject *o;
7343 o = PyInt_FromLong((long) (*_arg3));
7344 _resultobj = t_output_helper(_resultobj, o);
7345 }
7346 {
7347 if (_obj1)
7348 delete _arg1;
7349 }
7350 return _resultobj;
7351 }
7352
7353 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7354 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7355 PyObject * _resultobj;
7356 wxDC * _arg0;
7357 wxString * _arg1;
7358 wxCoord * _arg2;
7359 int temp;
7360 wxCoord * _arg3;
7361 int temp0;
7362 wxCoord * _arg4;
7363 int temp1;
7364 wxCoord * _arg5;
7365 int temp2;
7366 wxFont * _arg6 = (wxFont *) NULL;
7367 PyObject * _argo0 = 0;
7368 PyObject * _obj1 = 0;
7369 PyObject * _argo6 = 0;
7370 char *_kwnames[] = { "self","string","font", NULL };
7371
7372 self = self;
7373 {
7374 _arg2 = &temp;
7375 }
7376 {
7377 _arg3 = &temp0;
7378 }
7379 {
7380 _arg4 = &temp1;
7381 }
7382 {
7383 _arg5 = &temp2;
7384 }
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7386 return NULL;
7387 if (_argo0) {
7388 if (_argo0 == Py_None) { _arg0 = NULL; }
7389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7391 return NULL;
7392 }
7393 }
7394 {
7395 _arg1 = wxString_in_helper(_obj1);
7396 if (_arg1 == NULL)
7397 return NULL;
7398 }
7399 if (_argo6) {
7400 if (_argo6 == Py_None) { _arg6 = NULL; }
7401 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
7402 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7403 return NULL;
7404 }
7405 }
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7409
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) return NULL;
7412 } Py_INCREF(Py_None);
7413 _resultobj = Py_None;
7414 {
7415 PyObject *o;
7416 o = PyInt_FromLong((long) (*_arg2));
7417 _resultobj = t_output_helper(_resultobj, o);
7418 }
7419 {
7420 PyObject *o;
7421 o = PyInt_FromLong((long) (*_arg3));
7422 _resultobj = t_output_helper(_resultobj, o);
7423 }
7424 {
7425 PyObject *o;
7426 o = PyInt_FromLong((long) (*_arg4));
7427 _resultobj = t_output_helper(_resultobj, o);
7428 }
7429 {
7430 PyObject *o;
7431 o = PyInt_FromLong((long) (*_arg5));
7432 _resultobj = t_output_helper(_resultobj, o);
7433 }
7434 {
7435 if (_obj1)
7436 delete _arg1;
7437 }
7438 return _resultobj;
7439 }
7440
7441 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7442 static PyObject *_wrap_wxDC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7443 PyObject * _resultobj;
7444 wxDC * _arg0;
7445 wxString * _arg1;
7446 wxCoord * _arg2;
7447 int temp;
7448 wxCoord * _arg3;
7449 int temp0;
7450 wxCoord * _arg4;
7451 int temp1;
7452 wxFont * _arg5 = (wxFont *) NULL;
7453 PyObject * _argo0 = 0;
7454 PyObject * _obj1 = 0;
7455 PyObject * _argo5 = 0;
7456 char *_kwnames[] = { "self","text","font", NULL };
7457
7458 self = self;
7459 {
7460 _arg2 = &temp;
7461 }
7462 {
7463 _arg3 = &temp0;
7464 }
7465 {
7466 _arg4 = &temp1;
7467 }
7468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames,&_argo0,&_obj1,&_argo5))
7469 return NULL;
7470 if (_argo0) {
7471 if (_argo0 == Py_None) { _arg0 = NULL; }
7472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
7474 return NULL;
7475 }
7476 }
7477 {
7478 _arg1 = wxString_in_helper(_obj1);
7479 if (_arg1 == NULL)
7480 return NULL;
7481 }
7482 if (_argo5) {
7483 if (_argo5 == Py_None) { _arg5 = NULL; }
7484 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxFont_p")) {
7485 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
7486 return NULL;
7487 }
7488 }
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 wxDC_GetMultiLineTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
7492
7493 wxPyEndAllowThreads(__tstate);
7494 if (PyErr_Occurred()) return NULL;
7495 } Py_INCREF(Py_None);
7496 _resultobj = Py_None;
7497 {
7498 PyObject *o;
7499 o = PyInt_FromLong((long) (*_arg2));
7500 _resultobj = t_output_helper(_resultobj, o);
7501 }
7502 {
7503 PyObject *o;
7504 o = PyInt_FromLong((long) (*_arg3));
7505 _resultobj = t_output_helper(_resultobj, o);
7506 }
7507 {
7508 PyObject *o;
7509 o = PyInt_FromLong((long) (*_arg4));
7510 _resultobj = t_output_helper(_resultobj, o);
7511 }
7512 {
7513 if (_obj1)
7514 delete _arg1;
7515 }
7516 return _resultobj;
7517 }
7518
7519 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7520 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
7521 PyObject * _resultobj;
7522 wxColour * _result;
7523 wxDC * _arg0;
7524 PyObject * _argo0 = 0;
7525 char *_kwnames[] = { "self", NULL };
7526 char _ptemp[128];
7527
7528 self = self;
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
7530 return NULL;
7531 if (_argo0) {
7532 if (_argo0 == Py_None) { _arg0 = NULL; }
7533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7535 return NULL;
7536 }
7537 }
7538 {
7539 PyThreadState* __tstate = wxPyBeginAllowThreads();
7540 _result = new wxColour (wxDC_GetTextForeground(_arg0));
7541
7542 wxPyEndAllowThreads(__tstate);
7543 if (PyErr_Occurred()) return NULL;
7544 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7545 _resultobj = Py_BuildValue("s",_ptemp);
7546 return _resultobj;
7547 }
7548
7549 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7550 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject * _resultobj;
7552 wxDC * _arg0;
7553 double * _arg1;
7554 double temp;
7555 double * _arg2;
7556 double temp0;
7557 PyObject * _argo0 = 0;
7558 char *_kwnames[] = { "self", NULL };
7559
7560 self = self;
7561 {
7562 _arg1 = &temp;
7563 }
7564 {
7565 _arg2 = &temp0;
7566 }
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7568 return NULL;
7569 if (_argo0) {
7570 if (_argo0 == Py_None) { _arg0 = NULL; }
7571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7573 return NULL;
7574 }
7575 }
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 wxDC_GetUserScale(_arg0,_arg1,_arg2);
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) return NULL;
7582 } Py_INCREF(Py_None);
7583 _resultobj = Py_None;
7584 {
7585 PyObject *o;
7586 o = PyFloat_FromDouble((double) (*_arg1));
7587 _resultobj = t_output_helper(_resultobj, o);
7588 }
7589 {
7590 PyObject *o;
7591 o = PyFloat_FromDouble((double) (*_arg2));
7592 _resultobj = t_output_helper(_resultobj, o);
7593 }
7594 return _resultobj;
7595 }
7596
7597 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7598 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
7599 PyObject * _resultobj;
7600 wxCoord _result;
7601 wxDC * _arg0;
7602 wxCoord _arg1;
7603 PyObject * _argo0 = 0;
7604 char *_kwnames[] = { "self","x", NULL };
7605
7606 self = self;
7607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
7608 return NULL;
7609 if (_argo0) {
7610 if (_argo0 == Py_None) { _arg0 = NULL; }
7611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7613 return NULL;
7614 }
7615 }
7616 {
7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
7618 _result = (wxCoord )wxDC_LogicalToDeviceX(_arg0,_arg1);
7619
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) return NULL;
7622 } _resultobj = Py_BuildValue("i",_result);
7623 return _resultobj;
7624 }
7625
7626 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7627 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7628 PyObject * _resultobj;
7629 wxCoord _result;
7630 wxDC * _arg0;
7631 wxCoord _arg1;
7632 PyObject * _argo0 = 0;
7633 char *_kwnames[] = { "self","x", NULL };
7634
7635 self = self;
7636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
7637 return NULL;
7638 if (_argo0) {
7639 if (_argo0 == Py_None) { _arg0 = NULL; }
7640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7642 return NULL;
7643 }
7644 }
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 _result = (wxCoord )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) return NULL;
7651 } _resultobj = Py_BuildValue("i",_result);
7652 return _resultobj;
7653 }
7654
7655 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7656 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject * _resultobj;
7658 wxCoord _result;
7659 wxDC * _arg0;
7660 wxCoord _arg1;
7661 PyObject * _argo0 = 0;
7662 char *_kwnames[] = { "self","y", NULL };
7663
7664 self = self;
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
7666 return NULL;
7667 if (_argo0) {
7668 if (_argo0 == Py_None) { _arg0 = NULL; }
7669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7671 return NULL;
7672 }
7673 }
7674 {
7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
7676 _result = (wxCoord )wxDC_LogicalToDeviceY(_arg0,_arg1);
7677
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) return NULL;
7680 } _resultobj = Py_BuildValue("i",_result);
7681 return _resultobj;
7682 }
7683
7684 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7685 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject * _resultobj;
7687 wxCoord _result;
7688 wxDC * _arg0;
7689 wxCoord _arg1;
7690 PyObject * _argo0 = 0;
7691 char *_kwnames[] = { "self","y", NULL };
7692
7693 self = self;
7694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
7695 return NULL;
7696 if (_argo0) {
7697 if (_argo0 == Py_None) { _arg0 = NULL; }
7698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7700 return NULL;
7701 }
7702 }
7703 {
7704 PyThreadState* __tstate = wxPyBeginAllowThreads();
7705 _result = (wxCoord )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
7706
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) return NULL;
7709 } _resultobj = Py_BuildValue("i",_result);
7710 return _resultobj;
7711 }
7712
7713 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7714 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
7715 PyObject * _resultobj;
7716 wxCoord _result;
7717 wxDC * _arg0;
7718 PyObject * _argo0 = 0;
7719 char *_kwnames[] = { "self", NULL };
7720
7721 self = self;
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
7723 return NULL;
7724 if (_argo0) {
7725 if (_argo0 == Py_None) { _arg0 = NULL; }
7726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7728 return NULL;
7729 }
7730 }
7731 {
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 _result = (wxCoord )wxDC_MaxX(_arg0);
7734
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) return NULL;
7737 } _resultobj = Py_BuildValue("i",_result);
7738 return _resultobj;
7739 }
7740
7741 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7742 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
7743 PyObject * _resultobj;
7744 wxCoord _result;
7745 wxDC * _arg0;
7746 PyObject * _argo0 = 0;
7747 char *_kwnames[] = { "self", NULL };
7748
7749 self = self;
7750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
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_MaxY. Expected _wxDC_p.");
7756 return NULL;
7757 }
7758 }
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 _result = (wxCoord )wxDC_MaxY(_arg0);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) return NULL;
7765 } _resultobj = Py_BuildValue("i",_result);
7766 return _resultobj;
7767 }
7768
7769 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7770 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject * _resultobj;
7772 wxCoord _result;
7773 wxDC * _arg0;
7774 PyObject * _argo0 = 0;
7775 char *_kwnames[] = { "self", NULL };
7776
7777 self = self;
7778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
7779 return NULL;
7780 if (_argo0) {
7781 if (_argo0 == Py_None) { _arg0 = NULL; }
7782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7784 return NULL;
7785 }
7786 }
7787 {
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 _result = (wxCoord )wxDC_MinX(_arg0);
7790
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) return NULL;
7793 } _resultobj = Py_BuildValue("i",_result);
7794 return _resultobj;
7795 }
7796
7797 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7798 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
7799 PyObject * _resultobj;
7800 wxCoord _result;
7801 wxDC * _arg0;
7802 PyObject * _argo0 = 0;
7803 char *_kwnames[] = { "self", NULL };
7804
7805 self = self;
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
7807 return NULL;
7808 if (_argo0) {
7809 if (_argo0 == Py_None) { _arg0 = NULL; }
7810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7812 return NULL;
7813 }
7814 }
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 _result = (wxCoord )wxDC_MinY(_arg0);
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) return NULL;
7821 } _resultobj = Py_BuildValue("i",_result);
7822 return _resultobj;
7823 }
7824
7825 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7826 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject * _resultobj;
7828 bool _result;
7829 wxDC * _arg0;
7830 PyObject * _argo0 = 0;
7831 char *_kwnames[] = { "self", NULL };
7832
7833 self = self;
7834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
7835 return NULL;
7836 if (_argo0) {
7837 if (_argo0 == Py_None) { _arg0 = NULL; }
7838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7840 return NULL;
7841 }
7842 }
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 _result = (bool )wxDC_Ok(_arg0);
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) return NULL;
7849 } _resultobj = Py_BuildValue("i",_result);
7850 return _resultobj;
7851 }
7852
7853 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7854 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7855 PyObject * _resultobj;
7856 wxDC * _arg0;
7857 wxCoord _arg1;
7858 wxCoord _arg2;
7859 PyObject * _argo0 = 0;
7860 char *_kwnames[] = { "self","x","y", NULL };
7861
7862 self = self;
7863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7864 return NULL;
7865 if (_argo0) {
7866 if (_argo0 == Py_None) { _arg0 = NULL; }
7867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7869 return NULL;
7870 }
7871 }
7872 {
7873 PyThreadState* __tstate = wxPyBeginAllowThreads();
7874 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
7875
7876 wxPyEndAllowThreads(__tstate);
7877 if (PyErr_Occurred()) return NULL;
7878 } Py_INCREF(Py_None);
7879 _resultobj = Py_None;
7880 return _resultobj;
7881 }
7882
7883 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7884 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7885 PyObject * _resultobj;
7886 wxDC * _arg0;
7887 wxBrush * _arg1;
7888 PyObject * _argo0 = 0;
7889 PyObject * _argo1 = 0;
7890 char *_kwnames[] = { "self","brush", NULL };
7891
7892 self = self;
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
7894 return NULL;
7895 if (_argo0) {
7896 if (_argo0 == Py_None) { _arg0 = NULL; }
7897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7899 return NULL;
7900 }
7901 }
7902 if (_argo1) {
7903 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7904 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7905 return NULL;
7906 }
7907 }
7908 {
7909 PyThreadState* __tstate = wxPyBeginAllowThreads();
7910 wxDC_SetBackground(_arg0,*_arg1);
7911
7912 wxPyEndAllowThreads(__tstate);
7913 if (PyErr_Occurred()) return NULL;
7914 } Py_INCREF(Py_None);
7915 _resultobj = Py_None;
7916 return _resultobj;
7917 }
7918
7919 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7920 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7921 PyObject * _resultobj;
7922 wxDC * _arg0;
7923 int _arg1;
7924 PyObject * _argo0 = 0;
7925 char *_kwnames[] = { "self","mode", NULL };
7926
7927 self = self;
7928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
7929 return NULL;
7930 if (_argo0) {
7931 if (_argo0 == Py_None) { _arg0 = NULL; }
7932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7934 return NULL;
7935 }
7936 }
7937 {
7938 PyThreadState* __tstate = wxPyBeginAllowThreads();
7939 wxDC_SetBackgroundMode(_arg0,_arg1);
7940
7941 wxPyEndAllowThreads(__tstate);
7942 if (PyErr_Occurred()) return NULL;
7943 } Py_INCREF(Py_None);
7944 _resultobj = Py_None;
7945 return _resultobj;
7946 }
7947
7948 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7949 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7950 PyObject * _resultobj;
7951 wxDC * _arg0;
7952 wxCoord _arg1;
7953 wxCoord _arg2;
7954 wxCoord _arg3;
7955 wxCoord _arg4;
7956 PyObject * _argo0 = 0;
7957 char *_kwnames[] = { "self","x","y","width","height", NULL };
7958
7959 self = self;
7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7961 return NULL;
7962 if (_argo0) {
7963 if (_argo0 == Py_None) { _arg0 = NULL; }
7964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7966 return NULL;
7967 }
7968 }
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) return NULL;
7975 } Py_INCREF(Py_None);
7976 _resultobj = Py_None;
7977 return _resultobj;
7978 }
7979
7980 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7981 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7982 PyObject * _resultobj;
7983 wxDC * _arg0;
7984 wxRegion * _arg1;
7985 PyObject * _argo0 = 0;
7986 PyObject * _argo1 = 0;
7987 char *_kwnames[] = { "self","region", NULL };
7988
7989 self = self;
7990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
7991 return NULL;
7992 if (_argo0) {
7993 if (_argo0 == Py_None) { _arg0 = NULL; }
7994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7996 return NULL;
7997 }
7998 }
7999 if (_argo1) {
8000 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8001 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8002 return NULL;
8003 }
8004 }
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8008
8009 wxPyEndAllowThreads(__tstate);
8010 if (PyErr_Occurred()) return NULL;
8011 } Py_INCREF(Py_None);
8012 _resultobj = Py_None;
8013 return _resultobj;
8014 }
8015
8016 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8017 static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8018 PyObject * _resultobj;
8019 wxDC * _arg0;
8020 wxRect * _arg1;
8021 PyObject * _argo0 = 0;
8022 wxRect temp;
8023 PyObject * _obj1 = 0;
8024 char *_kwnames[] = { "self","rect", NULL };
8025
8026 self = self;
8027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1))
8028 return NULL;
8029 if (_argo0) {
8030 if (_argo0 == Py_None) { _arg0 = NULL; }
8031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
8033 return NULL;
8034 }
8035 }
8036 {
8037 _arg1 = &temp;
8038 if (! wxRect_helper(_obj1, &_arg1))
8039 return NULL;
8040 }
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 wxDC_SetClippingRect(_arg0,*_arg1);
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) return NULL;
8047 } Py_INCREF(Py_None);
8048 _resultobj = Py_None;
8049 return _resultobj;
8050 }
8051
8052 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8053 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8054 PyObject * _resultobj;
8055 wxDC * _arg0;
8056 wxPalette * _arg1;
8057 PyObject * _argo0 = 0;
8058 PyObject * _argo1 = 0;
8059 char *_kwnames[] = { "self","colourMap", NULL };
8060
8061 self = self;
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8063 return NULL;
8064 if (_argo0) {
8065 if (_argo0 == Py_None) { _arg0 = NULL; }
8066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8068 return NULL;
8069 }
8070 }
8071 if (_argo1) {
8072 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8073 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8074 return NULL;
8075 }
8076 }
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 wxDC_SetPalette(_arg0,*_arg1);
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) return NULL;
8083 } Py_INCREF(Py_None);
8084 _resultobj = Py_None;
8085 return _resultobj;
8086 }
8087
8088 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8089 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8090 PyObject * _resultobj;
8091 wxDC * _arg0;
8092 wxBrush * _arg1;
8093 PyObject * _argo0 = 0;
8094 PyObject * _argo1 = 0;
8095 char *_kwnames[] = { "self","brush", NULL };
8096
8097 self = self;
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8099 return NULL;
8100 if (_argo0) {
8101 if (_argo0 == Py_None) { _arg0 = NULL; }
8102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8104 return NULL;
8105 }
8106 }
8107 if (_argo1) {
8108 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8109 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8110 return NULL;
8111 }
8112 }
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 wxDC_SetBrush(_arg0,*_arg1);
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) return NULL;
8119 } Py_INCREF(Py_None);
8120 _resultobj = Py_None;
8121 return _resultobj;
8122 }
8123
8124 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8125 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8126 PyObject * _resultobj;
8127 wxDC * _arg0;
8128 wxFont * _arg1;
8129 PyObject * _argo0 = 0;
8130 PyObject * _argo1 = 0;
8131 char *_kwnames[] = { "self","font", NULL };
8132
8133 self = self;
8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8135 return NULL;
8136 if (_argo0) {
8137 if (_argo0 == Py_None) { _arg0 = NULL; }
8138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8140 return NULL;
8141 }
8142 }
8143 if (_argo1) {
8144 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8145 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8146 return NULL;
8147 }
8148 }
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 wxDC_SetFont(_arg0,*_arg1);
8152
8153 wxPyEndAllowThreads(__tstate);
8154 if (PyErr_Occurred()) return NULL;
8155 } Py_INCREF(Py_None);
8156 _resultobj = Py_None;
8157 return _resultobj;
8158 }
8159
8160 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8161 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8162 PyObject * _resultobj;
8163 wxDC * _arg0;
8164 int _arg1;
8165 PyObject * _argo0 = 0;
8166 char *_kwnames[] = { "self","function", NULL };
8167
8168 self = self;
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
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_SetLogicalFunction. Expected _wxDC_p.");
8175 return NULL;
8176 }
8177 }
8178 {
8179 PyThreadState* __tstate = wxPyBeginAllowThreads();
8180 wxDC_SetLogicalFunction(_arg0,_arg1);
8181
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) return NULL;
8184 } Py_INCREF(Py_None);
8185 _resultobj = Py_None;
8186 return _resultobj;
8187 }
8188
8189 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8190 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8191 PyObject * _resultobj;
8192 wxDC * _arg0;
8193 double _arg1;
8194 double _arg2;
8195 PyObject * _argo0 = 0;
8196 char *_kwnames[] = { "self","x","y", NULL };
8197
8198 self = self;
8199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8200 return NULL;
8201 if (_argo0) {
8202 if (_argo0 == Py_None) { _arg0 = NULL; }
8203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8205 return NULL;
8206 }
8207 }
8208 {
8209 PyThreadState* __tstate = wxPyBeginAllowThreads();
8210 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8211
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) return NULL;
8214 } Py_INCREF(Py_None);
8215 _resultobj = Py_None;
8216 return _resultobj;
8217 }
8218
8219 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8220 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject * _resultobj;
8222 wxDC * _arg0;
8223 int _arg1;
8224 PyObject * _argo0 = 0;
8225 char *_kwnames[] = { "self","mode", NULL };
8226
8227 self = self;
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8229 return NULL;
8230 if (_argo0) {
8231 if (_argo0 == Py_None) { _arg0 = NULL; }
8232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8234 return NULL;
8235 }
8236 }
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 wxDC_SetMapMode(_arg0,_arg1);
8240
8241 wxPyEndAllowThreads(__tstate);
8242 if (PyErr_Occurred()) return NULL;
8243 } Py_INCREF(Py_None);
8244 _resultobj = Py_None;
8245 return _resultobj;
8246 }
8247
8248 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8249 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8250 PyObject * _resultobj;
8251 wxDC * _arg0;
8252 bool _arg1;
8253 PyObject * _argo0 = 0;
8254 int tempbool1;
8255 char *_kwnames[] = { "self","optimize", NULL };
8256
8257 self = self;
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8259 return NULL;
8260 if (_argo0) {
8261 if (_argo0 == Py_None) { _arg0 = NULL; }
8262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8264 return NULL;
8265 }
8266 }
8267 _arg1 = (bool ) tempbool1;
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 wxDC_SetOptimization(_arg0,_arg1);
8271
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) return NULL;
8274 } Py_INCREF(Py_None);
8275 _resultobj = Py_None;
8276 return _resultobj;
8277 }
8278
8279 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8280 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject * _resultobj;
8282 wxDC * _arg0;
8283 wxPen * _arg1;
8284 PyObject * _argo0 = 0;
8285 PyObject * _argo1 = 0;
8286 char *_kwnames[] = { "self","pen", NULL };
8287
8288 self = self;
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8290 return NULL;
8291 if (_argo0) {
8292 if (_argo0 == Py_None) { _arg0 = NULL; }
8293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8295 return NULL;
8296 }
8297 }
8298 if (_argo1) {
8299 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8300 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8301 return NULL;
8302 }
8303 }
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 wxDC_SetPen(_arg0,*_arg1);
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) return NULL;
8310 } Py_INCREF(Py_None);
8311 _resultobj = Py_None;
8312 return _resultobj;
8313 }
8314
8315 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8316 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8317 PyObject * _resultobj;
8318 wxDC * _arg0;
8319 wxColour * _arg1;
8320 PyObject * _argo0 = 0;
8321 wxColour temp;
8322 PyObject * _obj1 = 0;
8323 char *_kwnames[] = { "self","colour", NULL };
8324
8325 self = self;
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8327 return NULL;
8328 if (_argo0) {
8329 if (_argo0 == Py_None) { _arg0 = NULL; }
8330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8332 return NULL;
8333 }
8334 }
8335 {
8336 _arg1 = &temp;
8337 if (! wxColour_helper(_obj1, &_arg1))
8338 return NULL;
8339 }
8340 {
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 wxDC_SetTextBackground(_arg0,*_arg1);
8343
8344 wxPyEndAllowThreads(__tstate);
8345 if (PyErr_Occurred()) return NULL;
8346 } Py_INCREF(Py_None);
8347 _resultobj = Py_None;
8348 return _resultobj;
8349 }
8350
8351 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8352 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8353 PyObject * _resultobj;
8354 wxDC * _arg0;
8355 wxColour * _arg1;
8356 PyObject * _argo0 = 0;
8357 wxColour temp;
8358 PyObject * _obj1 = 0;
8359 char *_kwnames[] = { "self","colour", NULL };
8360
8361 self = self;
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8363 return NULL;
8364 if (_argo0) {
8365 if (_argo0 == Py_None) { _arg0 = NULL; }
8366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8368 return NULL;
8369 }
8370 }
8371 {
8372 _arg1 = &temp;
8373 if (! wxColour_helper(_obj1, &_arg1))
8374 return NULL;
8375 }
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 wxDC_SetTextForeground(_arg0,*_arg1);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) return NULL;
8382 } Py_INCREF(Py_None);
8383 _resultobj = Py_None;
8384 return _resultobj;
8385 }
8386
8387 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8388 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8389 PyObject * _resultobj;
8390 wxDC * _arg0;
8391 double _arg1;
8392 double _arg2;
8393 PyObject * _argo0 = 0;
8394 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8395
8396 self = self;
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8398 return NULL;
8399 if (_argo0) {
8400 if (_argo0 == Py_None) { _arg0 = NULL; }
8401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8403 return NULL;
8404 }
8405 }
8406 {
8407 PyThreadState* __tstate = wxPyBeginAllowThreads();
8408 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8409
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) return NULL;
8412 } Py_INCREF(Py_None);
8413 _resultobj = Py_None;
8414 return _resultobj;
8415 }
8416
8417 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8418 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8419 PyObject * _resultobj;
8420 bool _result;
8421 wxDC * _arg0;
8422 wxString * _arg1;
8423 PyObject * _argo0 = 0;
8424 PyObject * _obj1 = 0;
8425 char *_kwnames[] = { "self","message", NULL };
8426
8427 self = self;
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
8429 return NULL;
8430 if (_argo0) {
8431 if (_argo0 == Py_None) { _arg0 = NULL; }
8432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8434 return NULL;
8435 }
8436 }
8437 {
8438 _arg1 = wxString_in_helper(_obj1);
8439 if (_arg1 == NULL)
8440 return NULL;
8441 }
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8445
8446 wxPyEndAllowThreads(__tstate);
8447 if (PyErr_Occurred()) return NULL;
8448 } _resultobj = Py_BuildValue("i",_result);
8449 {
8450 if (_obj1)
8451 delete _arg1;
8452 }
8453 return _resultobj;
8454 }
8455
8456 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8457 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8458 PyObject * _resultobj;
8459 wxDC * _arg0;
8460 PyObject * _argo0 = 0;
8461 char *_kwnames[] = { "self", NULL };
8462
8463 self = self;
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
8465 return NULL;
8466 if (_argo0) {
8467 if (_argo0 == Py_None) { _arg0 = NULL; }
8468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8470 return NULL;
8471 }
8472 }
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 wxDC_StartPage(_arg0);
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) return NULL;
8479 } Py_INCREF(Py_None);
8480 _resultobj = Py_None;
8481 return _resultobj;
8482 }
8483
8484 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8485 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8486 PyObject * _resultobj;
8487 wxDC * _arg0;
8488 wxBitmap * _arg1;
8489 wxCoord _arg2;
8490 wxCoord _arg3;
8491 int _arg4 = (int ) FALSE;
8492 PyObject * _argo0 = 0;
8493 PyObject * _argo1 = 0;
8494 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
8495
8496 self = self;
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
8498 return NULL;
8499 if (_argo0) {
8500 if (_argo0 == Py_None) { _arg0 = NULL; }
8501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8503 return NULL;
8504 }
8505 }
8506 if (_argo1) {
8507 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8508 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8509 return NULL;
8510 }
8511 }
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) return NULL;
8518 } Py_INCREF(Py_None);
8519 _resultobj = Py_None;
8520 return _resultobj;
8521 }
8522
8523 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8524 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8525 PyObject * _resultobj;
8526 bool _result;
8527 wxDC * _arg0;
8528 PyObject * _argo0 = 0;
8529 char *_kwnames[] = { "self", NULL };
8530
8531 self = self;
8532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8533 return NULL;
8534 if (_argo0) {
8535 if (_argo0 == Py_None) { _arg0 = NULL; }
8536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8538 return NULL;
8539 }
8540 }
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 _result = (bool )wxDC_CanDrawBitmap(_arg0);
8544
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) return NULL;
8547 } _resultobj = Py_BuildValue("i",_result);
8548 return _resultobj;
8549 }
8550
8551 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8552 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8553 PyObject * _resultobj;
8554 bool _result;
8555 wxDC * _arg0;
8556 PyObject * _argo0 = 0;
8557 char *_kwnames[] = { "self", NULL };
8558
8559 self = self;
8560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8561 return NULL;
8562 if (_argo0) {
8563 if (_argo0 == Py_None) { _arg0 = NULL; }
8564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8566 return NULL;
8567 }
8568 }
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 _result = (bool )wxDC_CanGetTextExtent(_arg0);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) return NULL;
8575 } _resultobj = Py_BuildValue("i",_result);
8576 return _resultobj;
8577 }
8578
8579 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8580 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8581 PyObject * _resultobj;
8582 int _result;
8583 wxDC * _arg0;
8584 PyObject * _argo0 = 0;
8585 char *_kwnames[] = { "self", NULL };
8586
8587 self = self;
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8589 return NULL;
8590 if (_argo0) {
8591 if (_argo0 == Py_None) { _arg0 = NULL; }
8592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8594 return NULL;
8595 }
8596 }
8597 {
8598 PyThreadState* __tstate = wxPyBeginAllowThreads();
8599 _result = (int )wxDC_GetDepth(_arg0);
8600
8601 wxPyEndAllowThreads(__tstate);
8602 if (PyErr_Occurred()) return NULL;
8603 } _resultobj = Py_BuildValue("i",_result);
8604 return _resultobj;
8605 }
8606
8607 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8608 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8609 PyObject * _resultobj;
8610 wxSize * _result;
8611 wxDC * _arg0;
8612 PyObject * _argo0 = 0;
8613 char *_kwnames[] = { "self", NULL };
8614 char _ptemp[128];
8615
8616 self = self;
8617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8618 return NULL;
8619 if (_argo0) {
8620 if (_argo0 == Py_None) { _arg0 = NULL; }
8621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8623 return NULL;
8624 }
8625 }
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 _result = new wxSize (wxDC_GetPPI(_arg0));
8629
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) return NULL;
8632 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8633 _resultobj = Py_BuildValue("s",_ptemp);
8634 return _resultobj;
8635 }
8636
8637 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8638 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8639 PyObject * _resultobj;
8640 wxDC * _arg0;
8641 int * _arg1;
8642 int temp;
8643 int * _arg2;
8644 int temp0;
8645 PyObject * _argo0 = 0;
8646 char *_kwnames[] = { "self", NULL };
8647
8648 self = self;
8649 {
8650 _arg1 = &temp;
8651 }
8652 {
8653 _arg2 = &temp0;
8654 }
8655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8656 return NULL;
8657 if (_argo0) {
8658 if (_argo0 == Py_None) { _arg0 = NULL; }
8659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8661 return NULL;
8662 }
8663 }
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) return NULL;
8670 } Py_INCREF(Py_None);
8671 _resultobj = Py_None;
8672 {
8673 PyObject *o;
8674 o = PyInt_FromLong((long) (*_arg1));
8675 _resultobj = t_output_helper(_resultobj, o);
8676 }
8677 {
8678 PyObject *o;
8679 o = PyInt_FromLong((long) (*_arg2));
8680 _resultobj = t_output_helper(_resultobj, o);
8681 }
8682 return _resultobj;
8683 }
8684
8685 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8686 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8687 PyObject * _resultobj;
8688 wxDC * _arg0;
8689 int _arg1;
8690 int _arg2;
8691 PyObject * _argo0 = 0;
8692 char *_kwnames[] = { "self","x","y", NULL };
8693
8694 self = self;
8695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8696 return NULL;
8697 if (_argo0) {
8698 if (_argo0 == Py_None) { _arg0 = NULL; }
8699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8701 return NULL;
8702 }
8703 }
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) return NULL;
8710 } Py_INCREF(Py_None);
8711 _resultobj = Py_None;
8712 return _resultobj;
8713 }
8714
8715 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8716 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8717 PyObject * _resultobj;
8718 wxDC * _arg0;
8719 int * _arg1;
8720 int temp;
8721 int * _arg2;
8722 int temp0;
8723 PyObject * _argo0 = 0;
8724 char *_kwnames[] = { "self", NULL };
8725
8726 self = self;
8727 {
8728 _arg1 = &temp;
8729 }
8730 {
8731 _arg2 = &temp0;
8732 }
8733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8734 return NULL;
8735 if (_argo0) {
8736 if (_argo0 == Py_None) { _arg0 = NULL; }
8737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8739 return NULL;
8740 }
8741 }
8742 {
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
8745
8746 wxPyEndAllowThreads(__tstate);
8747 if (PyErr_Occurred()) return NULL;
8748 } Py_INCREF(Py_None);
8749 _resultobj = Py_None;
8750 {
8751 PyObject *o;
8752 o = PyInt_FromLong((long) (*_arg1));
8753 _resultobj = t_output_helper(_resultobj, o);
8754 }
8755 {
8756 PyObject *o;
8757 o = PyInt_FromLong((long) (*_arg2));
8758 _resultobj = t_output_helper(_resultobj, o);
8759 }
8760 return _resultobj;
8761 }
8762
8763 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8764 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject * _resultobj;
8766 wxDC * _arg0;
8767 bool _arg1;
8768 bool _arg2;
8769 PyObject * _argo0 = 0;
8770 int tempbool1;
8771 int tempbool2;
8772 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
8773
8774 self = self;
8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
8776 return NULL;
8777 if (_argo0) {
8778 if (_argo0 == Py_None) { _arg0 = NULL; }
8779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8781 return NULL;
8782 }
8783 }
8784 _arg1 = (bool ) tempbool1;
8785 _arg2 = (bool ) tempbool2;
8786 {
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
8789
8790 wxPyEndAllowThreads(__tstate);
8791 if (PyErr_Occurred()) return NULL;
8792 } Py_INCREF(Py_None);
8793 _resultobj = Py_None;
8794 return _resultobj;
8795 }
8796
8797 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8798 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject * _resultobj;
8800 wxDC * _arg0;
8801 int _arg1;
8802 int _arg2;
8803 PyObject * _argo0 = 0;
8804 char *_kwnames[] = { "self","x","y", NULL };
8805
8806 self = self;
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
8808 return NULL;
8809 if (_argo0) {
8810 if (_argo0 == Py_None) { _arg0 = NULL; }
8811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8813 return NULL;
8814 }
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) return NULL;
8822 } Py_INCREF(Py_None);
8823 _resultobj = Py_None;
8824 return _resultobj;
8825 }
8826
8827 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8828 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject * _resultobj;
8830 wxDC * _arg0;
8831 PyObject * _argo0 = 0;
8832 char *_kwnames[] = { "self", NULL };
8833
8834 self = self;
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
8836 return NULL;
8837 if (_argo0) {
8838 if (_argo0 == Py_None) { _arg0 = NULL; }
8839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8841 return NULL;
8842 }
8843 }
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 wxDC_ResetBoundingBox(_arg0);
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) return NULL;
8850 } Py_INCREF(Py_None);
8851 _resultobj = Py_None;
8852 return _resultobj;
8853 }
8854
8855 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8856 PyObject * _resultobj;
8857 wxDC * _arg0;
8858 int * _arg1;
8859 int temp;
8860 int * _arg2;
8861 int temp0;
8862 int * _arg3;
8863 int temp1;
8864 int * _arg4;
8865 int temp2;
8866 PyObject * _argo0 = 0;
8867 char *_kwnames[] = { "self", NULL };
8868
8869 self = self;
8870 {
8871 _arg1 = &temp;
8872 }
8873 {
8874 _arg2 = &temp0;
8875 }
8876 {
8877 _arg3 = &temp1;
8878 }
8879 {
8880 _arg4 = &temp2;
8881 }
8882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
8883 return NULL;
8884 if (_argo0) {
8885 if (_argo0 == Py_None) { _arg0 = NULL; }
8886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8888 return NULL;
8889 }
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) return NULL;
8897 } Py_INCREF(Py_None);
8898 _resultobj = Py_None;
8899 {
8900 PyObject *o;
8901 o = PyInt_FromLong((long) (*_arg1));
8902 _resultobj = t_output_helper(_resultobj, o);
8903 }
8904 {
8905 PyObject *o;
8906 o = PyInt_FromLong((long) (*_arg2));
8907 _resultobj = t_output_helper(_resultobj, o);
8908 }
8909 {
8910 PyObject *o;
8911 o = PyInt_FromLong((long) (*_arg3));
8912 _resultobj = t_output_helper(_resultobj, o);
8913 }
8914 {
8915 PyObject *o;
8916 o = PyInt_FromLong((long) (*_arg4));
8917 _resultobj = t_output_helper(_resultobj, o);
8918 }
8919 return _resultobj;
8920 }
8921
8922 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
8923 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject * _resultobj;
8925 long _result;
8926 wxDC * _arg0;
8927 PyObject * _argo0 = 0;
8928 char *_kwnames[] = { "self", NULL };
8929
8930 self = self;
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
8932 return NULL;
8933 if (_argo0) {
8934 if (_argo0 == Py_None) { _arg0 = NULL; }
8935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
8937 return NULL;
8938 }
8939 }
8940 {
8941 PyThreadState* __tstate = wxPyBeginAllowThreads();
8942 _result = (long )wxDC_GetHDC(_arg0);
8943
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) return NULL;
8946 } _resultobj = Py_BuildValue("l",_result);
8947 return _resultobj;
8948 }
8949
8950 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8951 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
8952 }
8953 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
8954 PyObject * _resultobj;
8955 PyObject * _result;
8956 wxDC * _arg0;
8957 PyObject * _arg1;
8958 PyObject * _arg2;
8959 PyObject * _arg3;
8960 PyObject * _argo0 = 0;
8961 PyObject * _obj1 = 0;
8962 PyObject * _obj2 = 0;
8963 PyObject * _obj3 = 0;
8964 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
8965
8966 self = self;
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8968 return NULL;
8969 if (_argo0) {
8970 if (_argo0 == Py_None) { _arg0 = NULL; }
8971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8973 return NULL;
8974 }
8975 }
8976 {
8977 _arg1 = _obj1;
8978 }
8979 {
8980 _arg2 = _obj2;
8981 }
8982 {
8983 _arg3 = _obj3;
8984 }
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2,_arg3);
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) return NULL;
8991 }{
8992 _resultobj = _result;
8993 }
8994 return _resultobj;
8995 }
8996
8997 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8998 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
8999 }
9000 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject * _resultobj;
9002 PyObject * _result;
9003 wxDC * _arg0;
9004 PyObject * _arg1;
9005 PyObject * _arg2;
9006 PyObject * _arg3;
9007 PyObject * _argo0 = 0;
9008 PyObject * _obj1 = 0;
9009 PyObject * _obj2 = 0;
9010 PyObject * _obj3 = 0;
9011 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9012
9013 self = self;
9014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9015 return NULL;
9016 if (_argo0) {
9017 if (_argo0 == Py_None) { _arg0 = NULL; }
9018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9020 return NULL;
9021 }
9022 }
9023 {
9024 _arg1 = _obj1;
9025 }
9026 {
9027 _arg2 = _obj2;
9028 }
9029 {
9030 _arg3 = _obj3;
9031 }
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2,_arg3);
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) return NULL;
9038 }{
9039 _resultobj = _result;
9040 }
9041 return _resultobj;
9042 }
9043
9044 static PyObject * wxDC__DrawRectangleList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9045 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
9046 }
9047 static PyObject *_wrap_wxDC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject * _resultobj;
9049 PyObject * _result;
9050 wxDC * _arg0;
9051 PyObject * _arg1;
9052 PyObject * _arg2;
9053 PyObject * _arg3;
9054 PyObject * _argo0 = 0;
9055 PyObject * _obj1 = 0;
9056 PyObject * _obj2 = 0;
9057 PyObject * _obj3 = 0;
9058 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9059
9060 self = self;
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawRectangleList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9062 return NULL;
9063 if (_argo0) {
9064 if (_argo0 == Py_None) { _arg0 = NULL; }
9065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
9067 return NULL;
9068 }
9069 }
9070 {
9071 _arg1 = _obj1;
9072 }
9073 {
9074 _arg2 = _obj2;
9075 }
9076 {
9077 _arg3 = _obj3;
9078 }
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 _result = (PyObject *)wxDC__DrawRectangleList(_arg0,_arg1,_arg2,_arg3);
9082
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) return NULL;
9085 }{
9086 _resultobj = _result;
9087 }
9088 return _resultobj;
9089 }
9090
9091 static PyObject * wxDC__DrawEllipseList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9092 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
9093 }
9094 static PyObject *_wrap_wxDC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject * _resultobj;
9096 PyObject * _result;
9097 wxDC * _arg0;
9098 PyObject * _arg1;
9099 PyObject * _arg2;
9100 PyObject * _arg3;
9101 PyObject * _argo0 = 0;
9102 PyObject * _obj1 = 0;
9103 PyObject * _obj2 = 0;
9104 PyObject * _obj3 = 0;
9105 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9106
9107 self = self;
9108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawEllipseList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9109 return NULL;
9110 if (_argo0) {
9111 if (_argo0 == Py_None) { _arg0 = NULL; }
9112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
9114 return NULL;
9115 }
9116 }
9117 {
9118 _arg1 = _obj1;
9119 }
9120 {
9121 _arg2 = _obj2;
9122 }
9123 {
9124 _arg3 = _obj3;
9125 }
9126 {
9127 PyThreadState* __tstate = wxPyBeginAllowThreads();
9128 _result = (PyObject *)wxDC__DrawEllipseList(_arg0,_arg1,_arg2,_arg3);
9129
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) return NULL;
9132 }{
9133 _resultobj = _result;
9134 }
9135 return _resultobj;
9136 }
9137
9138 static PyObject * wxDC__DrawPolygonList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9139 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
9140 }
9141 static PyObject *_wrap_wxDC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject * _resultobj;
9143 PyObject * _result;
9144 wxDC * _arg0;
9145 PyObject * _arg1;
9146 PyObject * _arg2;
9147 PyObject * _arg3;
9148 PyObject * _argo0 = 0;
9149 PyObject * _obj1 = 0;
9150 PyObject * _obj2 = 0;
9151 PyObject * _obj3 = 0;
9152 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9153
9154 self = self;
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPolygonList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9156 return NULL;
9157 if (_argo0) {
9158 if (_argo0 == Py_None) { _arg0 = NULL; }
9159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
9161 return NULL;
9162 }
9163 }
9164 {
9165 _arg1 = _obj1;
9166 }
9167 {
9168 _arg2 = _obj2;
9169 }
9170 {
9171 _arg3 = _obj3;
9172 }
9173 {
9174 PyThreadState* __tstate = wxPyBeginAllowThreads();
9175 _result = (PyObject *)wxDC__DrawPolygonList(_arg0,_arg1,_arg2,_arg3);
9176
9177 wxPyEndAllowThreads(__tstate);
9178 if (PyErr_Occurred()) return NULL;
9179 }{
9180 _resultobj = _result;
9181 }
9182 return _resultobj;
9183 }
9184
9185 static PyObject * wxDC__DrawTextList(wxDC *self,PyObject * textList,PyObject * pyPoints,PyObject * foregroundList,PyObject * backgroundList) {
9186 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
9187 }
9188 static PyObject *_wrap_wxDC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject * _resultobj;
9190 PyObject * _result;
9191 wxDC * _arg0;
9192 PyObject * _arg1;
9193 PyObject * _arg2;
9194 PyObject * _arg3;
9195 PyObject * _arg4;
9196 PyObject * _argo0 = 0;
9197 PyObject * _obj1 = 0;
9198 PyObject * _obj2 = 0;
9199 PyObject * _obj3 = 0;
9200 PyObject * _obj4 = 0;
9201 char *_kwnames[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL };
9202
9203 self = self;
9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxDC__DrawTextList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4))
9205 return NULL;
9206 if (_argo0) {
9207 if (_argo0 == Py_None) { _arg0 = NULL; }
9208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
9210 return NULL;
9211 }
9212 }
9213 {
9214 _arg1 = _obj1;
9215 }
9216 {
9217 _arg2 = _obj2;
9218 }
9219 {
9220 _arg3 = _obj3;
9221 }
9222 {
9223 _arg4 = _obj4;
9224 }
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 _result = (PyObject *)wxDC__DrawTextList(_arg0,_arg1,_arg2,_arg3,_arg4);
9228
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) return NULL;
9231 }{
9232 _resultobj = _result;
9233 }
9234 return _resultobj;
9235 }
9236
9237 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9238 wxMemoryDC *src;
9239 wxDC *dest;
9240 src = (wxMemoryDC *) ptr;
9241 dest = (wxDC *) src;
9242 return (void *) dest;
9243 }
9244
9245 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9246 wxMemoryDC *src;
9247 wxObject *dest;
9248 src = (wxMemoryDC *) ptr;
9249 dest = (wxObject *) src;
9250 return (void *) dest;
9251 }
9252
9253 #define new_wxMemoryDC() (new wxMemoryDC())
9254 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9255 PyObject * _resultobj;
9256 wxMemoryDC * _result;
9257 char *_kwnames[] = { NULL };
9258 char _ptemp[128];
9259
9260 self = self;
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9262 return NULL;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 _result = (wxMemoryDC *)new_wxMemoryDC();
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) return NULL;
9269 } if (_result) {
9270 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9271 _resultobj = Py_BuildValue("s",_ptemp);
9272 } else {
9273 Py_INCREF(Py_None);
9274 _resultobj = Py_None;
9275 }
9276 return _resultobj;
9277 }
9278
9279 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9280 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9281 PyObject * _resultobj;
9282 wxMemoryDC * _arg0;
9283 wxBitmap * _arg1;
9284 PyObject * _argo0 = 0;
9285 PyObject * _argo1 = 0;
9286 char *_kwnames[] = { "self","bitmap", NULL };
9287
9288 self = self;
9289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9290 return NULL;
9291 if (_argo0) {
9292 if (_argo0 == Py_None) { _arg0 = NULL; }
9293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9295 return NULL;
9296 }
9297 }
9298 if (_argo1) {
9299 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9300 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9301 return NULL;
9302 }
9303 }
9304 {
9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9306 wxMemoryDC_SelectObject(_arg0,*_arg1);
9307
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) return NULL;
9310 } Py_INCREF(Py_None);
9311 _resultobj = Py_None;
9312 return _resultobj;
9313 }
9314
9315 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
9316 wxBufferedDC *src;
9317 wxMemoryDC *dest;
9318 src = (wxBufferedDC *) ptr;
9319 dest = (wxMemoryDC *) src;
9320 return (void *) dest;
9321 }
9322
9323 static void *SwigwxBufferedDCTowxDC(void *ptr) {
9324 wxBufferedDC *src;
9325 wxDC *dest;
9326 src = (wxBufferedDC *) ptr;
9327 dest = (wxDC *) src;
9328 return (void *) dest;
9329 }
9330
9331 static void *SwigwxBufferedDCTowxObject(void *ptr) {
9332 wxBufferedDC *src;
9333 wxObject *dest;
9334 src = (wxBufferedDC *) ptr;
9335 dest = (wxObject *) src;
9336 return (void *) dest;
9337 }
9338
9339 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9340 static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9341 PyObject * _resultobj;
9342 wxBufferedDC * _result;
9343 wxDC * _arg0;
9344 wxBitmap * _arg1;
9345 PyObject * _argo0 = 0;
9346 PyObject * _argo1 = 0;
9347 char *_kwnames[] = { "dc","buffer", NULL };
9348 char _ptemp[128];
9349
9350 self = self;
9351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
9352 return NULL;
9353 if (_argo0) {
9354 if (_argo0 == Py_None) { _arg0 = NULL; }
9355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
9357 return NULL;
9358 }
9359 }
9360 if (_argo1) {
9361 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9362 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
9363 return NULL;
9364 }
9365 }
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
9369
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) return NULL;
9372 } if (_result) {
9373 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9374 _resultobj = Py_BuildValue("s",_ptemp);
9375 } else {
9376 Py_INCREF(Py_None);
9377 _resultobj = Py_None;
9378 }
9379 return _resultobj;
9380 }
9381
9382 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9383 static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9384 PyObject * _resultobj;
9385 wxBufferedDC * _result;
9386 wxDC * _arg0;
9387 wxSize * _arg1;
9388 PyObject * _argo0 = 0;
9389 wxSize temp;
9390 PyObject * _obj1 = 0;
9391 char *_kwnames[] = { "dc","area", NULL };
9392 char _ptemp[128];
9393
9394 self = self;
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
9396 return NULL;
9397 if (_argo0) {
9398 if (_argo0 == Py_None) { _arg0 = NULL; }
9399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
9401 return NULL;
9402 }
9403 }
9404 {
9405 _arg1 = &temp;
9406 if (! wxSize_helper(_obj1, &_arg1))
9407 return NULL;
9408 }
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
9412
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) return NULL;
9415 } if (_result) {
9416 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9417 _resultobj = Py_BuildValue("s",_ptemp);
9418 } else {
9419 Py_INCREF(Py_None);
9420 _resultobj = Py_None;
9421 }
9422 return _resultobj;
9423 }
9424
9425 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
9426 static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
9427 PyObject * _resultobj;
9428 wxBufferedDC * _arg0;
9429 PyObject * _argo0 = 0;
9430 char *_kwnames[] = { "self", NULL };
9431
9432 self = self;
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0))
9434 return NULL;
9435 if (_argo0) {
9436 if (_argo0 == Py_None) { _arg0 = NULL; }
9437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) {
9438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
9439 return NULL;
9440 }
9441 }
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 wxBufferedDC_UnMask(_arg0);
9445
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) return NULL;
9448 } Py_INCREF(Py_None);
9449 _resultobj = Py_None;
9450 return _resultobj;
9451 }
9452
9453 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
9454 wxBufferedPaintDC *src;
9455 wxBufferedDC *dest;
9456 src = (wxBufferedPaintDC *) ptr;
9457 dest = (wxBufferedDC *) src;
9458 return (void *) dest;
9459 }
9460
9461 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
9462 wxBufferedPaintDC *src;
9463 wxMemoryDC *dest;
9464 src = (wxBufferedPaintDC *) ptr;
9465 dest = (wxMemoryDC *) src;
9466 return (void *) dest;
9467 }
9468
9469 static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
9470 wxBufferedPaintDC *src;
9471 wxDC *dest;
9472 src = (wxBufferedPaintDC *) ptr;
9473 dest = (wxDC *) src;
9474 return (void *) dest;
9475 }
9476
9477 static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
9478 wxBufferedPaintDC *src;
9479 wxObject *dest;
9480 src = (wxBufferedPaintDC *) ptr;
9481 dest = (wxObject *) src;
9482 return (void *) dest;
9483 }
9484
9485 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
9486 static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject * _resultobj;
9488 wxBufferedPaintDC * _result;
9489 wxWindow * _arg0;
9490 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
9491 PyObject * _argo0 = 0;
9492 PyObject * _argo1 = 0;
9493 char *_kwnames[] = { "window","buffer", NULL };
9494 char _ptemp[128];
9495
9496 self = self;
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
9498 return NULL;
9499 if (_argo0) {
9500 if (_argo0 == Py_None) { _arg0 = NULL; }
9501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
9503 return NULL;
9504 }
9505 }
9506 if (_argo1) {
9507 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9508 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
9509 return NULL;
9510 }
9511 }
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
9515
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) return NULL;
9518 } if (_result) {
9519 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
9520 _resultobj = Py_BuildValue("s",_ptemp);
9521 } else {
9522 Py_INCREF(Py_None);
9523 _resultobj = Py_None;
9524 }
9525 return _resultobj;
9526 }
9527
9528 static void *SwigwxScreenDCTowxDC(void *ptr) {
9529 wxScreenDC *src;
9530 wxDC *dest;
9531 src = (wxScreenDC *) ptr;
9532 dest = (wxDC *) src;
9533 return (void *) dest;
9534 }
9535
9536 static void *SwigwxScreenDCTowxObject(void *ptr) {
9537 wxScreenDC *src;
9538 wxObject *dest;
9539 src = (wxScreenDC *) ptr;
9540 dest = (wxObject *) src;
9541 return (void *) dest;
9542 }
9543
9544 #define new_wxScreenDC() (new wxScreenDC())
9545 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject * _resultobj;
9547 wxScreenDC * _result;
9548 char *_kwnames[] = { NULL };
9549 char _ptemp[128];
9550
9551 self = self;
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9553 return NULL;
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 _result = (wxScreenDC *)new_wxScreenDC();
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) return NULL;
9560 } if (_result) {
9561 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9562 _resultobj = Py_BuildValue("s",_ptemp);
9563 } else {
9564 Py_INCREF(Py_None);
9565 _resultobj = Py_None;
9566 }
9567 return _resultobj;
9568 }
9569
9570 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9571 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9572 PyObject * _resultobj;
9573 bool _result;
9574 wxScreenDC * _arg0;
9575 wxWindow * _arg1;
9576 PyObject * _argo0 = 0;
9577 PyObject * _argo1 = 0;
9578 char *_kwnames[] = { "self","window", NULL };
9579
9580 self = self;
9581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9582 return NULL;
9583 if (_argo0) {
9584 if (_argo0 == Py_None) { _arg0 = NULL; }
9585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9587 return NULL;
9588 }
9589 }
9590 if (_argo1) {
9591 if (_argo1 == Py_None) { _arg1 = NULL; }
9592 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9593 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9594 return NULL;
9595 }
9596 }
9597 {
9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
9599 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9600
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) return NULL;
9603 } _resultobj = Py_BuildValue("i",_result);
9604 return _resultobj;
9605 }
9606
9607 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9608 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject * _resultobj;
9610 bool _result;
9611 wxScreenDC * _arg0;
9612 wxRect * _arg1 = (wxRect *) NULL;
9613 PyObject * _argo0 = 0;
9614 wxRect temp;
9615 PyObject * _obj1 = 0;
9616 char *_kwnames[] = { "self","rect", NULL };
9617
9618 self = self;
9619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9620 return NULL;
9621 if (_argo0) {
9622 if (_argo0 == Py_None) { _arg0 = NULL; }
9623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9625 return NULL;
9626 }
9627 }
9628 if (_obj1)
9629 {
9630 _arg1 = &temp;
9631 if (! wxRect_helper(_obj1, &_arg1))
9632 return NULL;
9633 }
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) return NULL;
9640 } _resultobj = Py_BuildValue("i",_result);
9641 return _resultobj;
9642 }
9643
9644 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9645 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9646 PyObject * _resultobj;
9647 bool _result;
9648 wxScreenDC * _arg0;
9649 PyObject * _argo0 = 0;
9650 char *_kwnames[] = { "self", NULL };
9651
9652 self = self;
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9654 return NULL;
9655 if (_argo0) {
9656 if (_argo0 == Py_None) { _arg0 = NULL; }
9657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9659 return NULL;
9660 }
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) return NULL;
9668 } _resultobj = Py_BuildValue("i",_result);
9669 return _resultobj;
9670 }
9671
9672 static void *SwigwxClientDCTowxDC(void *ptr) {
9673 wxClientDC *src;
9674 wxDC *dest;
9675 src = (wxClientDC *) ptr;
9676 dest = (wxDC *) src;
9677 return (void *) dest;
9678 }
9679
9680 static void *SwigwxClientDCTowxObject(void *ptr) {
9681 wxClientDC *src;
9682 wxObject *dest;
9683 src = (wxClientDC *) ptr;
9684 dest = (wxObject *) src;
9685 return (void *) dest;
9686 }
9687
9688 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9689 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9690 PyObject * _resultobj;
9691 wxClientDC * _result;
9692 wxWindow * _arg0;
9693 PyObject * _argo0 = 0;
9694 char *_kwnames[] = { "win", NULL };
9695 char _ptemp[128];
9696
9697 self = self;
9698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
9699 return NULL;
9700 if (_argo0) {
9701 if (_argo0 == Py_None) { _arg0 = NULL; }
9702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9704 return NULL;
9705 }
9706 }
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 _result = (wxClientDC *)new_wxClientDC(_arg0);
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) return NULL;
9713 } if (_result) {
9714 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9715 _resultobj = Py_BuildValue("s",_ptemp);
9716 } else {
9717 Py_INCREF(Py_None);
9718 _resultobj = Py_None;
9719 }
9720 return _resultobj;
9721 }
9722
9723 static void *SwigwxPaintDCTowxDC(void *ptr) {
9724 wxPaintDC *src;
9725 wxDC *dest;
9726 src = (wxPaintDC *) ptr;
9727 dest = (wxDC *) src;
9728 return (void *) dest;
9729 }
9730
9731 static void *SwigwxPaintDCTowxObject(void *ptr) {
9732 wxPaintDC *src;
9733 wxObject *dest;
9734 src = (wxPaintDC *) ptr;
9735 dest = (wxObject *) src;
9736 return (void *) dest;
9737 }
9738
9739 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9740 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9741 PyObject * _resultobj;
9742 wxPaintDC * _result;
9743 wxWindow * _arg0;
9744 PyObject * _argo0 = 0;
9745 char *_kwnames[] = { "win", NULL };
9746 char _ptemp[128];
9747
9748 self = self;
9749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
9750 return NULL;
9751 if (_argo0) {
9752 if (_argo0 == Py_None) { _arg0 = NULL; }
9753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9755 return NULL;
9756 }
9757 }
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
9760 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9761
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) return NULL;
9764 } if (_result) {
9765 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9766 _resultobj = Py_BuildValue("s",_ptemp);
9767 } else {
9768 Py_INCREF(Py_None);
9769 _resultobj = Py_None;
9770 }
9771 return _resultobj;
9772 }
9773
9774 static void *SwigwxWindowDCTowxDC(void *ptr) {
9775 wxWindowDC *src;
9776 wxDC *dest;
9777 src = (wxWindowDC *) ptr;
9778 dest = (wxDC *) src;
9779 return (void *) dest;
9780 }
9781
9782 static void *SwigwxWindowDCTowxObject(void *ptr) {
9783 wxWindowDC *src;
9784 wxObject *dest;
9785 src = (wxWindowDC *) ptr;
9786 dest = (wxObject *) src;
9787 return (void *) dest;
9788 }
9789
9790 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9791 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9792 PyObject * _resultobj;
9793 wxWindowDC * _result;
9794 wxWindow * _arg0;
9795 PyObject * _argo0 = 0;
9796 char *_kwnames[] = { "win", NULL };
9797 char _ptemp[128];
9798
9799 self = self;
9800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
9801 return NULL;
9802 if (_argo0) {
9803 if (_argo0 == Py_None) { _arg0 = NULL; }
9804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9806 return NULL;
9807 }
9808 }
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
9812
9813 wxPyEndAllowThreads(__tstate);
9814 if (PyErr_Occurred()) return NULL;
9815 } if (_result) {
9816 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9817 _resultobj = Py_BuildValue("s",_ptemp);
9818 } else {
9819 Py_INCREF(Py_None);
9820 _resultobj = Py_None;
9821 }
9822 return _resultobj;
9823 }
9824
9825 static void *SwigwxMirrorDCTowxDC(void *ptr) {
9826 wxMirrorDC *src;
9827 wxDC *dest;
9828 src = (wxMirrorDC *) ptr;
9829 dest = (wxDC *) src;
9830 return (void *) dest;
9831 }
9832
9833 static void *SwigwxMirrorDCTowxObject(void *ptr) {
9834 wxMirrorDC *src;
9835 wxObject *dest;
9836 src = (wxMirrorDC *) ptr;
9837 dest = (wxObject *) src;
9838 return (void *) dest;
9839 }
9840
9841 #define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1))
9842 static PyObject *_wrap_new_wxMirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject * _resultobj;
9844 wxMirrorDC * _result;
9845 wxDC * _arg0;
9846 bool _arg1;
9847 PyObject * _argo0 = 0;
9848 int tempbool1;
9849 char *_kwnames[] = { "dc","mirror", NULL };
9850 char _ptemp[128];
9851
9852 self = self;
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxMirrorDC",_kwnames,&_argo0,&tempbool1))
9854 return NULL;
9855 if (_argo0) {
9856 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p.");
9858 return NULL;
9859 }
9860 }
9861 _arg1 = (bool ) tempbool1;
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 _result = (wxMirrorDC *)new_wxMirrorDC(*_arg0,_arg1);
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) return NULL;
9868 } if (_result) {
9869 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMirrorDC_p");
9870 _resultobj = Py_BuildValue("s",_ptemp);
9871 } else {
9872 Py_INCREF(Py_None);
9873 _resultobj = Py_None;
9874 }
9875 return _resultobj;
9876 }
9877
9878 static void *SwigwxMetaFileTowxObject(void *ptr) {
9879 wxMetaFile *src;
9880 wxObject *dest;
9881 src = (wxMetaFile *) ptr;
9882 dest = (wxObject *) src;
9883 return (void *) dest;
9884 }
9885
9886 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
9887 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject * _resultobj;
9889 wxMetaFile * _result;
9890 wxString * _arg0 = (wxString *) &wxPyEmptyString;
9891 PyObject * _obj0 = 0;
9892 char *_kwnames[] = { "filename", NULL };
9893 char _ptemp[128];
9894
9895 self = self;
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
9897 return NULL;
9898 if (_obj0)
9899 {
9900 _arg0 = wxString_in_helper(_obj0);
9901 if (_arg0 == NULL)
9902 return NULL;
9903 }
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) return NULL;
9910 } if (_result) {
9911 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
9912 _resultobj = Py_BuildValue("s",_ptemp);
9913 } else {
9914 Py_INCREF(Py_None);
9915 _resultobj = Py_None;
9916 }
9917 {
9918 if (_obj0)
9919 delete _arg0;
9920 }
9921 return _resultobj;
9922 }
9923
9924 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
9925 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9926 PyObject * _resultobj;
9927 wxMetaFile * _arg0;
9928 PyObject * _argo0 = 0;
9929 char *_kwnames[] = { "self", NULL };
9930
9931 self = self;
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
9933 return NULL;
9934 if (_argo0) {
9935 if (_argo0 == Py_None) { _arg0 = NULL; }
9936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
9938 return NULL;
9939 }
9940 }
9941 {
9942 PyThreadState* __tstate = wxPyBeginAllowThreads();
9943 delete_wxMetaFile(_arg0);
9944
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) return NULL;
9947 } Py_INCREF(Py_None);
9948 _resultobj = Py_None;
9949 return _resultobj;
9950 }
9951
9952 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
9953 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9954 PyObject * _resultobj;
9955 bool _result;
9956 wxMetaFile * _arg0;
9957 PyObject * _argo0 = 0;
9958 char *_kwnames[] = { "self", NULL };
9959
9960 self = self;
9961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
9962 return NULL;
9963 if (_argo0) {
9964 if (_argo0 == Py_None) { _arg0 = NULL; }
9965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
9967 return NULL;
9968 }
9969 }
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 _result = (bool )wxMetaFile_Ok(_arg0);
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) return NULL;
9976 } _resultobj = Py_BuildValue("i",_result);
9977 return _resultobj;
9978 }
9979
9980 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
9981 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
9982 PyObject * _resultobj;
9983 bool _result;
9984 wxMetaFile * _arg0;
9985 int _arg1 = (int ) 0;
9986 int _arg2 = (int ) 0;
9987 PyObject * _argo0 = 0;
9988 char *_kwnames[] = { "self","width","height", NULL };
9989
9990 self = self;
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
9992 return NULL;
9993 if (_argo0) {
9994 if (_argo0 == Py_None) { _arg0 = NULL; }
9995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
9997 return NULL;
9998 }
9999 }
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) return NULL;
10006 } _resultobj = Py_BuildValue("i",_result);
10007 return _resultobj;
10008 }
10009
10010 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10011 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10012 PyObject * _resultobj;
10013 wxSize * _result;
10014 wxMetaFile * _arg0;
10015 PyObject * _argo0 = 0;
10016 char *_kwnames[] = { "self", NULL };
10017 char _ptemp[128];
10018
10019 self = self;
10020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10021 return NULL;
10022 if (_argo0) {
10023 if (_argo0 == Py_None) { _arg0 = NULL; }
10024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10026 return NULL;
10027 }
10028 }
10029 {
10030 PyThreadState* __tstate = wxPyBeginAllowThreads();
10031 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10032
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) return NULL;
10035 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10036 _resultobj = Py_BuildValue("s",_ptemp);
10037 return _resultobj;
10038 }
10039
10040 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10041 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10042 PyObject * _resultobj;
10043 int _result;
10044 wxMetaFile * _arg0;
10045 PyObject * _argo0 = 0;
10046 char *_kwnames[] = { "self", NULL };
10047
10048 self = self;
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10050 return NULL;
10051 if (_argo0) {
10052 if (_argo0 == Py_None) { _arg0 = NULL; }
10053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10055 return NULL;
10056 }
10057 }
10058 {
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 _result = (int )wxMetaFile_GetWidth(_arg0);
10061
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) return NULL;
10064 } _resultobj = Py_BuildValue("i",_result);
10065 return _resultobj;
10066 }
10067
10068 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10069 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10070 PyObject * _resultobj;
10071 int _result;
10072 wxMetaFile * _arg0;
10073 PyObject * _argo0 = 0;
10074 char *_kwnames[] = { "self", NULL };
10075
10076 self = self;
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
10078 return NULL;
10079 if (_argo0) {
10080 if (_argo0 == Py_None) { _arg0 = NULL; }
10081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10083 return NULL;
10084 }
10085 }
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 _result = (int )wxMetaFile_GetHeight(_arg0);
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) return NULL;
10092 } _resultobj = Py_BuildValue("i",_result);
10093 return _resultobj;
10094 }
10095
10096 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10097 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
10098 PyObject * _resultobj;
10099 wxString * _result;
10100 wxMetaFile * _arg0;
10101 PyObject * _argo0 = 0;
10102 char *_kwnames[] = { "self", NULL };
10103
10104 self = self;
10105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
10106 return NULL;
10107 if (_argo0) {
10108 if (_argo0 == Py_None) { _arg0 = NULL; }
10109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10111 return NULL;
10112 }
10113 }
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
10117 _result = (wxString *) &_result_ref;
10118
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) return NULL;
10121 }{
10122 #if wxUSE_UNICODE
10123 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10124 #else
10125 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10126 #endif
10127 }
10128 return _resultobj;
10129 }
10130
10131 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
10132 wxMetaFileDC *src;
10133 wxDC *dest;
10134 src = (wxMetaFileDC *) ptr;
10135 dest = (wxDC *) src;
10136 return (void *) dest;
10137 }
10138
10139 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
10140 wxMetaFileDC *src;
10141 wxObject *dest;
10142 src = (wxMetaFileDC *) ptr;
10143 dest = (wxObject *) src;
10144 return (void *) dest;
10145 }
10146
10147 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10148 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10149 PyObject * _resultobj;
10150 wxMetaFileDC * _result;
10151 wxString * _arg0 = (wxString *) &wxPyEmptyString;
10152 int _arg1 = (int ) 0;
10153 int _arg2 = (int ) 0;
10154 wxString * _arg3 = (wxString *) &wxPyEmptyString;
10155 PyObject * _obj0 = 0;
10156 PyObject * _obj3 = 0;
10157 char *_kwnames[] = { "filename","width","height","description", NULL };
10158 char _ptemp[128];
10159
10160 self = self;
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
10162 return NULL;
10163 if (_obj0)
10164 {
10165 _arg0 = wxString_in_helper(_obj0);
10166 if (_arg0 == NULL)
10167 return NULL;
10168 }
10169 if (_obj3)
10170 {
10171 _arg3 = wxString_in_helper(_obj3);
10172 if (_arg3 == NULL)
10173 return NULL;
10174 }
10175 {
10176 PyThreadState* __tstate = wxPyBeginAllowThreads();
10177 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
10178
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) return NULL;
10181 } if (_result) {
10182 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
10183 _resultobj = Py_BuildValue("s",_ptemp);
10184 } else {
10185 Py_INCREF(Py_None);
10186 _resultobj = Py_None;
10187 }
10188 {
10189 if (_obj0)
10190 delete _arg0;
10191 }
10192 {
10193 if (_obj3)
10194 delete _arg3;
10195 }
10196 return _resultobj;
10197 }
10198
10199 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10200 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
10201 PyObject * _resultobj;
10202 wxMetaFile * _result;
10203 wxMetaFileDC * _arg0;
10204 PyObject * _argo0 = 0;
10205 char *_kwnames[] = { "self", NULL };
10206 char _ptemp[128];
10207
10208 self = self;
10209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
10210 return NULL;
10211 if (_argo0) {
10212 if (_argo0 == Py_None) { _arg0 = NULL; }
10213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
10214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10215 return NULL;
10216 }
10217 }
10218 {
10219 PyThreadState* __tstate = wxPyBeginAllowThreads();
10220 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
10221
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) return NULL;
10224 } if (_result) {
10225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10226 _resultobj = Py_BuildValue("s",_ptemp);
10227 } else {
10228 Py_INCREF(Py_None);
10229 _resultobj = Py_None;
10230 }
10231 return _resultobj;
10232 }
10233
10234 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10235 wxPalette *src;
10236 wxGDIObject *dest;
10237 src = (wxPalette *) ptr;
10238 dest = (wxGDIObject *) src;
10239 return (void *) dest;
10240 }
10241
10242 static void *SwigwxPaletteTowxObject(void *ptr) {
10243 wxPalette *src;
10244 wxObject *dest;
10245 src = (wxPalette *) ptr;
10246 dest = (wxObject *) src;
10247 return (void *) dest;
10248 }
10249
10250 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10251 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject * _resultobj;
10253 wxPalette * _result;
10254 int _arg0;
10255 byte * _arg1;
10256 byte * _arg2;
10257 byte * _arg3;
10258 PyObject * _obj1 = 0;
10259 PyObject * _obj2 = 0;
10260 PyObject * _obj3 = 0;
10261 char *_kwnames[] = { "choices","choices","choices", NULL };
10262 char _ptemp[128];
10263
10264 self = self;
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10266 return NULL;
10267 {
10268 _arg1 = byte_LIST_helper(_obj1);
10269 if (_arg1 == NULL) {
10270 return NULL;
10271 }
10272 }
10273 {
10274 _arg2 = byte_LIST_helper(_obj2);
10275 if (_arg2 == NULL) {
10276 return NULL;
10277 }
10278 }
10279 if (_obj3)
10280 {
10281 _arg3 = byte_LIST_helper(_obj3);
10282 if (_arg3 == NULL) {
10283 return NULL;
10284 }
10285 }
10286 {
10287 if (_obj1) {
10288 _arg0 = PyList_Size(_obj1);
10289 }
10290 else {
10291 _arg0 = 0;
10292 }
10293 }
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) return NULL;
10300 } if (_result) {
10301 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10302 _resultobj = Py_BuildValue("s",_ptemp);
10303 } else {
10304 Py_INCREF(Py_None);
10305 _resultobj = Py_None;
10306 }
10307 {
10308 delete [] _arg1;
10309 }
10310 {
10311 delete [] _arg2;
10312 }
10313 {
10314 delete [] _arg3;
10315 }
10316 return _resultobj;
10317 }
10318
10319 #define delete_wxPalette(_swigobj) (delete _swigobj)
10320 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10321 PyObject * _resultobj;
10322 wxPalette * _arg0;
10323 PyObject * _argo0 = 0;
10324 char *_kwnames[] = { "self", NULL };
10325
10326 self = self;
10327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10328 return NULL;
10329 if (_argo0) {
10330 if (_argo0 == Py_None) { _arg0 = NULL; }
10331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10333 return NULL;
10334 }
10335 }
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 delete_wxPalette(_arg0);
10339
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) return NULL;
10342 } Py_INCREF(Py_None);
10343 _resultobj = Py_None;
10344 return _resultobj;
10345 }
10346
10347 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10348 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10349 PyObject * _resultobj;
10350 int _result;
10351 wxPalette * _arg0;
10352 byte _arg1;
10353 byte _arg2;
10354 byte _arg3;
10355 PyObject * _argo0 = 0;
10356 char *_kwnames[] = { "self","red","green","blue", NULL };
10357
10358 self = self;
10359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10360 return NULL;
10361 if (_argo0) {
10362 if (_argo0 == Py_None) { _arg0 = NULL; }
10363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10365 return NULL;
10366 }
10367 }
10368 {
10369 PyThreadState* __tstate = wxPyBeginAllowThreads();
10370 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10371
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) return NULL;
10374 } _resultobj = Py_BuildValue("i",_result);
10375 return _resultobj;
10376 }
10377
10378 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10379 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10380 PyObject * _resultobj;
10381 bool _result;
10382 wxPalette * _arg0;
10383 int _arg1;
10384 byte * _arg2;
10385 int temp;
10386 byte * _arg3;
10387 int temp0;
10388 byte * _arg4;
10389 int temp1;
10390 PyObject * _argo0 = 0;
10391 char *_kwnames[] = { "self","pixel", NULL };
10392
10393 self = self;
10394 {
10395 _arg2 = (byte*)&temp;
10396 }
10397 {
10398 _arg3 = (byte*)&temp0;
10399 }
10400 {
10401 _arg4 = (byte*)&temp1;
10402 }
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
10404 return NULL;
10405 if (_argo0) {
10406 if (_argo0 == Py_None) { _arg0 = NULL; }
10407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10409 return NULL;
10410 }
10411 }
10412 {
10413 PyThreadState* __tstate = wxPyBeginAllowThreads();
10414 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10415
10416 wxPyEndAllowThreads(__tstate);
10417 if (PyErr_Occurred()) return NULL;
10418 } _resultobj = Py_BuildValue("i",_result);
10419 {
10420 PyObject *o;
10421 o = PyInt_FromLong((long) (*_arg2));
10422 _resultobj = t_output_helper(_resultobj, o);
10423 }
10424 {
10425 PyObject *o;
10426 o = PyInt_FromLong((long) (*_arg3));
10427 _resultobj = t_output_helper(_resultobj, o);
10428 }
10429 {
10430 PyObject *o;
10431 o = PyInt_FromLong((long) (*_arg4));
10432 _resultobj = t_output_helper(_resultobj, o);
10433 }
10434 return _resultobj;
10435 }
10436
10437 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10438 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject * _resultobj;
10440 bool _result;
10441 wxPalette * _arg0;
10442 PyObject * _argo0 = 0;
10443 char *_kwnames[] = { "self", NULL };
10444
10445 self = self;
10446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10447 return NULL;
10448 if (_argo0) {
10449 if (_argo0 == Py_None) { _arg0 = NULL; }
10450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10452 return NULL;
10453 }
10454 }
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 _result = (bool )wxPalette_Ok(_arg0);
10458
10459 wxPyEndAllowThreads(__tstate);
10460 if (PyErr_Occurred()) return NULL;
10461 } _resultobj = Py_BuildValue("i",_result);
10462 return _resultobj;
10463 }
10464
10465 static void *SwigwxImageListTowxObject(void *ptr) {
10466 wxImageList *src;
10467 wxObject *dest;
10468 src = (wxImageList *) ptr;
10469 dest = (wxObject *) src;
10470 return (void *) dest;
10471 }
10472
10473 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10474 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10475 PyObject * _resultobj;
10476 wxImageList * _result;
10477 int _arg0;
10478 int _arg1;
10479 int _arg2 = (int ) TRUE;
10480 int _arg3 = (int ) 1;
10481 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10482 char _ptemp[128];
10483
10484 self = self;
10485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10486 return NULL;
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10490
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) return NULL;
10493 } if (_result) {
10494 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10495 _resultobj = Py_BuildValue("s",_ptemp);
10496 } else {
10497 Py_INCREF(Py_None);
10498 _resultobj = Py_None;
10499 }
10500 return _resultobj;
10501 }
10502
10503 #define delete_wxImageList(_swigobj) (delete _swigobj)
10504 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10505 PyObject * _resultobj;
10506 wxImageList * _arg0;
10507 PyObject * _argo0 = 0;
10508 char *_kwnames[] = { "self", NULL };
10509
10510 self = self;
10511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10512 return NULL;
10513 if (_argo0) {
10514 if (_argo0 == Py_None) { _arg0 = NULL; }
10515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10517 return NULL;
10518 }
10519 }
10520 {
10521 PyThreadState* __tstate = wxPyBeginAllowThreads();
10522 delete_wxImageList(_arg0);
10523
10524 wxPyEndAllowThreads(__tstate);
10525 if (PyErr_Occurred()) return NULL;
10526 } Py_INCREF(Py_None);
10527 _resultobj = Py_None;
10528 return _resultobj;
10529 }
10530
10531 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10532 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10533 PyObject * _resultobj;
10534 int _result;
10535 wxImageList * _arg0;
10536 wxBitmap * _arg1;
10537 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10538 PyObject * _argo0 = 0;
10539 PyObject * _argo1 = 0;
10540 PyObject * _argo2 = 0;
10541 char *_kwnames[] = { "self","bitmap","mask", NULL };
10542
10543 self = self;
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10545 return NULL;
10546 if (_argo0) {
10547 if (_argo0 == Py_None) { _arg0 = NULL; }
10548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10550 return NULL;
10551 }
10552 }
10553 if (_argo1) {
10554 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10555 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10556 return NULL;
10557 }
10558 }
10559 if (_argo2) {
10560 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10561 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10562 return NULL;
10563 }
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10568
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) return NULL;
10571 } _resultobj = Py_BuildValue("i",_result);
10572 return _resultobj;
10573 }
10574
10575 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10576 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10577 PyObject * _resultobj;
10578 int _result;
10579 wxImageList * _arg0;
10580 wxBitmap * _arg1;
10581 wxColour * _arg2;
10582 PyObject * _argo0 = 0;
10583 PyObject * _argo1 = 0;
10584 wxColour temp;
10585 PyObject * _obj2 = 0;
10586 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10587
10588 self = self;
10589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10590 return NULL;
10591 if (_argo0) {
10592 if (_argo0 == Py_None) { _arg0 = NULL; }
10593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10595 return NULL;
10596 }
10597 }
10598 if (_argo1) {
10599 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10600 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10601 return NULL;
10602 }
10603 }
10604 {
10605 _arg2 = &temp;
10606 if (! wxColour_helper(_obj2, &_arg2))
10607 return NULL;
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10612
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) return NULL;
10615 } _resultobj = Py_BuildValue("i",_result);
10616 return _resultobj;
10617 }
10618
10619 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10620 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10621 PyObject * _resultobj;
10622 int _result;
10623 wxImageList * _arg0;
10624 wxIcon * _arg1;
10625 PyObject * _argo0 = 0;
10626 PyObject * _argo1 = 0;
10627 char *_kwnames[] = { "self","icon", NULL };
10628
10629 self = self;
10630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10631 return NULL;
10632 if (_argo0) {
10633 if (_argo0 == Py_None) { _arg0 = NULL; }
10634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10636 return NULL;
10637 }
10638 }
10639 if (_argo1) {
10640 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10641 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10642 return NULL;
10643 }
10644 }
10645 {
10646 PyThreadState* __tstate = wxPyBeginAllowThreads();
10647 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10648
10649 wxPyEndAllowThreads(__tstate);
10650 if (PyErr_Occurred()) return NULL;
10651 } _resultobj = Py_BuildValue("i",_result);
10652 return _resultobj;
10653 }
10654
10655 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10656 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10657 PyObject * _resultobj;
10658 bool _result;
10659 wxImageList * _arg0;
10660 int _arg1;
10661 wxBitmap * _arg2;
10662 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
10663 PyObject * _argo0 = 0;
10664 PyObject * _argo2 = 0;
10665 PyObject * _argo3 = 0;
10666 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
10667
10668 self = self;
10669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
10670 return NULL;
10671 if (_argo0) {
10672 if (_argo0 == Py_None) { _arg0 = NULL; }
10673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10675 return NULL;
10676 }
10677 }
10678 if (_argo2) {
10679 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10680 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10681 return NULL;
10682 }
10683 }
10684 if (_argo3) {
10685 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
10686 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10687 return NULL;
10688 }
10689 }
10690 {
10691 PyThreadState* __tstate = wxPyBeginAllowThreads();
10692 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
10693
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) return NULL;
10696 } _resultobj = Py_BuildValue("i",_result);
10697 return _resultobj;
10698 }
10699
10700 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10701 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10702 PyObject * _resultobj;
10703 bool _result;
10704 wxImageList * _arg0;
10705 int _arg1;
10706 wxDC * _arg2;
10707 int _arg3;
10708 int _arg4;
10709 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10710 bool _arg6 = (bool ) FALSE;
10711 PyObject * _argo0 = 0;
10712 PyObject * _argo2 = 0;
10713 int tempbool6 = (int) FALSE;
10714 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
10715
10716 self = self;
10717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
10718 return NULL;
10719 if (_argo0) {
10720 if (_argo0 == Py_None) { _arg0 = NULL; }
10721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10723 return NULL;
10724 }
10725 }
10726 if (_argo2) {
10727 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10728 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10729 return NULL;
10730 }
10731 }
10732 _arg6 = (bool ) tempbool6;
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) return NULL;
10739 } _resultobj = Py_BuildValue("i",_result);
10740 return _resultobj;
10741 }
10742
10743 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10744 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject * _resultobj;
10746 int _result;
10747 wxImageList * _arg0;
10748 PyObject * _argo0 = 0;
10749 char *_kwnames[] = { "self", NULL };
10750
10751 self = self;
10752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
10753 return NULL;
10754 if (_argo0) {
10755 if (_argo0 == Py_None) { _arg0 = NULL; }
10756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10758 return NULL;
10759 }
10760 }
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 _result = (int )wxImageList_GetImageCount(_arg0);
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) return NULL;
10767 } _resultobj = Py_BuildValue("i",_result);
10768 return _resultobj;
10769 }
10770
10771 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10772 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject * _resultobj;
10774 bool _result;
10775 wxImageList * _arg0;
10776 int _arg1;
10777 PyObject * _argo0 = 0;
10778 char *_kwnames[] = { "self","index", NULL };
10779
10780 self = self;
10781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
10782 return NULL;
10783 if (_argo0) {
10784 if (_argo0 == Py_None) { _arg0 = NULL; }
10785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10787 return NULL;
10788 }
10789 }
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 _result = (bool )wxImageList_Remove(_arg0,_arg1);
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) return NULL;
10796 } _resultobj = Py_BuildValue("i",_result);
10797 return _resultobj;
10798 }
10799
10800 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10801 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
10802 PyObject * _resultobj;
10803 bool _result;
10804 wxImageList * _arg0;
10805 PyObject * _argo0 = 0;
10806 char *_kwnames[] = { "self", NULL };
10807
10808 self = self;
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
10810 return NULL;
10811 if (_argo0) {
10812 if (_argo0 == Py_None) { _arg0 = NULL; }
10813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10815 return NULL;
10816 }
10817 }
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 _result = (bool )wxImageList_RemoveAll(_arg0);
10821
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) return NULL;
10824 } _resultobj = Py_BuildValue("i",_result);
10825 return _resultobj;
10826 }
10827
10828 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10829 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10830 PyObject * _resultobj;
10831 wxImageList * _arg0;
10832 int _arg1;
10833 int * _arg2;
10834 int temp;
10835 int * _arg3;
10836 int temp0;
10837 PyObject * _argo0 = 0;
10838 char *_kwnames[] = { "self","index", NULL };
10839
10840 self = self;
10841 {
10842 _arg2 = &temp;
10843 }
10844 {
10845 _arg3 = &temp0;
10846 }
10847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10848 return NULL;
10849 if (_argo0) {
10850 if (_argo0 == Py_None) { _arg0 = NULL; }
10851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10853 return NULL;
10854 }
10855 }
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) return NULL;
10862 } Py_INCREF(Py_None);
10863 _resultobj = Py_None;
10864 {
10865 PyObject *o;
10866 o = PyInt_FromLong((long) (*_arg2));
10867 _resultobj = t_output_helper(_resultobj, o);
10868 }
10869 {
10870 PyObject *o;
10871 o = PyInt_FromLong((long) (*_arg3));
10872 _resultobj = t_output_helper(_resultobj, o);
10873 }
10874 return _resultobj;
10875 }
10876
10877 static void *SwigwxRegionTowxGDIObject(void *ptr) {
10878 wxRegion *src;
10879 wxGDIObject *dest;
10880 src = (wxRegion *) ptr;
10881 dest = (wxGDIObject *) src;
10882 return (void *) dest;
10883 }
10884
10885 static void *SwigwxRegionTowxObject(void *ptr) {
10886 wxRegion *src;
10887 wxObject *dest;
10888 src = (wxRegion *) ptr;
10889 dest = (wxObject *) src;
10890 return (void *) dest;
10891 }
10892
10893 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10894 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10895 PyObject * _resultobj;
10896 wxRegion * _result;
10897 wxCoord _arg0 = (wxCoord ) 0;
10898 wxCoord _arg1 = (wxCoord ) 0;
10899 wxCoord _arg2 = (wxCoord ) 0;
10900 wxCoord _arg3 = (wxCoord ) 0;
10901 char *_kwnames[] = { "x","y","width","height", NULL };
10902 char _ptemp[128];
10903
10904 self = self;
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10906 return NULL;
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
10910
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) return NULL;
10913 } if (_result) {
10914 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10915 _resultobj = Py_BuildValue("s",_ptemp);
10916 } else {
10917 Py_INCREF(Py_None);
10918 _resultobj = Py_None;
10919 }
10920 return _resultobj;
10921 }
10922
10923 #define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10924 static PyObject *_wrap_new_wxRegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
10925 PyObject * _resultobj;
10926 wxRegion * _result;
10927 int _arg0;
10928 wxPoint * _arg1;
10929 int _arg2 = (int ) wxWINDING_RULE;
10930 int NPOINTS;
10931 PyObject * _obj1 = 0;
10932 char *_kwnames[] = { "points","fillStyle", NULL };
10933 char _ptemp[128];
10934
10935 self = self;
10936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxRegionFromPoints",_kwnames,&_obj1,&_arg2))
10937 return NULL;
10938 if (_obj1)
10939 {
10940 _arg1 = wxPoint_LIST_helper(_obj1, &NPOINTS);
10941 if (_arg1 == NULL) {
10942 return NULL;
10943 }
10944 }
10945 {
10946 _arg0 = NPOINTS;
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 _result = (wxRegion *)new_wxRegionFromPoints(_arg0,_arg1,_arg2);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) return NULL;
10954 } if (_result) {
10955 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10956 _resultobj = Py_BuildValue("s",_ptemp);
10957 } else {
10958 Py_INCREF(Py_None);
10959 _resultobj = Py_None;
10960 }
10961 {
10962 delete [] _arg1;
10963 }
10964 return _resultobj;
10965 }
10966
10967 #define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10968 static PyObject *_wrap_new_wxRegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10969 PyObject * _resultobj;
10970 wxRegion * _result;
10971 wxBitmap * _arg0;
10972 wxColour * _arg1 = (wxColour *) &wxNullColour;
10973 int _arg2 = (int ) 0;
10974 PyObject * _argo0 = 0;
10975 wxColour temp;
10976 PyObject * _obj1 = 0;
10977 char *_kwnames[] = { "bmp","transColour","tolerance", NULL };
10978 char _ptemp[128];
10979
10980 self = self;
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:new_wxRegionFromBitmap",_kwnames,&_argo0,&_obj1,&_arg2))
10982 return NULL;
10983 if (_argo0) {
10984 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
10985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
10986 return NULL;
10987 }
10988 }
10989 if (_obj1)
10990 {
10991 _arg1 = &temp;
10992 if (! wxColour_helper(_obj1, &_arg1))
10993 return NULL;
10994 }
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 _result = (wxRegion *)new_wxRegionFromBitmap(*_arg0,*_arg1,_arg2);
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) return NULL;
11001 } if (_result) {
11002 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11003 _resultobj = Py_BuildValue("s",_ptemp);
11004 } else {
11005 Py_INCREF(Py_None);
11006 _resultobj = Py_None;
11007 }
11008 return _resultobj;
11009 }
11010
11011 #define delete_wxRegion(_swigobj) (delete _swigobj)
11012 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11013 PyObject * _resultobj;
11014 wxRegion * _arg0;
11015 PyObject * _argo0 = 0;
11016 char *_kwnames[] = { "self", NULL };
11017
11018 self = self;
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11020 return NULL;
11021 if (_argo0) {
11022 if (_argo0 == Py_None) { _arg0 = NULL; }
11023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11025 return NULL;
11026 }
11027 }
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 delete_wxRegion(_arg0);
11031
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) return NULL;
11034 } Py_INCREF(Py_None);
11035 _resultobj = Py_None;
11036 return _resultobj;
11037 }
11038
11039 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11040 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11041 PyObject * _resultobj;
11042 wxRegion * _arg0;
11043 PyObject * _argo0 = 0;
11044 char *_kwnames[] = { "self", NULL };
11045
11046 self = self;
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11048 return NULL;
11049 if (_argo0) {
11050 if (_argo0 == Py_None) { _arg0 = NULL; }
11051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11053 return NULL;
11054 }
11055 }
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 wxRegion_Clear(_arg0);
11059
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) return NULL;
11062 } Py_INCREF(Py_None);
11063 _resultobj = Py_None;
11064 return _resultobj;
11065 }
11066
11067 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
11068 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
11069 PyObject * _resultobj;
11070 bool _result;
11071 wxRegion * _arg0;
11072 wxCoord _arg1;
11073 wxCoord _arg2;
11074 PyObject * _argo0 = 0;
11075 char *_kwnames[] = { "self","x","y", NULL };
11076
11077 self = self;
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
11079 return NULL;
11080 if (_argo0) {
11081 if (_argo0 == Py_None) { _arg0 = NULL; }
11082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
11084 return NULL;
11085 }
11086 }
11087 {
11088 PyThreadState* __tstate = wxPyBeginAllowThreads();
11089 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
11090
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) return NULL;
11093 } _resultobj = Py_BuildValue("i",_result);
11094 return _resultobj;
11095 }
11096
11097 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11098 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11099 PyObject * _resultobj;
11100 wxRegionContain _result;
11101 wxRegion * _arg0;
11102 wxCoord _arg1;
11103 wxCoord _arg2;
11104 PyObject * _argo0 = 0;
11105 char *_kwnames[] = { "self","x","y", NULL };
11106
11107 self = self;
11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11109 return NULL;
11110 if (_argo0) {
11111 if (_argo0 == Py_None) { _arg0 = NULL; }
11112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11114 return NULL;
11115 }
11116 }
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11120
11121 wxPyEndAllowThreads(__tstate);
11122 if (PyErr_Occurred()) return NULL;
11123 } _resultobj = Py_BuildValue("i",_result);
11124 return _resultobj;
11125 }
11126
11127 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11128 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11129 PyObject * _resultobj;
11130 wxRegionContain _result;
11131 wxRegion * _arg0;
11132 wxPoint * _arg1;
11133 PyObject * _argo0 = 0;
11134 wxPoint temp;
11135 PyObject * _obj1 = 0;
11136 char *_kwnames[] = { "self","pt", NULL };
11137
11138 self = self;
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11140 return NULL;
11141 if (_argo0) {
11142 if (_argo0 == Py_None) { _arg0 = NULL; }
11143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11145 return NULL;
11146 }
11147 }
11148 {
11149 _arg1 = &temp;
11150 if (! wxPoint_helper(_obj1, &_arg1))
11151 return NULL;
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) return NULL;
11159 } _resultobj = Py_BuildValue("i",_result);
11160 return _resultobj;
11161 }
11162
11163 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11164 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11165 PyObject * _resultobj;
11166 wxRegionContain _result;
11167 wxRegion * _arg0;
11168 wxRect * _arg1;
11169 PyObject * _argo0 = 0;
11170 wxRect temp;
11171 PyObject * _obj1 = 0;
11172 char *_kwnames[] = { "self","rect", NULL };
11173
11174 self = self;
11175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
11176 return NULL;
11177 if (_argo0) {
11178 if (_argo0 == Py_None) { _arg0 = NULL; }
11179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11181 return NULL;
11182 }
11183 }
11184 {
11185 _arg1 = &temp;
11186 if (! wxRect_helper(_obj1, &_arg1))
11187 return NULL;
11188 }
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) return NULL;
11195 } _resultobj = Py_BuildValue("i",_result);
11196 return _resultobj;
11197 }
11198
11199 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11200 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
11201 PyObject * _resultobj;
11202 wxRegionContain _result;
11203 wxRegion * _arg0;
11204 wxCoord _arg1;
11205 wxCoord _arg2;
11206 wxCoord _arg3;
11207 wxCoord _arg4;
11208 PyObject * _argo0 = 0;
11209 char *_kwnames[] = { "self","x","y","w","h", NULL };
11210
11211 self = self;
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11213 return NULL;
11214 if (_argo0) {
11215 if (_argo0 == Py_None) { _arg0 = NULL; }
11216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11218 return NULL;
11219 }
11220 }
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
11224
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) return NULL;
11227 } _resultobj = Py_BuildValue("i",_result);
11228 return _resultobj;
11229 }
11230
11231 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11232 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject * _resultobj;
11234 wxRect * _result;
11235 wxRegion * _arg0;
11236 PyObject * _argo0 = 0;
11237 char *_kwnames[] = { "self", NULL };
11238 char _ptemp[128];
11239
11240 self = self;
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
11242 return NULL;
11243 if (_argo0) {
11244 if (_argo0 == Py_None) { _arg0 = NULL; }
11245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11247 return NULL;
11248 }
11249 }
11250 {
11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
11252 _result = new wxRect (wxRegion_GetBox(_arg0));
11253
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) return NULL;
11256 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11257 _resultobj = Py_BuildValue("s",_ptemp);
11258 return _resultobj;
11259 }
11260
11261 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11262 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
11263 PyObject * _resultobj;
11264 bool _result;
11265 wxRegion * _arg0;
11266 wxCoord _arg1;
11267 wxCoord _arg2;
11268 wxCoord _arg3;
11269 wxCoord _arg4;
11270 PyObject * _argo0 = 0;
11271 char *_kwnames[] = { "self","x","y","width","height", NULL };
11272
11273 self = self;
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11275 return NULL;
11276 if (_argo0) {
11277 if (_argo0 == Py_None) { _arg0 = NULL; }
11278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11280 return NULL;
11281 }
11282 }
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) return NULL;
11289 } _resultobj = Py_BuildValue("i",_result);
11290 return _resultobj;
11291 }
11292
11293 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11294 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11295 PyObject * _resultobj;
11296 bool _result;
11297 wxRegion * _arg0;
11298 wxRect * _arg1;
11299 PyObject * _argo0 = 0;
11300 wxRect temp;
11301 PyObject * _obj1 = 0;
11302 char *_kwnames[] = { "self","rect", NULL };
11303
11304 self = self;
11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11306 return NULL;
11307 if (_argo0) {
11308 if (_argo0 == Py_None) { _arg0 = NULL; }
11309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11311 return NULL;
11312 }
11313 }
11314 {
11315 _arg1 = &temp;
11316 if (! wxRect_helper(_obj1, &_arg1))
11317 return NULL;
11318 }
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) return NULL;
11325 } _resultobj = Py_BuildValue("i",_result);
11326 return _resultobj;
11327 }
11328
11329 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11330 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11331 PyObject * _resultobj;
11332 bool _result;
11333 wxRegion * _arg0;
11334 wxRegion * _arg1;
11335 PyObject * _argo0 = 0;
11336 PyObject * _argo1 = 0;
11337 char *_kwnames[] = { "self","region", NULL };
11338
11339 self = self;
11340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11341 return NULL;
11342 if (_argo0) {
11343 if (_argo0 == Py_None) { _arg0 = NULL; }
11344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11346 return NULL;
11347 }
11348 }
11349 if (_argo1) {
11350 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11351 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11352 return NULL;
11353 }
11354 }
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11358
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) return NULL;
11361 } _resultobj = Py_BuildValue("i",_result);
11362 return _resultobj;
11363 }
11364
11365 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11366 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11367 PyObject * _resultobj;
11368 bool _result;
11369 wxRegion * _arg0;
11370 PyObject * _argo0 = 0;
11371 char *_kwnames[] = { "self", NULL };
11372
11373 self = self;
11374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11375 return NULL;
11376 if (_argo0) {
11377 if (_argo0 == Py_None) { _arg0 = NULL; }
11378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11380 return NULL;
11381 }
11382 }
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
11385 _result = (bool )wxRegion_IsEmpty(_arg0);
11386
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) return NULL;
11389 } _resultobj = Py_BuildValue("i",_result);
11390 return _resultobj;
11391 }
11392
11393 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11394 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11395 PyObject * _resultobj;
11396 bool _result;
11397 wxRegion * _arg0;
11398 wxCoord _arg1;
11399 wxCoord _arg2;
11400 wxCoord _arg3;
11401 wxCoord _arg4;
11402 PyObject * _argo0 = 0;
11403 char *_kwnames[] = { "self","x","y","width","height", NULL };
11404
11405 self = self;
11406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11407 return NULL;
11408 if (_argo0) {
11409 if (_argo0 == Py_None) { _arg0 = NULL; }
11410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11412 return NULL;
11413 }
11414 }
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11418
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) return NULL;
11421 } _resultobj = Py_BuildValue("i",_result);
11422 return _resultobj;
11423 }
11424
11425 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11426 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject * _resultobj;
11428 bool _result;
11429 wxRegion * _arg0;
11430 wxRect * _arg1;
11431 PyObject * _argo0 = 0;
11432 wxRect temp;
11433 PyObject * _obj1 = 0;
11434 char *_kwnames[] = { "self","rect", NULL };
11435
11436 self = self;
11437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11438 return NULL;
11439 if (_argo0) {
11440 if (_argo0 == Py_None) { _arg0 = NULL; }
11441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11443 return NULL;
11444 }
11445 }
11446 {
11447 _arg1 = &temp;
11448 if (! wxRect_helper(_obj1, &_arg1))
11449 return NULL;
11450 }
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) return NULL;
11457 } _resultobj = Py_BuildValue("i",_result);
11458 return _resultobj;
11459 }
11460
11461 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11462 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11463 PyObject * _resultobj;
11464 bool _result;
11465 wxRegion * _arg0;
11466 wxRegion * _arg1;
11467 PyObject * _argo0 = 0;
11468 PyObject * _argo1 = 0;
11469 char *_kwnames[] = { "self","region", NULL };
11470
11471 self = self;
11472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11473 return NULL;
11474 if (_argo0) {
11475 if (_argo0 == Py_None) { _arg0 = NULL; }
11476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11478 return NULL;
11479 }
11480 }
11481 if (_argo1) {
11482 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11483 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11484 return NULL;
11485 }
11486 }
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11490
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) return NULL;
11493 } _resultobj = Py_BuildValue("i",_result);
11494 return _resultobj;
11495 }
11496
11497 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11498 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11499 PyObject * _resultobj;
11500 bool _result;
11501 wxRegion * _arg0;
11502 wxCoord _arg1;
11503 wxCoord _arg2;
11504 wxCoord _arg3;
11505 wxCoord _arg4;
11506 PyObject * _argo0 = 0;
11507 char *_kwnames[] = { "self","x","y","width","height", NULL };
11508
11509 self = self;
11510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11511 return NULL;
11512 if (_argo0) {
11513 if (_argo0 == Py_None) { _arg0 = NULL; }
11514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11516 return NULL;
11517 }
11518 }
11519 {
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11522
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) return NULL;
11525 } _resultobj = Py_BuildValue("i",_result);
11526 return _resultobj;
11527 }
11528
11529 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11530 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11531 PyObject * _resultobj;
11532 bool _result;
11533 wxRegion * _arg0;
11534 wxRect * _arg1;
11535 PyObject * _argo0 = 0;
11536 wxRect temp;
11537 PyObject * _obj1 = 0;
11538 char *_kwnames[] = { "self","rect", NULL };
11539
11540 self = self;
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11542 return NULL;
11543 if (_argo0) {
11544 if (_argo0 == Py_None) { _arg0 = NULL; }
11545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11547 return NULL;
11548 }
11549 }
11550 {
11551 _arg1 = &temp;
11552 if (! wxRect_helper(_obj1, &_arg1))
11553 return NULL;
11554 }
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) return NULL;
11561 } _resultobj = Py_BuildValue("i",_result);
11562 return _resultobj;
11563 }
11564
11565 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11566 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11567 PyObject * _resultobj;
11568 bool _result;
11569 wxRegion * _arg0;
11570 wxRegion * _arg1;
11571 PyObject * _argo0 = 0;
11572 PyObject * _argo1 = 0;
11573 char *_kwnames[] = { "self","region", NULL };
11574
11575 self = self;
11576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11577 return NULL;
11578 if (_argo0) {
11579 if (_argo0 == Py_None) { _arg0 = NULL; }
11580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11582 return NULL;
11583 }
11584 }
11585 if (_argo1) {
11586 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11587 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11588 return NULL;
11589 }
11590 }
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11594
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) return NULL;
11597 } _resultobj = Py_BuildValue("i",_result);
11598 return _resultobj;
11599 }
11600
11601 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11602 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject * _resultobj;
11604 bool _result;
11605 wxRegion * _arg0;
11606 wxCoord _arg1;
11607 wxCoord _arg2;
11608 wxCoord _arg3;
11609 wxCoord _arg4;
11610 PyObject * _argo0 = 0;
11611 char *_kwnames[] = { "self","x","y","width","height", NULL };
11612
11613 self = self;
11614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11615 return NULL;
11616 if (_argo0) {
11617 if (_argo0 == Py_None) { _arg0 = NULL; }
11618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11620 return NULL;
11621 }
11622 }
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11626
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) return NULL;
11629 } _resultobj = Py_BuildValue("i",_result);
11630 return _resultobj;
11631 }
11632
11633 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11634 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11635 PyObject * _resultobj;
11636 bool _result;
11637 wxRegion * _arg0;
11638 wxRect * _arg1;
11639 PyObject * _argo0 = 0;
11640 wxRect temp;
11641 PyObject * _obj1 = 0;
11642 char *_kwnames[] = { "self","rect", NULL };
11643
11644 self = self;
11645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11646 return NULL;
11647 if (_argo0) {
11648 if (_argo0 == Py_None) { _arg0 = NULL; }
11649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11651 return NULL;
11652 }
11653 }
11654 {
11655 _arg1 = &temp;
11656 if (! wxRect_helper(_obj1, &_arg1))
11657 return NULL;
11658 }
11659 {
11660 PyThreadState* __tstate = wxPyBeginAllowThreads();
11661 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11662
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) return NULL;
11665 } _resultobj = Py_BuildValue("i",_result);
11666 return _resultobj;
11667 }
11668
11669 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11670 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11671 PyObject * _resultobj;
11672 bool _result;
11673 wxRegion * _arg0;
11674 wxRegion * _arg1;
11675 PyObject * _argo0 = 0;
11676 PyObject * _argo1 = 0;
11677 char *_kwnames[] = { "self","region", NULL };
11678
11679 self = self;
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11681 return NULL;
11682 if (_argo0) {
11683 if (_argo0 == Py_None) { _arg0 = NULL; }
11684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11686 return NULL;
11687 }
11688 }
11689 if (_argo1) {
11690 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11691 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11692 return NULL;
11693 }
11694 }
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11698
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) return NULL;
11701 } _resultobj = Py_BuildValue("i",_result);
11702 return _resultobj;
11703 }
11704
11705 #define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
11706 static PyObject *_wrap_wxRegion_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11707 PyObject * _resultobj;
11708 wxBitmap * _result;
11709 wxRegion * _arg0;
11710 PyObject * _argo0 = 0;
11711 char *_kwnames[] = { "self", NULL };
11712 char _ptemp[128];
11713
11714 self = self;
11715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_ConvertToBitmap",_kwnames,&_argo0))
11716 return NULL;
11717 if (_argo0) {
11718 if (_argo0 == Py_None) { _arg0 = NULL; }
11719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ConvertToBitmap. Expected _wxRegion_p.");
11721 return NULL;
11722 }
11723 }
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 _result = new wxBitmap (wxRegion_ConvertToBitmap(_arg0));
11727
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) return NULL;
11730 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
11731 _resultobj = Py_BuildValue("s",_ptemp);
11732 return _resultobj;
11733 }
11734
11735 #define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
11736 static PyObject *_wrap_wxRegion_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11737 PyObject * _resultobj;
11738 bool _result;
11739 wxRegion * _arg0;
11740 wxBitmap * _arg1;
11741 wxColour * _arg2 = (wxColour *) &wxNullColour;
11742 int _arg3 = (int ) 0;
11743 PyObject * _argo0 = 0;
11744 PyObject * _argo1 = 0;
11745 wxColour temp;
11746 PyObject * _obj2 = 0;
11747 char *_kwnames[] = { "self","bmp","transColour","tolerance", NULL };
11748
11749 self = self;
11750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxRegion_UnionBitmap",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
11751 return NULL;
11752 if (_argo0) {
11753 if (_argo0 == Py_None) { _arg0 = NULL; }
11754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p.");
11756 return NULL;
11757 }
11758 }
11759 if (_argo1) {
11760 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11761 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
11762 return NULL;
11763 }
11764 }
11765 if (_obj2)
11766 {
11767 _arg2 = &temp;
11768 if (! wxColour_helper(_obj2, &_arg2))
11769 return NULL;
11770 }
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 _result = (bool )wxRegion_UnionBitmap(_arg0,*_arg1,*_arg2,_arg3);
11774
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) return NULL;
11777 } _resultobj = Py_BuildValue("i",_result);
11778 return _resultobj;
11779 }
11780
11781 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11782 wxRegionIterator *src;
11783 wxObject *dest;
11784 src = (wxRegionIterator *) ptr;
11785 dest = (wxObject *) src;
11786 return (void *) dest;
11787 }
11788
11789 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11790 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11791 PyObject * _resultobj;
11792 wxRegionIterator * _result;
11793 wxRegion * _arg0;
11794 PyObject * _argo0 = 0;
11795 char *_kwnames[] = { "region", NULL };
11796 char _ptemp[128];
11797
11798 self = self;
11799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11800 return NULL;
11801 if (_argo0) {
11802 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11804 return NULL;
11805 }
11806 }
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11810
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) return NULL;
11813 } if (_result) {
11814 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11815 _resultobj = Py_BuildValue("s",_ptemp);
11816 } else {
11817 Py_INCREF(Py_None);
11818 _resultobj = Py_None;
11819 }
11820 return _resultobj;
11821 }
11822
11823 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11824 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11825 PyObject * _resultobj;
11826 wxRegionIterator * _arg0;
11827 PyObject * _argo0 = 0;
11828 char *_kwnames[] = { "self", NULL };
11829
11830 self = self;
11831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11832 return NULL;
11833 if (_argo0) {
11834 if (_argo0 == Py_None) { _arg0 = NULL; }
11835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11837 return NULL;
11838 }
11839 }
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 delete_wxRegionIterator(_arg0);
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) return NULL;
11846 } Py_INCREF(Py_None);
11847 _resultobj = Py_None;
11848 return _resultobj;
11849 }
11850
11851 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11852 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11853 PyObject * _resultobj;
11854 wxCoord _result;
11855 wxRegionIterator * _arg0;
11856 PyObject * _argo0 = 0;
11857 char *_kwnames[] = { "self", NULL };
11858
11859 self = self;
11860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11861 return NULL;
11862 if (_argo0) {
11863 if (_argo0 == Py_None) { _arg0 = NULL; }
11864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11866 return NULL;
11867 }
11868 }
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 _result = (wxCoord )wxRegionIterator_GetX(_arg0);
11872
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) return NULL;
11875 } _resultobj = Py_BuildValue("i",_result);
11876 return _resultobj;
11877 }
11878
11879 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11880 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11881 PyObject * _resultobj;
11882 wxCoord _result;
11883 wxRegionIterator * _arg0;
11884 PyObject * _argo0 = 0;
11885 char *_kwnames[] = { "self", NULL };
11886
11887 self = self;
11888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11889 return NULL;
11890 if (_argo0) {
11891 if (_argo0 == Py_None) { _arg0 = NULL; }
11892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11894 return NULL;
11895 }
11896 }
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 _result = (wxCoord )wxRegionIterator_GetY(_arg0);
11900
11901 wxPyEndAllowThreads(__tstate);
11902 if (PyErr_Occurred()) return NULL;
11903 } _resultobj = Py_BuildValue("i",_result);
11904 return _resultobj;
11905 }
11906
11907 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11908 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11909 PyObject * _resultobj;
11910 wxCoord _result;
11911 wxRegionIterator * _arg0;
11912 PyObject * _argo0 = 0;
11913 char *_kwnames[] = { "self", NULL };
11914
11915 self = self;
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11917 return NULL;
11918 if (_argo0) {
11919 if (_argo0 == Py_None) { _arg0 = NULL; }
11920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11922 return NULL;
11923 }
11924 }
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 _result = (wxCoord )wxRegionIterator_GetW(_arg0);
11928
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) return NULL;
11931 } _resultobj = Py_BuildValue("i",_result);
11932 return _resultobj;
11933 }
11934
11935 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11936 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11937 PyObject * _resultobj;
11938 wxCoord _result;
11939 wxRegionIterator * _arg0;
11940 PyObject * _argo0 = 0;
11941 char *_kwnames[] = { "self", NULL };
11942
11943 self = self;
11944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11945 return NULL;
11946 if (_argo0) {
11947 if (_argo0 == Py_None) { _arg0 = NULL; }
11948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11950 return NULL;
11951 }
11952 }
11953 {
11954 PyThreadState* __tstate = wxPyBeginAllowThreads();
11955 _result = (wxCoord )wxRegionIterator_GetWidth(_arg0);
11956
11957 wxPyEndAllowThreads(__tstate);
11958 if (PyErr_Occurred()) return NULL;
11959 } _resultobj = Py_BuildValue("i",_result);
11960 return _resultobj;
11961 }
11962
11963 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11964 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11965 PyObject * _resultobj;
11966 wxCoord _result;
11967 wxRegionIterator * _arg0;
11968 PyObject * _argo0 = 0;
11969 char *_kwnames[] = { "self", NULL };
11970
11971 self = self;
11972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11973 return NULL;
11974 if (_argo0) {
11975 if (_argo0 == Py_None) { _arg0 = NULL; }
11976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11978 return NULL;
11979 }
11980 }
11981 {
11982 PyThreadState* __tstate = wxPyBeginAllowThreads();
11983 _result = (wxCoord )wxRegionIterator_GetH(_arg0);
11984
11985 wxPyEndAllowThreads(__tstate);
11986 if (PyErr_Occurred()) return NULL;
11987 } _resultobj = Py_BuildValue("i",_result);
11988 return _resultobj;
11989 }
11990
11991 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11992 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11993 PyObject * _resultobj;
11994 wxCoord _result;
11995 wxRegionIterator * _arg0;
11996 PyObject * _argo0 = 0;
11997 char *_kwnames[] = { "self", NULL };
11998
11999 self = self;
12000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12001 return NULL;
12002 if (_argo0) {
12003 if (_argo0 == Py_None) { _arg0 = NULL; }
12004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12006 return NULL;
12007 }
12008 }
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 _result = (wxCoord )wxRegionIterator_GetHeight(_arg0);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) return NULL;
12015 } _resultobj = Py_BuildValue("i",_result);
12016 return _resultobj;
12017 }
12018
12019 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12020 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12021 PyObject * _resultobj;
12022 wxRect * _result;
12023 wxRegionIterator * _arg0;
12024 PyObject * _argo0 = 0;
12025 char *_kwnames[] = { "self", NULL };
12026 char _ptemp[128];
12027
12028 self = self;
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12030 return NULL;
12031 if (_argo0) {
12032 if (_argo0 == Py_None) { _arg0 = NULL; }
12033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12035 return NULL;
12036 }
12037 }
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) return NULL;
12044 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12045 _resultobj = Py_BuildValue("s",_ptemp);
12046 return _resultobj;
12047 }
12048
12049 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12050 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12051 PyObject * _resultobj;
12052 bool _result;
12053 wxRegionIterator * _arg0;
12054 PyObject * _argo0 = 0;
12055 char *_kwnames[] = { "self", NULL };
12056
12057 self = self;
12058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12059 return NULL;
12060 if (_argo0) {
12061 if (_argo0 == Py_None) { _arg0 = NULL; }
12062 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12063 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12064 return NULL;
12065 }
12066 }
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12070
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) return NULL;
12073 } _resultobj = Py_BuildValue("i",_result);
12074 return _resultobj;
12075 }
12076
12077 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12078 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12079 PyObject * _resultobj;
12080 wxRegionIterator * _arg0;
12081 PyObject * _argo0 = 0;
12082 char *_kwnames[] = { "self", NULL };
12083
12084 self = self;
12085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12086 return NULL;
12087 if (_argo0) {
12088 if (_argo0 == Py_None) { _arg0 = NULL; }
12089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12091 return NULL;
12092 }
12093 }
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 wxRegionIterator_Reset(_arg0);
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) return NULL;
12100 } Py_INCREF(Py_None);
12101 _resultobj = Py_None;
12102 return _resultobj;
12103 }
12104
12105 static void wxRegionIterator_Next(wxRegionIterator *self) {
12106 (*self) ++;
12107 }
12108 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12109 PyObject * _resultobj;
12110 wxRegionIterator * _arg0;
12111 PyObject * _argo0 = 0;
12112 char *_kwnames[] = { "self", NULL };
12113
12114 self = self;
12115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12116 return NULL;
12117 if (_argo0) {
12118 if (_argo0 == Py_None) { _arg0 = NULL; }
12119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12121 return NULL;
12122 }
12123 }
12124 {
12125 PyThreadState* __tstate = wxPyBeginAllowThreads();
12126 wxRegionIterator_Next(_arg0);
12127
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) return NULL;
12130 } Py_INCREF(Py_None);
12131 _resultobj = Py_None;
12132 return _resultobj;
12133 }
12134
12135 static PyMethodDef gdicMethods[] = {
12136 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12137 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12138 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12139 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12140 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12141 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12142 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12143 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12144 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12145 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12146 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12147 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12148 { "wxRegion_UnionBitmap", (PyCFunction) _wrap_wxRegion_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
12149 { "wxRegion_ConvertToBitmap", (PyCFunction) _wrap_wxRegion_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
12150 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12151 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12152 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12153 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12154 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12155 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12156 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12157 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12158 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12159 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12160 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12161 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12162 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12163 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12164 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12165 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12166 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12167 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12168 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
12169 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12170 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12171 { "new_wxRegionFromBitmap", (PyCFunction) _wrap_new_wxRegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
12172 { "new_wxRegionFromPoints", (PyCFunction) _wrap_new_wxRegionFromPoints, METH_VARARGS | METH_KEYWORDS },
12173 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12174 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12175 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12176 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12177 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12178 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12179 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12180 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12181 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12182 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12183 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12184 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12185 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12186 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12187 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12188 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12189 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12190 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12191 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12192 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12193 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12194 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12195 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12196 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12197 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12198 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12199 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12200 { "new_wxMirrorDC", (PyCFunction) _wrap_new_wxMirrorDC, METH_VARARGS | METH_KEYWORDS },
12201 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12202 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12203 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12204 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12205 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12206 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12207 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12208 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
12209 { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
12210 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
12211 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
12212 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12213 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12214 { "wxDC__DrawTextList", (PyCFunction) _wrap_wxDC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
12215 { "wxDC__DrawPolygonList", (PyCFunction) _wrap_wxDC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
12216 { "wxDC__DrawEllipseList", (PyCFunction) _wrap_wxDC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
12217 { "wxDC__DrawRectangleList", (PyCFunction) _wrap_wxDC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
12218 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12219 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12220 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
12221 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12222 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12223 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12224 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12225 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12226 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12227 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12228 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12229 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12230 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12231 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12232 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12233 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12234 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12235 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12236 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12237 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12238 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12239 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12240 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12241 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12242 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12243 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12244 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12245 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12246 { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
12247 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12248 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
12249 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
12250 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
12251 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12252 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
12253 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
12254 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
12255 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
12256 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
12257 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
12258 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
12259 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
12260 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
12261 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
12262 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
12263 { "wxDC_GetMultiLineTextExtent", (PyCFunction) _wrap_wxDC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
12264 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12265 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12266 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
12267 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
12268 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
12269 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12270 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
12271 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
12272 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
12273 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
12274 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12275 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12276 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
12277 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
12278 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12279 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12280 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
12281 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
12282 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
12283 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
12284 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
12285 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
12286 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
12287 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
12288 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
12289 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
12290 { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
12291 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
12292 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
12293 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
12294 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
12295 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
12296 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
12297 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
12298 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
12299 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
12300 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
12301 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
12302 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
12303 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
12304 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
12305 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
12306 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
12307 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
12308 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
12309 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
12310 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
12311 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
12312 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
12313 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
12314 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
12315 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
12316 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
12317 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
12318 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
12319 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
12320 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
12321 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
12322 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
12323 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
12324 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
12325 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
12326 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
12327 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
12328 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
12329 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
12330 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12331 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12332 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12333 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
12334 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
12335 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
12336 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12337 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
12338 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
12339 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
12340 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
12341 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
12342 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
12343 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
12344 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
12345 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
12346 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
12347 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
12348 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
12349 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
12350 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
12351 { "wxColourDatabase_AddColour", (PyCFunction) _wrap_wxColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
12352 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
12353 { "wxColourDatabase_FindColourNoAdd", (PyCFunction) _wrap_wxColourDatabase_FindColourNoAdd, METH_VARARGS | METH_KEYWORDS },
12354 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
12355 { "wxColour___ne__", (PyCFunction) _wrap_wxColour___ne__, METH_VARARGS | METH_KEYWORDS },
12356 { "wxColour___eq__", (PyCFunction) _wrap_wxColour___eq__, METH_VARARGS | METH_KEYWORDS },
12357 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
12358 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
12359 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
12360 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
12361 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
12362 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
12363 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
12364 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
12365 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
12366 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
12367 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
12368 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
12369 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
12370 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
12371 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
12372 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12373 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
12374 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
12375 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12376 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
12377 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
12378 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
12379 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
12380 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
12381 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
12382 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
12383 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
12384 { "wxIconLocation_GetIndex", (PyCFunction) _wrap_wxIconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
12385 { "wxIconLocation_SetIndex", (PyCFunction) _wrap_wxIconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
12386 { "wxIconLocation_GetFileName", (PyCFunction) _wrap_wxIconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
12387 { "wxIconLocation_SetFileName", (PyCFunction) _wrap_wxIconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
12388 { "wxIconLocation_IsOk", (PyCFunction) _wrap_wxIconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
12389 { "delete_wxIconLocation", (PyCFunction) _wrap_delete_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
12390 { "new_wxIconLocation", (PyCFunction) _wrap_new_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
12391 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12392 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
12393 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12394 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12395 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12396 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12397 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12398 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12399 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12400 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
12401 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
12402 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
12403 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12404 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12405 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12406 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12407 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
12408 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
12409 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
12410 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12411 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12412 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
12413 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12414 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12415 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12416 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12417 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12418 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12419 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12420 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
12421 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
12422 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
12423 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12424 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12425 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12426 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12427 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12428 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12429 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12430 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12431 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12432 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12433 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12434 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12435 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12436 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12437 { "wxCursorFromBits", (PyCFunction) _wrap_wxCursorFromBits, METH_VARARGS | METH_KEYWORDS },
12438 { "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS },
12439 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12440 { "wxIconFromLocation", (PyCFunction) _wrap_wxIconFromLocation, METH_VARARGS | METH_KEYWORDS },
12441 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
12442 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12443 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12444 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12445 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12446 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12447 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12448 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12449 { NULL, NULL }
12450 };
12451 #ifdef __cplusplus
12452 }
12453 #endif
12454 /*
12455 * This table is used by the pointer type-checker
12456 */
12457 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12458 { "_signed_long","_long",0},
12459 { "_wxPrintQuality","_wxCoord",0},
12460 { "_wxPrintQuality","_int",0},
12461 { "_wxPrintQuality","_signed_int",0},
12462 { "_wxPrintQuality","_unsigned_int",0},
12463 { "_wxPrintQuality","_wxWindowID",0},
12464 { "_wxPrintQuality","_uint",0},
12465 { "_wxPrintQuality","_EBool",0},
12466 { "_wxPrintQuality","_size_t",0},
12467 { "_wxPrintQuality","_time_t",0},
12468 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12469 { "_byte","_unsigned_char",0},
12470 { "_long","_unsigned_long",0},
12471 { "_long","_signed_long",0},
12472 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12473 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12474 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12475 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12476 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12477 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12478 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12479 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12480 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
12481 { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC},
12482 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12483 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12484 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12485 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12486 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
12487 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
12488 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12489 { "_size_t","_wxCoord",0},
12490 { "_size_t","_wxPrintQuality",0},
12491 { "_size_t","_time_t",0},
12492 { "_size_t","_unsigned_int",0},
12493 { "_size_t","_int",0},
12494 { "_size_t","_wxWindowID",0},
12495 { "_size_t","_uint",0},
12496 { "_uint","_wxCoord",0},
12497 { "_uint","_wxPrintQuality",0},
12498 { "_uint","_time_t",0},
12499 { "_uint","_size_t",0},
12500 { "_uint","_unsigned_int",0},
12501 { "_uint","_int",0},
12502 { "_uint","_wxWindowID",0},
12503 { "_wxChar","_char",0},
12504 { "_char","_wxChar",0},
12505 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
12506 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12507 { "_EBool","_wxCoord",0},
12508 { "_EBool","_wxPrintQuality",0},
12509 { "_EBool","_signed_int",0},
12510 { "_EBool","_int",0},
12511 { "_EBool","_wxWindowID",0},
12512 { "_unsigned_long","_long",0},
12513 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12514 { "_signed_int","_wxCoord",0},
12515 { "_signed_int","_wxPrintQuality",0},
12516 { "_signed_int","_EBool",0},
12517 { "_signed_int","_wxWindowID",0},
12518 { "_signed_int","_int",0},
12519 { "_WXTYPE","_short",0},
12520 { "_WXTYPE","_signed_short",0},
12521 { "_WXTYPE","_unsigned_short",0},
12522 { "_unsigned_short","_WXTYPE",0},
12523 { "_unsigned_short","_short",0},
12524 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12525 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12526 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12527 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12528 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
12529 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
12530 { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject},
12531 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12532 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12533 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12534 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12535 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
12536 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
12537 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12538 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12539 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12540 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12541 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12542 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12543 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12544 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12545 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12546 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12547 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12548 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12549 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12550 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12551 { "_signed_short","_WXTYPE",0},
12552 { "_signed_short","_short",0},
12553 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
12554 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
12555 { "_unsigned_char","_byte",0},
12556 { "_unsigned_int","_wxCoord",0},
12557 { "_unsigned_int","_wxPrintQuality",0},
12558 { "_unsigned_int","_time_t",0},
12559 { "_unsigned_int","_size_t",0},
12560 { "_unsigned_int","_uint",0},
12561 { "_unsigned_int","_wxWindowID",0},
12562 { "_unsigned_int","_int",0},
12563 { "_short","_WXTYPE",0},
12564 { "_short","_unsigned_short",0},
12565 { "_short","_signed_short",0},
12566 { "_wxWindowID","_wxCoord",0},
12567 { "_wxWindowID","_wxPrintQuality",0},
12568 { "_wxWindowID","_time_t",0},
12569 { "_wxWindowID","_size_t",0},
12570 { "_wxWindowID","_EBool",0},
12571 { "_wxWindowID","_uint",0},
12572 { "_wxWindowID","_int",0},
12573 { "_wxWindowID","_signed_int",0},
12574 { "_wxWindowID","_unsigned_int",0},
12575 { "_int","_wxCoord",0},
12576 { "_int","_wxPrintQuality",0},
12577 { "_int","_time_t",0},
12578 { "_int","_size_t",0},
12579 { "_int","_EBool",0},
12580 { "_int","_uint",0},
12581 { "_int","_wxWindowID",0},
12582 { "_int","_unsigned_int",0},
12583 { "_int","_signed_int",0},
12584 { "_time_t","_wxCoord",0},
12585 { "_time_t","_wxPrintQuality",0},
12586 { "_time_t","_unsigned_int",0},
12587 { "_time_t","_int",0},
12588 { "_time_t","_wxWindowID",0},
12589 { "_time_t","_uint",0},
12590 { "_time_t","_size_t",0},
12591 { "_wxCoord","_int",0},
12592 { "_wxCoord","_signed_int",0},
12593 { "_wxCoord","_unsigned_int",0},
12594 { "_wxCoord","_wxWindowID",0},
12595 { "_wxCoord","_uint",0},
12596 { "_wxCoord","_EBool",0},
12597 { "_wxCoord","_size_t",0},
12598 { "_wxCoord","_time_t",0},
12599 { "_wxCoord","_wxPrintQuality",0},
12600 {0,0,0}};
12601
12602 static PyObject *SWIG_globals;
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 SWIGEXPORT(void) initgdic() {
12607 PyObject *m, *d;
12608 SWIG_globals = SWIG_newvarlink();
12609 m = Py_InitModule("gdic", gdicMethods);
12610 d = PyModule_GetDict(m);
12611 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12612 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12613 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12614 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12615 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12616 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12617 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12618 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12619 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12620 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12621 PyDict_SetItemString(d,"cvar", SWIG_globals);
12622 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12623 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12624 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12625 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12626 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12627 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12628 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12629 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12630 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12631 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12632 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12633 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12634 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12635 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12636 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12637 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12638 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12639 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12640 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12641 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12642 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12643 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12644 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12645 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12646 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12647 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12648 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12649 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12650 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12651 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12652 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12653 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12654 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12655 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12656 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12657 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12658 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12659 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12660 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12661 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12662 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12663 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12664 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12665 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12666 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12667 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12668 {
12669 int i;
12670 for (i = 0; _swig_mapping[i].n1; i++)
12671 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12672 }
12673 }