]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
#if around deprecated macros
[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 new_wxColourDatabase() (new wxColourDatabase())
4098 static PyObject *_wrap_new_wxColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject * _resultobj;
4100 wxColourDatabase * _result;
4101 char *_kwnames[] = { NULL };
4102 char _ptemp[128];
4103
4104 self = self;
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourDatabase",_kwnames))
4106 return NULL;
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 _result = (wxColourDatabase *)new_wxColourDatabase();
4110
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) return NULL;
4113 } if (_result) {
4114 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourDatabase_p");
4115 _resultobj = Py_BuildValue("s",_ptemp);
4116 } else {
4117 Py_INCREF(Py_None);
4118 _resultobj = Py_None;
4119 }
4120 return _resultobj;
4121 }
4122
4123 #define delete_wxColourDatabase(_swigobj) (delete _swigobj)
4124 static PyObject *_wrap_delete_wxColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject * _resultobj;
4126 wxColourDatabase * _arg0;
4127 PyObject * _argo0 = 0;
4128 char *_kwnames[] = { "self", NULL };
4129
4130 self = self;
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourDatabase",_kwnames,&_argo0))
4132 return NULL;
4133 if (_argo0) {
4134 if (_argo0 == Py_None) { _arg0 = NULL; }
4135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourDatabase. Expected _wxColourDatabase_p.");
4137 return NULL;
4138 }
4139 }
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 delete_wxColourDatabase(_arg0);
4143
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) return NULL;
4146 } Py_INCREF(Py_None);
4147 _resultobj = Py_None;
4148 return _resultobj;
4149 }
4150
4151 #define wxColourDatabase_Find(_swigobj,_swigarg0) (_swigobj->Find(_swigarg0))
4152 static PyObject *_wrap_wxColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
4153 PyObject * _resultobj;
4154 wxColour * _result;
4155 wxColourDatabase * _arg0;
4156 wxString * _arg1;
4157 PyObject * _argo0 = 0;
4158 PyObject * _obj1 = 0;
4159 char *_kwnames[] = { "self","name", NULL };
4160 char _ptemp[128];
4161
4162 self = self;
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_Find",_kwnames,&_argo0,&_obj1))
4164 return NULL;
4165 if (_argo0) {
4166 if (_argo0 == Py_None) { _arg0 = NULL; }
4167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Find. Expected _wxColourDatabase_p.");
4169 return NULL;
4170 }
4171 }
4172 {
4173 _arg1 = wxString_in_helper(_obj1);
4174 if (_arg1 == NULL)
4175 return NULL;
4176 }
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 _result = new wxColour (wxColourDatabase_Find(_arg0,*_arg1));
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) return NULL;
4183 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4184 _resultobj = Py_BuildValue("s",_ptemp);
4185 {
4186 if (_obj1)
4187 delete _arg1;
4188 }
4189 return _resultobj;
4190 }
4191
4192 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4193 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
4194 PyObject * _resultobj;
4195 wxString * _result;
4196 wxColourDatabase * _arg0;
4197 wxColour * _arg1;
4198 PyObject * _argo0 = 0;
4199 wxColour temp;
4200 PyObject * _obj1 = 0;
4201 char *_kwnames[] = { "self","colour", NULL };
4202
4203 self = self;
4204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
4205 return NULL;
4206 if (_argo0) {
4207 if (_argo0 == Py_None) { _arg0 = NULL; }
4208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4210 return NULL;
4211 }
4212 }
4213 {
4214 _arg1 = &temp;
4215 if (! wxColour_helper(_obj1, &_arg1))
4216 return NULL;
4217 }
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) return NULL;
4224 }{
4225 #if wxUSE_UNICODE
4226 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4227 #else
4228 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4229 #endif
4230 }
4231 {
4232 delete _result;
4233 }
4234 return _resultobj;
4235 }
4236
4237 #define wxColourDatabase_AddColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddColour(_swigarg0,_swigarg1))
4238 static PyObject *_wrap_wxColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject * _resultobj;
4240 wxColourDatabase * _arg0;
4241 wxString * _arg1;
4242 wxColour * _arg2;
4243 PyObject * _argo0 = 0;
4244 PyObject * _obj1 = 0;
4245 wxColour temp;
4246 PyObject * _obj2 = 0;
4247 char *_kwnames[] = { "self","name","colour", NULL };
4248
4249 self = self;
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxColourDatabase_AddColour",_kwnames,&_argo0,&_obj1,&_obj2))
4251 return NULL;
4252 if (_argo0) {
4253 if (_argo0 == Py_None) { _arg0 = NULL; }
4254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p.");
4256 return NULL;
4257 }
4258 }
4259 {
4260 _arg1 = wxString_in_helper(_obj1);
4261 if (_arg1 == NULL)
4262 return NULL;
4263 }
4264 {
4265 _arg2 = &temp;
4266 if (! wxColour_helper(_obj2, &_arg2))
4267 return NULL;
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 wxColourDatabase_AddColour(_arg0,*_arg1,*_arg2);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) return NULL;
4275 } Py_INCREF(Py_None);
4276 _resultobj = Py_None;
4277 {
4278 if (_obj1)
4279 delete _arg1;
4280 }
4281 return _resultobj;
4282 }
4283
4284 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
4285 self->AddColour(name, wxColour(red, green, blue));
4286 }
4287 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject * _resultobj;
4289 wxColourDatabase * _arg0;
4290 wxString * _arg1;
4291 int _arg2;
4292 int _arg3;
4293 int _arg4;
4294 PyObject * _argo0 = 0;
4295 PyObject * _obj1 = 0;
4296 char *_kwnames[] = { "self","name","red","green","blue", NULL };
4297
4298 self = self;
4299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
4300 return NULL;
4301 if (_argo0) {
4302 if (_argo0 == Py_None) { _arg0 = NULL; }
4303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4305 return NULL;
4306 }
4307 }
4308 {
4309 _arg1 = wxString_in_helper(_obj1);
4310 if (_arg1 == NULL)
4311 return NULL;
4312 }
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
4316
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) return NULL;
4319 } Py_INCREF(Py_None);
4320 _resultobj = Py_None;
4321 {
4322 if (_obj1)
4323 delete _arg1;
4324 }
4325 return _resultobj;
4326 }
4327
4328 static void *SwigwxPenTowxGDIObject(void *ptr) {
4329 wxPen *src;
4330 wxGDIObject *dest;
4331 src = (wxPen *) ptr;
4332 dest = (wxGDIObject *) src;
4333 return (void *) dest;
4334 }
4335
4336 static void *SwigwxPenTowxObject(void *ptr) {
4337 wxPen *src;
4338 wxObject *dest;
4339 src = (wxPen *) ptr;
4340 dest = (wxObject *) src;
4341 return (void *) dest;
4342 }
4343
4344 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4345 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4346 PyObject * _resultobj;
4347 wxPen * _result;
4348 wxColour * _arg0;
4349 int _arg1 = (int ) 1;
4350 int _arg2 = (int ) wxSOLID;
4351 wxColour temp;
4352 PyObject * _obj0 = 0;
4353 char *_kwnames[] = { "colour","width","style", NULL };
4354 char _ptemp[128];
4355
4356 self = self;
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4358 return NULL;
4359 {
4360 _arg0 = &temp;
4361 if (! wxColour_helper(_obj0, &_arg0))
4362 return NULL;
4363 }
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
4367
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) return NULL;
4370 } if (_result) {
4371 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4372 _resultobj = Py_BuildValue("s",_ptemp);
4373 } else {
4374 Py_INCREF(Py_None);
4375 _resultobj = Py_None;
4376 }
4377 return _resultobj;
4378 }
4379
4380 #define delete_wxPen(_swigobj) (delete _swigobj)
4381 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4382 PyObject * _resultobj;
4383 wxPen * _arg0;
4384 PyObject * _argo0 = 0;
4385 char *_kwnames[] = { "self", NULL };
4386
4387 self = self;
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4389 return NULL;
4390 if (_argo0) {
4391 if (_argo0 == Py_None) { _arg0 = NULL; }
4392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4394 return NULL;
4395 }
4396 }
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 delete_wxPen(_arg0);
4400
4401 wxPyEndAllowThreads(__tstate);
4402 if (PyErr_Occurred()) return NULL;
4403 } Py_INCREF(Py_None);
4404 _resultobj = Py_None;
4405 return _resultobj;
4406 }
4407
4408 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4409 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4410 PyObject * _resultobj;
4411 int _result;
4412 wxPen * _arg0;
4413 PyObject * _argo0 = 0;
4414 char *_kwnames[] = { "self", NULL };
4415
4416 self = self;
4417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4418 return NULL;
4419 if (_argo0) {
4420 if (_argo0 == Py_None) { _arg0 = NULL; }
4421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4423 return NULL;
4424 }
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 _result = (int )wxPen_GetCap(_arg0);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) return NULL;
4432 } _resultobj = Py_BuildValue("i",_result);
4433 return _resultobj;
4434 }
4435
4436 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4437 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4438 PyObject * _resultobj;
4439 wxColour * _result;
4440 wxPen * _arg0;
4441 PyObject * _argo0 = 0;
4442 char *_kwnames[] = { "self", NULL };
4443 char _ptemp[128];
4444
4445 self = self;
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4447 return NULL;
4448 if (_argo0) {
4449 if (_argo0 == Py_None) { _arg0 = NULL; }
4450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4452 return NULL;
4453 }
4454 }
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 _result = new wxColour (wxPen_GetColour(_arg0));
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) return NULL;
4461 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4462 _resultobj = Py_BuildValue("s",_ptemp);
4463 return _resultobj;
4464 }
4465
4466 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4467 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 int _result;
4470 wxPen * _arg0;
4471 PyObject * _argo0 = 0;
4472 char *_kwnames[] = { "self", NULL };
4473
4474 self = self;
4475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
4476 return NULL;
4477 if (_argo0) {
4478 if (_argo0 == Py_None) { _arg0 = NULL; }
4479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4481 return NULL;
4482 }
4483 }
4484 {
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 _result = (int )wxPen_GetJoin(_arg0);
4487
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) return NULL;
4490 } _resultobj = Py_BuildValue("i",_result);
4491 return _resultobj;
4492 }
4493
4494 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4495 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject * _resultobj;
4497 int _result;
4498 wxPen * _arg0;
4499 PyObject * _argo0 = 0;
4500 char *_kwnames[] = { "self", NULL };
4501
4502 self = self;
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
4504 return NULL;
4505 if (_argo0) {
4506 if (_argo0 == Py_None) { _arg0 = NULL; }
4507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4509 return NULL;
4510 }
4511 }
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 _result = (int )wxPen_GetStyle(_arg0);
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) return NULL;
4518 } _resultobj = Py_BuildValue("i",_result);
4519 return _resultobj;
4520 }
4521
4522 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4523 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject * _resultobj;
4525 int _result;
4526 wxPen * _arg0;
4527 PyObject * _argo0 = 0;
4528 char *_kwnames[] = { "self", NULL };
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4537 return NULL;
4538 }
4539 }
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 _result = (int )wxPen_GetWidth(_arg0);
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) return NULL;
4546 } _resultobj = Py_BuildValue("i",_result);
4547 return _resultobj;
4548 }
4549
4550 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4551 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4552 PyObject * _resultobj;
4553 bool _result;
4554 wxPen * _arg0;
4555 PyObject * _argo0 = 0;
4556 char *_kwnames[] = { "self", NULL };
4557
4558 self = self;
4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
4560 return NULL;
4561 if (_argo0) {
4562 if (_argo0 == Py_None) { _arg0 = NULL; }
4563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4565 return NULL;
4566 }
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 _result = (bool )wxPen_Ok(_arg0);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) return NULL;
4574 } _resultobj = Py_BuildValue("i",_result);
4575 return _resultobj;
4576 }
4577
4578 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4579 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4580 PyObject * _resultobj;
4581 wxPen * _arg0;
4582 int _arg1;
4583 PyObject * _argo0 = 0;
4584 char *_kwnames[] = { "self","cap_style", NULL };
4585
4586 self = self;
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
4588 return NULL;
4589 if (_argo0) {
4590 if (_argo0 == Py_None) { _arg0 = NULL; }
4591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4593 return NULL;
4594 }
4595 }
4596 {
4597 PyThreadState* __tstate = wxPyBeginAllowThreads();
4598 wxPen_SetCap(_arg0,_arg1);
4599
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) return NULL;
4602 } Py_INCREF(Py_None);
4603 _resultobj = Py_None;
4604 return _resultobj;
4605 }
4606
4607 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4608 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4609 PyObject * _resultobj;
4610 wxPen * _arg0;
4611 wxColour * _arg1;
4612 PyObject * _argo0 = 0;
4613 wxColour temp;
4614 PyObject * _obj1 = 0;
4615 char *_kwnames[] = { "self","colour", NULL };
4616
4617 self = self;
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
4619 return NULL;
4620 if (_argo0) {
4621 if (_argo0 == Py_None) { _arg0 = NULL; }
4622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4624 return NULL;
4625 }
4626 }
4627 {
4628 _arg1 = &temp;
4629 if (! wxColour_helper(_obj1, &_arg1))
4630 return NULL;
4631 }
4632 {
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 wxPen_SetColour(_arg0,*_arg1);
4635
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) return NULL;
4638 } Py_INCREF(Py_None);
4639 _resultobj = Py_None;
4640 return _resultobj;
4641 }
4642
4643 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4644 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4645 PyObject * _resultobj;
4646 wxPen * _arg0;
4647 int _arg1;
4648 PyObject * _argo0 = 0;
4649 char *_kwnames[] = { "self","join_style", NULL };
4650
4651 self = self;
4652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
4653 return NULL;
4654 if (_argo0) {
4655 if (_argo0 == Py_None) { _arg0 = NULL; }
4656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4658 return NULL;
4659 }
4660 }
4661 {
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 wxPen_SetJoin(_arg0,_arg1);
4664
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) return NULL;
4667 } Py_INCREF(Py_None);
4668 _resultobj = Py_None;
4669 return _resultobj;
4670 }
4671
4672 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4673 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4674 PyObject * _resultobj;
4675 wxPen * _arg0;
4676 int _arg1;
4677 PyObject * _argo0 = 0;
4678 char *_kwnames[] = { "self","style", NULL };
4679
4680 self = self;
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
4682 return NULL;
4683 if (_argo0) {
4684 if (_argo0 == Py_None) { _arg0 = NULL; }
4685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4687 return NULL;
4688 }
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 wxPen_SetStyle(_arg0,_arg1);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) return NULL;
4696 } Py_INCREF(Py_None);
4697 _resultobj = Py_None;
4698 return _resultobj;
4699 }
4700
4701 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4702 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4703 PyObject * _resultobj;
4704 wxPen * _arg0;
4705 int _arg1;
4706 PyObject * _argo0 = 0;
4707 char *_kwnames[] = { "self","width", NULL };
4708
4709 self = self;
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
4711 return NULL;
4712 if (_argo0) {
4713 if (_argo0 == Py_None) { _arg0 = NULL; }
4714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4716 return NULL;
4717 }
4718 }
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 wxPen_SetWidth(_arg0,_arg1);
4722
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) return NULL;
4725 } Py_INCREF(Py_None);
4726 _resultobj = Py_None;
4727 return _resultobj;
4728 }
4729
4730 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4731 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4732 PyObject * _resultobj;
4733 wxPen * _arg0;
4734 int _arg1;
4735 wxDash * _arg2;
4736 PyObject * _argo0 = 0;
4737 PyObject * _obj2 = 0;
4738 char *_kwnames[] = { "self","choices", NULL };
4739
4740 self = self;
4741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
4742 return NULL;
4743 if (_argo0) {
4744 if (_argo0 == Py_None) { _arg0 = NULL; }
4745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4747 return NULL;
4748 }
4749 }
4750 if (_obj2)
4751 {
4752 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
4753 if (_arg2 == NULL) {
4754 return NULL;
4755 }
4756 }
4757 {
4758 if (_obj2) {
4759 _arg1 = PyList_Size(_obj2);
4760 }
4761 else {
4762 _arg1 = 0;
4763 }
4764 }
4765 {
4766 PyThreadState* __tstate = wxPyBeginAllowThreads();
4767 wxPen_SetDashes(_arg0,_arg1,_arg2);
4768
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) return NULL;
4771 } Py_INCREF(Py_None);
4772 _resultobj = Py_None;
4773 {
4774 delete [] _arg2;
4775 }
4776 return _resultobj;
4777 }
4778
4779 static PyObject * wxPen_GetDashes(wxPen *self) {
4780 wxDash* dashes;
4781 int count = self->GetDashes(&dashes);
4782 wxPyBeginBlockThreads();
4783 PyObject* retval = PyList_New(0);
4784 for (int x=0; x<count; x++)
4785 PyList_Append(retval, PyInt_FromLong(dashes[x]));
4786 wxPyEndBlockThreads();
4787 return retval;
4788 }
4789 static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject * _resultobj;
4791 PyObject * _result;
4792 wxPen * _arg0;
4793 PyObject * _argo0 = 0;
4794 char *_kwnames[] = { "self", NULL };
4795
4796 self = self;
4797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0))
4798 return NULL;
4799 if (_argo0) {
4800 if (_argo0 == Py_None) { _arg0 = NULL; }
4801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4803 return NULL;
4804 }
4805 }
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 _result = (PyObject *)wxPen_GetDashes(_arg0);
4809
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) return NULL;
4812 }{
4813 _resultobj = _result;
4814 }
4815 return _resultobj;
4816 }
4817
4818 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4819 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject * _resultobj;
4821 wxBitmap * _result;
4822 wxPen * _arg0;
4823 PyObject * _argo0 = 0;
4824 char *_kwnames[] = { "self", NULL };
4825 char _ptemp[128];
4826
4827 self = self;
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
4829 return NULL;
4830 if (_argo0) {
4831 if (_argo0 == Py_None) { _arg0 = NULL; }
4832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4834 return NULL;
4835 }
4836 }
4837 {
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
4840
4841 wxPyEndAllowThreads(__tstate);
4842 if (PyErr_Occurred()) return NULL;
4843 } if (_result) {
4844 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4845 _resultobj = Py_BuildValue("s",_ptemp);
4846 } else {
4847 Py_INCREF(Py_None);
4848 _resultobj = Py_None;
4849 }
4850 return _resultobj;
4851 }
4852
4853 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4854 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4855 PyObject * _resultobj;
4856 wxPen * _arg0;
4857 wxBitmap * _arg1;
4858 PyObject * _argo0 = 0;
4859 PyObject * _argo1 = 0;
4860 char *_kwnames[] = { "self","stipple", NULL };
4861
4862 self = self;
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
4864 return NULL;
4865 if (_argo0) {
4866 if (_argo0 == Py_None) { _arg0 = NULL; }
4867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4869 return NULL;
4870 }
4871 }
4872 if (_argo1) {
4873 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
4874 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4875 return NULL;
4876 }
4877 }
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 wxPen_SetStipple(_arg0,*_arg1);
4881
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) return NULL;
4884 } Py_INCREF(Py_None);
4885 _resultobj = Py_None;
4886 return _resultobj;
4887 }
4888
4889 static void *SwigwxPyPenTowxPen(void *ptr) {
4890 wxPyPen *src;
4891 wxPen *dest;
4892 src = (wxPyPen *) ptr;
4893 dest = (wxPen *) src;
4894 return (void *) dest;
4895 }
4896
4897 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
4898 wxPyPen *src;
4899 wxGDIObject *dest;
4900 src = (wxPyPen *) ptr;
4901 dest = (wxGDIObject *) src;
4902 return (void *) dest;
4903 }
4904
4905 static void *SwigwxPyPenTowxObject(void *ptr) {
4906 wxPyPen *src;
4907 wxObject *dest;
4908 src = (wxPyPen *) ptr;
4909 dest = (wxObject *) src;
4910 return (void *) dest;
4911 }
4912
4913 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4914 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject * _resultobj;
4916 wxPyPen * _result;
4917 wxColour * _arg0;
4918 int _arg1 = (int ) 1;
4919 int _arg2 = (int ) wxSOLID;
4920 wxColour temp;
4921 PyObject * _obj0 = 0;
4922 char *_kwnames[] = { "colour","width","style", NULL };
4923 char _ptemp[128];
4924
4925 self = self;
4926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
4927 return NULL;
4928 {
4929 _arg0 = &temp;
4930 if (! wxColour_helper(_obj0, &_arg0))
4931 return NULL;
4932 }
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) return NULL;
4939 } if (_result) {
4940 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
4941 _resultobj = Py_BuildValue("s",_ptemp);
4942 } else {
4943 Py_INCREF(Py_None);
4944 _resultobj = Py_None;
4945 }
4946 return _resultobj;
4947 }
4948
4949 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4950 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4951 PyObject * _resultobj;
4952 wxPyPen * _arg0;
4953 PyObject * _argo0 = 0;
4954 char *_kwnames[] = { "self", NULL };
4955
4956 self = self;
4957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
4958 return NULL;
4959 if (_argo0) {
4960 if (_argo0 == Py_None) { _arg0 = NULL; }
4961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4963 return NULL;
4964 }
4965 }
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 delete_wxPyPen(_arg0);
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) return NULL;
4972 } Py_INCREF(Py_None);
4973 _resultobj = Py_None;
4974 return _resultobj;
4975 }
4976
4977 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4978 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4979 PyObject * _resultobj;
4980 wxPyPen * _arg0;
4981 int _arg1;
4982 wxDash * _arg2;
4983 PyObject * _argo0 = 0;
4984 PyObject * _obj2 = 0;
4985 char *_kwnames[] = { "self","choices", NULL };
4986
4987 self = self;
4988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
4989 return NULL;
4990 if (_argo0) {
4991 if (_argo0 == Py_None) { _arg0 = NULL; }
4992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
4994 return NULL;
4995 }
4996 }
4997 if (_obj2)
4998 {
4999 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5000 if (_arg2 == NULL) {
5001 return NULL;
5002 }
5003 }
5004 {
5005 if (_obj2) {
5006 _arg1 = PyList_Size(_obj2);
5007 }
5008 else {
5009 _arg1 = 0;
5010 }
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) return NULL;
5018 } Py_INCREF(Py_None);
5019 _resultobj = Py_None;
5020 {
5021 delete [] _arg2;
5022 }
5023 return _resultobj;
5024 }
5025
5026 static void *SwigwxPenListTowxObject(void *ptr) {
5027 wxPenList *src;
5028 wxObject *dest;
5029 src = (wxPenList *) ptr;
5030 dest = (wxObject *) src;
5031 return (void *) dest;
5032 }
5033
5034 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5035 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5036 PyObject * _resultobj;
5037 wxPenList * _arg0;
5038 wxPen * _arg1;
5039 PyObject * _argo0 = 0;
5040 PyObject * _argo1 = 0;
5041 char *_kwnames[] = { "self","pen", NULL };
5042
5043 self = self;
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5045 return NULL;
5046 if (_argo0) {
5047 if (_argo0 == Py_None) { _arg0 = NULL; }
5048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5050 return NULL;
5051 }
5052 }
5053 if (_argo1) {
5054 if (_argo1 == Py_None) { _arg1 = NULL; }
5055 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5056 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5057 return NULL;
5058 }
5059 }
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 wxPenList_AddPen(_arg0,_arg1);
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) return NULL;
5066 } Py_INCREF(Py_None);
5067 _resultobj = Py_None;
5068 return _resultobj;
5069 }
5070
5071 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5072 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject * _resultobj;
5074 wxPen * _result;
5075 wxPenList * _arg0;
5076 wxColour * _arg1;
5077 int _arg2;
5078 int _arg3;
5079 PyObject * _argo0 = 0;
5080 wxColour temp;
5081 PyObject * _obj1 = 0;
5082 char *_kwnames[] = { "self","colour","width","style", NULL };
5083 char _ptemp[128];
5084
5085 self = self;
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5087 return NULL;
5088 if (_argo0) {
5089 if (_argo0 == Py_None) { _arg0 = NULL; }
5090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5092 return NULL;
5093 }
5094 }
5095 {
5096 _arg1 = &temp;
5097 if (! wxColour_helper(_obj1, &_arg1))
5098 return NULL;
5099 }
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5103
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) return NULL;
5106 } if (_result) {
5107 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5108 _resultobj = Py_BuildValue("s",_ptemp);
5109 } else {
5110 Py_INCREF(Py_None);
5111 _resultobj = Py_None;
5112 }
5113 return _resultobj;
5114 }
5115
5116 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5117 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject * _resultobj;
5119 wxPenList * _arg0;
5120 wxPen * _arg1;
5121 PyObject * _argo0 = 0;
5122 PyObject * _argo1 = 0;
5123 char *_kwnames[] = { "self","pen", NULL };
5124
5125 self = self;
5126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5127 return NULL;
5128 if (_argo0) {
5129 if (_argo0 == Py_None) { _arg0 = NULL; }
5130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5132 return NULL;
5133 }
5134 }
5135 if (_argo1) {
5136 if (_argo1 == Py_None) { _arg1 = NULL; }
5137 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5138 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5139 return NULL;
5140 }
5141 }
5142 {
5143 PyThreadState* __tstate = wxPyBeginAllowThreads();
5144 wxPenList_RemovePen(_arg0,_arg1);
5145
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) return NULL;
5148 } Py_INCREF(Py_None);
5149 _resultobj = Py_None;
5150 return _resultobj;
5151 }
5152
5153 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5154 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5155 PyObject * _resultobj;
5156 int _result;
5157 wxPenList * _arg0;
5158 PyObject * _argo0 = 0;
5159 char *_kwnames[] = { "self", NULL };
5160
5161 self = self;
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5163 return NULL;
5164 if (_argo0) {
5165 if (_argo0 == Py_None) { _arg0 = NULL; }
5166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5168 return NULL;
5169 }
5170 }
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 _result = (int )wxPenList_GetCount(_arg0);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) return NULL;
5177 } _resultobj = Py_BuildValue("i",_result);
5178 return _resultobj;
5179 }
5180
5181 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5182 wxBrush *src;
5183 wxGDIObject *dest;
5184 src = (wxBrush *) ptr;
5185 dest = (wxGDIObject *) src;
5186 return (void *) dest;
5187 }
5188
5189 static void *SwigwxBrushTowxObject(void *ptr) {
5190 wxBrush *src;
5191 wxObject *dest;
5192 src = (wxBrush *) ptr;
5193 dest = (wxObject *) src;
5194 return (void *) dest;
5195 }
5196
5197 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5198 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject * _resultobj;
5200 wxBrush * _result;
5201 wxColour * _arg0;
5202 int _arg1 = (int ) wxSOLID;
5203 wxColour temp;
5204 PyObject * _obj0 = 0;
5205 char *_kwnames[] = { "colour","style", NULL };
5206 char _ptemp[128];
5207
5208 self = self;
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5210 return NULL;
5211 {
5212 _arg0 = &temp;
5213 if (! wxColour_helper(_obj0, &_arg0))
5214 return NULL;
5215 }
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5219
5220 wxPyEndAllowThreads(__tstate);
5221 if (PyErr_Occurred()) return NULL;
5222 } if (_result) {
5223 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5224 _resultobj = Py_BuildValue("s",_ptemp);
5225 } else {
5226 Py_INCREF(Py_None);
5227 _resultobj = Py_None;
5228 }
5229 return _resultobj;
5230 }
5231
5232 #define delete_wxBrush(_swigobj) (delete _swigobj)
5233 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5234 PyObject * _resultobj;
5235 wxBrush * _arg0;
5236 PyObject * _argo0 = 0;
5237 char *_kwnames[] = { "self", NULL };
5238
5239 self = self;
5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5241 return NULL;
5242 if (_argo0) {
5243 if (_argo0 == Py_None) { _arg0 = NULL; }
5244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5246 return NULL;
5247 }
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 delete_wxBrush(_arg0);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
5255 } Py_INCREF(Py_None);
5256 _resultobj = Py_None;
5257 return _resultobj;
5258 }
5259
5260 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5261 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject * _resultobj;
5263 wxColour * _result;
5264 wxBrush * _arg0;
5265 PyObject * _argo0 = 0;
5266 char *_kwnames[] = { "self", NULL };
5267 char _ptemp[128];
5268
5269 self = self;
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5271 return NULL;
5272 if (_argo0) {
5273 if (_argo0 == Py_None) { _arg0 = NULL; }
5274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5276 return NULL;
5277 }
5278 }
5279 {
5280 PyThreadState* __tstate = wxPyBeginAllowThreads();
5281 _result = new wxColour (wxBrush_GetColour(_arg0));
5282
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) return NULL;
5285 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5286 _resultobj = Py_BuildValue("s",_ptemp);
5287 return _resultobj;
5288 }
5289
5290 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5291 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject * _resultobj;
5293 wxBitmap * _result;
5294 wxBrush * _arg0;
5295 PyObject * _argo0 = 0;
5296 char *_kwnames[] = { "self", NULL };
5297 char _ptemp[128];
5298
5299 self = self;
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
5301 return NULL;
5302 if (_argo0) {
5303 if (_argo0 == Py_None) { _arg0 = NULL; }
5304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5306 return NULL;
5307 }
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) return NULL;
5315 } if (_result) {
5316 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5317 _resultobj = Py_BuildValue("s",_ptemp);
5318 } else {
5319 Py_INCREF(Py_None);
5320 _resultobj = Py_None;
5321 }
5322 return _resultobj;
5323 }
5324
5325 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5326 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5327 PyObject * _resultobj;
5328 int _result;
5329 wxBrush * _arg0;
5330 PyObject * _argo0 = 0;
5331 char *_kwnames[] = { "self", NULL };
5332
5333 self = self;
5334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
5335 return NULL;
5336 if (_argo0) {
5337 if (_argo0 == Py_None) { _arg0 = NULL; }
5338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5340 return NULL;
5341 }
5342 }
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 _result = (int )wxBrush_GetStyle(_arg0);
5346
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) return NULL;
5349 } _resultobj = Py_BuildValue("i",_result);
5350 return _resultobj;
5351 }
5352
5353 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5354 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5355 PyObject * _resultobj;
5356 bool _result;
5357 wxBrush * _arg0;
5358 PyObject * _argo0 = 0;
5359 char *_kwnames[] = { "self", NULL };
5360
5361 self = self;
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
5363 return NULL;
5364 if (_argo0) {
5365 if (_argo0 == Py_None) { _arg0 = NULL; }
5366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5368 return NULL;
5369 }
5370 }
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 _result = (bool )wxBrush_Ok(_arg0);
5374
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) return NULL;
5377 } _resultobj = Py_BuildValue("i",_result);
5378 return _resultobj;
5379 }
5380
5381 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5382 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5383 PyObject * _resultobj;
5384 wxBrush * _arg0;
5385 wxColour * _arg1;
5386 PyObject * _argo0 = 0;
5387 wxColour temp;
5388 PyObject * _obj1 = 0;
5389 char *_kwnames[] = { "self","colour", NULL };
5390
5391 self = self;
5392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
5393 return NULL;
5394 if (_argo0) {
5395 if (_argo0 == Py_None) { _arg0 = NULL; }
5396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5398 return NULL;
5399 }
5400 }
5401 {
5402 _arg1 = &temp;
5403 if (! wxColour_helper(_obj1, &_arg1))
5404 return NULL;
5405 }
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 wxBrush_SetColour(_arg0,*_arg1);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) return NULL;
5412 } Py_INCREF(Py_None);
5413 _resultobj = Py_None;
5414 return _resultobj;
5415 }
5416
5417 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5418 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject * _resultobj;
5420 wxBrush * _arg0;
5421 wxBitmap * _arg1;
5422 PyObject * _argo0 = 0;
5423 PyObject * _argo1 = 0;
5424 char *_kwnames[] = { "self","bitmap", NULL };
5425
5426 self = self;
5427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
5428 return NULL;
5429 if (_argo0) {
5430 if (_argo0 == Py_None) { _arg0 = NULL; }
5431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5433 return NULL;
5434 }
5435 }
5436 if (_argo1) {
5437 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5438 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5439 return NULL;
5440 }
5441 }
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 wxBrush_SetStipple(_arg0,*_arg1);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) return NULL;
5448 } Py_INCREF(Py_None);
5449 _resultobj = Py_None;
5450 return _resultobj;
5451 }
5452
5453 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5454 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject * _resultobj;
5456 wxBrush * _arg0;
5457 int _arg1;
5458 PyObject * _argo0 = 0;
5459 char *_kwnames[] = { "self","style", NULL };
5460
5461 self = self;
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
5463 return NULL;
5464 if (_argo0) {
5465 if (_argo0 == Py_None) { _arg0 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5468 return NULL;
5469 }
5470 }
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 wxBrush_SetStyle(_arg0,_arg1);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) return NULL;
5477 } Py_INCREF(Py_None);
5478 _resultobj = Py_None;
5479 return _resultobj;
5480 }
5481
5482 static void *SwigwxBrushListTowxObject(void *ptr) {
5483 wxBrushList *src;
5484 wxObject *dest;
5485 src = (wxBrushList *) ptr;
5486 dest = (wxObject *) src;
5487 return (void *) dest;
5488 }
5489
5490 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5491 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5492 PyObject * _resultobj;
5493 wxBrushList * _arg0;
5494 wxBrush * _arg1;
5495 PyObject * _argo0 = 0;
5496 PyObject * _argo1 = 0;
5497 char *_kwnames[] = { "self","brush", NULL };
5498
5499 self = self;
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5501 return NULL;
5502 if (_argo0) {
5503 if (_argo0 == Py_None) { _arg0 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5506 return NULL;
5507 }
5508 }
5509 if (_argo1) {
5510 if (_argo1 == Py_None) { _arg1 = NULL; }
5511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5513 return NULL;
5514 }
5515 }
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 wxBrushList_AddBrush(_arg0,_arg1);
5519
5520 wxPyEndAllowThreads(__tstate);
5521 if (PyErr_Occurred()) return NULL;
5522 } Py_INCREF(Py_None);
5523 _resultobj = Py_None;
5524 return _resultobj;
5525 }
5526
5527 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5528 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject * _resultobj;
5530 wxBrush * _result;
5531 wxBrushList * _arg0;
5532 wxColour * _arg1;
5533 int _arg2;
5534 PyObject * _argo0 = 0;
5535 wxColour temp;
5536 PyObject * _obj1 = 0;
5537 char *_kwnames[] = { "self","colour","style", NULL };
5538 char _ptemp[128];
5539
5540 self = self;
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5542 return NULL;
5543 if (_argo0) {
5544 if (_argo0 == Py_None) { _arg0 = NULL; }
5545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5547 return NULL;
5548 }
5549 }
5550 {
5551 _arg1 = &temp;
5552 if (! wxColour_helper(_obj1, &_arg1))
5553 return NULL;
5554 }
5555 {
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5558
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) return NULL;
5561 } if (_result) {
5562 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5563 _resultobj = Py_BuildValue("s",_ptemp);
5564 } else {
5565 Py_INCREF(Py_None);
5566 _resultobj = Py_None;
5567 }
5568 return _resultobj;
5569 }
5570
5571 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5572 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5573 PyObject * _resultobj;
5574 wxBrushList * _arg0;
5575 wxBrush * _arg1;
5576 PyObject * _argo0 = 0;
5577 PyObject * _argo1 = 0;
5578 char *_kwnames[] = { "self","brush", NULL };
5579
5580 self = self;
5581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
5582 return NULL;
5583 if (_argo0) {
5584 if (_argo0 == Py_None) { _arg0 = NULL; }
5585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5587 return NULL;
5588 }
5589 }
5590 if (_argo1) {
5591 if (_argo1 == Py_None) { _arg1 = NULL; }
5592 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5593 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5594 return NULL;
5595 }
5596 }
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 wxBrushList_RemoveBrush(_arg0,_arg1);
5600
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) return NULL;
5603 } Py_INCREF(Py_None);
5604 _resultobj = Py_None;
5605 return _resultobj;
5606 }
5607
5608 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5609 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5610 PyObject * _resultobj;
5611 int _result;
5612 wxBrushList * _arg0;
5613 PyObject * _argo0 = 0;
5614 char *_kwnames[] = { "self", NULL };
5615
5616 self = self;
5617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
5618 return NULL;
5619 if (_argo0) {
5620 if (_argo0 == Py_None) { _arg0 = NULL; }
5621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
5623 return NULL;
5624 }
5625 }
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 _result = (int )wxBrushList_GetCount(_arg0);
5629
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) return NULL;
5632 } _resultobj = Py_BuildValue("i",_result);
5633 return _resultobj;
5634 }
5635
5636 static void *SwigwxDCTowxObject(void *ptr) {
5637 wxDC *src;
5638 wxObject *dest;
5639 src = (wxDC *) ptr;
5640 dest = (wxObject *) src;
5641 return (void *) dest;
5642 }
5643
5644 #define delete_wxDC(_swigobj) (delete _swigobj)
5645 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5646 PyObject * _resultobj;
5647 wxDC * _arg0;
5648 PyObject * _argo0 = 0;
5649 char *_kwnames[] = { "self", NULL };
5650
5651 self = self;
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
5653 return NULL;
5654 if (_argo0) {
5655 if (_argo0 == Py_None) { _arg0 = NULL; }
5656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5658 return NULL;
5659 }
5660 }
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 delete_wxDC(_arg0);
5664
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) return NULL;
5667 } Py_INCREF(Py_None);
5668 _resultobj = Py_None;
5669 return _resultobj;
5670 }
5671
5672 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5673 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
5674 PyObject * _resultobj;
5675 wxDC * _arg0;
5676 PyObject * _argo0 = 0;
5677 char *_kwnames[] = { "self", NULL };
5678
5679 self = self;
5680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
5681 return NULL;
5682 if (_argo0) {
5683 if (_argo0 == Py_None) { _arg0 = NULL; }
5684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5686 return NULL;
5687 }
5688 }
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 wxDC_BeginDrawing(_arg0);
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) return NULL;
5695 } Py_INCREF(Py_None);
5696 _resultobj = Py_None;
5697 return _resultobj;
5698 }
5699
5700 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5701 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
5702 PyObject * _resultobj;
5703 bool _result;
5704 wxDC * _arg0;
5705 wxCoord _arg1;
5706 wxCoord _arg2;
5707 wxCoord _arg3;
5708 wxCoord _arg4;
5709 wxDC * _arg5;
5710 wxCoord _arg6;
5711 wxCoord _arg7;
5712 int _arg8 = (int ) wxCOPY;
5713 int _arg9 = (int ) FALSE;
5714 PyObject * _argo0 = 0;
5715 PyObject * _argo5 = 0;
5716 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
5717
5718 self = self;
5719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiiOii|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
5720 return NULL;
5721 if (_argo0) {
5722 if (_argo0 == Py_None) { _arg0 = NULL; }
5723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5725 return NULL;
5726 }
5727 }
5728 if (_argo5) {
5729 if (_argo5 == Py_None) { _arg5 = NULL; }
5730 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
5731 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5732 return NULL;
5733 }
5734 }
5735 {
5736 PyThreadState* __tstate = wxPyBeginAllowThreads();
5737 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
5738
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) return NULL;
5741 } _resultobj = Py_BuildValue("i",_result);
5742 return _resultobj;
5743 }
5744
5745 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5746 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5747 PyObject * _resultobj;
5748 wxDC * _arg0;
5749 PyObject * _argo0 = 0;
5750 char *_kwnames[] = { "self", NULL };
5751
5752 self = self;
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
5754 return NULL;
5755 if (_argo0) {
5756 if (_argo0 == Py_None) { _arg0 = NULL; }
5757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5759 return NULL;
5760 }
5761 }
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 wxDC_Clear(_arg0);
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) return NULL;
5768 } Py_INCREF(Py_None);
5769 _resultobj = Py_None;
5770 return _resultobj;
5771 }
5772
5773 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5774 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject * _resultobj;
5776 wxDC * _arg0;
5777 wxCoord _arg1;
5778 wxCoord _arg2;
5779 PyObject * _argo0 = 0;
5780 char *_kwnames[] = { "self","x","y", NULL };
5781
5782 self = self;
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
5784 return NULL;
5785 if (_argo0) {
5786 if (_argo0 == Py_None) { _arg0 = NULL; }
5787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5789 return NULL;
5790 }
5791 }
5792 {
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 wxDC_CrossHair(_arg0,_arg1,_arg2);
5795
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) return NULL;
5798 } Py_INCREF(Py_None);
5799 _resultobj = Py_None;
5800 return _resultobj;
5801 }
5802
5803 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5804 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5805 PyObject * _resultobj;
5806 wxDC * _arg0;
5807 PyObject * _argo0 = 0;
5808 char *_kwnames[] = { "self", NULL };
5809
5810 self = self;
5811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
5812 return NULL;
5813 if (_argo0) {
5814 if (_argo0 == Py_None) { _arg0 = NULL; }
5815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5817 return NULL;
5818 }
5819 }
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 wxDC_DestroyClippingRegion(_arg0);
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) return NULL;
5826 } Py_INCREF(Py_None);
5827 _resultobj = Py_None;
5828 return _resultobj;
5829 }
5830
5831 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5832 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
5833 PyObject * _resultobj;
5834 wxCoord _result;
5835 wxDC * _arg0;
5836 wxCoord _arg1;
5837 PyObject * _argo0 = 0;
5838 char *_kwnames[] = { "self","x", NULL };
5839
5840 self = self;
5841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
5842 return NULL;
5843 if (_argo0) {
5844 if (_argo0 == Py_None) { _arg0 = NULL; }
5845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5847 return NULL;
5848 }
5849 }
5850 {
5851 PyThreadState* __tstate = wxPyBeginAllowThreads();
5852 _result = (wxCoord )wxDC_DeviceToLogicalX(_arg0,_arg1);
5853
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) return NULL;
5856 } _resultobj = Py_BuildValue("i",_result);
5857 return _resultobj;
5858 }
5859
5860 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5861 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject * _resultobj;
5863 wxCoord _result;
5864 wxDC * _arg0;
5865 wxCoord _arg1;
5866 PyObject * _argo0 = 0;
5867 char *_kwnames[] = { "self","x", NULL };
5868
5869 self = self;
5870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
5871 return NULL;
5872 if (_argo0) {
5873 if (_argo0 == Py_None) { _arg0 = NULL; }
5874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5876 return NULL;
5877 }
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 _result = (wxCoord )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) return NULL;
5885 } _resultobj = Py_BuildValue("i",_result);
5886 return _resultobj;
5887 }
5888
5889 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5890 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject * _resultobj;
5892 wxCoord _result;
5893 wxDC * _arg0;
5894 wxCoord _arg1;
5895 PyObject * _argo0 = 0;
5896 char *_kwnames[] = { "self","y", NULL };
5897
5898 self = self;
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
5900 return NULL;
5901 if (_argo0) {
5902 if (_argo0 == Py_None) { _arg0 = NULL; }
5903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5905 return NULL;
5906 }
5907 }
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 _result = (wxCoord )wxDC_DeviceToLogicalY(_arg0,_arg1);
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) return NULL;
5914 } _resultobj = Py_BuildValue("i",_result);
5915 return _resultobj;
5916 }
5917
5918 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5919 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5920 PyObject * _resultobj;
5921 wxCoord _result;
5922 wxDC * _arg0;
5923 wxCoord _arg1;
5924 PyObject * _argo0 = 0;
5925 char *_kwnames[] = { "self","y", NULL };
5926
5927 self = self;
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
5929 return NULL;
5930 if (_argo0) {
5931 if (_argo0 == Py_None) { _arg0 = NULL; }
5932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5934 return NULL;
5935 }
5936 }
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 _result = (wxCoord )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) return NULL;
5943 } _resultobj = Py_BuildValue("i",_result);
5944 return _resultobj;
5945 }
5946
5947 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5948 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5949 PyObject * _resultobj;
5950 wxDC * _arg0;
5951 wxCoord _arg1;
5952 wxCoord _arg2;
5953 wxCoord _arg3;
5954 wxCoord _arg4;
5955 wxCoord _arg5;
5956 wxCoord _arg6;
5957 PyObject * _argo0 = 0;
5958 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
5959
5960 self = self;
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5962 return NULL;
5963 if (_argo0) {
5964 if (_argo0 == Py_None) { _arg0 = NULL; }
5965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5967 return NULL;
5968 }
5969 }
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) return NULL;
5976 } Py_INCREF(Py_None);
5977 _resultobj = Py_None;
5978 return _resultobj;
5979 }
5980
5981 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5982 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
5983 PyObject * _resultobj;
5984 wxDC * _arg0;
5985 wxCoord _arg1;
5986 wxCoord _arg2;
5987 wxCoord _arg3;
5988 PyObject * _argo0 = 0;
5989 char *_kwnames[] = { "self","x","y","radius", NULL };
5990
5991 self = self;
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5993 return NULL;
5994 if (_argo0) {
5995 if (_argo0 == Py_None) { _arg0 = NULL; }
5996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5998 return NULL;
5999 }
6000 }
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6004
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) return NULL;
6007 } Py_INCREF(Py_None);
6008 _resultobj = Py_None;
6009 return _resultobj;
6010 }
6011
6012 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6013 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject * _resultobj;
6015 wxDC * _arg0;
6016 wxCoord _arg1;
6017 wxCoord _arg2;
6018 wxCoord _arg3;
6019 wxCoord _arg4;
6020 PyObject * _argo0 = 0;
6021 char *_kwnames[] = { "self","x","y","width","height", NULL };
6022
6023 self = self;
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6025 return NULL;
6026 if (_argo0) {
6027 if (_argo0 == Py_None) { _arg0 = NULL; }
6028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6030 return NULL;
6031 }
6032 }
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6036
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) return NULL;
6039 } Py_INCREF(Py_None);
6040 _resultobj = Py_None;
6041 return _resultobj;
6042 }
6043
6044 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6045 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6046 PyObject * _resultobj;
6047 wxDC * _arg0;
6048 wxCoord _arg1;
6049 wxCoord _arg2;
6050 wxCoord _arg3;
6051 wxCoord _arg4;
6052 wxCoord _arg5;
6053 wxCoord _arg6;
6054 PyObject * _argo0 = 0;
6055 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6056
6057 self = self;
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6059 return NULL;
6060 if (_argo0) {
6061 if (_argo0 == Py_None) { _arg0 = NULL; }
6062 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6063 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6064 return NULL;
6065 }
6066 }
6067 {
6068 PyThreadState* __tstate = wxPyBeginAllowThreads();
6069 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6070
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) return NULL;
6073 } Py_INCREF(Py_None);
6074 _resultobj = Py_None;
6075 return _resultobj;
6076 }
6077
6078 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6079 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6080 PyObject * _resultobj;
6081 wxDC * _arg0;
6082 wxIcon * _arg1;
6083 wxCoord _arg2;
6084 wxCoord _arg3;
6085 PyObject * _argo0 = 0;
6086 PyObject * _argo1 = 0;
6087 char *_kwnames[] = { "self","icon","x","y", NULL };
6088
6089 self = self;
6090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6091 return NULL;
6092 if (_argo0) {
6093 if (_argo0 == Py_None) { _arg0 = NULL; }
6094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6096 return NULL;
6097 }
6098 }
6099 if (_argo1) {
6100 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6101 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6102 return NULL;
6103 }
6104 }
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) return NULL;
6111 } Py_INCREF(Py_None);
6112 _resultobj = Py_None;
6113 return _resultobj;
6114 }
6115
6116 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6117 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6118 PyObject * _resultobj;
6119 wxDC * _arg0;
6120 wxString * _arg1;
6121 wxRect * _arg2;
6122 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6123 int _arg4 = (int ) -1;
6124 PyObject * _argo0 = 0;
6125 PyObject * _obj1 = 0;
6126 wxRect temp;
6127 PyObject * _obj2 = 0;
6128 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6129
6130 self = self;
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6132 return NULL;
6133 if (_argo0) {
6134 if (_argo0 == Py_None) { _arg0 = NULL; }
6135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6137 return NULL;
6138 }
6139 }
6140 {
6141 _arg1 = wxString_in_helper(_obj1);
6142 if (_arg1 == NULL)
6143 return NULL;
6144 }
6145 {
6146 _arg2 = &temp;
6147 if (! wxRect_helper(_obj2, &_arg2))
6148 return NULL;
6149 }
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
6153
6154 wxPyEndAllowThreads(__tstate);
6155 if (PyErr_Occurred()) return NULL;
6156 } Py_INCREF(Py_None);
6157 _resultobj = Py_None;
6158 {
6159 if (_obj1)
6160 delete _arg1;
6161 }
6162 return _resultobj;
6163 }
6164
6165 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6166 wxRect rv;
6167 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6168 return rv;
6169 }
6170 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6171 PyObject * _resultobj;
6172 wxRect * _result;
6173 wxDC * _arg0;
6174 wxString * _arg1;
6175 wxBitmap * _arg2;
6176 wxRect * _arg3;
6177 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6178 int _arg5 = (int ) -1;
6179 PyObject * _argo0 = 0;
6180 PyObject * _obj1 = 0;
6181 PyObject * _argo2 = 0;
6182 wxRect temp;
6183 PyObject * _obj3 = 0;
6184 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6185 char _ptemp[128];
6186
6187 self = self;
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6189 return NULL;
6190 if (_argo0) {
6191 if (_argo0 == Py_None) { _arg0 = NULL; }
6192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6194 return NULL;
6195 }
6196 }
6197 {
6198 _arg1 = wxString_in_helper(_obj1);
6199 if (_arg1 == NULL)
6200 return NULL;
6201 }
6202 if (_argo2) {
6203 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6204 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6205 return NULL;
6206 }
6207 }
6208 {
6209 _arg3 = &temp;
6210 if (! wxRect_helper(_obj3, &_arg3))
6211 return NULL;
6212 }
6213 {
6214 PyThreadState* __tstate = wxPyBeginAllowThreads();
6215 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
6216
6217 wxPyEndAllowThreads(__tstate);
6218 if (PyErr_Occurred()) return NULL;
6219 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6220 _resultobj = Py_BuildValue("s",_ptemp);
6221 {
6222 if (_obj1)
6223 delete _arg1;
6224 }
6225 return _resultobj;
6226 }
6227
6228 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6229 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject * _resultobj;
6231 wxDC * _arg0;
6232 wxCoord _arg1;
6233 wxCoord _arg2;
6234 wxCoord _arg3;
6235 wxCoord _arg4;
6236 PyObject * _argo0 = 0;
6237 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6238
6239 self = self;
6240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6241 return NULL;
6242 if (_argo0) {
6243 if (_argo0 == Py_None) { _arg0 = NULL; }
6244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6246 return NULL;
6247 }
6248 }
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6252
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) return NULL;
6255 } Py_INCREF(Py_None);
6256 _resultobj = Py_None;
6257 return _resultobj;
6258 }
6259
6260 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6261 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject * _resultobj;
6263 wxDC * _arg0;
6264 int _arg1;
6265 wxPoint * _arg2;
6266 wxCoord _arg3 = (wxCoord ) 0;
6267 wxCoord _arg4 = (wxCoord ) 0;
6268 PyObject * _argo0 = 0;
6269 int NPOINTS;
6270 PyObject * _obj2 = 0;
6271 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6272
6273 self = self;
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6275 return NULL;
6276 if (_argo0) {
6277 if (_argo0 == Py_None) { _arg0 = NULL; }
6278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6280 return NULL;
6281 }
6282 }
6283 if (_obj2)
6284 {
6285 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6286 if (_arg2 == NULL) {
6287 return NULL;
6288 }
6289 }
6290 {
6291 _arg1 = NPOINTS;
6292 }
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) return NULL;
6299 } Py_INCREF(Py_None);
6300 _resultobj = Py_None;
6301 {
6302 delete [] _arg2;
6303 }
6304 return _resultobj;
6305 }
6306
6307 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6308 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6309 PyObject * _resultobj;
6310 wxDC * _arg0;
6311 int _arg1;
6312 wxPoint * _arg2;
6313 wxCoord _arg3 = (wxCoord ) 0;
6314 wxCoord _arg4 = (wxCoord ) 0;
6315 int _arg5 = (int ) wxODDEVEN_RULE;
6316 PyObject * _argo0 = 0;
6317 int NPOINTS;
6318 PyObject * _obj2 = 0;
6319 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6320
6321 self = self;
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iii:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6323 return NULL;
6324 if (_argo0) {
6325 if (_argo0 == Py_None) { _arg0 = NULL; }
6326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6328 return NULL;
6329 }
6330 }
6331 if (_obj2)
6332 {
6333 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6334 if (_arg2 == NULL) {
6335 return NULL;
6336 }
6337 }
6338 {
6339 _arg1 = NPOINTS;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6344
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) return NULL;
6347 } Py_INCREF(Py_None);
6348 _resultobj = Py_None;
6349 {
6350 delete [] _arg2;
6351 }
6352 return _resultobj;
6353 }
6354
6355 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6356 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6357 PyObject * _resultobj;
6358 wxDC * _arg0;
6359 wxCoord _arg1;
6360 wxCoord _arg2;
6361 PyObject * _argo0 = 0;
6362 char *_kwnames[] = { "self","x","y", NULL };
6363
6364 self = self;
6365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6366 return NULL;
6367 if (_argo0) {
6368 if (_argo0 == Py_None) { _arg0 = NULL; }
6369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6371 return NULL;
6372 }
6373 }
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) return NULL;
6380 } Py_INCREF(Py_None);
6381 _resultobj = Py_None;
6382 return _resultobj;
6383 }
6384
6385 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6386 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6387 PyObject * _resultobj;
6388 wxDC * _arg0;
6389 wxCoord _arg1;
6390 wxCoord _arg2;
6391 wxCoord _arg3;
6392 wxCoord _arg4;
6393 PyObject * _argo0 = 0;
6394 char *_kwnames[] = { "self","x","y","width","height", NULL };
6395
6396 self = self;
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6398 return NULL;
6399 if (_argo0) {
6400 if (_argo0 == Py_None) { _arg0 = NULL; }
6401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6403 return NULL;
6404 }
6405 }
6406 {
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6409
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) return NULL;
6412 } Py_INCREF(Py_None);
6413 _resultobj = Py_None;
6414 return _resultobj;
6415 }
6416
6417 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
6418 static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6419 PyObject * _resultobj;
6420 wxDC * _arg0;
6421 wxRect * _arg1;
6422 PyObject * _argo0 = 0;
6423 wxRect temp;
6424 PyObject * _obj1 = 0;
6425 char *_kwnames[] = { "self","rect", NULL };
6426
6427 self = self;
6428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1))
6429 return NULL;
6430 if (_argo0) {
6431 if (_argo0 == Py_None) { _arg0 = NULL; }
6432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
6434 return NULL;
6435 }
6436 }
6437 {
6438 _arg1 = &temp;
6439 if (! wxRect_helper(_obj1, &_arg1))
6440 return NULL;
6441 }
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 wxDC_DrawRectangleRect(_arg0,*_arg1);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) return NULL;
6448 } Py_INCREF(Py_None);
6449 _resultobj = Py_None;
6450 return _resultobj;
6451 }
6452
6453 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6454 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject * _resultobj;
6456 wxDC * _arg0;
6457 wxString * _arg1;
6458 wxCoord _arg2;
6459 wxCoord _arg3;
6460 double _arg4;
6461 PyObject * _argo0 = 0;
6462 PyObject * _obj1 = 0;
6463 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6464
6465 self = self;
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6467 return NULL;
6468 if (_argo0) {
6469 if (_argo0 == Py_None) { _arg0 = NULL; }
6470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6472 return NULL;
6473 }
6474 }
6475 {
6476 _arg1 = wxString_in_helper(_obj1);
6477 if (_arg1 == NULL)
6478 return NULL;
6479 }
6480 {
6481 PyThreadState* __tstate = wxPyBeginAllowThreads();
6482 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
6483
6484 wxPyEndAllowThreads(__tstate);
6485 if (PyErr_Occurred()) return NULL;
6486 } Py_INCREF(Py_None);
6487 _resultobj = Py_None;
6488 {
6489 if (_obj1)
6490 delete _arg1;
6491 }
6492 return _resultobj;
6493 }
6494
6495 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6496 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6497 PyObject * _resultobj;
6498 wxDC * _arg0;
6499 wxCoord _arg1;
6500 wxCoord _arg2;
6501 wxCoord _arg3;
6502 wxCoord _arg4;
6503 wxCoord _arg5 = (wxCoord ) 20;
6504 PyObject * _argo0 = 0;
6505 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
6506
6507 self = self;
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
6509 return NULL;
6510 if (_argo0) {
6511 if (_argo0 == Py_None) { _arg0 = NULL; }
6512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6514 return NULL;
6515 }
6516 }
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6520
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) return NULL;
6523 } Py_INCREF(Py_None);
6524 _resultobj = Py_None;
6525 return _resultobj;
6526 }
6527
6528 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6529 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
6530 PyObject * _resultobj;
6531 wxDC * _arg0;
6532 int _arg1;
6533 wxPoint * _arg2;
6534 PyObject * _argo0 = 0;
6535 int NPOINTS;
6536 PyObject * _obj2 = 0;
6537 char *_kwnames[] = { "self","points", NULL };
6538
6539 self = self;
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
6541 return NULL;
6542 if (_argo0) {
6543 if (_argo0 == Py_None) { _arg0 = NULL; }
6544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6546 return NULL;
6547 }
6548 }
6549 if (_obj2)
6550 {
6551 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6552 if (_arg2 == NULL) {
6553 return NULL;
6554 }
6555 }
6556 {
6557 _arg1 = NPOINTS;
6558 }
6559 {
6560 PyThreadState* __tstate = wxPyBeginAllowThreads();
6561 wxDC_DrawSpline(_arg0,_arg1,_arg2);
6562
6563 wxPyEndAllowThreads(__tstate);
6564 if (PyErr_Occurred()) return NULL;
6565 } Py_INCREF(Py_None);
6566 _resultobj = Py_None;
6567 {
6568 delete [] _arg2;
6569 }
6570 return _resultobj;
6571 }
6572
6573 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6574 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
6575 PyObject * _resultobj;
6576 wxDC * _arg0;
6577 wxString * _arg1;
6578 wxCoord _arg2;
6579 wxCoord _arg3;
6580 PyObject * _argo0 = 0;
6581 PyObject * _obj1 = 0;
6582 char *_kwnames[] = { "self","text","x","y", NULL };
6583
6584 self = self;
6585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6586 return NULL;
6587 if (_argo0) {
6588 if (_argo0 == Py_None) { _arg0 = NULL; }
6589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6591 return NULL;
6592 }
6593 }
6594 {
6595 _arg1 = wxString_in_helper(_obj1);
6596 if (_arg1 == NULL)
6597 return NULL;
6598 }
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
6602
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) return NULL;
6605 } Py_INCREF(Py_None);
6606 _resultobj = Py_None;
6607 {
6608 if (_obj1)
6609 delete _arg1;
6610 }
6611 return _resultobj;
6612 }
6613
6614 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6615 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
6616 PyObject * _resultobj;
6617 wxDC * _arg0;
6618 PyObject * _argo0 = 0;
6619 char *_kwnames[] = { "self", NULL };
6620
6621 self = self;
6622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
6623 return NULL;
6624 if (_argo0) {
6625 if (_argo0 == Py_None) { _arg0 = NULL; }
6626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6628 return NULL;
6629 }
6630 }
6631 {
6632 PyThreadState* __tstate = wxPyBeginAllowThreads();
6633 wxDC_EndDoc(_arg0);
6634
6635 wxPyEndAllowThreads(__tstate);
6636 if (PyErr_Occurred()) return NULL;
6637 } Py_INCREF(Py_None);
6638 _resultobj = Py_None;
6639 return _resultobj;
6640 }
6641
6642 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6643 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6644 PyObject * _resultobj;
6645 wxDC * _arg0;
6646 PyObject * _argo0 = 0;
6647 char *_kwnames[] = { "self", NULL };
6648
6649 self = self;
6650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
6651 return NULL;
6652 if (_argo0) {
6653 if (_argo0 == Py_None) { _arg0 = NULL; }
6654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6656 return NULL;
6657 }
6658 }
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 wxDC_EndDrawing(_arg0);
6662
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) return NULL;
6665 } Py_INCREF(Py_None);
6666 _resultobj = Py_None;
6667 return _resultobj;
6668 }
6669
6670 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6671 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6672 PyObject * _resultobj;
6673 wxDC * _arg0;
6674 PyObject * _argo0 = 0;
6675 char *_kwnames[] = { "self", NULL };
6676
6677 self = self;
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
6679 return NULL;
6680 if (_argo0) {
6681 if (_argo0 == Py_None) { _arg0 = NULL; }
6682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6684 return NULL;
6685 }
6686 }
6687 {
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 wxDC_EndPage(_arg0);
6690
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) return NULL;
6693 } Py_INCREF(Py_None);
6694 _resultobj = Py_None;
6695 return _resultobj;
6696 }
6697
6698 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6699 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
6700 PyObject * _resultobj;
6701 bool _result;
6702 wxDC * _arg0;
6703 wxCoord _arg1;
6704 wxCoord _arg2;
6705 wxColour * _arg3;
6706 int _arg4 = (int ) wxFLOOD_SURFACE;
6707 PyObject * _argo0 = 0;
6708 wxColour temp;
6709 PyObject * _obj3 = 0;
6710 char *_kwnames[] = { "self","x","y","colour","style", NULL };
6711
6712 self = self;
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
6714 return NULL;
6715 if (_argo0) {
6716 if (_argo0 == Py_None) { _arg0 = NULL; }
6717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6719 return NULL;
6720 }
6721 }
6722 {
6723 _arg3 = &temp;
6724 if (! wxColour_helper(_obj3, &_arg3))
6725 return NULL;
6726 }
6727 {
6728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6729 _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
6730
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) return NULL;
6733 } _resultobj = Py_BuildValue("i",_result);
6734 return _resultobj;
6735 }
6736
6737 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6738 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6739 PyObject * _resultobj;
6740 wxBrush * _result;
6741 wxDC * _arg0;
6742 PyObject * _argo0 = 0;
6743 char *_kwnames[] = { "self", NULL };
6744 char _ptemp[128];
6745
6746 self = self;
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
6748 return NULL;
6749 if (_argo0) {
6750 if (_argo0 == Py_None) { _arg0 = NULL; }
6751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6753 return NULL;
6754 }
6755 }
6756 {
6757 PyThreadState* __tstate = wxPyBeginAllowThreads();
6758 _result = new wxBrush (wxDC_GetBackground(_arg0));
6759
6760 wxPyEndAllowThreads(__tstate);
6761 if (PyErr_Occurred()) return NULL;
6762 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6763 _resultobj = Py_BuildValue("s",_ptemp);
6764 return _resultobj;
6765 }
6766
6767 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6768 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject * _resultobj;
6770 wxBrush * _result;
6771 wxDC * _arg0;
6772 PyObject * _argo0 = 0;
6773 char *_kwnames[] = { "self", NULL };
6774 char _ptemp[128];
6775
6776 self = self;
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
6778 return NULL;
6779 if (_argo0) {
6780 if (_argo0 == Py_None) { _arg0 = NULL; }
6781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6783 return NULL;
6784 }
6785 }
6786 {
6787 PyThreadState* __tstate = wxPyBeginAllowThreads();
6788 _result = new wxBrush (wxDC_GetBrush(_arg0));
6789
6790 wxPyEndAllowThreads(__tstate);
6791 if (PyErr_Occurred()) return NULL;
6792 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6793 _resultobj = Py_BuildValue("s",_ptemp);
6794 return _resultobj;
6795 }
6796
6797 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6798 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject * _resultobj;
6800 wxCoord _result;
6801 wxDC * _arg0;
6802 PyObject * _argo0 = 0;
6803 char *_kwnames[] = { "self", NULL };
6804
6805 self = self;
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
6807 return NULL;
6808 if (_argo0) {
6809 if (_argo0 == Py_None) { _arg0 = NULL; }
6810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6812 return NULL;
6813 }
6814 }
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 _result = (wxCoord )wxDC_GetCharHeight(_arg0);
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) return NULL;
6821 } _resultobj = Py_BuildValue("i",_result);
6822 return _resultobj;
6823 }
6824
6825 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6826 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6827 PyObject * _resultobj;
6828 wxCoord _result;
6829 wxDC * _arg0;
6830 PyObject * _argo0 = 0;
6831 char *_kwnames[] = { "self", NULL };
6832
6833 self = self;
6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
6835 return NULL;
6836 if (_argo0) {
6837 if (_argo0 == Py_None) { _arg0 = NULL; }
6838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6840 return NULL;
6841 }
6842 }
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 _result = (wxCoord )wxDC_GetCharWidth(_arg0);
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) return NULL;
6849 } _resultobj = Py_BuildValue("i",_result);
6850 return _resultobj;
6851 }
6852
6853 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6854 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6855 PyObject * _resultobj;
6856 wxDC * _arg0;
6857 wxCoord * _arg1;
6858 int temp;
6859 wxCoord * _arg2;
6860 int temp0;
6861 wxCoord * _arg3;
6862 int temp1;
6863 wxCoord * _arg4;
6864 int temp2;
6865 PyObject * _argo0 = 0;
6866 char *_kwnames[] = { "self", NULL };
6867
6868 self = self;
6869 {
6870 _arg1 = &temp;
6871 }
6872 {
6873 _arg2 = &temp0;
6874 }
6875 {
6876 _arg3 = &temp1;
6877 }
6878 {
6879 _arg4 = &temp2;
6880 }
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
6882 return NULL;
6883 if (_argo0) {
6884 if (_argo0 == Py_None) { _arg0 = NULL; }
6885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6887 return NULL;
6888 }
6889 }
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) return NULL;
6896 } Py_INCREF(Py_None);
6897 _resultobj = Py_None;
6898 {
6899 PyObject *o;
6900 o = PyInt_FromLong((long) (*_arg1));
6901 _resultobj = t_output_helper(_resultobj, o);
6902 }
6903 {
6904 PyObject *o;
6905 o = PyInt_FromLong((long) (*_arg2));
6906 _resultobj = t_output_helper(_resultobj, o);
6907 }
6908 {
6909 PyObject *o;
6910 o = PyInt_FromLong((long) (*_arg3));
6911 _resultobj = t_output_helper(_resultobj, o);
6912 }
6913 {
6914 PyObject *o;
6915 o = PyInt_FromLong((long) (*_arg4));
6916 _resultobj = t_output_helper(_resultobj, o);
6917 }
6918 return _resultobj;
6919 }
6920
6921 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6922 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject * _resultobj;
6924 wxFont * _result;
6925 wxDC * _arg0;
6926 PyObject * _argo0 = 0;
6927 char *_kwnames[] = { "self", NULL };
6928 char _ptemp[128];
6929
6930 self = self;
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
6932 return NULL;
6933 if (_argo0) {
6934 if (_argo0 == Py_None) { _arg0 = NULL; }
6935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6937 return NULL;
6938 }
6939 }
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 _result = new wxFont (wxDC_GetFont(_arg0));
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) return NULL;
6946 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
6947 _resultobj = Py_BuildValue("s",_ptemp);
6948 return _resultobj;
6949 }
6950
6951 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6952 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject * _resultobj;
6954 int _result;
6955 wxDC * _arg0;
6956 PyObject * _argo0 = 0;
6957 char *_kwnames[] = { "self", NULL };
6958
6959 self = self;
6960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
6961 return NULL;
6962 if (_argo0) {
6963 if (_argo0 == Py_None) { _arg0 = NULL; }
6964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6966 return NULL;
6967 }
6968 }
6969 {
6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
6971 _result = (int )wxDC_GetLogicalFunction(_arg0);
6972
6973 wxPyEndAllowThreads(__tstate);
6974 if (PyErr_Occurred()) return NULL;
6975 } _resultobj = Py_BuildValue("i",_result);
6976 return _resultobj;
6977 }
6978
6979 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6980 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject * _resultobj;
6982 wxDC * _arg0;
6983 double * _arg1;
6984 double temp;
6985 double * _arg2;
6986 double temp0;
6987 PyObject * _argo0 = 0;
6988 char *_kwnames[] = { "self", NULL };
6989
6990 self = self;
6991 {
6992 _arg1 = &temp;
6993 }
6994 {
6995 _arg2 = &temp0;
6996 }
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
6998 return NULL;
6999 if (_argo0) {
7000 if (_argo0 == Py_None) { _arg0 = NULL; }
7001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7003 return NULL;
7004 }
7005 }
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) return NULL;
7012 } Py_INCREF(Py_None);
7013 _resultobj = Py_None;
7014 {
7015 PyObject *o;
7016 o = PyFloat_FromDouble((double) (*_arg1));
7017 _resultobj = t_output_helper(_resultobj, o);
7018 }
7019 {
7020 PyObject *o;
7021 o = PyFloat_FromDouble((double) (*_arg2));
7022 _resultobj = t_output_helper(_resultobj, o);
7023 }
7024 return _resultobj;
7025 }
7026
7027 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7028 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7029 PyObject * _resultobj;
7030 int _result;
7031 wxDC * _arg0;
7032 PyObject * _argo0 = 0;
7033 char *_kwnames[] = { "self", NULL };
7034
7035 self = self;
7036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7037 return NULL;
7038 if (_argo0) {
7039 if (_argo0 == Py_None) { _arg0 = NULL; }
7040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7042 return NULL;
7043 }
7044 }
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 _result = (int )wxDC_GetMapMode(_arg0);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) return NULL;
7051 } _resultobj = Py_BuildValue("i",_result);
7052 return _resultobj;
7053 }
7054
7055 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7056 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject * _resultobj;
7058 bool _result;
7059 wxDC * _arg0;
7060 PyObject * _argo0 = 0;
7061 char *_kwnames[] = { "self", NULL };
7062
7063 self = self;
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7065 return NULL;
7066 if (_argo0) {
7067 if (_argo0 == Py_None) { _arg0 = NULL; }
7068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7070 return NULL;
7071 }
7072 }
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 _result = (bool )wxDC_GetOptimization(_arg0);
7076
7077 wxPyEndAllowThreads(__tstate);
7078 if (PyErr_Occurred()) return NULL;
7079 } _resultobj = Py_BuildValue("i",_result);
7080 return _resultobj;
7081 }
7082
7083 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7084 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7085 PyObject * _resultobj;
7086 wxPen * _result;
7087 wxDC * _arg0;
7088 PyObject * _argo0 = 0;
7089 char *_kwnames[] = { "self", NULL };
7090 char _ptemp[128];
7091
7092 self = self;
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7094 return NULL;
7095 if (_argo0) {
7096 if (_argo0 == Py_None) { _arg0 = NULL; }
7097 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7098 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7099 return NULL;
7100 }
7101 }
7102 {
7103 PyThreadState* __tstate = wxPyBeginAllowThreads();
7104 _result = new wxPen (wxDC_GetPen(_arg0));
7105
7106 wxPyEndAllowThreads(__tstate);
7107 if (PyErr_Occurred()) return NULL;
7108 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7109 _resultobj = Py_BuildValue("s",_ptemp);
7110 return _resultobj;
7111 }
7112
7113 static wxColour * wxDC_GetPixel(wxDC *self,wxCoord x,wxCoord y) {
7114 wxColour* wc = new wxColour();
7115 self->GetPixel(x, y, wc);
7116 return wc;
7117 }
7118 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7119 PyObject * _resultobj;
7120 wxColour * _result;
7121 wxDC * _arg0;
7122 wxCoord _arg1;
7123 wxCoord _arg2;
7124 PyObject * _argo0 = 0;
7125 char *_kwnames[] = { "self","x","y", NULL };
7126 char _ptemp[128];
7127
7128 self = self;
7129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7130 return NULL;
7131 if (_argo0) {
7132 if (_argo0 == Py_None) { _arg0 = NULL; }
7133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7135 return NULL;
7136 }
7137 }
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7141
7142 wxPyEndAllowThreads(__tstate);
7143 if (PyErr_Occurred()) return NULL;
7144 } if (_result) {
7145 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7146 _resultobj = Py_BuildValue("s",_ptemp);
7147 } else {
7148 Py_INCREF(Py_None);
7149 _resultobj = Py_None;
7150 }
7151 return _resultobj;
7152 }
7153
7154 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7155 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject * _resultobj;
7157 wxDC * _arg0;
7158 int * _arg1;
7159 int temp;
7160 int * _arg2;
7161 int temp0;
7162 PyObject * _argo0 = 0;
7163 char *_kwnames[] = { "self", NULL };
7164
7165 self = self;
7166 {
7167 _arg1 = &temp;
7168 }
7169 {
7170 _arg2 = &temp0;
7171 }
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7173 return NULL;
7174 if (_argo0) {
7175 if (_argo0 == Py_None) { _arg0 = NULL; }
7176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7178 return NULL;
7179 }
7180 }
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7184
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) return NULL;
7187 } Py_INCREF(Py_None);
7188 _resultobj = Py_None;
7189 {
7190 PyObject *o;
7191 o = PyInt_FromLong((long) (*_arg1));
7192 _resultobj = t_output_helper(_resultobj, o);
7193 }
7194 {
7195 PyObject *o;
7196 o = PyInt_FromLong((long) (*_arg2));
7197 _resultobj = t_output_helper(_resultobj, o);
7198 }
7199 return _resultobj;
7200 }
7201
7202 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7203 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject * _resultobj;
7205 wxSize * _result;
7206 wxDC * _arg0;
7207 PyObject * _argo0 = 0;
7208 char *_kwnames[] = { "self", NULL };
7209 char _ptemp[128];
7210
7211 self = self;
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7213 return NULL;
7214 if (_argo0) {
7215 if (_argo0 == Py_None) { _arg0 = NULL; }
7216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7218 return NULL;
7219 }
7220 }
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 _result = new wxSize (wxDC_GetSize(_arg0));
7224
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) return NULL;
7227 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7228 _resultobj = Py_BuildValue("s",_ptemp);
7229 return _resultobj;
7230 }
7231
7232 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7233 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7234 PyObject * _resultobj;
7235 wxSize * _result;
7236 wxDC * _arg0;
7237 PyObject * _argo0 = 0;
7238 char *_kwnames[] = { "self", NULL };
7239 char _ptemp[128];
7240
7241 self = self;
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7243 return NULL;
7244 if (_argo0) {
7245 if (_argo0 == Py_None) { _arg0 = NULL; }
7246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7248 return NULL;
7249 }
7250 }
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) return NULL;
7257 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7258 _resultobj = Py_BuildValue("s",_ptemp);
7259 return _resultobj;
7260 }
7261
7262 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7263 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7264 PyObject * _resultobj;
7265 wxColour * _result;
7266 wxDC * _arg0;
7267 PyObject * _argo0 = 0;
7268 char *_kwnames[] = { "self", NULL };
7269 char _ptemp[128];
7270
7271 self = self;
7272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7273 return NULL;
7274 if (_argo0) {
7275 if (_argo0 == Py_None) { _arg0 = NULL; }
7276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7278 return NULL;
7279 }
7280 }
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7284
7285 wxPyEndAllowThreads(__tstate);
7286 if (PyErr_Occurred()) return NULL;
7287 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7288 _resultobj = Py_BuildValue("s",_ptemp);
7289 return _resultobj;
7290 }
7291
7292 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7293 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7294 PyObject * _resultobj;
7295 wxDC * _arg0;
7296 wxString * _arg1;
7297 wxCoord * _arg2;
7298 int temp;
7299 wxCoord * _arg3;
7300 int temp0;
7301 PyObject * _argo0 = 0;
7302 PyObject * _obj1 = 0;
7303 char *_kwnames[] = { "self","string", NULL };
7304
7305 self = self;
7306 {
7307 _arg2 = &temp;
7308 }
7309 {
7310 _arg3 = &temp0;
7311 }
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7313 return NULL;
7314 if (_argo0) {
7315 if (_argo0 == Py_None) { _arg0 = NULL; }
7316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7318 return NULL;
7319 }
7320 }
7321 {
7322 _arg1 = wxString_in_helper(_obj1);
7323 if (_arg1 == NULL)
7324 return NULL;
7325 }
7326 {
7327 PyThreadState* __tstate = wxPyBeginAllowThreads();
7328 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
7329
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) return NULL;
7332 } Py_INCREF(Py_None);
7333 _resultobj = Py_None;
7334 {
7335 PyObject *o;
7336 o = PyInt_FromLong((long) (*_arg2));
7337 _resultobj = t_output_helper(_resultobj, o);
7338 }
7339 {
7340 PyObject *o;
7341 o = PyInt_FromLong((long) (*_arg3));
7342 _resultobj = t_output_helper(_resultobj, o);
7343 }
7344 {
7345 if (_obj1)
7346 delete _arg1;
7347 }
7348 return _resultobj;
7349 }
7350
7351 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7352 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7353 PyObject * _resultobj;
7354 wxDC * _arg0;
7355 wxString * _arg1;
7356 wxCoord * _arg2;
7357 int temp;
7358 wxCoord * _arg3;
7359 int temp0;
7360 wxCoord * _arg4;
7361 int temp1;
7362 wxCoord * _arg5;
7363 int temp2;
7364 wxFont * _arg6 = (wxFont *) NULL;
7365 PyObject * _argo0 = 0;
7366 PyObject * _obj1 = 0;
7367 PyObject * _argo6 = 0;
7368 char *_kwnames[] = { "self","string","font", NULL };
7369
7370 self = self;
7371 {
7372 _arg2 = &temp;
7373 }
7374 {
7375 _arg3 = &temp0;
7376 }
7377 {
7378 _arg4 = &temp1;
7379 }
7380 {
7381 _arg5 = &temp2;
7382 }
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7384 return NULL;
7385 if (_argo0) {
7386 if (_argo0 == Py_None) { _arg0 = NULL; }
7387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7389 return NULL;
7390 }
7391 }
7392 {
7393 _arg1 = wxString_in_helper(_obj1);
7394 if (_arg1 == NULL)
7395 return NULL;
7396 }
7397 if (_argo6) {
7398 if (_argo6 == Py_None) { _arg6 = NULL; }
7399 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
7400 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7401 return NULL;
7402 }
7403 }
7404 {
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7407
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) return NULL;
7410 } Py_INCREF(Py_None);
7411 _resultobj = Py_None;
7412 {
7413 PyObject *o;
7414 o = PyInt_FromLong((long) (*_arg2));
7415 _resultobj = t_output_helper(_resultobj, o);
7416 }
7417 {
7418 PyObject *o;
7419 o = PyInt_FromLong((long) (*_arg3));
7420 _resultobj = t_output_helper(_resultobj, o);
7421 }
7422 {
7423 PyObject *o;
7424 o = PyInt_FromLong((long) (*_arg4));
7425 _resultobj = t_output_helper(_resultobj, o);
7426 }
7427 {
7428 PyObject *o;
7429 o = PyInt_FromLong((long) (*_arg5));
7430 _resultobj = t_output_helper(_resultobj, o);
7431 }
7432 {
7433 if (_obj1)
7434 delete _arg1;
7435 }
7436 return _resultobj;
7437 }
7438
7439 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7440 static PyObject *_wrap_wxDC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7441 PyObject * _resultobj;
7442 wxDC * _arg0;
7443 wxString * _arg1;
7444 wxCoord * _arg2;
7445 int temp;
7446 wxCoord * _arg3;
7447 int temp0;
7448 wxCoord * _arg4;
7449 int temp1;
7450 wxFont * _arg5 = (wxFont *) NULL;
7451 PyObject * _argo0 = 0;
7452 PyObject * _obj1 = 0;
7453 PyObject * _argo5 = 0;
7454 char *_kwnames[] = { "self","text","font", NULL };
7455
7456 self = self;
7457 {
7458 _arg2 = &temp;
7459 }
7460 {
7461 _arg3 = &temp0;
7462 }
7463 {
7464 _arg4 = &temp1;
7465 }
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames,&_argo0,&_obj1,&_argo5))
7467 return NULL;
7468 if (_argo0) {
7469 if (_argo0 == Py_None) { _arg0 = NULL; }
7470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
7472 return NULL;
7473 }
7474 }
7475 {
7476 _arg1 = wxString_in_helper(_obj1);
7477 if (_arg1 == NULL)
7478 return NULL;
7479 }
7480 if (_argo5) {
7481 if (_argo5 == Py_None) { _arg5 = NULL; }
7482 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxFont_p")) {
7483 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
7484 return NULL;
7485 }
7486 }
7487 {
7488 PyThreadState* __tstate = wxPyBeginAllowThreads();
7489 wxDC_GetMultiLineTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
7490
7491 wxPyEndAllowThreads(__tstate);
7492 if (PyErr_Occurred()) return NULL;
7493 } Py_INCREF(Py_None);
7494 _resultobj = Py_None;
7495 {
7496 PyObject *o;
7497 o = PyInt_FromLong((long) (*_arg2));
7498 _resultobj = t_output_helper(_resultobj, o);
7499 }
7500 {
7501 PyObject *o;
7502 o = PyInt_FromLong((long) (*_arg3));
7503 _resultobj = t_output_helper(_resultobj, o);
7504 }
7505 {
7506 PyObject *o;
7507 o = PyInt_FromLong((long) (*_arg4));
7508 _resultobj = t_output_helper(_resultobj, o);
7509 }
7510 {
7511 if (_obj1)
7512 delete _arg1;
7513 }
7514 return _resultobj;
7515 }
7516
7517 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7518 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
7519 PyObject * _resultobj;
7520 wxColour * _result;
7521 wxDC * _arg0;
7522 PyObject * _argo0 = 0;
7523 char *_kwnames[] = { "self", NULL };
7524 char _ptemp[128];
7525
7526 self = self;
7527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
7528 return NULL;
7529 if (_argo0) {
7530 if (_argo0 == Py_None) { _arg0 = NULL; }
7531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7533 return NULL;
7534 }
7535 }
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 _result = new wxColour (wxDC_GetTextForeground(_arg0));
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) return NULL;
7542 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7543 _resultobj = Py_BuildValue("s",_ptemp);
7544 return _resultobj;
7545 }
7546
7547 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7548 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject * _resultobj;
7550 wxDC * _arg0;
7551 double * _arg1;
7552 double temp;
7553 double * _arg2;
7554 double temp0;
7555 PyObject * _argo0 = 0;
7556 char *_kwnames[] = { "self", NULL };
7557
7558 self = self;
7559 {
7560 _arg1 = &temp;
7561 }
7562 {
7563 _arg2 = &temp0;
7564 }
7565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7566 return NULL;
7567 if (_argo0) {
7568 if (_argo0 == Py_None) { _arg0 = NULL; }
7569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7571 return NULL;
7572 }
7573 }
7574 {
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 wxDC_GetUserScale(_arg0,_arg1,_arg2);
7577
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) return NULL;
7580 } Py_INCREF(Py_None);
7581 _resultobj = Py_None;
7582 {
7583 PyObject *o;
7584 o = PyFloat_FromDouble((double) (*_arg1));
7585 _resultobj = t_output_helper(_resultobj, o);
7586 }
7587 {
7588 PyObject *o;
7589 o = PyFloat_FromDouble((double) (*_arg2));
7590 _resultobj = t_output_helper(_resultobj, o);
7591 }
7592 return _resultobj;
7593 }
7594
7595 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7596 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
7597 PyObject * _resultobj;
7598 wxCoord _result;
7599 wxDC * _arg0;
7600 wxCoord _arg1;
7601 PyObject * _argo0 = 0;
7602 char *_kwnames[] = { "self","x", NULL };
7603
7604 self = self;
7605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
7606 return NULL;
7607 if (_argo0) {
7608 if (_argo0 == Py_None) { _arg0 = NULL; }
7609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7611 return NULL;
7612 }
7613 }
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 _result = (wxCoord )wxDC_LogicalToDeviceX(_arg0,_arg1);
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) return NULL;
7620 } _resultobj = Py_BuildValue("i",_result);
7621 return _resultobj;
7622 }
7623
7624 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7625 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7626 PyObject * _resultobj;
7627 wxCoord _result;
7628 wxDC * _arg0;
7629 wxCoord _arg1;
7630 PyObject * _argo0 = 0;
7631 char *_kwnames[] = { "self","x", NULL };
7632
7633 self = self;
7634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
7635 return NULL;
7636 if (_argo0) {
7637 if (_argo0 == Py_None) { _arg0 = NULL; }
7638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7640 return NULL;
7641 }
7642 }
7643 {
7644 PyThreadState* __tstate = wxPyBeginAllowThreads();
7645 _result = (wxCoord )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
7646
7647 wxPyEndAllowThreads(__tstate);
7648 if (PyErr_Occurred()) return NULL;
7649 } _resultobj = Py_BuildValue("i",_result);
7650 return _resultobj;
7651 }
7652
7653 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7654 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject * _resultobj;
7656 wxCoord _result;
7657 wxDC * _arg0;
7658 wxCoord _arg1;
7659 PyObject * _argo0 = 0;
7660 char *_kwnames[] = { "self","y", NULL };
7661
7662 self = self;
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
7664 return NULL;
7665 if (_argo0) {
7666 if (_argo0 == Py_None) { _arg0 = NULL; }
7667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7669 return NULL;
7670 }
7671 }
7672 {
7673 PyThreadState* __tstate = wxPyBeginAllowThreads();
7674 _result = (wxCoord )wxDC_LogicalToDeviceY(_arg0,_arg1);
7675
7676 wxPyEndAllowThreads(__tstate);
7677 if (PyErr_Occurred()) return NULL;
7678 } _resultobj = Py_BuildValue("i",_result);
7679 return _resultobj;
7680 }
7681
7682 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7683 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject * _resultobj;
7685 wxCoord _result;
7686 wxDC * _arg0;
7687 wxCoord _arg1;
7688 PyObject * _argo0 = 0;
7689 char *_kwnames[] = { "self","y", NULL };
7690
7691 self = self;
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
7693 return NULL;
7694 if (_argo0) {
7695 if (_argo0 == Py_None) { _arg0 = NULL; }
7696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7698 return NULL;
7699 }
7700 }
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 _result = (wxCoord )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
7704
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) return NULL;
7707 } _resultobj = Py_BuildValue("i",_result);
7708 return _resultobj;
7709 }
7710
7711 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7712 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject * _resultobj;
7714 wxCoord _result;
7715 wxDC * _arg0;
7716 PyObject * _argo0 = 0;
7717 char *_kwnames[] = { "self", NULL };
7718
7719 self = self;
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
7721 return NULL;
7722 if (_argo0) {
7723 if (_argo0 == Py_None) { _arg0 = NULL; }
7724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7726 return NULL;
7727 }
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 _result = (wxCoord )wxDC_MaxX(_arg0);
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) return NULL;
7735 } _resultobj = Py_BuildValue("i",_result);
7736 return _resultobj;
7737 }
7738
7739 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7740 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
7741 PyObject * _resultobj;
7742 wxCoord _result;
7743 wxDC * _arg0;
7744 PyObject * _argo0 = 0;
7745 char *_kwnames[] = { "self", NULL };
7746
7747 self = self;
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
7749 return NULL;
7750 if (_argo0) {
7751 if (_argo0 == Py_None) { _arg0 = NULL; }
7752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7754 return NULL;
7755 }
7756 }
7757 {
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 _result = (wxCoord )wxDC_MaxY(_arg0);
7760
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) return NULL;
7763 } _resultobj = Py_BuildValue("i",_result);
7764 return _resultobj;
7765 }
7766
7767 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7768 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
7769 PyObject * _resultobj;
7770 wxCoord _result;
7771 wxDC * _arg0;
7772 PyObject * _argo0 = 0;
7773 char *_kwnames[] = { "self", NULL };
7774
7775 self = self;
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
7777 return NULL;
7778 if (_argo0) {
7779 if (_argo0 == Py_None) { _arg0 = NULL; }
7780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7782 return NULL;
7783 }
7784 }
7785 {
7786 PyThreadState* __tstate = wxPyBeginAllowThreads();
7787 _result = (wxCoord )wxDC_MinX(_arg0);
7788
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) return NULL;
7791 } _resultobj = Py_BuildValue("i",_result);
7792 return _resultobj;
7793 }
7794
7795 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7796 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject * _resultobj;
7798 wxCoord _result;
7799 wxDC * _arg0;
7800 PyObject * _argo0 = 0;
7801 char *_kwnames[] = { "self", NULL };
7802
7803 self = self;
7804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
7805 return NULL;
7806 if (_argo0) {
7807 if (_argo0 == Py_None) { _arg0 = NULL; }
7808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7810 return NULL;
7811 }
7812 }
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 _result = (wxCoord )wxDC_MinY(_arg0);
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) return NULL;
7819 } _resultobj = Py_BuildValue("i",_result);
7820 return _resultobj;
7821 }
7822
7823 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7824 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject * _resultobj;
7826 bool _result;
7827 wxDC * _arg0;
7828 PyObject * _argo0 = 0;
7829 char *_kwnames[] = { "self", NULL };
7830
7831 self = self;
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
7833 return NULL;
7834 if (_argo0) {
7835 if (_argo0 == Py_None) { _arg0 = NULL; }
7836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7838 return NULL;
7839 }
7840 }
7841 {
7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
7843 _result = (bool )wxDC_Ok(_arg0);
7844
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) return NULL;
7847 } _resultobj = Py_BuildValue("i",_result);
7848 return _resultobj;
7849 }
7850
7851 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7852 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject * _resultobj;
7854 wxDC * _arg0;
7855 wxCoord _arg1;
7856 wxCoord _arg2;
7857 PyObject * _argo0 = 0;
7858 char *_kwnames[] = { "self","x","y", NULL };
7859
7860 self = self;
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7862 return NULL;
7863 if (_argo0) {
7864 if (_argo0 == Py_None) { _arg0 = NULL; }
7865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7867 return NULL;
7868 }
7869 }
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) return NULL;
7876 } Py_INCREF(Py_None);
7877 _resultobj = Py_None;
7878 return _resultobj;
7879 }
7880
7881 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7882 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject * _resultobj;
7884 wxDC * _arg0;
7885 wxBrush * _arg1;
7886 PyObject * _argo0 = 0;
7887 PyObject * _argo1 = 0;
7888 char *_kwnames[] = { "self","brush", NULL };
7889
7890 self = self;
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
7892 return NULL;
7893 if (_argo0) {
7894 if (_argo0 == Py_None) { _arg0 = NULL; }
7895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7897 return NULL;
7898 }
7899 }
7900 if (_argo1) {
7901 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7902 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7903 return NULL;
7904 }
7905 }
7906 {
7907 PyThreadState* __tstate = wxPyBeginAllowThreads();
7908 wxDC_SetBackground(_arg0,*_arg1);
7909
7910 wxPyEndAllowThreads(__tstate);
7911 if (PyErr_Occurred()) return NULL;
7912 } Py_INCREF(Py_None);
7913 _resultobj = Py_None;
7914 return _resultobj;
7915 }
7916
7917 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7918 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7919 PyObject * _resultobj;
7920 wxDC * _arg0;
7921 int _arg1;
7922 PyObject * _argo0 = 0;
7923 char *_kwnames[] = { "self","mode", NULL };
7924
7925 self = self;
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
7927 return NULL;
7928 if (_argo0) {
7929 if (_argo0 == Py_None) { _arg0 = NULL; }
7930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7932 return NULL;
7933 }
7934 }
7935 {
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 wxDC_SetBackgroundMode(_arg0,_arg1);
7938
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) return NULL;
7941 } Py_INCREF(Py_None);
7942 _resultobj = Py_None;
7943 return _resultobj;
7944 }
7945
7946 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7947 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7948 PyObject * _resultobj;
7949 wxDC * _arg0;
7950 wxCoord _arg1;
7951 wxCoord _arg2;
7952 wxCoord _arg3;
7953 wxCoord _arg4;
7954 PyObject * _argo0 = 0;
7955 char *_kwnames[] = { "self","x","y","width","height", NULL };
7956
7957 self = self;
7958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7959 return NULL;
7960 if (_argo0) {
7961 if (_argo0 == Py_None) { _arg0 = NULL; }
7962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7964 return NULL;
7965 }
7966 }
7967 {
7968 PyThreadState* __tstate = wxPyBeginAllowThreads();
7969 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
7970
7971 wxPyEndAllowThreads(__tstate);
7972 if (PyErr_Occurred()) return NULL;
7973 } Py_INCREF(Py_None);
7974 _resultobj = Py_None;
7975 return _resultobj;
7976 }
7977
7978 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7979 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7980 PyObject * _resultobj;
7981 wxDC * _arg0;
7982 wxRegion * _arg1;
7983 PyObject * _argo0 = 0;
7984 PyObject * _argo1 = 0;
7985 char *_kwnames[] = { "self","region", NULL };
7986
7987 self = self;
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
7989 return NULL;
7990 if (_argo0) {
7991 if (_argo0 == Py_None) { _arg0 = NULL; }
7992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7994 return NULL;
7995 }
7996 }
7997 if (_argo1) {
7998 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
7999 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8000 return NULL;
8001 }
8002 }
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) return NULL;
8009 } Py_INCREF(Py_None);
8010 _resultobj = Py_None;
8011 return _resultobj;
8012 }
8013
8014 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8015 static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject * _resultobj;
8017 wxDC * _arg0;
8018 wxRect * _arg1;
8019 PyObject * _argo0 = 0;
8020 wxRect temp;
8021 PyObject * _obj1 = 0;
8022 char *_kwnames[] = { "self","rect", NULL };
8023
8024 self = self;
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1))
8026 return NULL;
8027 if (_argo0) {
8028 if (_argo0 == Py_None) { _arg0 = NULL; }
8029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
8031 return NULL;
8032 }
8033 }
8034 {
8035 _arg1 = &temp;
8036 if (! wxRect_helper(_obj1, &_arg1))
8037 return NULL;
8038 }
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 wxDC_SetClippingRect(_arg0,*_arg1);
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) return NULL;
8045 } Py_INCREF(Py_None);
8046 _resultobj = Py_None;
8047 return _resultobj;
8048 }
8049
8050 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8051 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8052 PyObject * _resultobj;
8053 wxDC * _arg0;
8054 wxPalette * _arg1;
8055 PyObject * _argo0 = 0;
8056 PyObject * _argo1 = 0;
8057 char *_kwnames[] = { "self","colourMap", NULL };
8058
8059 self = self;
8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8061 return NULL;
8062 if (_argo0) {
8063 if (_argo0 == Py_None) { _arg0 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8066 return NULL;
8067 }
8068 }
8069 if (_argo1) {
8070 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8071 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8072 return NULL;
8073 }
8074 }
8075 {
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 wxDC_SetPalette(_arg0,*_arg1);
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) return NULL;
8081 } Py_INCREF(Py_None);
8082 _resultobj = Py_None;
8083 return _resultobj;
8084 }
8085
8086 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8087 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8088 PyObject * _resultobj;
8089 wxDC * _arg0;
8090 wxBrush * _arg1;
8091 PyObject * _argo0 = 0;
8092 PyObject * _argo1 = 0;
8093 char *_kwnames[] = { "self","brush", NULL };
8094
8095 self = self;
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8097 return NULL;
8098 if (_argo0) {
8099 if (_argo0 == Py_None) { _arg0 = NULL; }
8100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8102 return NULL;
8103 }
8104 }
8105 if (_argo1) {
8106 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8107 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8108 return NULL;
8109 }
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 wxDC_SetBrush(_arg0,*_arg1);
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) return NULL;
8117 } Py_INCREF(Py_None);
8118 _resultobj = Py_None;
8119 return _resultobj;
8120 }
8121
8122 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8123 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8124 PyObject * _resultobj;
8125 wxDC * _arg0;
8126 wxFont * _arg1;
8127 PyObject * _argo0 = 0;
8128 PyObject * _argo1 = 0;
8129 char *_kwnames[] = { "self","font", NULL };
8130
8131 self = self;
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8133 return NULL;
8134 if (_argo0) {
8135 if (_argo0 == Py_None) { _arg0 = NULL; }
8136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8138 return NULL;
8139 }
8140 }
8141 if (_argo1) {
8142 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8143 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8144 return NULL;
8145 }
8146 }
8147 {
8148 PyThreadState* __tstate = wxPyBeginAllowThreads();
8149 wxDC_SetFont(_arg0,*_arg1);
8150
8151 wxPyEndAllowThreads(__tstate);
8152 if (PyErr_Occurred()) return NULL;
8153 } Py_INCREF(Py_None);
8154 _resultobj = Py_None;
8155 return _resultobj;
8156 }
8157
8158 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8159 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8160 PyObject * _resultobj;
8161 wxDC * _arg0;
8162 int _arg1;
8163 PyObject * _argo0 = 0;
8164 char *_kwnames[] = { "self","function", NULL };
8165
8166 self = self;
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8168 return NULL;
8169 if (_argo0) {
8170 if (_argo0 == Py_None) { _arg0 = NULL; }
8171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8173 return NULL;
8174 }
8175 }
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 wxDC_SetLogicalFunction(_arg0,_arg1);
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) return NULL;
8182 } Py_INCREF(Py_None);
8183 _resultobj = Py_None;
8184 return _resultobj;
8185 }
8186
8187 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8188 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8189 PyObject * _resultobj;
8190 wxDC * _arg0;
8191 double _arg1;
8192 double _arg2;
8193 PyObject * _argo0 = 0;
8194 char *_kwnames[] = { "self","x","y", NULL };
8195
8196 self = self;
8197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8198 return NULL;
8199 if (_argo0) {
8200 if (_argo0 == Py_None) { _arg0 = NULL; }
8201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8203 return NULL;
8204 }
8205 }
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) return NULL;
8212 } Py_INCREF(Py_None);
8213 _resultobj = Py_None;
8214 return _resultobj;
8215 }
8216
8217 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8218 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8219 PyObject * _resultobj;
8220 wxDC * _arg0;
8221 int _arg1;
8222 PyObject * _argo0 = 0;
8223 char *_kwnames[] = { "self","mode", NULL };
8224
8225 self = self;
8226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8227 return NULL;
8228 if (_argo0) {
8229 if (_argo0 == Py_None) { _arg0 = NULL; }
8230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8232 return NULL;
8233 }
8234 }
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 wxDC_SetMapMode(_arg0,_arg1);
8238
8239 wxPyEndAllowThreads(__tstate);
8240 if (PyErr_Occurred()) return NULL;
8241 } Py_INCREF(Py_None);
8242 _resultobj = Py_None;
8243 return _resultobj;
8244 }
8245
8246 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8247 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8248 PyObject * _resultobj;
8249 wxDC * _arg0;
8250 bool _arg1;
8251 PyObject * _argo0 = 0;
8252 int tempbool1;
8253 char *_kwnames[] = { "self","optimize", NULL };
8254
8255 self = self;
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8257 return NULL;
8258 if (_argo0) {
8259 if (_argo0 == Py_None) { _arg0 = NULL; }
8260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8262 return NULL;
8263 }
8264 }
8265 _arg1 = (bool ) tempbool1;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 wxDC_SetOptimization(_arg0,_arg1);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) return NULL;
8272 } Py_INCREF(Py_None);
8273 _resultobj = Py_None;
8274 return _resultobj;
8275 }
8276
8277 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8278 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8279 PyObject * _resultobj;
8280 wxDC * _arg0;
8281 wxPen * _arg1;
8282 PyObject * _argo0 = 0;
8283 PyObject * _argo1 = 0;
8284 char *_kwnames[] = { "self","pen", NULL };
8285
8286 self = self;
8287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8288 return NULL;
8289 if (_argo0) {
8290 if (_argo0 == Py_None) { _arg0 = NULL; }
8291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8293 return NULL;
8294 }
8295 }
8296 if (_argo1) {
8297 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8298 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8299 return NULL;
8300 }
8301 }
8302 {
8303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8304 wxDC_SetPen(_arg0,*_arg1);
8305
8306 wxPyEndAllowThreads(__tstate);
8307 if (PyErr_Occurred()) return NULL;
8308 } Py_INCREF(Py_None);
8309 _resultobj = Py_None;
8310 return _resultobj;
8311 }
8312
8313 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8314 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8315 PyObject * _resultobj;
8316 wxDC * _arg0;
8317 wxColour * _arg1;
8318 PyObject * _argo0 = 0;
8319 wxColour temp;
8320 PyObject * _obj1 = 0;
8321 char *_kwnames[] = { "self","colour", NULL };
8322
8323 self = self;
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8325 return NULL;
8326 if (_argo0) {
8327 if (_argo0 == Py_None) { _arg0 = NULL; }
8328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8330 return NULL;
8331 }
8332 }
8333 {
8334 _arg1 = &temp;
8335 if (! wxColour_helper(_obj1, &_arg1))
8336 return NULL;
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 wxDC_SetTextBackground(_arg0,*_arg1);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) return NULL;
8344 } Py_INCREF(Py_None);
8345 _resultobj = Py_None;
8346 return _resultobj;
8347 }
8348
8349 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8350 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8351 PyObject * _resultobj;
8352 wxDC * _arg0;
8353 wxColour * _arg1;
8354 PyObject * _argo0 = 0;
8355 wxColour temp;
8356 PyObject * _obj1 = 0;
8357 char *_kwnames[] = { "self","colour", NULL };
8358
8359 self = self;
8360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8361 return NULL;
8362 if (_argo0) {
8363 if (_argo0 == Py_None) { _arg0 = NULL; }
8364 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8365 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8366 return NULL;
8367 }
8368 }
8369 {
8370 _arg1 = &temp;
8371 if (! wxColour_helper(_obj1, &_arg1))
8372 return NULL;
8373 }
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 wxDC_SetTextForeground(_arg0,*_arg1);
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) return NULL;
8380 } Py_INCREF(Py_None);
8381 _resultobj = Py_None;
8382 return _resultobj;
8383 }
8384
8385 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8386 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8387 PyObject * _resultobj;
8388 wxDC * _arg0;
8389 double _arg1;
8390 double _arg2;
8391 PyObject * _argo0 = 0;
8392 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8393
8394 self = self;
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8396 return NULL;
8397 if (_argo0) {
8398 if (_argo0 == Py_None) { _arg0 = NULL; }
8399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8401 return NULL;
8402 }
8403 }
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) return NULL;
8410 } Py_INCREF(Py_None);
8411 _resultobj = Py_None;
8412 return _resultobj;
8413 }
8414
8415 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8416 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8417 PyObject * _resultobj;
8418 bool _result;
8419 wxDC * _arg0;
8420 wxString * _arg1;
8421 PyObject * _argo0 = 0;
8422 PyObject * _obj1 = 0;
8423 char *_kwnames[] = { "self","message", NULL };
8424
8425 self = self;
8426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
8427 return NULL;
8428 if (_argo0) {
8429 if (_argo0 == Py_None) { _arg0 = NULL; }
8430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8432 return NULL;
8433 }
8434 }
8435 {
8436 _arg1 = wxString_in_helper(_obj1);
8437 if (_arg1 == NULL)
8438 return NULL;
8439 }
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) return NULL;
8446 } _resultobj = Py_BuildValue("i",_result);
8447 {
8448 if (_obj1)
8449 delete _arg1;
8450 }
8451 return _resultobj;
8452 }
8453
8454 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8455 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8456 PyObject * _resultobj;
8457 wxDC * _arg0;
8458 PyObject * _argo0 = 0;
8459 char *_kwnames[] = { "self", NULL };
8460
8461 self = self;
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
8463 return NULL;
8464 if (_argo0) {
8465 if (_argo0 == Py_None) { _arg0 = NULL; }
8466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8468 return NULL;
8469 }
8470 }
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 wxDC_StartPage(_arg0);
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) return NULL;
8477 } Py_INCREF(Py_None);
8478 _resultobj = Py_None;
8479 return _resultobj;
8480 }
8481
8482 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8483 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject * _resultobj;
8485 wxDC * _arg0;
8486 wxBitmap * _arg1;
8487 wxCoord _arg2;
8488 wxCoord _arg3;
8489 int _arg4 = (int ) FALSE;
8490 PyObject * _argo0 = 0;
8491 PyObject * _argo1 = 0;
8492 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
8493
8494 self = self;
8495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
8496 return NULL;
8497 if (_argo0) {
8498 if (_argo0 == Py_None) { _arg0 = NULL; }
8499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8501 return NULL;
8502 }
8503 }
8504 if (_argo1) {
8505 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8506 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8507 return NULL;
8508 }
8509 }
8510 {
8511 PyThreadState* __tstate = wxPyBeginAllowThreads();
8512 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
8513
8514 wxPyEndAllowThreads(__tstate);
8515 if (PyErr_Occurred()) return NULL;
8516 } Py_INCREF(Py_None);
8517 _resultobj = Py_None;
8518 return _resultobj;
8519 }
8520
8521 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8522 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8523 PyObject * _resultobj;
8524 bool _result;
8525 wxDC * _arg0;
8526 PyObject * _argo0 = 0;
8527 char *_kwnames[] = { "self", NULL };
8528
8529 self = self;
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8531 return NULL;
8532 if (_argo0) {
8533 if (_argo0 == Py_None) { _arg0 = NULL; }
8534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8536 return NULL;
8537 }
8538 }
8539 {
8540 PyThreadState* __tstate = wxPyBeginAllowThreads();
8541 _result = (bool )wxDC_CanDrawBitmap(_arg0);
8542
8543 wxPyEndAllowThreads(__tstate);
8544 if (PyErr_Occurred()) return NULL;
8545 } _resultobj = Py_BuildValue("i",_result);
8546 return _resultobj;
8547 }
8548
8549 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8550 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8551 PyObject * _resultobj;
8552 bool _result;
8553 wxDC * _arg0;
8554 PyObject * _argo0 = 0;
8555 char *_kwnames[] = { "self", NULL };
8556
8557 self = self;
8558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8559 return NULL;
8560 if (_argo0) {
8561 if (_argo0 == Py_None) { _arg0 = NULL; }
8562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8564 return NULL;
8565 }
8566 }
8567 {
8568 PyThreadState* __tstate = wxPyBeginAllowThreads();
8569 _result = (bool )wxDC_CanGetTextExtent(_arg0);
8570
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) return NULL;
8573 } _resultobj = Py_BuildValue("i",_result);
8574 return _resultobj;
8575 }
8576
8577 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8578 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject * _resultobj;
8580 int _result;
8581 wxDC * _arg0;
8582 PyObject * _argo0 = 0;
8583 char *_kwnames[] = { "self", NULL };
8584
8585 self = self;
8586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8587 return NULL;
8588 if (_argo0) {
8589 if (_argo0 == Py_None) { _arg0 = NULL; }
8590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8592 return NULL;
8593 }
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 _result = (int )wxDC_GetDepth(_arg0);
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) return NULL;
8601 } _resultobj = Py_BuildValue("i",_result);
8602 return _resultobj;
8603 }
8604
8605 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8606 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8607 PyObject * _resultobj;
8608 wxSize * _result;
8609 wxDC * _arg0;
8610 PyObject * _argo0 = 0;
8611 char *_kwnames[] = { "self", NULL };
8612 char _ptemp[128];
8613
8614 self = self;
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8616 return NULL;
8617 if (_argo0) {
8618 if (_argo0 == Py_None) { _arg0 = NULL; }
8619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8621 return NULL;
8622 }
8623 }
8624 {
8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
8626 _result = new wxSize (wxDC_GetPPI(_arg0));
8627
8628 wxPyEndAllowThreads(__tstate);
8629 if (PyErr_Occurred()) return NULL;
8630 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8631 _resultobj = Py_BuildValue("s",_ptemp);
8632 return _resultobj;
8633 }
8634
8635 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8636 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8637 PyObject * _resultobj;
8638 wxDC * _arg0;
8639 int * _arg1;
8640 int temp;
8641 int * _arg2;
8642 int temp0;
8643 PyObject * _argo0 = 0;
8644 char *_kwnames[] = { "self", NULL };
8645
8646 self = self;
8647 {
8648 _arg1 = &temp;
8649 }
8650 {
8651 _arg2 = &temp0;
8652 }
8653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8654 return NULL;
8655 if (_argo0) {
8656 if (_argo0 == Py_None) { _arg0 = NULL; }
8657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8659 return NULL;
8660 }
8661 }
8662 {
8663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8664 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
8665
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) return NULL;
8668 } Py_INCREF(Py_None);
8669 _resultobj = Py_None;
8670 {
8671 PyObject *o;
8672 o = PyInt_FromLong((long) (*_arg1));
8673 _resultobj = t_output_helper(_resultobj, o);
8674 }
8675 {
8676 PyObject *o;
8677 o = PyInt_FromLong((long) (*_arg2));
8678 _resultobj = t_output_helper(_resultobj, o);
8679 }
8680 return _resultobj;
8681 }
8682
8683 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8684 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8685 PyObject * _resultobj;
8686 wxDC * _arg0;
8687 int _arg1;
8688 int _arg2;
8689 PyObject * _argo0 = 0;
8690 char *_kwnames[] = { "self","x","y", NULL };
8691
8692 self = self;
8693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8694 return NULL;
8695 if (_argo0) {
8696 if (_argo0 == Py_None) { _arg0 = NULL; }
8697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8699 return NULL;
8700 }
8701 }
8702 {
8703 PyThreadState* __tstate = wxPyBeginAllowThreads();
8704 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
8705
8706 wxPyEndAllowThreads(__tstate);
8707 if (PyErr_Occurred()) return NULL;
8708 } Py_INCREF(Py_None);
8709 _resultobj = Py_None;
8710 return _resultobj;
8711 }
8712
8713 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8714 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8715 PyObject * _resultobj;
8716 wxDC * _arg0;
8717 int * _arg1;
8718 int temp;
8719 int * _arg2;
8720 int temp0;
8721 PyObject * _argo0 = 0;
8722 char *_kwnames[] = { "self", NULL };
8723
8724 self = self;
8725 {
8726 _arg1 = &temp;
8727 }
8728 {
8729 _arg2 = &temp0;
8730 }
8731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8732 return NULL;
8733 if (_argo0) {
8734 if (_argo0 == Py_None) { _arg0 = NULL; }
8735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8737 return NULL;
8738 }
8739 }
8740 {
8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
8742 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
8743
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) return NULL;
8746 } Py_INCREF(Py_None);
8747 _resultobj = Py_None;
8748 {
8749 PyObject *o;
8750 o = PyInt_FromLong((long) (*_arg1));
8751 _resultobj = t_output_helper(_resultobj, o);
8752 }
8753 {
8754 PyObject *o;
8755 o = PyInt_FromLong((long) (*_arg2));
8756 _resultobj = t_output_helper(_resultobj, o);
8757 }
8758 return _resultobj;
8759 }
8760
8761 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8762 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8763 PyObject * _resultobj;
8764 wxDC * _arg0;
8765 bool _arg1;
8766 bool _arg2;
8767 PyObject * _argo0 = 0;
8768 int tempbool1;
8769 int tempbool2;
8770 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
8771
8772 self = self;
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
8774 return NULL;
8775 if (_argo0) {
8776 if (_argo0 == Py_None) { _arg0 = NULL; }
8777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8779 return NULL;
8780 }
8781 }
8782 _arg1 = (bool ) tempbool1;
8783 _arg2 = (bool ) tempbool2;
8784 {
8785 PyThreadState* __tstate = wxPyBeginAllowThreads();
8786 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
8787
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) return NULL;
8790 } Py_INCREF(Py_None);
8791 _resultobj = Py_None;
8792 return _resultobj;
8793 }
8794
8795 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8796 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8797 PyObject * _resultobj;
8798 wxDC * _arg0;
8799 int _arg1;
8800 int _arg2;
8801 PyObject * _argo0 = 0;
8802 char *_kwnames[] = { "self","x","y", NULL };
8803
8804 self = self;
8805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
8806 return NULL;
8807 if (_argo0) {
8808 if (_argo0 == Py_None) { _arg0 = NULL; }
8809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8811 return NULL;
8812 }
8813 }
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) return NULL;
8820 } Py_INCREF(Py_None);
8821 _resultobj = Py_None;
8822 return _resultobj;
8823 }
8824
8825 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8826 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8827 PyObject * _resultobj;
8828 wxDC * _arg0;
8829 PyObject * _argo0 = 0;
8830 char *_kwnames[] = { "self", NULL };
8831
8832 self = self;
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
8834 return NULL;
8835 if (_argo0) {
8836 if (_argo0 == Py_None) { _arg0 = NULL; }
8837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8839 return NULL;
8840 }
8841 }
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 wxDC_ResetBoundingBox(_arg0);
8845
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) return NULL;
8848 } Py_INCREF(Py_None);
8849 _resultobj = Py_None;
8850 return _resultobj;
8851 }
8852
8853 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8854 PyObject * _resultobj;
8855 wxDC * _arg0;
8856 int * _arg1;
8857 int temp;
8858 int * _arg2;
8859 int temp0;
8860 int * _arg3;
8861 int temp1;
8862 int * _arg4;
8863 int temp2;
8864 PyObject * _argo0 = 0;
8865 char *_kwnames[] = { "self", NULL };
8866
8867 self = self;
8868 {
8869 _arg1 = &temp;
8870 }
8871 {
8872 _arg2 = &temp0;
8873 }
8874 {
8875 _arg3 = &temp1;
8876 }
8877 {
8878 _arg4 = &temp2;
8879 }
8880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
8881 return NULL;
8882 if (_argo0) {
8883 if (_argo0 == Py_None) { _arg0 = NULL; }
8884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8886 return NULL;
8887 }
8888 }
8889 {
8890 PyThreadState* __tstate = wxPyBeginAllowThreads();
8891 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8892
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) return NULL;
8895 } Py_INCREF(Py_None);
8896 _resultobj = Py_None;
8897 {
8898 PyObject *o;
8899 o = PyInt_FromLong((long) (*_arg1));
8900 _resultobj = t_output_helper(_resultobj, o);
8901 }
8902 {
8903 PyObject *o;
8904 o = PyInt_FromLong((long) (*_arg2));
8905 _resultobj = t_output_helper(_resultobj, o);
8906 }
8907 {
8908 PyObject *o;
8909 o = PyInt_FromLong((long) (*_arg3));
8910 _resultobj = t_output_helper(_resultobj, o);
8911 }
8912 {
8913 PyObject *o;
8914 o = PyInt_FromLong((long) (*_arg4));
8915 _resultobj = t_output_helper(_resultobj, o);
8916 }
8917 return _resultobj;
8918 }
8919
8920 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
8921 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject * _resultobj;
8923 long _result;
8924 wxDC * _arg0;
8925 PyObject * _argo0 = 0;
8926 char *_kwnames[] = { "self", NULL };
8927
8928 self = self;
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
8930 return NULL;
8931 if (_argo0) {
8932 if (_argo0 == Py_None) { _arg0 = NULL; }
8933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
8935 return NULL;
8936 }
8937 }
8938 {
8939 PyThreadState* __tstate = wxPyBeginAllowThreads();
8940 _result = (long )wxDC_GetHDC(_arg0);
8941
8942 wxPyEndAllowThreads(__tstate);
8943 if (PyErr_Occurred()) return NULL;
8944 } _resultobj = Py_BuildValue("l",_result);
8945 return _resultobj;
8946 }
8947
8948 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8949 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
8950 }
8951 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
8952 PyObject * _resultobj;
8953 PyObject * _result;
8954 wxDC * _arg0;
8955 PyObject * _arg1;
8956 PyObject * _arg2;
8957 PyObject * _arg3;
8958 PyObject * _argo0 = 0;
8959 PyObject * _obj1 = 0;
8960 PyObject * _obj2 = 0;
8961 PyObject * _obj3 = 0;
8962 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
8963
8964 self = self;
8965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8966 return NULL;
8967 if (_argo0) {
8968 if (_argo0 == Py_None) { _arg0 = NULL; }
8969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8971 return NULL;
8972 }
8973 }
8974 {
8975 _arg1 = _obj1;
8976 }
8977 {
8978 _arg2 = _obj2;
8979 }
8980 {
8981 _arg3 = _obj3;
8982 }
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2,_arg3);
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) return NULL;
8989 }{
8990 _resultobj = _result;
8991 }
8992 return _resultobj;
8993 }
8994
8995 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8996 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
8997 }
8998 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
8999 PyObject * _resultobj;
9000 PyObject * _result;
9001 wxDC * _arg0;
9002 PyObject * _arg1;
9003 PyObject * _arg2;
9004 PyObject * _arg3;
9005 PyObject * _argo0 = 0;
9006 PyObject * _obj1 = 0;
9007 PyObject * _obj2 = 0;
9008 PyObject * _obj3 = 0;
9009 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9010
9011 self = self;
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9013 return NULL;
9014 if (_argo0) {
9015 if (_argo0 == Py_None) { _arg0 = NULL; }
9016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9018 return NULL;
9019 }
9020 }
9021 {
9022 _arg1 = _obj1;
9023 }
9024 {
9025 _arg2 = _obj2;
9026 }
9027 {
9028 _arg3 = _obj3;
9029 }
9030 {
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2,_arg3);
9033
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) return NULL;
9036 }{
9037 _resultobj = _result;
9038 }
9039 return _resultobj;
9040 }
9041
9042 static PyObject * wxDC__DrawRectangleList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9043 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
9044 }
9045 static PyObject *_wrap_wxDC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
9046 PyObject * _resultobj;
9047 PyObject * _result;
9048 wxDC * _arg0;
9049 PyObject * _arg1;
9050 PyObject * _arg2;
9051 PyObject * _arg3;
9052 PyObject * _argo0 = 0;
9053 PyObject * _obj1 = 0;
9054 PyObject * _obj2 = 0;
9055 PyObject * _obj3 = 0;
9056 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9057
9058 self = self;
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawRectangleList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9060 return NULL;
9061 if (_argo0) {
9062 if (_argo0 == Py_None) { _arg0 = NULL; }
9063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
9065 return NULL;
9066 }
9067 }
9068 {
9069 _arg1 = _obj1;
9070 }
9071 {
9072 _arg2 = _obj2;
9073 }
9074 {
9075 _arg3 = _obj3;
9076 }
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 _result = (PyObject *)wxDC__DrawRectangleList(_arg0,_arg1,_arg2,_arg3);
9080
9081 wxPyEndAllowThreads(__tstate);
9082 if (PyErr_Occurred()) return NULL;
9083 }{
9084 _resultobj = _result;
9085 }
9086 return _resultobj;
9087 }
9088
9089 static PyObject * wxDC__DrawEllipseList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9090 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
9091 }
9092 static PyObject *_wrap_wxDC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
9093 PyObject * _resultobj;
9094 PyObject * _result;
9095 wxDC * _arg0;
9096 PyObject * _arg1;
9097 PyObject * _arg2;
9098 PyObject * _arg3;
9099 PyObject * _argo0 = 0;
9100 PyObject * _obj1 = 0;
9101 PyObject * _obj2 = 0;
9102 PyObject * _obj3 = 0;
9103 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9104
9105 self = self;
9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawEllipseList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9107 return NULL;
9108 if (_argo0) {
9109 if (_argo0 == Py_None) { _arg0 = NULL; }
9110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
9112 return NULL;
9113 }
9114 }
9115 {
9116 _arg1 = _obj1;
9117 }
9118 {
9119 _arg2 = _obj2;
9120 }
9121 {
9122 _arg3 = _obj3;
9123 }
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 _result = (PyObject *)wxDC__DrawEllipseList(_arg0,_arg1,_arg2,_arg3);
9127
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) return NULL;
9130 }{
9131 _resultobj = _result;
9132 }
9133 return _resultobj;
9134 }
9135
9136 static PyObject * wxDC__DrawPolygonList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
9137 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
9138 }
9139 static PyObject *_wrap_wxDC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
9140 PyObject * _resultobj;
9141 PyObject * _result;
9142 wxDC * _arg0;
9143 PyObject * _arg1;
9144 PyObject * _arg2;
9145 PyObject * _arg3;
9146 PyObject * _argo0 = 0;
9147 PyObject * _obj1 = 0;
9148 PyObject * _obj2 = 0;
9149 PyObject * _obj3 = 0;
9150 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
9151
9152 self = self;
9153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPolygonList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
9154 return NULL;
9155 if (_argo0) {
9156 if (_argo0 == Py_None) { _arg0 = NULL; }
9157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
9159 return NULL;
9160 }
9161 }
9162 {
9163 _arg1 = _obj1;
9164 }
9165 {
9166 _arg2 = _obj2;
9167 }
9168 {
9169 _arg3 = _obj3;
9170 }
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 _result = (PyObject *)wxDC__DrawPolygonList(_arg0,_arg1,_arg2,_arg3);
9174
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) return NULL;
9177 }{
9178 _resultobj = _result;
9179 }
9180 return _resultobj;
9181 }
9182
9183 static PyObject * wxDC__DrawTextList(wxDC *self,PyObject * textList,PyObject * pyPoints,PyObject * foregroundList,PyObject * backgroundList) {
9184 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
9185 }
9186 static PyObject *_wrap_wxDC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject * _resultobj;
9188 PyObject * _result;
9189 wxDC * _arg0;
9190 PyObject * _arg1;
9191 PyObject * _arg2;
9192 PyObject * _arg3;
9193 PyObject * _arg4;
9194 PyObject * _argo0 = 0;
9195 PyObject * _obj1 = 0;
9196 PyObject * _obj2 = 0;
9197 PyObject * _obj3 = 0;
9198 PyObject * _obj4 = 0;
9199 char *_kwnames[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL };
9200
9201 self = self;
9202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxDC__DrawTextList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4))
9203 return NULL;
9204 if (_argo0) {
9205 if (_argo0 == Py_None) { _arg0 = NULL; }
9206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
9208 return NULL;
9209 }
9210 }
9211 {
9212 _arg1 = _obj1;
9213 }
9214 {
9215 _arg2 = _obj2;
9216 }
9217 {
9218 _arg3 = _obj3;
9219 }
9220 {
9221 _arg4 = _obj4;
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 _result = (PyObject *)wxDC__DrawTextList(_arg0,_arg1,_arg2,_arg3,_arg4);
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) return NULL;
9229 }{
9230 _resultobj = _result;
9231 }
9232 return _resultobj;
9233 }
9234
9235 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9236 wxMemoryDC *src;
9237 wxDC *dest;
9238 src = (wxMemoryDC *) ptr;
9239 dest = (wxDC *) src;
9240 return (void *) dest;
9241 }
9242
9243 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9244 wxMemoryDC *src;
9245 wxObject *dest;
9246 src = (wxMemoryDC *) ptr;
9247 dest = (wxObject *) src;
9248 return (void *) dest;
9249 }
9250
9251 #define new_wxMemoryDC() (new wxMemoryDC())
9252 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9253 PyObject * _resultobj;
9254 wxMemoryDC * _result;
9255 char *_kwnames[] = { NULL };
9256 char _ptemp[128];
9257
9258 self = self;
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9260 return NULL;
9261 {
9262 PyThreadState* __tstate = wxPyBeginAllowThreads();
9263 _result = (wxMemoryDC *)new_wxMemoryDC();
9264
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) return NULL;
9267 } if (_result) {
9268 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9269 _resultobj = Py_BuildValue("s",_ptemp);
9270 } else {
9271 Py_INCREF(Py_None);
9272 _resultobj = Py_None;
9273 }
9274 return _resultobj;
9275 }
9276
9277 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9278 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject * _resultobj;
9280 wxMemoryDC * _arg0;
9281 wxBitmap * _arg1;
9282 PyObject * _argo0 = 0;
9283 PyObject * _argo1 = 0;
9284 char *_kwnames[] = { "self","bitmap", NULL };
9285
9286 self = self;
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9288 return NULL;
9289 if (_argo0) {
9290 if (_argo0 == Py_None) { _arg0 = NULL; }
9291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9293 return NULL;
9294 }
9295 }
9296 if (_argo1) {
9297 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9298 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9299 return NULL;
9300 }
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 wxMemoryDC_SelectObject(_arg0,*_arg1);
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) return NULL;
9308 } Py_INCREF(Py_None);
9309 _resultobj = Py_None;
9310 return _resultobj;
9311 }
9312
9313 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
9314 wxBufferedDC *src;
9315 wxMemoryDC *dest;
9316 src = (wxBufferedDC *) ptr;
9317 dest = (wxMemoryDC *) src;
9318 return (void *) dest;
9319 }
9320
9321 static void *SwigwxBufferedDCTowxDC(void *ptr) {
9322 wxBufferedDC *src;
9323 wxDC *dest;
9324 src = (wxBufferedDC *) ptr;
9325 dest = (wxDC *) src;
9326 return (void *) dest;
9327 }
9328
9329 static void *SwigwxBufferedDCTowxObject(void *ptr) {
9330 wxBufferedDC *src;
9331 wxObject *dest;
9332 src = (wxBufferedDC *) ptr;
9333 dest = (wxObject *) src;
9334 return (void *) dest;
9335 }
9336
9337 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9338 static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject * _resultobj;
9340 wxBufferedDC * _result;
9341 wxDC * _arg0;
9342 wxBitmap * _arg1;
9343 PyObject * _argo0 = 0;
9344 PyObject * _argo1 = 0;
9345 char *_kwnames[] = { "dc","buffer", NULL };
9346 char _ptemp[128];
9347
9348 self = self;
9349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
9350 return NULL;
9351 if (_argo0) {
9352 if (_argo0 == Py_None) { _arg0 = NULL; }
9353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
9355 return NULL;
9356 }
9357 }
9358 if (_argo1) {
9359 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9360 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
9361 return NULL;
9362 }
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) return NULL;
9370 } if (_result) {
9371 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9372 _resultobj = Py_BuildValue("s",_ptemp);
9373 } else {
9374 Py_INCREF(Py_None);
9375 _resultobj = Py_None;
9376 }
9377 return _resultobj;
9378 }
9379
9380 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9381 static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9382 PyObject * _resultobj;
9383 wxBufferedDC * _result;
9384 wxDC * _arg0;
9385 wxSize * _arg1;
9386 PyObject * _argo0 = 0;
9387 wxSize temp;
9388 PyObject * _obj1 = 0;
9389 char *_kwnames[] = { "dc","area", NULL };
9390 char _ptemp[128];
9391
9392 self = self;
9393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
9394 return NULL;
9395 if (_argo0) {
9396 if (_argo0 == Py_None) { _arg0 = NULL; }
9397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
9399 return NULL;
9400 }
9401 }
9402 {
9403 _arg1 = &temp;
9404 if (! wxSize_helper(_obj1, &_arg1))
9405 return NULL;
9406 }
9407 {
9408 PyThreadState* __tstate = wxPyBeginAllowThreads();
9409 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
9410
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) return NULL;
9413 } if (_result) {
9414 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9415 _resultobj = Py_BuildValue("s",_ptemp);
9416 } else {
9417 Py_INCREF(Py_None);
9418 _resultobj = Py_None;
9419 }
9420 return _resultobj;
9421 }
9422
9423 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
9424 static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
9425 PyObject * _resultobj;
9426 wxBufferedDC * _arg0;
9427 PyObject * _argo0 = 0;
9428 char *_kwnames[] = { "self", NULL };
9429
9430 self = self;
9431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0))
9432 return NULL;
9433 if (_argo0) {
9434 if (_argo0 == Py_None) { _arg0 = NULL; }
9435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) {
9436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
9437 return NULL;
9438 }
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 wxBufferedDC_UnMask(_arg0);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) return NULL;
9446 } Py_INCREF(Py_None);
9447 _resultobj = Py_None;
9448 return _resultobj;
9449 }
9450
9451 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
9452 wxBufferedPaintDC *src;
9453 wxBufferedDC *dest;
9454 src = (wxBufferedPaintDC *) ptr;
9455 dest = (wxBufferedDC *) src;
9456 return (void *) dest;
9457 }
9458
9459 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
9460 wxBufferedPaintDC *src;
9461 wxMemoryDC *dest;
9462 src = (wxBufferedPaintDC *) ptr;
9463 dest = (wxMemoryDC *) src;
9464 return (void *) dest;
9465 }
9466
9467 static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
9468 wxBufferedPaintDC *src;
9469 wxDC *dest;
9470 src = (wxBufferedPaintDC *) ptr;
9471 dest = (wxDC *) src;
9472 return (void *) dest;
9473 }
9474
9475 static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
9476 wxBufferedPaintDC *src;
9477 wxObject *dest;
9478 src = (wxBufferedPaintDC *) ptr;
9479 dest = (wxObject *) src;
9480 return (void *) dest;
9481 }
9482
9483 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
9484 static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9485 PyObject * _resultobj;
9486 wxBufferedPaintDC * _result;
9487 wxWindow * _arg0;
9488 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
9489 PyObject * _argo0 = 0;
9490 PyObject * _argo1 = 0;
9491 char *_kwnames[] = { "window","buffer", NULL };
9492 char _ptemp[128];
9493
9494 self = self;
9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
9496 return NULL;
9497 if (_argo0) {
9498 if (_argo0 == Py_None) { _arg0 = NULL; }
9499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
9501 return NULL;
9502 }
9503 }
9504 if (_argo1) {
9505 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9506 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
9507 return NULL;
9508 }
9509 }
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
9513
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) return NULL;
9516 } if (_result) {
9517 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
9518 _resultobj = Py_BuildValue("s",_ptemp);
9519 } else {
9520 Py_INCREF(Py_None);
9521 _resultobj = Py_None;
9522 }
9523 return _resultobj;
9524 }
9525
9526 static void *SwigwxScreenDCTowxDC(void *ptr) {
9527 wxScreenDC *src;
9528 wxDC *dest;
9529 src = (wxScreenDC *) ptr;
9530 dest = (wxDC *) src;
9531 return (void *) dest;
9532 }
9533
9534 static void *SwigwxScreenDCTowxObject(void *ptr) {
9535 wxScreenDC *src;
9536 wxObject *dest;
9537 src = (wxScreenDC *) ptr;
9538 dest = (wxObject *) src;
9539 return (void *) dest;
9540 }
9541
9542 #define new_wxScreenDC() (new wxScreenDC())
9543 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9544 PyObject * _resultobj;
9545 wxScreenDC * _result;
9546 char *_kwnames[] = { NULL };
9547 char _ptemp[128];
9548
9549 self = self;
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9551 return NULL;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 _result = (wxScreenDC *)new_wxScreenDC();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) return NULL;
9558 } if (_result) {
9559 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9560 _resultobj = Py_BuildValue("s",_ptemp);
9561 } else {
9562 Py_INCREF(Py_None);
9563 _resultobj = Py_None;
9564 }
9565 return _resultobj;
9566 }
9567
9568 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9569 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9570 PyObject * _resultobj;
9571 bool _result;
9572 wxScreenDC * _arg0;
9573 wxWindow * _arg1;
9574 PyObject * _argo0 = 0;
9575 PyObject * _argo1 = 0;
9576 char *_kwnames[] = { "self","window", NULL };
9577
9578 self = self;
9579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9580 return NULL;
9581 if (_argo0) {
9582 if (_argo0 == Py_None) { _arg0 = NULL; }
9583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9585 return NULL;
9586 }
9587 }
9588 if (_argo1) {
9589 if (_argo1 == Py_None) { _arg1 = NULL; }
9590 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9591 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9592 return NULL;
9593 }
9594 }
9595 {
9596 PyThreadState* __tstate = wxPyBeginAllowThreads();
9597 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9598
9599 wxPyEndAllowThreads(__tstate);
9600 if (PyErr_Occurred()) return NULL;
9601 } _resultobj = Py_BuildValue("i",_result);
9602 return _resultobj;
9603 }
9604
9605 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9606 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9607 PyObject * _resultobj;
9608 bool _result;
9609 wxScreenDC * _arg0;
9610 wxRect * _arg1 = (wxRect *) NULL;
9611 PyObject * _argo0 = 0;
9612 wxRect temp;
9613 PyObject * _obj1 = 0;
9614 char *_kwnames[] = { "self","rect", NULL };
9615
9616 self = self;
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9618 return NULL;
9619 if (_argo0) {
9620 if (_argo0 == Py_None) { _arg0 = NULL; }
9621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9623 return NULL;
9624 }
9625 }
9626 if (_obj1)
9627 {
9628 _arg1 = &temp;
9629 if (! wxRect_helper(_obj1, &_arg1))
9630 return NULL;
9631 }
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) return NULL;
9638 } _resultobj = Py_BuildValue("i",_result);
9639 return _resultobj;
9640 }
9641
9642 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9643 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject * _resultobj;
9645 bool _result;
9646 wxScreenDC * _arg0;
9647 PyObject * _argo0 = 0;
9648 char *_kwnames[] = { "self", NULL };
9649
9650 self = self;
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9652 return NULL;
9653 if (_argo0) {
9654 if (_argo0 == Py_None) { _arg0 = NULL; }
9655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9657 return NULL;
9658 }
9659 }
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) return NULL;
9666 } _resultobj = Py_BuildValue("i",_result);
9667 return _resultobj;
9668 }
9669
9670 static void *SwigwxClientDCTowxDC(void *ptr) {
9671 wxClientDC *src;
9672 wxDC *dest;
9673 src = (wxClientDC *) ptr;
9674 dest = (wxDC *) src;
9675 return (void *) dest;
9676 }
9677
9678 static void *SwigwxClientDCTowxObject(void *ptr) {
9679 wxClientDC *src;
9680 wxObject *dest;
9681 src = (wxClientDC *) ptr;
9682 dest = (wxObject *) src;
9683 return (void *) dest;
9684 }
9685
9686 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9687 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject * _resultobj;
9689 wxClientDC * _result;
9690 wxWindow * _arg0;
9691 PyObject * _argo0 = 0;
9692 char *_kwnames[] = { "win", NULL };
9693 char _ptemp[128];
9694
9695 self = self;
9696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
9697 return NULL;
9698 if (_argo0) {
9699 if (_argo0 == Py_None) { _arg0 = NULL; }
9700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9702 return NULL;
9703 }
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 _result = (wxClientDC *)new_wxClientDC(_arg0);
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) return NULL;
9711 } if (_result) {
9712 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9713 _resultobj = Py_BuildValue("s",_ptemp);
9714 } else {
9715 Py_INCREF(Py_None);
9716 _resultobj = Py_None;
9717 }
9718 return _resultobj;
9719 }
9720
9721 static void *SwigwxPaintDCTowxDC(void *ptr) {
9722 wxPaintDC *src;
9723 wxDC *dest;
9724 src = (wxPaintDC *) ptr;
9725 dest = (wxDC *) src;
9726 return (void *) dest;
9727 }
9728
9729 static void *SwigwxPaintDCTowxObject(void *ptr) {
9730 wxPaintDC *src;
9731 wxObject *dest;
9732 src = (wxPaintDC *) ptr;
9733 dest = (wxObject *) src;
9734 return (void *) dest;
9735 }
9736
9737 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9738 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject * _resultobj;
9740 wxPaintDC * _result;
9741 wxWindow * _arg0;
9742 PyObject * _argo0 = 0;
9743 char *_kwnames[] = { "win", NULL };
9744 char _ptemp[128];
9745
9746 self = self;
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
9748 return NULL;
9749 if (_argo0) {
9750 if (_argo0 == Py_None) { _arg0 = NULL; }
9751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9753 return NULL;
9754 }
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) return NULL;
9762 } if (_result) {
9763 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9764 _resultobj = Py_BuildValue("s",_ptemp);
9765 } else {
9766 Py_INCREF(Py_None);
9767 _resultobj = Py_None;
9768 }
9769 return _resultobj;
9770 }
9771
9772 static void *SwigwxWindowDCTowxDC(void *ptr) {
9773 wxWindowDC *src;
9774 wxDC *dest;
9775 src = (wxWindowDC *) ptr;
9776 dest = (wxDC *) src;
9777 return (void *) dest;
9778 }
9779
9780 static void *SwigwxWindowDCTowxObject(void *ptr) {
9781 wxWindowDC *src;
9782 wxObject *dest;
9783 src = (wxWindowDC *) ptr;
9784 dest = (wxObject *) src;
9785 return (void *) dest;
9786 }
9787
9788 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9789 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9790 PyObject * _resultobj;
9791 wxWindowDC * _result;
9792 wxWindow * _arg0;
9793 PyObject * _argo0 = 0;
9794 char *_kwnames[] = { "win", NULL };
9795 char _ptemp[128];
9796
9797 self = self;
9798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
9799 return NULL;
9800 if (_argo0) {
9801 if (_argo0 == Py_None) { _arg0 = NULL; }
9802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9804 return NULL;
9805 }
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) return NULL;
9813 } if (_result) {
9814 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9815 _resultobj = Py_BuildValue("s",_ptemp);
9816 } else {
9817 Py_INCREF(Py_None);
9818 _resultobj = Py_None;
9819 }
9820 return _resultobj;
9821 }
9822
9823 static void *SwigwxMirrorDCTowxDC(void *ptr) {
9824 wxMirrorDC *src;
9825 wxDC *dest;
9826 src = (wxMirrorDC *) ptr;
9827 dest = (wxDC *) src;
9828 return (void *) dest;
9829 }
9830
9831 static void *SwigwxMirrorDCTowxObject(void *ptr) {
9832 wxMirrorDC *src;
9833 wxObject *dest;
9834 src = (wxMirrorDC *) ptr;
9835 dest = (wxObject *) src;
9836 return (void *) dest;
9837 }
9838
9839 #define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1))
9840 static PyObject *_wrap_new_wxMirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9841 PyObject * _resultobj;
9842 wxMirrorDC * _result;
9843 wxDC * _arg0;
9844 bool _arg1;
9845 PyObject * _argo0 = 0;
9846 int tempbool1;
9847 char *_kwnames[] = { "dc","mirror", NULL };
9848 char _ptemp[128];
9849
9850 self = self;
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxMirrorDC",_kwnames,&_argo0,&tempbool1))
9852 return NULL;
9853 if (_argo0) {
9854 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p.");
9856 return NULL;
9857 }
9858 }
9859 _arg1 = (bool ) tempbool1;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 _result = (wxMirrorDC *)new_wxMirrorDC(*_arg0,_arg1);
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) return NULL;
9866 } if (_result) {
9867 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMirrorDC_p");
9868 _resultobj = Py_BuildValue("s",_ptemp);
9869 } else {
9870 Py_INCREF(Py_None);
9871 _resultobj = Py_None;
9872 }
9873 return _resultobj;
9874 }
9875
9876 static void *SwigwxMetaFileTowxObject(void *ptr) {
9877 wxMetaFile *src;
9878 wxObject *dest;
9879 src = (wxMetaFile *) ptr;
9880 dest = (wxObject *) src;
9881 return (void *) dest;
9882 }
9883
9884 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
9885 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject * _resultobj;
9887 wxMetaFile * _result;
9888 wxString * _arg0 = (wxString *) &wxPyEmptyString;
9889 PyObject * _obj0 = 0;
9890 char *_kwnames[] = { "filename", NULL };
9891 char _ptemp[128];
9892
9893 self = self;
9894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
9895 return NULL;
9896 if (_obj0)
9897 {
9898 _arg0 = wxString_in_helper(_obj0);
9899 if (_arg0 == NULL)
9900 return NULL;
9901 }
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
9905
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) return NULL;
9908 } if (_result) {
9909 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
9910 _resultobj = Py_BuildValue("s",_ptemp);
9911 } else {
9912 Py_INCREF(Py_None);
9913 _resultobj = Py_None;
9914 }
9915 {
9916 if (_obj0)
9917 delete _arg0;
9918 }
9919 return _resultobj;
9920 }
9921
9922 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
9923 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9924 PyObject * _resultobj;
9925 wxMetaFile * _arg0;
9926 PyObject * _argo0 = 0;
9927 char *_kwnames[] = { "self", NULL };
9928
9929 self = self;
9930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
9931 return NULL;
9932 if (_argo0) {
9933 if (_argo0 == Py_None) { _arg0 = NULL; }
9934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
9936 return NULL;
9937 }
9938 }
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 delete_wxMetaFile(_arg0);
9942
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) return NULL;
9945 } Py_INCREF(Py_None);
9946 _resultobj = Py_None;
9947 return _resultobj;
9948 }
9949
9950 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
9951 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9952 PyObject * _resultobj;
9953 bool _result;
9954 wxMetaFile * _arg0;
9955 PyObject * _argo0 = 0;
9956 char *_kwnames[] = { "self", NULL };
9957
9958 self = self;
9959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
9960 return NULL;
9961 if (_argo0) {
9962 if (_argo0 == Py_None) { _arg0 = NULL; }
9963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
9965 return NULL;
9966 }
9967 }
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 _result = (bool )wxMetaFile_Ok(_arg0);
9971
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) return NULL;
9974 } _resultobj = Py_BuildValue("i",_result);
9975 return _resultobj;
9976 }
9977
9978 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
9979 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
9980 PyObject * _resultobj;
9981 bool _result;
9982 wxMetaFile * _arg0;
9983 int _arg1 = (int ) 0;
9984 int _arg2 = (int ) 0;
9985 PyObject * _argo0 = 0;
9986 char *_kwnames[] = { "self","width","height", NULL };
9987
9988 self = self;
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
9990 return NULL;
9991 if (_argo0) {
9992 if (_argo0 == Py_None) { _arg0 = NULL; }
9993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
9994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
9995 return NULL;
9996 }
9997 }
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) return NULL;
10004 } _resultobj = Py_BuildValue("i",_result);
10005 return _resultobj;
10006 }
10007
10008 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10009 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10010 PyObject * _resultobj;
10011 wxSize * _result;
10012 wxMetaFile * _arg0;
10013 PyObject * _argo0 = 0;
10014 char *_kwnames[] = { "self", NULL };
10015 char _ptemp[128];
10016
10017 self = self;
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10019 return NULL;
10020 if (_argo0) {
10021 if (_argo0 == Py_None) { _arg0 = NULL; }
10022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10024 return NULL;
10025 }
10026 }
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10030
10031 wxPyEndAllowThreads(__tstate);
10032 if (PyErr_Occurred()) return NULL;
10033 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10034 _resultobj = Py_BuildValue("s",_ptemp);
10035 return _resultobj;
10036 }
10037
10038 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10039 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10040 PyObject * _resultobj;
10041 int _result;
10042 wxMetaFile * _arg0;
10043 PyObject * _argo0 = 0;
10044 char *_kwnames[] = { "self", NULL };
10045
10046 self = self;
10047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10048 return NULL;
10049 if (_argo0) {
10050 if (_argo0 == Py_None) { _arg0 = NULL; }
10051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10053 return NULL;
10054 }
10055 }
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 _result = (int )wxMetaFile_GetWidth(_arg0);
10059
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) return NULL;
10062 } _resultobj = Py_BuildValue("i",_result);
10063 return _resultobj;
10064 }
10065
10066 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10067 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10068 PyObject * _resultobj;
10069 int _result;
10070 wxMetaFile * _arg0;
10071 PyObject * _argo0 = 0;
10072 char *_kwnames[] = { "self", NULL };
10073
10074 self = self;
10075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
10076 return NULL;
10077 if (_argo0) {
10078 if (_argo0 == Py_None) { _arg0 = NULL; }
10079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10081 return NULL;
10082 }
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 _result = (int )wxMetaFile_GetHeight(_arg0);
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) return NULL;
10090 } _resultobj = Py_BuildValue("i",_result);
10091 return _resultobj;
10092 }
10093
10094 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10095 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
10096 PyObject * _resultobj;
10097 wxString * _result;
10098 wxMetaFile * _arg0;
10099 PyObject * _argo0 = 0;
10100 char *_kwnames[] = { "self", NULL };
10101
10102 self = self;
10103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
10104 return NULL;
10105 if (_argo0) {
10106 if (_argo0 == Py_None) { _arg0 = NULL; }
10107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10109 return NULL;
10110 }
10111 }
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
10115 _result = (wxString *) &_result_ref;
10116
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) return NULL;
10119 }{
10120 #if wxUSE_UNICODE
10121 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10122 #else
10123 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10124 #endif
10125 }
10126 return _resultobj;
10127 }
10128
10129 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
10130 wxMetaFileDC *src;
10131 wxDC *dest;
10132 src = (wxMetaFileDC *) ptr;
10133 dest = (wxDC *) src;
10134 return (void *) dest;
10135 }
10136
10137 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
10138 wxMetaFileDC *src;
10139 wxObject *dest;
10140 src = (wxMetaFileDC *) ptr;
10141 dest = (wxObject *) src;
10142 return (void *) dest;
10143 }
10144
10145 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10146 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10147 PyObject * _resultobj;
10148 wxMetaFileDC * _result;
10149 wxString * _arg0 = (wxString *) &wxPyEmptyString;
10150 int _arg1 = (int ) 0;
10151 int _arg2 = (int ) 0;
10152 wxString * _arg3 = (wxString *) &wxPyEmptyString;
10153 PyObject * _obj0 = 0;
10154 PyObject * _obj3 = 0;
10155 char *_kwnames[] = { "filename","width","height","description", NULL };
10156 char _ptemp[128];
10157
10158 self = self;
10159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
10160 return NULL;
10161 if (_obj0)
10162 {
10163 _arg0 = wxString_in_helper(_obj0);
10164 if (_arg0 == NULL)
10165 return NULL;
10166 }
10167 if (_obj3)
10168 {
10169 _arg3 = wxString_in_helper(_obj3);
10170 if (_arg3 == NULL)
10171 return NULL;
10172 }
10173 {
10174 PyThreadState* __tstate = wxPyBeginAllowThreads();
10175 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
10176
10177 wxPyEndAllowThreads(__tstate);
10178 if (PyErr_Occurred()) return NULL;
10179 } if (_result) {
10180 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
10181 _resultobj = Py_BuildValue("s",_ptemp);
10182 } else {
10183 Py_INCREF(Py_None);
10184 _resultobj = Py_None;
10185 }
10186 {
10187 if (_obj0)
10188 delete _arg0;
10189 }
10190 {
10191 if (_obj3)
10192 delete _arg3;
10193 }
10194 return _resultobj;
10195 }
10196
10197 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10198 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
10199 PyObject * _resultobj;
10200 wxMetaFile * _result;
10201 wxMetaFileDC * _arg0;
10202 PyObject * _argo0 = 0;
10203 char *_kwnames[] = { "self", NULL };
10204 char _ptemp[128];
10205
10206 self = self;
10207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
10208 return NULL;
10209 if (_argo0) {
10210 if (_argo0 == Py_None) { _arg0 = NULL; }
10211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
10212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10213 return NULL;
10214 }
10215 }
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) return NULL;
10222 } if (_result) {
10223 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10224 _resultobj = Py_BuildValue("s",_ptemp);
10225 } else {
10226 Py_INCREF(Py_None);
10227 _resultobj = Py_None;
10228 }
10229 return _resultobj;
10230 }
10231
10232 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10233 wxPalette *src;
10234 wxGDIObject *dest;
10235 src = (wxPalette *) ptr;
10236 dest = (wxGDIObject *) src;
10237 return (void *) dest;
10238 }
10239
10240 static void *SwigwxPaletteTowxObject(void *ptr) {
10241 wxPalette *src;
10242 wxObject *dest;
10243 src = (wxPalette *) ptr;
10244 dest = (wxObject *) src;
10245 return (void *) dest;
10246 }
10247
10248 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10249 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10250 PyObject * _resultobj;
10251 wxPalette * _result;
10252 int _arg0;
10253 byte * _arg1;
10254 byte * _arg2;
10255 byte * _arg3;
10256 PyObject * _obj1 = 0;
10257 PyObject * _obj2 = 0;
10258 PyObject * _obj3 = 0;
10259 char *_kwnames[] = { "choices","choices","choices", NULL };
10260 char _ptemp[128];
10261
10262 self = self;
10263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10264 return NULL;
10265 {
10266 _arg1 = byte_LIST_helper(_obj1);
10267 if (_arg1 == NULL) {
10268 return NULL;
10269 }
10270 }
10271 {
10272 _arg2 = byte_LIST_helper(_obj2);
10273 if (_arg2 == NULL) {
10274 return NULL;
10275 }
10276 }
10277 if (_obj3)
10278 {
10279 _arg3 = byte_LIST_helper(_obj3);
10280 if (_arg3 == NULL) {
10281 return NULL;
10282 }
10283 }
10284 {
10285 if (_obj1) {
10286 _arg0 = PyList_Size(_obj1);
10287 }
10288 else {
10289 _arg0 = 0;
10290 }
10291 }
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) return NULL;
10298 } if (_result) {
10299 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10300 _resultobj = Py_BuildValue("s",_ptemp);
10301 } else {
10302 Py_INCREF(Py_None);
10303 _resultobj = Py_None;
10304 }
10305 {
10306 delete [] _arg1;
10307 }
10308 {
10309 delete [] _arg2;
10310 }
10311 {
10312 delete [] _arg3;
10313 }
10314 return _resultobj;
10315 }
10316
10317 #define delete_wxPalette(_swigobj) (delete _swigobj)
10318 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10319 PyObject * _resultobj;
10320 wxPalette * _arg0;
10321 PyObject * _argo0 = 0;
10322 char *_kwnames[] = { "self", NULL };
10323
10324 self = self;
10325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10326 return NULL;
10327 if (_argo0) {
10328 if (_argo0 == Py_None) { _arg0 = NULL; }
10329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10331 return NULL;
10332 }
10333 }
10334 {
10335 PyThreadState* __tstate = wxPyBeginAllowThreads();
10336 delete_wxPalette(_arg0);
10337
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) return NULL;
10340 } Py_INCREF(Py_None);
10341 _resultobj = Py_None;
10342 return _resultobj;
10343 }
10344
10345 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10346 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10347 PyObject * _resultobj;
10348 int _result;
10349 wxPalette * _arg0;
10350 byte _arg1;
10351 byte _arg2;
10352 byte _arg3;
10353 PyObject * _argo0 = 0;
10354 char *_kwnames[] = { "self","red","green","blue", NULL };
10355
10356 self = self;
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10358 return NULL;
10359 if (_argo0) {
10360 if (_argo0 == Py_None) { _arg0 = NULL; }
10361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10363 return NULL;
10364 }
10365 }
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10369
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) return NULL;
10372 } _resultobj = Py_BuildValue("i",_result);
10373 return _resultobj;
10374 }
10375
10376 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10377 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10378 PyObject * _resultobj;
10379 bool _result;
10380 wxPalette * _arg0;
10381 int _arg1;
10382 byte * _arg2;
10383 int temp;
10384 byte * _arg3;
10385 int temp0;
10386 byte * _arg4;
10387 int temp1;
10388 PyObject * _argo0 = 0;
10389 char *_kwnames[] = { "self","pixel", NULL };
10390
10391 self = self;
10392 {
10393 _arg2 = (byte*)&temp;
10394 }
10395 {
10396 _arg3 = (byte*)&temp0;
10397 }
10398 {
10399 _arg4 = (byte*)&temp1;
10400 }
10401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
10402 return NULL;
10403 if (_argo0) {
10404 if (_argo0 == Py_None) { _arg0 = NULL; }
10405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10407 return NULL;
10408 }
10409 }
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10413
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) return NULL;
10416 } _resultobj = Py_BuildValue("i",_result);
10417 {
10418 PyObject *o;
10419 o = PyInt_FromLong((long) (*_arg2));
10420 _resultobj = t_output_helper(_resultobj, o);
10421 }
10422 {
10423 PyObject *o;
10424 o = PyInt_FromLong((long) (*_arg3));
10425 _resultobj = t_output_helper(_resultobj, o);
10426 }
10427 {
10428 PyObject *o;
10429 o = PyInt_FromLong((long) (*_arg4));
10430 _resultobj = t_output_helper(_resultobj, o);
10431 }
10432 return _resultobj;
10433 }
10434
10435 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10436 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10437 PyObject * _resultobj;
10438 bool _result;
10439 wxPalette * _arg0;
10440 PyObject * _argo0 = 0;
10441 char *_kwnames[] = { "self", NULL };
10442
10443 self = self;
10444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10445 return NULL;
10446 if (_argo0) {
10447 if (_argo0 == Py_None) { _arg0 = NULL; }
10448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10450 return NULL;
10451 }
10452 }
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 _result = (bool )wxPalette_Ok(_arg0);
10456
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) return NULL;
10459 } _resultobj = Py_BuildValue("i",_result);
10460 return _resultobj;
10461 }
10462
10463 static void *SwigwxImageListTowxObject(void *ptr) {
10464 wxImageList *src;
10465 wxObject *dest;
10466 src = (wxImageList *) ptr;
10467 dest = (wxObject *) src;
10468 return (void *) dest;
10469 }
10470
10471 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10472 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10473 PyObject * _resultobj;
10474 wxImageList * _result;
10475 int _arg0;
10476 int _arg1;
10477 int _arg2 = (int ) TRUE;
10478 int _arg3 = (int ) 1;
10479 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10480 char _ptemp[128];
10481
10482 self = self;
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10484 return NULL;
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) return NULL;
10491 } if (_result) {
10492 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10493 _resultobj = Py_BuildValue("s",_ptemp);
10494 } else {
10495 Py_INCREF(Py_None);
10496 _resultobj = Py_None;
10497 }
10498 return _resultobj;
10499 }
10500
10501 #define delete_wxImageList(_swigobj) (delete _swigobj)
10502 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10503 PyObject * _resultobj;
10504 wxImageList * _arg0;
10505 PyObject * _argo0 = 0;
10506 char *_kwnames[] = { "self", NULL };
10507
10508 self = self;
10509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10510 return NULL;
10511 if (_argo0) {
10512 if (_argo0 == Py_None) { _arg0 = NULL; }
10513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10515 return NULL;
10516 }
10517 }
10518 {
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
10520 delete_wxImageList(_arg0);
10521
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) return NULL;
10524 } Py_INCREF(Py_None);
10525 _resultobj = Py_None;
10526 return _resultobj;
10527 }
10528
10529 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10530 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10531 PyObject * _resultobj;
10532 int _result;
10533 wxImageList * _arg0;
10534 wxBitmap * _arg1;
10535 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10536 PyObject * _argo0 = 0;
10537 PyObject * _argo1 = 0;
10538 PyObject * _argo2 = 0;
10539 char *_kwnames[] = { "self","bitmap","mask", NULL };
10540
10541 self = self;
10542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10543 return NULL;
10544 if (_argo0) {
10545 if (_argo0 == Py_None) { _arg0 = NULL; }
10546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10548 return NULL;
10549 }
10550 }
10551 if (_argo1) {
10552 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10553 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10554 return NULL;
10555 }
10556 }
10557 if (_argo2) {
10558 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10559 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10560 return NULL;
10561 }
10562 }
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10566
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) return NULL;
10569 } _resultobj = Py_BuildValue("i",_result);
10570 return _resultobj;
10571 }
10572
10573 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10574 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10575 PyObject * _resultobj;
10576 int _result;
10577 wxImageList * _arg0;
10578 wxBitmap * _arg1;
10579 wxColour * _arg2;
10580 PyObject * _argo0 = 0;
10581 PyObject * _argo1 = 0;
10582 wxColour temp;
10583 PyObject * _obj2 = 0;
10584 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10585
10586 self = self;
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10588 return NULL;
10589 if (_argo0) {
10590 if (_argo0 == Py_None) { _arg0 = NULL; }
10591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10593 return NULL;
10594 }
10595 }
10596 if (_argo1) {
10597 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10598 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10599 return NULL;
10600 }
10601 }
10602 {
10603 _arg2 = &temp;
10604 if (! wxColour_helper(_obj2, &_arg2))
10605 return NULL;
10606 }
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10610
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) return NULL;
10613 } _resultobj = Py_BuildValue("i",_result);
10614 return _resultobj;
10615 }
10616
10617 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10618 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10619 PyObject * _resultobj;
10620 int _result;
10621 wxImageList * _arg0;
10622 wxIcon * _arg1;
10623 PyObject * _argo0 = 0;
10624 PyObject * _argo1 = 0;
10625 char *_kwnames[] = { "self","icon", NULL };
10626
10627 self = self;
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10629 return NULL;
10630 if (_argo0) {
10631 if (_argo0 == Py_None) { _arg0 = NULL; }
10632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10634 return NULL;
10635 }
10636 }
10637 if (_argo1) {
10638 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10639 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10640 return NULL;
10641 }
10642 }
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10646
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) return NULL;
10649 } _resultobj = Py_BuildValue("i",_result);
10650 return _resultobj;
10651 }
10652
10653 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10654 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10655 PyObject * _resultobj;
10656 bool _result;
10657 wxImageList * _arg0;
10658 int _arg1;
10659 wxBitmap * _arg2;
10660 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
10661 PyObject * _argo0 = 0;
10662 PyObject * _argo2 = 0;
10663 PyObject * _argo3 = 0;
10664 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
10665
10666 self = self;
10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
10668 return NULL;
10669 if (_argo0) {
10670 if (_argo0 == Py_None) { _arg0 = NULL; }
10671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10673 return NULL;
10674 }
10675 }
10676 if (_argo2) {
10677 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10678 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10679 return NULL;
10680 }
10681 }
10682 if (_argo3) {
10683 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
10684 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10685 return NULL;
10686 }
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
10691
10692 wxPyEndAllowThreads(__tstate);
10693 if (PyErr_Occurred()) return NULL;
10694 } _resultobj = Py_BuildValue("i",_result);
10695 return _resultobj;
10696 }
10697
10698 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10699 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject * _resultobj;
10701 bool _result;
10702 wxImageList * _arg0;
10703 int _arg1;
10704 wxDC * _arg2;
10705 int _arg3;
10706 int _arg4;
10707 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10708 bool _arg6 = (bool ) FALSE;
10709 PyObject * _argo0 = 0;
10710 PyObject * _argo2 = 0;
10711 int tempbool6 = (int) FALSE;
10712 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
10713
10714 self = self;
10715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
10716 return NULL;
10717 if (_argo0) {
10718 if (_argo0 == Py_None) { _arg0 = NULL; }
10719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10721 return NULL;
10722 }
10723 }
10724 if (_argo2) {
10725 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10726 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10727 return NULL;
10728 }
10729 }
10730 _arg6 = (bool ) tempbool6;
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) return NULL;
10737 } _resultobj = Py_BuildValue("i",_result);
10738 return _resultobj;
10739 }
10740
10741 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10742 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10743 PyObject * _resultobj;
10744 int _result;
10745 wxImageList * _arg0;
10746 PyObject * _argo0 = 0;
10747 char *_kwnames[] = { "self", NULL };
10748
10749 self = self;
10750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
10751 return NULL;
10752 if (_argo0) {
10753 if (_argo0 == Py_None) { _arg0 = NULL; }
10754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10756 return NULL;
10757 }
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 _result = (int )wxImageList_GetImageCount(_arg0);
10762
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) return NULL;
10765 } _resultobj = Py_BuildValue("i",_result);
10766 return _resultobj;
10767 }
10768
10769 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10770 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10771 PyObject * _resultobj;
10772 bool _result;
10773 wxImageList * _arg0;
10774 int _arg1;
10775 PyObject * _argo0 = 0;
10776 char *_kwnames[] = { "self","index", NULL };
10777
10778 self = self;
10779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
10780 return NULL;
10781 if (_argo0) {
10782 if (_argo0 == Py_None) { _arg0 = NULL; }
10783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10785 return NULL;
10786 }
10787 }
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 _result = (bool )wxImageList_Remove(_arg0,_arg1);
10791
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) return NULL;
10794 } _resultobj = Py_BuildValue("i",_result);
10795 return _resultobj;
10796 }
10797
10798 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10799 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
10800 PyObject * _resultobj;
10801 bool _result;
10802 wxImageList * _arg0;
10803 PyObject * _argo0 = 0;
10804 char *_kwnames[] = { "self", NULL };
10805
10806 self = self;
10807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
10808 return NULL;
10809 if (_argo0) {
10810 if (_argo0 == Py_None) { _arg0 = NULL; }
10811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10813 return NULL;
10814 }
10815 }
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 _result = (bool )wxImageList_RemoveAll(_arg0);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) return NULL;
10822 } _resultobj = Py_BuildValue("i",_result);
10823 return _resultobj;
10824 }
10825
10826 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10827 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10828 PyObject * _resultobj;
10829 wxImageList * _arg0;
10830 int _arg1;
10831 int * _arg2;
10832 int temp;
10833 int * _arg3;
10834 int temp0;
10835 PyObject * _argo0 = 0;
10836 char *_kwnames[] = { "self","index", NULL };
10837
10838 self = self;
10839 {
10840 _arg2 = &temp;
10841 }
10842 {
10843 _arg3 = &temp0;
10844 }
10845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10846 return NULL;
10847 if (_argo0) {
10848 if (_argo0 == Py_None) { _arg0 = NULL; }
10849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10851 return NULL;
10852 }
10853 }
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) return NULL;
10860 } Py_INCREF(Py_None);
10861 _resultobj = Py_None;
10862 {
10863 PyObject *o;
10864 o = PyInt_FromLong((long) (*_arg2));
10865 _resultobj = t_output_helper(_resultobj, o);
10866 }
10867 {
10868 PyObject *o;
10869 o = PyInt_FromLong((long) (*_arg3));
10870 _resultobj = t_output_helper(_resultobj, o);
10871 }
10872 return _resultobj;
10873 }
10874
10875 static void *SwigwxRegionTowxGDIObject(void *ptr) {
10876 wxRegion *src;
10877 wxGDIObject *dest;
10878 src = (wxRegion *) ptr;
10879 dest = (wxGDIObject *) src;
10880 return (void *) dest;
10881 }
10882
10883 static void *SwigwxRegionTowxObject(void *ptr) {
10884 wxRegion *src;
10885 wxObject *dest;
10886 src = (wxRegion *) ptr;
10887 dest = (wxObject *) src;
10888 return (void *) dest;
10889 }
10890
10891 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10892 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10893 PyObject * _resultobj;
10894 wxRegion * _result;
10895 wxCoord _arg0 = (wxCoord ) 0;
10896 wxCoord _arg1 = (wxCoord ) 0;
10897 wxCoord _arg2 = (wxCoord ) 0;
10898 wxCoord _arg3 = (wxCoord ) 0;
10899 char *_kwnames[] = { "x","y","width","height", NULL };
10900 char _ptemp[128];
10901
10902 self = self;
10903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10904 return NULL;
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) return NULL;
10911 } if (_result) {
10912 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10913 _resultobj = Py_BuildValue("s",_ptemp);
10914 } else {
10915 Py_INCREF(Py_None);
10916 _resultobj = Py_None;
10917 }
10918 return _resultobj;
10919 }
10920
10921 #define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10922 static PyObject *_wrap_new_wxRegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
10923 PyObject * _resultobj;
10924 wxRegion * _result;
10925 int _arg0;
10926 wxPoint * _arg1;
10927 int _arg2 = (int ) wxWINDING_RULE;
10928 int NPOINTS;
10929 PyObject * _obj1 = 0;
10930 char *_kwnames[] = { "points","fillStyle", NULL };
10931 char _ptemp[128];
10932
10933 self = self;
10934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxRegionFromPoints",_kwnames,&_obj1,&_arg2))
10935 return NULL;
10936 if (_obj1)
10937 {
10938 _arg1 = wxPoint_LIST_helper(_obj1, &NPOINTS);
10939 if (_arg1 == NULL) {
10940 return NULL;
10941 }
10942 }
10943 {
10944 _arg0 = NPOINTS;
10945 }
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 _result = (wxRegion *)new_wxRegionFromPoints(_arg0,_arg1,_arg2);
10949
10950 wxPyEndAllowThreads(__tstate);
10951 if (PyErr_Occurred()) return NULL;
10952 } if (_result) {
10953 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10954 _resultobj = Py_BuildValue("s",_ptemp);
10955 } else {
10956 Py_INCREF(Py_None);
10957 _resultobj = Py_None;
10958 }
10959 {
10960 delete [] _arg1;
10961 }
10962 return _resultobj;
10963 }
10964
10965 #define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10966 static PyObject *_wrap_new_wxRegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10967 PyObject * _resultobj;
10968 wxRegion * _result;
10969 wxBitmap * _arg0;
10970 wxColour * _arg1 = (wxColour *) &wxNullColour;
10971 int _arg2 = (int ) 0;
10972 PyObject * _argo0 = 0;
10973 wxColour temp;
10974 PyObject * _obj1 = 0;
10975 char *_kwnames[] = { "bmp","transColour","tolerance", NULL };
10976 char _ptemp[128];
10977
10978 self = self;
10979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:new_wxRegionFromBitmap",_kwnames,&_argo0,&_obj1,&_arg2))
10980 return NULL;
10981 if (_argo0) {
10982 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
10983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
10984 return NULL;
10985 }
10986 }
10987 if (_obj1)
10988 {
10989 _arg1 = &temp;
10990 if (! wxColour_helper(_obj1, &_arg1))
10991 return NULL;
10992 }
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 _result = (wxRegion *)new_wxRegionFromBitmap(*_arg0,*_arg1,_arg2);
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) return NULL;
10999 } if (_result) {
11000 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11001 _resultobj = Py_BuildValue("s",_ptemp);
11002 } else {
11003 Py_INCREF(Py_None);
11004 _resultobj = Py_None;
11005 }
11006 return _resultobj;
11007 }
11008
11009 #define delete_wxRegion(_swigobj) (delete _swigobj)
11010 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject * _resultobj;
11012 wxRegion * _arg0;
11013 PyObject * _argo0 = 0;
11014 char *_kwnames[] = { "self", NULL };
11015
11016 self = self;
11017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11018 return NULL;
11019 if (_argo0) {
11020 if (_argo0 == Py_None) { _arg0 = NULL; }
11021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11023 return NULL;
11024 }
11025 }
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 delete_wxRegion(_arg0);
11029
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) return NULL;
11032 } Py_INCREF(Py_None);
11033 _resultobj = Py_None;
11034 return _resultobj;
11035 }
11036
11037 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11038 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject * _resultobj;
11040 wxRegion * _arg0;
11041 PyObject * _argo0 = 0;
11042 char *_kwnames[] = { "self", NULL };
11043
11044 self = self;
11045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11046 return NULL;
11047 if (_argo0) {
11048 if (_argo0 == Py_None) { _arg0 = NULL; }
11049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11051 return NULL;
11052 }
11053 }
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 wxRegion_Clear(_arg0);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) return NULL;
11060 } Py_INCREF(Py_None);
11061 _resultobj = Py_None;
11062 return _resultobj;
11063 }
11064
11065 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
11066 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject * _resultobj;
11068 bool _result;
11069 wxRegion * _arg0;
11070 wxCoord _arg1;
11071 wxCoord _arg2;
11072 PyObject * _argo0 = 0;
11073 char *_kwnames[] = { "self","x","y", NULL };
11074
11075 self = self;
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
11077 return NULL;
11078 if (_argo0) {
11079 if (_argo0 == Py_None) { _arg0 = NULL; }
11080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
11082 return NULL;
11083 }
11084 }
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) return NULL;
11091 } _resultobj = Py_BuildValue("i",_result);
11092 return _resultobj;
11093 }
11094
11095 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11096 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11097 PyObject * _resultobj;
11098 wxRegionContain _result;
11099 wxRegion * _arg0;
11100 wxCoord _arg1;
11101 wxCoord _arg2;
11102 PyObject * _argo0 = 0;
11103 char *_kwnames[] = { "self","x","y", NULL };
11104
11105 self = self;
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11107 return NULL;
11108 if (_argo0) {
11109 if (_argo0 == Py_None) { _arg0 = NULL; }
11110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11112 return NULL;
11113 }
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) return NULL;
11121 } _resultobj = Py_BuildValue("i",_result);
11122 return _resultobj;
11123 }
11124
11125 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11126 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11127 PyObject * _resultobj;
11128 wxRegionContain _result;
11129 wxRegion * _arg0;
11130 wxPoint * _arg1;
11131 PyObject * _argo0 = 0;
11132 wxPoint temp;
11133 PyObject * _obj1 = 0;
11134 char *_kwnames[] = { "self","pt", NULL };
11135
11136 self = self;
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11138 return NULL;
11139 if (_argo0) {
11140 if (_argo0 == Py_None) { _arg0 = NULL; }
11141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11143 return NULL;
11144 }
11145 }
11146 {
11147 _arg1 = &temp;
11148 if (! wxPoint_helper(_obj1, &_arg1))
11149 return NULL;
11150 }
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11154
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) return NULL;
11157 } _resultobj = Py_BuildValue("i",_result);
11158 return _resultobj;
11159 }
11160
11161 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11162 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject * _resultobj;
11164 wxRegionContain _result;
11165 wxRegion * _arg0;
11166 wxRect * _arg1;
11167 PyObject * _argo0 = 0;
11168 wxRect temp;
11169 PyObject * _obj1 = 0;
11170 char *_kwnames[] = { "self","rect", NULL };
11171
11172 self = self;
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
11174 return NULL;
11175 if (_argo0) {
11176 if (_argo0 == Py_None) { _arg0 = NULL; }
11177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11179 return NULL;
11180 }
11181 }
11182 {
11183 _arg1 = &temp;
11184 if (! wxRect_helper(_obj1, &_arg1))
11185 return NULL;
11186 }
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) return NULL;
11193 } _resultobj = Py_BuildValue("i",_result);
11194 return _resultobj;
11195 }
11196
11197 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11198 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject * _resultobj;
11200 wxRegionContain _result;
11201 wxRegion * _arg0;
11202 wxCoord _arg1;
11203 wxCoord _arg2;
11204 wxCoord _arg3;
11205 wxCoord _arg4;
11206 PyObject * _argo0 = 0;
11207 char *_kwnames[] = { "self","x","y","w","h", NULL };
11208
11209 self = self;
11210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11211 return NULL;
11212 if (_argo0) {
11213 if (_argo0 == Py_None) { _arg0 = NULL; }
11214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11216 return NULL;
11217 }
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) return NULL;
11225 } _resultobj = Py_BuildValue("i",_result);
11226 return _resultobj;
11227 }
11228
11229 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11230 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11231 PyObject * _resultobj;
11232 wxRect * _result;
11233 wxRegion * _arg0;
11234 PyObject * _argo0 = 0;
11235 char *_kwnames[] = { "self", NULL };
11236 char _ptemp[128];
11237
11238 self = self;
11239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
11240 return NULL;
11241 if (_argo0) {
11242 if (_argo0 == Py_None) { _arg0 = NULL; }
11243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11245 return NULL;
11246 }
11247 }
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 _result = new wxRect (wxRegion_GetBox(_arg0));
11251
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) return NULL;
11254 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11255 _resultobj = Py_BuildValue("s",_ptemp);
11256 return _resultobj;
11257 }
11258
11259 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11260 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
11261 PyObject * _resultobj;
11262 bool _result;
11263 wxRegion * _arg0;
11264 wxCoord _arg1;
11265 wxCoord _arg2;
11266 wxCoord _arg3;
11267 wxCoord _arg4;
11268 PyObject * _argo0 = 0;
11269 char *_kwnames[] = { "self","x","y","width","height", NULL };
11270
11271 self = self;
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11273 return NULL;
11274 if (_argo0) {
11275 if (_argo0 == Py_None) { _arg0 = NULL; }
11276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11278 return NULL;
11279 }
11280 }
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
11284
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) return NULL;
11287 } _resultobj = Py_BuildValue("i",_result);
11288 return _resultobj;
11289 }
11290
11291 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11292 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11293 PyObject * _resultobj;
11294 bool _result;
11295 wxRegion * _arg0;
11296 wxRect * _arg1;
11297 PyObject * _argo0 = 0;
11298 wxRect temp;
11299 PyObject * _obj1 = 0;
11300 char *_kwnames[] = { "self","rect", NULL };
11301
11302 self = self;
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11304 return NULL;
11305 if (_argo0) {
11306 if (_argo0 == Py_None) { _arg0 = NULL; }
11307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11309 return NULL;
11310 }
11311 }
11312 {
11313 _arg1 = &temp;
11314 if (! wxRect_helper(_obj1, &_arg1))
11315 return NULL;
11316 }
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11320
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) return NULL;
11323 } _resultobj = Py_BuildValue("i",_result);
11324 return _resultobj;
11325 }
11326
11327 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11328 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject * _resultobj;
11330 bool _result;
11331 wxRegion * _arg0;
11332 wxRegion * _arg1;
11333 PyObject * _argo0 = 0;
11334 PyObject * _argo1 = 0;
11335 char *_kwnames[] = { "self","region", NULL };
11336
11337 self = self;
11338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11339 return NULL;
11340 if (_argo0) {
11341 if (_argo0 == Py_None) { _arg0 = NULL; }
11342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11344 return NULL;
11345 }
11346 }
11347 if (_argo1) {
11348 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11349 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11350 return NULL;
11351 }
11352 }
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) return NULL;
11359 } _resultobj = Py_BuildValue("i",_result);
11360 return _resultobj;
11361 }
11362
11363 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11364 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject * _resultobj;
11366 bool _result;
11367 wxRegion * _arg0;
11368 PyObject * _argo0 = 0;
11369 char *_kwnames[] = { "self", NULL };
11370
11371 self = self;
11372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11373 return NULL;
11374 if (_argo0) {
11375 if (_argo0 == Py_None) { _arg0 = NULL; }
11376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11378 return NULL;
11379 }
11380 }
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 _result = (bool )wxRegion_IsEmpty(_arg0);
11384
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) return NULL;
11387 } _resultobj = Py_BuildValue("i",_result);
11388 return _resultobj;
11389 }
11390
11391 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11392 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11393 PyObject * _resultobj;
11394 bool _result;
11395 wxRegion * _arg0;
11396 wxCoord _arg1;
11397 wxCoord _arg2;
11398 wxCoord _arg3;
11399 wxCoord _arg4;
11400 PyObject * _argo0 = 0;
11401 char *_kwnames[] = { "self","x","y","width","height", NULL };
11402
11403 self = self;
11404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11405 return NULL;
11406 if (_argo0) {
11407 if (_argo0 == Py_None) { _arg0 = NULL; }
11408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11410 return NULL;
11411 }
11412 }
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11416
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) return NULL;
11419 } _resultobj = Py_BuildValue("i",_result);
11420 return _resultobj;
11421 }
11422
11423 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11424 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11425 PyObject * _resultobj;
11426 bool _result;
11427 wxRegion * _arg0;
11428 wxRect * _arg1;
11429 PyObject * _argo0 = 0;
11430 wxRect temp;
11431 PyObject * _obj1 = 0;
11432 char *_kwnames[] = { "self","rect", NULL };
11433
11434 self = self;
11435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11436 return NULL;
11437 if (_argo0) {
11438 if (_argo0 == Py_None) { _arg0 = NULL; }
11439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11441 return NULL;
11442 }
11443 }
11444 {
11445 _arg1 = &temp;
11446 if (! wxRect_helper(_obj1, &_arg1))
11447 return NULL;
11448 }
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11452
11453 wxPyEndAllowThreads(__tstate);
11454 if (PyErr_Occurred()) return NULL;
11455 } _resultobj = Py_BuildValue("i",_result);
11456 return _resultobj;
11457 }
11458
11459 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11460 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11461 PyObject * _resultobj;
11462 bool _result;
11463 wxRegion * _arg0;
11464 wxRegion * _arg1;
11465 PyObject * _argo0 = 0;
11466 PyObject * _argo1 = 0;
11467 char *_kwnames[] = { "self","region", NULL };
11468
11469 self = self;
11470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11471 return NULL;
11472 if (_argo0) {
11473 if (_argo0 == Py_None) { _arg0 = NULL; }
11474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11476 return NULL;
11477 }
11478 }
11479 if (_argo1) {
11480 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11481 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11482 return NULL;
11483 }
11484 }
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11488
11489 wxPyEndAllowThreads(__tstate);
11490 if (PyErr_Occurred()) return NULL;
11491 } _resultobj = Py_BuildValue("i",_result);
11492 return _resultobj;
11493 }
11494
11495 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11496 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11497 PyObject * _resultobj;
11498 bool _result;
11499 wxRegion * _arg0;
11500 wxCoord _arg1;
11501 wxCoord _arg2;
11502 wxCoord _arg3;
11503 wxCoord _arg4;
11504 PyObject * _argo0 = 0;
11505 char *_kwnames[] = { "self","x","y","width","height", NULL };
11506
11507 self = self;
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11509 return NULL;
11510 if (_argo0) {
11511 if (_argo0 == Py_None) { _arg0 = NULL; }
11512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11514 return NULL;
11515 }
11516 }
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11520
11521 wxPyEndAllowThreads(__tstate);
11522 if (PyErr_Occurred()) return NULL;
11523 } _resultobj = Py_BuildValue("i",_result);
11524 return _resultobj;
11525 }
11526
11527 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11528 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11529 PyObject * _resultobj;
11530 bool _result;
11531 wxRegion * _arg0;
11532 wxRect * _arg1;
11533 PyObject * _argo0 = 0;
11534 wxRect temp;
11535 PyObject * _obj1 = 0;
11536 char *_kwnames[] = { "self","rect", NULL };
11537
11538 self = self;
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11540 return NULL;
11541 if (_argo0) {
11542 if (_argo0 == Py_None) { _arg0 = NULL; }
11543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11545 return NULL;
11546 }
11547 }
11548 {
11549 _arg1 = &temp;
11550 if (! wxRect_helper(_obj1, &_arg1))
11551 return NULL;
11552 }
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11556
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) return NULL;
11559 } _resultobj = Py_BuildValue("i",_result);
11560 return _resultobj;
11561 }
11562
11563 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11564 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11565 PyObject * _resultobj;
11566 bool _result;
11567 wxRegion * _arg0;
11568 wxRegion * _arg1;
11569 PyObject * _argo0 = 0;
11570 PyObject * _argo1 = 0;
11571 char *_kwnames[] = { "self","region", NULL };
11572
11573 self = self;
11574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11575 return NULL;
11576 if (_argo0) {
11577 if (_argo0 == Py_None) { _arg0 = NULL; }
11578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11580 return NULL;
11581 }
11582 }
11583 if (_argo1) {
11584 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11585 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11586 return NULL;
11587 }
11588 }
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) return NULL;
11595 } _resultobj = Py_BuildValue("i",_result);
11596 return _resultobj;
11597 }
11598
11599 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11600 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11601 PyObject * _resultobj;
11602 bool _result;
11603 wxRegion * _arg0;
11604 wxCoord _arg1;
11605 wxCoord _arg2;
11606 wxCoord _arg3;
11607 wxCoord _arg4;
11608 PyObject * _argo0 = 0;
11609 char *_kwnames[] = { "self","x","y","width","height", NULL };
11610
11611 self = self;
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11613 return NULL;
11614 if (_argo0) {
11615 if (_argo0 == Py_None) { _arg0 = NULL; }
11616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11618 return NULL;
11619 }
11620 }
11621 {
11622 PyThreadState* __tstate = wxPyBeginAllowThreads();
11623 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11624
11625 wxPyEndAllowThreads(__tstate);
11626 if (PyErr_Occurred()) return NULL;
11627 } _resultobj = Py_BuildValue("i",_result);
11628 return _resultobj;
11629 }
11630
11631 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11632 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11633 PyObject * _resultobj;
11634 bool _result;
11635 wxRegion * _arg0;
11636 wxRect * _arg1;
11637 PyObject * _argo0 = 0;
11638 wxRect temp;
11639 PyObject * _obj1 = 0;
11640 char *_kwnames[] = { "self","rect", NULL };
11641
11642 self = self;
11643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11644 return NULL;
11645 if (_argo0) {
11646 if (_argo0 == Py_None) { _arg0 = NULL; }
11647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11649 return NULL;
11650 }
11651 }
11652 {
11653 _arg1 = &temp;
11654 if (! wxRect_helper(_obj1, &_arg1))
11655 return NULL;
11656 }
11657 {
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11660
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) return NULL;
11663 } _resultobj = Py_BuildValue("i",_result);
11664 return _resultobj;
11665 }
11666
11667 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11668 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11669 PyObject * _resultobj;
11670 bool _result;
11671 wxRegion * _arg0;
11672 wxRegion * _arg1;
11673 PyObject * _argo0 = 0;
11674 PyObject * _argo1 = 0;
11675 char *_kwnames[] = { "self","region", NULL };
11676
11677 self = self;
11678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11679 return NULL;
11680 if (_argo0) {
11681 if (_argo0 == Py_None) { _arg0 = NULL; }
11682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11684 return NULL;
11685 }
11686 }
11687 if (_argo1) {
11688 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11689 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11690 return NULL;
11691 }
11692 }
11693 {
11694 PyThreadState* __tstate = wxPyBeginAllowThreads();
11695 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11696
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) return NULL;
11699 } _resultobj = Py_BuildValue("i",_result);
11700 return _resultobj;
11701 }
11702
11703 #define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
11704 static PyObject *_wrap_wxRegion_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11705 PyObject * _resultobj;
11706 wxBitmap * _result;
11707 wxRegion * _arg0;
11708 PyObject * _argo0 = 0;
11709 char *_kwnames[] = { "self", NULL };
11710 char _ptemp[128];
11711
11712 self = self;
11713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_ConvertToBitmap",_kwnames,&_argo0))
11714 return NULL;
11715 if (_argo0) {
11716 if (_argo0 == Py_None) { _arg0 = NULL; }
11717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ConvertToBitmap. Expected _wxRegion_p.");
11719 return NULL;
11720 }
11721 }
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 _result = new wxBitmap (wxRegion_ConvertToBitmap(_arg0));
11725
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) return NULL;
11728 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
11729 _resultobj = Py_BuildValue("s",_ptemp);
11730 return _resultobj;
11731 }
11732
11733 #define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
11734 static PyObject *_wrap_wxRegion_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11735 PyObject * _resultobj;
11736 bool _result;
11737 wxRegion * _arg0;
11738 wxBitmap * _arg1;
11739 wxColour * _arg2 = (wxColour *) &wxNullColour;
11740 int _arg3 = (int ) 0;
11741 PyObject * _argo0 = 0;
11742 PyObject * _argo1 = 0;
11743 wxColour temp;
11744 PyObject * _obj2 = 0;
11745 char *_kwnames[] = { "self","bmp","transColour","tolerance", NULL };
11746
11747 self = self;
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxRegion_UnionBitmap",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
11749 return NULL;
11750 if (_argo0) {
11751 if (_argo0 == Py_None) { _arg0 = NULL; }
11752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p.");
11754 return NULL;
11755 }
11756 }
11757 if (_argo1) {
11758 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11759 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
11760 return NULL;
11761 }
11762 }
11763 if (_obj2)
11764 {
11765 _arg2 = &temp;
11766 if (! wxColour_helper(_obj2, &_arg2))
11767 return NULL;
11768 }
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 _result = (bool )wxRegion_UnionBitmap(_arg0,*_arg1,*_arg2,_arg3);
11772
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) return NULL;
11775 } _resultobj = Py_BuildValue("i",_result);
11776 return _resultobj;
11777 }
11778
11779 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11780 wxRegionIterator *src;
11781 wxObject *dest;
11782 src = (wxRegionIterator *) ptr;
11783 dest = (wxObject *) src;
11784 return (void *) dest;
11785 }
11786
11787 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11788 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject * _resultobj;
11790 wxRegionIterator * _result;
11791 wxRegion * _arg0;
11792 PyObject * _argo0 = 0;
11793 char *_kwnames[] = { "region", NULL };
11794 char _ptemp[128];
11795
11796 self = self;
11797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11798 return NULL;
11799 if (_argo0) {
11800 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11802 return NULL;
11803 }
11804 }
11805 {
11806 PyThreadState* __tstate = wxPyBeginAllowThreads();
11807 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11808
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) return NULL;
11811 } if (_result) {
11812 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11813 _resultobj = Py_BuildValue("s",_ptemp);
11814 } else {
11815 Py_INCREF(Py_None);
11816 _resultobj = Py_None;
11817 }
11818 return _resultobj;
11819 }
11820
11821 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11822 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11823 PyObject * _resultobj;
11824 wxRegionIterator * _arg0;
11825 PyObject * _argo0 = 0;
11826 char *_kwnames[] = { "self", NULL };
11827
11828 self = self;
11829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11830 return NULL;
11831 if (_argo0) {
11832 if (_argo0 == Py_None) { _arg0 = NULL; }
11833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11835 return NULL;
11836 }
11837 }
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 delete_wxRegionIterator(_arg0);
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) return NULL;
11844 } Py_INCREF(Py_None);
11845 _resultobj = Py_None;
11846 return _resultobj;
11847 }
11848
11849 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11850 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11851 PyObject * _resultobj;
11852 wxCoord _result;
11853 wxRegionIterator * _arg0;
11854 PyObject * _argo0 = 0;
11855 char *_kwnames[] = { "self", NULL };
11856
11857 self = self;
11858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11859 return NULL;
11860 if (_argo0) {
11861 if (_argo0 == Py_None) { _arg0 = NULL; }
11862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11864 return NULL;
11865 }
11866 }
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 _result = (wxCoord )wxRegionIterator_GetX(_arg0);
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) return NULL;
11873 } _resultobj = Py_BuildValue("i",_result);
11874 return _resultobj;
11875 }
11876
11877 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11878 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11879 PyObject * _resultobj;
11880 wxCoord _result;
11881 wxRegionIterator * _arg0;
11882 PyObject * _argo0 = 0;
11883 char *_kwnames[] = { "self", NULL };
11884
11885 self = self;
11886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11887 return NULL;
11888 if (_argo0) {
11889 if (_argo0 == Py_None) { _arg0 = NULL; }
11890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11892 return NULL;
11893 }
11894 }
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 _result = (wxCoord )wxRegionIterator_GetY(_arg0);
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) return NULL;
11901 } _resultobj = Py_BuildValue("i",_result);
11902 return _resultobj;
11903 }
11904
11905 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11906 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject * _resultobj;
11908 wxCoord _result;
11909 wxRegionIterator * _arg0;
11910 PyObject * _argo0 = 0;
11911 char *_kwnames[] = { "self", NULL };
11912
11913 self = self;
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11915 return NULL;
11916 if (_argo0) {
11917 if (_argo0 == Py_None) { _arg0 = NULL; }
11918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11920 return NULL;
11921 }
11922 }
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 _result = (wxCoord )wxRegionIterator_GetW(_arg0);
11926
11927 wxPyEndAllowThreads(__tstate);
11928 if (PyErr_Occurred()) return NULL;
11929 } _resultobj = Py_BuildValue("i",_result);
11930 return _resultobj;
11931 }
11932
11933 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11934 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11935 PyObject * _resultobj;
11936 wxCoord _result;
11937 wxRegionIterator * _arg0;
11938 PyObject * _argo0 = 0;
11939 char *_kwnames[] = { "self", NULL };
11940
11941 self = self;
11942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11943 return NULL;
11944 if (_argo0) {
11945 if (_argo0 == Py_None) { _arg0 = NULL; }
11946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11948 return NULL;
11949 }
11950 }
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 _result = (wxCoord )wxRegionIterator_GetWidth(_arg0);
11954
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) return NULL;
11957 } _resultobj = Py_BuildValue("i",_result);
11958 return _resultobj;
11959 }
11960
11961 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11962 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11963 PyObject * _resultobj;
11964 wxCoord _result;
11965 wxRegionIterator * _arg0;
11966 PyObject * _argo0 = 0;
11967 char *_kwnames[] = { "self", NULL };
11968
11969 self = self;
11970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11971 return NULL;
11972 if (_argo0) {
11973 if (_argo0 == Py_None) { _arg0 = NULL; }
11974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11976 return NULL;
11977 }
11978 }
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 _result = (wxCoord )wxRegionIterator_GetH(_arg0);
11982
11983 wxPyEndAllowThreads(__tstate);
11984 if (PyErr_Occurred()) return NULL;
11985 } _resultobj = Py_BuildValue("i",_result);
11986 return _resultobj;
11987 }
11988
11989 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11990 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11991 PyObject * _resultobj;
11992 wxCoord _result;
11993 wxRegionIterator * _arg0;
11994 PyObject * _argo0 = 0;
11995 char *_kwnames[] = { "self", NULL };
11996
11997 self = self;
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
11999 return NULL;
12000 if (_argo0) {
12001 if (_argo0 == Py_None) { _arg0 = NULL; }
12002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12004 return NULL;
12005 }
12006 }
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 _result = (wxCoord )wxRegionIterator_GetHeight(_arg0);
12010
12011 wxPyEndAllowThreads(__tstate);
12012 if (PyErr_Occurred()) return NULL;
12013 } _resultobj = Py_BuildValue("i",_result);
12014 return _resultobj;
12015 }
12016
12017 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12018 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12019 PyObject * _resultobj;
12020 wxRect * _result;
12021 wxRegionIterator * _arg0;
12022 PyObject * _argo0 = 0;
12023 char *_kwnames[] = { "self", NULL };
12024 char _ptemp[128];
12025
12026 self = self;
12027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12028 return NULL;
12029 if (_argo0) {
12030 if (_argo0 == Py_None) { _arg0 = NULL; }
12031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12033 return NULL;
12034 }
12035 }
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
12038 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12039
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) return NULL;
12042 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12043 _resultobj = Py_BuildValue("s",_ptemp);
12044 return _resultobj;
12045 }
12046
12047 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12048 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12049 PyObject * _resultobj;
12050 bool _result;
12051 wxRegionIterator * _arg0;
12052 PyObject * _argo0 = 0;
12053 char *_kwnames[] = { "self", NULL };
12054
12055 self = self;
12056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12057 return NULL;
12058 if (_argo0) {
12059 if (_argo0 == Py_None) { _arg0 = NULL; }
12060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12062 return NULL;
12063 }
12064 }
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12068
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) return NULL;
12071 } _resultobj = Py_BuildValue("i",_result);
12072 return _resultobj;
12073 }
12074
12075 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12076 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12077 PyObject * _resultobj;
12078 wxRegionIterator * _arg0;
12079 PyObject * _argo0 = 0;
12080 char *_kwnames[] = { "self", NULL };
12081
12082 self = self;
12083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12084 return NULL;
12085 if (_argo0) {
12086 if (_argo0 == Py_None) { _arg0 = NULL; }
12087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12089 return NULL;
12090 }
12091 }
12092 {
12093 PyThreadState* __tstate = wxPyBeginAllowThreads();
12094 wxRegionIterator_Reset(_arg0);
12095
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) return NULL;
12098 } Py_INCREF(Py_None);
12099 _resultobj = Py_None;
12100 return _resultobj;
12101 }
12102
12103 static void wxRegionIterator_Next(wxRegionIterator *self) {
12104 (*self) ++;
12105 }
12106 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12107 PyObject * _resultobj;
12108 wxRegionIterator * _arg0;
12109 PyObject * _argo0 = 0;
12110 char *_kwnames[] = { "self", NULL };
12111
12112 self = self;
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12114 return NULL;
12115 if (_argo0) {
12116 if (_argo0 == Py_None) { _arg0 = NULL; }
12117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12119 return NULL;
12120 }
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 wxRegionIterator_Next(_arg0);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) return NULL;
12128 } Py_INCREF(Py_None);
12129 _resultobj = Py_None;
12130 return _resultobj;
12131 }
12132
12133 static bool wxRegionIterator___nonzero__(wxRegionIterator *self) {
12134 return self->operator bool();
12135 }
12136 static PyObject *_wrap_wxRegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
12137 PyObject * _resultobj;
12138 bool _result;
12139 wxRegionIterator * _arg0;
12140 PyObject * _argo0 = 0;
12141 char *_kwnames[] = { "self", NULL };
12142
12143 self = self;
12144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator___nonzero__",_kwnames,&_argo0))
12145 return NULL;
12146 if (_argo0) {
12147 if (_argo0 == Py_None) { _arg0 = NULL; }
12148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator___nonzero__. Expected _wxRegionIterator_p.");
12150 return NULL;
12151 }
12152 }
12153 {
12154 PyThreadState* __tstate = wxPyBeginAllowThreads();
12155 _result = (bool )wxRegionIterator___nonzero__(_arg0);
12156
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) return NULL;
12159 } _resultobj = Py_BuildValue("i",_result);
12160 return _resultobj;
12161 }
12162
12163 static PyMethodDef gdicMethods[] = {
12164 { "wxRegionIterator___nonzero__", (PyCFunction) _wrap_wxRegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
12165 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12166 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12167 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12168 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12169 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12170 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12171 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12172 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12173 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12174 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12175 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12176 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12177 { "wxRegion_UnionBitmap", (PyCFunction) _wrap_wxRegion_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
12178 { "wxRegion_ConvertToBitmap", (PyCFunction) _wrap_wxRegion_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
12179 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12180 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12181 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12182 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12183 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12184 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12185 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12186 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12187 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12188 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12189 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12190 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12191 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12192 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12193 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12194 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12195 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12196 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12197 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
12198 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12199 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12200 { "new_wxRegionFromBitmap", (PyCFunction) _wrap_new_wxRegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
12201 { "new_wxRegionFromPoints", (PyCFunction) _wrap_new_wxRegionFromPoints, METH_VARARGS | METH_KEYWORDS },
12202 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12203 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12204 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12205 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12206 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12207 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12208 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12209 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12210 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12211 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12212 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12213 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12214 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12215 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12216 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12217 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12218 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12219 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12220 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12221 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12222 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12223 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12224 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12225 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12226 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12227 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12228 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12229 { "new_wxMirrorDC", (PyCFunction) _wrap_new_wxMirrorDC, METH_VARARGS | METH_KEYWORDS },
12230 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12231 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12232 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12233 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12234 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12235 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12236 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12237 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
12238 { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
12239 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
12240 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
12241 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12242 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12243 { "wxDC__DrawTextList", (PyCFunction) _wrap_wxDC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
12244 { "wxDC__DrawPolygonList", (PyCFunction) _wrap_wxDC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
12245 { "wxDC__DrawEllipseList", (PyCFunction) _wrap_wxDC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
12246 { "wxDC__DrawRectangleList", (PyCFunction) _wrap_wxDC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
12247 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12248 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12249 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
12250 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12251 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12252 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12253 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12254 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12255 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12256 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12257 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12258 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12259 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12260 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12261 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12262 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12263 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12264 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12265 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12266 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12267 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12268 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12269 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12270 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12271 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12272 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12273 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12274 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12275 { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
12276 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12277 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
12278 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
12279 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
12280 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12281 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
12282 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
12283 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
12284 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
12285 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
12286 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
12287 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
12288 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
12289 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
12290 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
12291 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
12292 { "wxDC_GetMultiLineTextExtent", (PyCFunction) _wrap_wxDC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
12293 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12294 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12295 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
12296 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
12297 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
12298 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12299 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
12300 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
12301 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
12302 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
12303 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12304 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12305 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
12306 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
12307 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12308 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12309 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
12310 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
12311 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
12312 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
12313 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
12314 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
12315 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
12316 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
12317 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
12318 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
12319 { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
12320 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
12321 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
12322 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
12323 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
12324 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
12325 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
12326 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
12327 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
12328 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
12329 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
12330 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
12331 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
12332 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
12333 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
12334 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
12335 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
12336 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
12337 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
12338 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
12339 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
12340 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
12341 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
12342 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
12343 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
12344 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
12345 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
12346 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
12347 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
12348 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
12349 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
12350 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
12351 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
12352 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
12353 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
12354 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
12355 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
12356 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
12357 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
12358 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
12359 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12360 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12361 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12362 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
12363 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
12364 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
12365 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12366 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
12367 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
12368 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
12369 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
12370 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
12371 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
12372 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
12373 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
12374 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
12375 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
12376 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
12377 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
12378 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
12379 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
12380 { "wxColourDatabase_AddColour", (PyCFunction) _wrap_wxColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
12381 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
12382 { "wxColourDatabase_Find", (PyCFunction) _wrap_wxColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
12383 { "delete_wxColourDatabase", (PyCFunction) _wrap_delete_wxColourDatabase, METH_VARARGS | METH_KEYWORDS },
12384 { "new_wxColourDatabase", (PyCFunction) _wrap_new_wxColourDatabase, METH_VARARGS | METH_KEYWORDS },
12385 { "wxColour___ne__", (PyCFunction) _wrap_wxColour___ne__, METH_VARARGS | METH_KEYWORDS },
12386 { "wxColour___eq__", (PyCFunction) _wrap_wxColour___eq__, METH_VARARGS | METH_KEYWORDS },
12387 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
12388 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
12389 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
12390 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
12391 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
12392 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
12393 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
12394 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
12395 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
12396 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
12397 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
12398 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
12399 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
12400 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
12401 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
12402 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12403 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
12404 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
12405 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12406 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
12407 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
12408 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
12409 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
12410 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
12411 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
12412 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
12413 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
12414 { "wxIconLocation_GetIndex", (PyCFunction) _wrap_wxIconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
12415 { "wxIconLocation_SetIndex", (PyCFunction) _wrap_wxIconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
12416 { "wxIconLocation_GetFileName", (PyCFunction) _wrap_wxIconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
12417 { "wxIconLocation_SetFileName", (PyCFunction) _wrap_wxIconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
12418 { "wxIconLocation_IsOk", (PyCFunction) _wrap_wxIconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
12419 { "delete_wxIconLocation", (PyCFunction) _wrap_delete_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
12420 { "new_wxIconLocation", (PyCFunction) _wrap_new_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
12421 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12422 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
12423 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12424 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12425 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12426 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12427 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12428 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12429 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12430 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
12431 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
12432 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
12433 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12434 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12435 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12436 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12437 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
12438 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
12439 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
12440 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12441 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12442 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
12443 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12444 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12445 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12446 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12447 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12448 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12449 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12450 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
12451 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
12452 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
12453 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12454 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12455 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12456 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12457 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12458 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12459 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12460 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12461 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12462 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12463 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12464 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12465 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12466 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12467 { "wxCursorFromBits", (PyCFunction) _wrap_wxCursorFromBits, METH_VARARGS | METH_KEYWORDS },
12468 { "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS },
12469 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12470 { "wxIconFromLocation", (PyCFunction) _wrap_wxIconFromLocation, METH_VARARGS | METH_KEYWORDS },
12471 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
12472 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12473 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12474 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12475 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12476 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12477 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12478 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12479 { NULL, NULL }
12480 };
12481 #ifdef __cplusplus
12482 }
12483 #endif
12484 /*
12485 * This table is used by the pointer type-checker
12486 */
12487 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12488 { "_signed_long","_long",0},
12489 { "_wxPrintQuality","_wxCoord",0},
12490 { "_wxPrintQuality","_int",0},
12491 { "_wxPrintQuality","_signed_int",0},
12492 { "_wxPrintQuality","_unsigned_int",0},
12493 { "_wxPrintQuality","_wxWindowID",0},
12494 { "_wxPrintQuality","_uint",0},
12495 { "_wxPrintQuality","_EBool",0},
12496 { "_wxPrintQuality","_size_t",0},
12497 { "_wxPrintQuality","_time_t",0},
12498 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12499 { "_byte","_unsigned_char",0},
12500 { "_long","_unsigned_long",0},
12501 { "_long","_signed_long",0},
12502 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12503 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12504 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12505 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12506 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12507 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12508 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12509 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12510 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
12511 { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC},
12512 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12513 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12514 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12515 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12516 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
12517 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
12518 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12519 { "_size_t","_wxCoord",0},
12520 { "_size_t","_wxPrintQuality",0},
12521 { "_size_t","_time_t",0},
12522 { "_size_t","_unsigned_int",0},
12523 { "_size_t","_int",0},
12524 { "_size_t","_wxWindowID",0},
12525 { "_size_t","_uint",0},
12526 { "_uint","_wxCoord",0},
12527 { "_uint","_wxPrintQuality",0},
12528 { "_uint","_time_t",0},
12529 { "_uint","_size_t",0},
12530 { "_uint","_unsigned_int",0},
12531 { "_uint","_int",0},
12532 { "_uint","_wxWindowID",0},
12533 { "_wxChar","_char",0},
12534 { "_char","_wxChar",0},
12535 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
12536 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12537 { "_EBool","_wxCoord",0},
12538 { "_EBool","_wxPrintQuality",0},
12539 { "_EBool","_signed_int",0},
12540 { "_EBool","_int",0},
12541 { "_EBool","_wxWindowID",0},
12542 { "_unsigned_long","_long",0},
12543 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12544 { "_signed_int","_wxCoord",0},
12545 { "_signed_int","_wxPrintQuality",0},
12546 { "_signed_int","_EBool",0},
12547 { "_signed_int","_wxWindowID",0},
12548 { "_signed_int","_int",0},
12549 { "_WXTYPE","_short",0},
12550 { "_WXTYPE","_signed_short",0},
12551 { "_WXTYPE","_unsigned_short",0},
12552 { "_unsigned_short","_WXTYPE",0},
12553 { "_unsigned_short","_short",0},
12554 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12555 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12556 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12557 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12558 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
12559 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
12560 { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject},
12561 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12562 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12563 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12564 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12565 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
12566 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
12567 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12568 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12569 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12570 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12571 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12572 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12573 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12574 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12575 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12576 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12577 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12578 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12579 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12580 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12581 { "_signed_short","_WXTYPE",0},
12582 { "_signed_short","_short",0},
12583 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
12584 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
12585 { "_unsigned_char","_byte",0},
12586 { "_unsigned_int","_wxCoord",0},
12587 { "_unsigned_int","_wxPrintQuality",0},
12588 { "_unsigned_int","_time_t",0},
12589 { "_unsigned_int","_size_t",0},
12590 { "_unsigned_int","_uint",0},
12591 { "_unsigned_int","_wxWindowID",0},
12592 { "_unsigned_int","_int",0},
12593 { "_short","_WXTYPE",0},
12594 { "_short","_unsigned_short",0},
12595 { "_short","_signed_short",0},
12596 { "_wxWindowID","_wxCoord",0},
12597 { "_wxWindowID","_wxPrintQuality",0},
12598 { "_wxWindowID","_time_t",0},
12599 { "_wxWindowID","_size_t",0},
12600 { "_wxWindowID","_EBool",0},
12601 { "_wxWindowID","_uint",0},
12602 { "_wxWindowID","_int",0},
12603 { "_wxWindowID","_signed_int",0},
12604 { "_wxWindowID","_unsigned_int",0},
12605 { "_int","_wxCoord",0},
12606 { "_int","_wxPrintQuality",0},
12607 { "_int","_time_t",0},
12608 { "_int","_size_t",0},
12609 { "_int","_EBool",0},
12610 { "_int","_uint",0},
12611 { "_int","_wxWindowID",0},
12612 { "_int","_unsigned_int",0},
12613 { "_int","_signed_int",0},
12614 { "_time_t","_wxCoord",0},
12615 { "_time_t","_wxPrintQuality",0},
12616 { "_time_t","_unsigned_int",0},
12617 { "_time_t","_int",0},
12618 { "_time_t","_wxWindowID",0},
12619 { "_time_t","_uint",0},
12620 { "_time_t","_size_t",0},
12621 { "_wxCoord","_int",0},
12622 { "_wxCoord","_signed_int",0},
12623 { "_wxCoord","_unsigned_int",0},
12624 { "_wxCoord","_wxWindowID",0},
12625 { "_wxCoord","_uint",0},
12626 { "_wxCoord","_EBool",0},
12627 { "_wxCoord","_size_t",0},
12628 { "_wxCoord","_time_t",0},
12629 { "_wxCoord","_wxPrintQuality",0},
12630 {0,0,0}};
12631
12632 static PyObject *SWIG_globals;
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 SWIGEXPORT(void) initgdic() {
12637 PyObject *m, *d;
12638 SWIG_globals = SWIG_newvarlink();
12639 m = Py_InitModule("gdic", gdicMethods);
12640 d = PyModule_GetDict(m);
12641 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12642 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12643 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12644 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12645 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12646 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12647 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12648 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12649 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12650 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12651 PyDict_SetItemString(d,"cvar", SWIG_globals);
12652 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12653 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12654 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12655 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12656 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12657 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12658 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12659 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12660 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12661 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12662 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12663 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12664 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12665 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12666 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12667 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12668 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12669 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12670 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12671 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12672 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12673 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12674 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12675 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12676 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12677 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12678 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12679 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12680 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12681 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12682 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12683 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12684 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12685 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12686 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12687 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12688 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12689 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12690 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12691 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12692 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12693 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12694 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12695 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12696 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12697 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12698 {
12699 int i;
12700 for (i = 0; _swig_mapping[i].n1; i++)
12701 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12702 }
12703 }