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