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