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