]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Added wxIconBundle and wxTopLevelWindow.SetIcons.
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : src/msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <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 #include <wx/iconbndl.h>
66
67
68 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
69 PyObject* o2;
70 PyObject* o3;
71
72 if (!target) {
73 target = o;
74 } else if (target == Py_None) {
75 Py_DECREF(Py_None);
76 target = o;
77 } else {
78 if (!PyTuple_Check(target)) {
79 o2 = target;
80 target = PyTuple_New(1);
81 PyTuple_SetItem(target, 0, o2);
82 }
83 o3 = PyTuple_New(1);
84 PyTuple_SetItem(o3, 0, o);
85
86 o2 = target;
87 target = PySequence_Concat(o2, o3);
88 Py_DECREF(o2);
89 Py_DECREF(o3);
90 }
91 return target;
92 }
93
94 // Put some wx default wxChar* values into wxStrings.
95 static const wxString wxPyEmptyString(wxT(""));
96 // Implementations of some alternate "constructors"
97
98 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
99 return new wxBitmap(width, height, depth);
100 }
101
102 static char** ConvertListOfStrings(PyObject* listOfStrings) {
103 char** cArray = NULL;
104 int count;
105
106 if (!PyList_Check(listOfStrings)) {
107 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
108 return NULL;
109 }
110 count = PyList_Size(listOfStrings);
111 cArray = new char*[count];
112
113 for(int x=0; x<count; x++) {
114 // TODO: Need some validation and error checking here
115 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
116 }
117 return cArray;
118 }
119
120
121 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
122 char** cArray = NULL;
123 wxBitmap* bmp;
124
125 cArray = ConvertListOfStrings(listOfStrings);
126 if (! cArray)
127 return NULL;
128 bmp = new wxBitmap(cArray);
129 delete [] cArray;
130 return bmp;
131 }
132
133
134 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
135 return new wxBitmap(icon);
136 }
137
138
139 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
140 return new wxBitmap(bits, width, height, depth);
141 }
142
143
144 // #ifdef __WXMSW__
145 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
146 // int width, int height, int depth = 1) {
147 // if (! PyString_Check(data)) {
148 // PyErr_SetString(PyExc_TypeError, "Expected string object");
149 // return NULL;
150 // }
151 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
152 // }
153 // #endif
154
155 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
156 return new wxMask(bitmap, colour);
157 }
158 // Implementations of some alternate "constructors"
159 wxIcon* wxEmptyIcon() {
160 return new wxIcon();
161 }
162
163 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
164 char** cArray = NULL;
165 wxIcon* icon;
166
167 cArray = ConvertListOfStrings(listOfStrings);
168 if (! cArray)
169 return NULL;
170 icon = new wxIcon(cArray);
171 delete [] cArray;
172 return icon;
173 }
174
175 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
176 wxIcon* icon = new wxIcon();
177 icon->CopyFromBitmap(bmp);
178 return icon;
179 }
180 // Alternate 'constructor'
181 wxCursor* wxPyStockCursor(int id) {
182 return new wxCursor(id);
183 }
184 // Alternate 'constructor'
185 wxColour* wxNamedColour(const wxString& colorName) {
186 return new wxColour(colorName);
187 }
188
189 class wxPyPen : public wxPen {
190 public:
191 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
192 : wxPen(colour, width, style)
193 { m_dash = NULL; }
194 ~wxPyPen() {
195 if (m_dash)
196 delete [] m_dash;
197 }
198
199 void SetDashes(int nb_dashes, const wxDash *dash) {
200 if (m_dash)
201 delete [] m_dash;
202 m_dash = new wxDash[nb_dashes];
203 for (int i=0; i<nb_dashes; i++) {
204 m_dash[i] = dash[i];
205 }
206 wxPen::SetDashes(nb_dashes, m_dash);
207 }
208
209 private:
210 wxDash* m_dash;
211 };
212
213 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
214 *x1 = dc->MinX();
215 *y1 = dc->MinY();
216 *x2 = dc->MaxX();
217 *y2 = dc->MaxY();
218 }
219 // Alternate 'constructor'
220 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
221 return new wxMemoryDC(oldDC);
222 }
223
224 #include <wx/metafile.h>
225
226 #if 0
227 extern wxFont * wxNORMAL_FONT;
228 extern wxFont * wxSMALL_FONT;
229 extern wxFont * wxITALIC_FONT;
230 extern wxFont * wxSWISS_FONT;
231 extern wxPen * wxRED_PEN;
232 extern wxPen * wxCYAN_PEN;
233 extern wxPen * wxGREEN_PEN;
234 extern wxPen * wxBLACK_PEN;
235 extern wxPen * wxWHITE_PEN;
236 extern wxPen * wxTRANSPARENT_PEN;
237 extern wxPen * wxBLACK_DASHED_PEN;
238 extern wxPen * wxGREY_PEN;
239 extern wxPen * wxMEDIUM_GREY_PEN;
240 extern wxPen * wxLIGHT_GREY_PEN;
241 extern wxBrush * wxBLUE_BRUSH;
242 extern wxBrush * wxGREEN_BRUSH;
243 extern wxBrush * wxWHITE_BRUSH;
244 extern wxBrush * wxBLACK_BRUSH;
245 extern wxBrush * wxTRANSPARENT_BRUSH;
246 extern wxBrush * wxCYAN_BRUSH;
247 extern wxBrush * wxRED_BRUSH;
248 extern wxBrush * wxGREY_BRUSH;
249 extern wxBrush * wxMEDIUM_GREY_BRUSH;
250 extern wxBrush * wxLIGHT_GREY_BRUSH;
251 extern wxColour * wxBLACK;
252 extern wxColour * wxWHITE;
253 extern wxColour * wxRED;
254 extern wxColour * wxBLUE;
255 extern wxColour * wxGREEN;
256 extern wxColour * wxCYAN;
257 extern wxColour * wxLIGHT_GREY;
258 extern wxCursor * wxSTANDARD_CURSOR;
259 extern wxCursor * wxHOURGLASS_CURSOR;
260 extern wxCursor * wxCROSS_CURSOR;
261 extern wxBitmap wxNullBitmap;
262 extern wxIcon wxNullIcon;
263 extern wxCursor wxNullCursor;
264 extern wxPen wxNullPen;
265 extern wxBrush wxNullBrush;
266 extern wxPalette wxNullPalette;
267 extern wxFont wxNullFont;
268 extern wxColour wxNullColour;
269 extern wxFontList * wxTheFontList;
270 extern wxPenList * wxThePenList;
271 extern wxBrushList * wxTheBrushList;
272 extern wxColourDatabase * wxTheColourDatabase;
273
274 #endif
275 #ifdef __cplusplus
276 extern "C" {
277 #endif
278 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
279 PyObject * _resultobj;
280 wxBitmap * _result;
281 int _arg0;
282 int _arg1;
283 int _arg2 = (int ) -1;
284 char *_kwnames[] = { "width","height","depth", NULL };
285 char _ptemp[128];
286
287 self = self;
288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
289 return NULL;
290 {
291 PyThreadState* __tstate = wxPyBeginAllowThreads();
292 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
293
294 wxPyEndAllowThreads(__tstate);
295 if (PyErr_Occurred()) return NULL;
296 } if (_result) {
297 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
298 _resultobj = Py_BuildValue("s",_ptemp);
299 } else {
300 Py_INCREF(Py_None);
301 _resultobj = Py_None;
302 }
303 return _resultobj;
304 }
305
306 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
307 PyObject * _resultobj;
308 wxBitmap * _result;
309 PyObject * _arg0;
310 PyObject * _obj0 = 0;
311 char *_kwnames[] = { "listOfStrings", NULL };
312 char _ptemp[128];
313
314 self = self;
315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
316 return NULL;
317 {
318 _arg0 = _obj0;
319 }
320 {
321 PyThreadState* __tstate = wxPyBeginAllowThreads();
322 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
323
324 wxPyEndAllowThreads(__tstate);
325 if (PyErr_Occurred()) return NULL;
326 } if (_result) {
327 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
328 _resultobj = Py_BuildValue("s",_ptemp);
329 } else {
330 Py_INCREF(Py_None);
331 _resultobj = Py_None;
332 }
333 return _resultobj;
334 }
335
336 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
337 PyObject * _resultobj;
338 wxBitmap * _result;
339 wxIcon * _arg0;
340 PyObject * _argo0 = 0;
341 char *_kwnames[] = { "icon", NULL };
342 char _ptemp[128];
343
344 self = self;
345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
346 return NULL;
347 if (_argo0) {
348 if (_argo0 == Py_None) { _arg0 = NULL; }
349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
351 return NULL;
352 }
353 }
354 {
355 PyThreadState* __tstate = wxPyBeginAllowThreads();
356 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
357
358 wxPyEndAllowThreads(__tstate);
359 if (PyErr_Occurred()) return NULL;
360 } if (_result) {
361 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
362 _resultobj = Py_BuildValue("s",_ptemp);
363 } else {
364 Py_INCREF(Py_None);
365 _resultobj = Py_None;
366 }
367 return _resultobj;
368 }
369
370 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
371 PyObject * _resultobj;
372 wxBitmap * _result;
373 char * _arg0;
374 int _arg1;
375 int _arg2;
376 int _arg3 = (int ) 1;
377 char *_kwnames[] = { "bits","width","height","depth", NULL };
378 char _ptemp[128];
379
380 self = self;
381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
382 return NULL;
383 {
384 PyThreadState* __tstate = wxPyBeginAllowThreads();
385 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
386
387 wxPyEndAllowThreads(__tstate);
388 if (PyErr_Occurred()) return NULL;
389 } if (_result) {
390 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
391 _resultobj = Py_BuildValue("s",_ptemp);
392 } else {
393 Py_INCREF(Py_None);
394 _resultobj = Py_None;
395 }
396 return _resultobj;
397 }
398
399 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
400 PyObject * _resultobj;
401 wxMask * _result;
402 wxBitmap * _arg0;
403 wxColour * _arg1;
404 PyObject * _argo0 = 0;
405 wxColour temp;
406 PyObject * _obj1 = 0;
407 char *_kwnames[] = { "bitmap","colour", NULL };
408 char _ptemp[128];
409
410 self = self;
411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
412 return NULL;
413 if (_argo0) {
414 if (_argo0 == Py_None) { _arg0 = NULL; }
415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
417 return NULL;
418 }
419 }
420 {
421 _arg1 = &temp;
422 if (! wxColour_helper(_obj1, &_arg1))
423 return NULL;
424 }
425 {
426 PyThreadState* __tstate = wxPyBeginAllowThreads();
427 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
428
429 wxPyEndAllowThreads(__tstate);
430 if (PyErr_Occurred()) return NULL;
431 } if (_result) {
432 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
433 _resultobj = Py_BuildValue("s",_ptemp);
434 } else {
435 Py_INCREF(Py_None);
436 _resultobj = Py_None;
437 }
438 return _resultobj;
439 }
440
441 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
442 PyObject * _resultobj;
443 wxIcon * _result;
444 char *_kwnames[] = { NULL };
445 char _ptemp[128];
446
447 self = self;
448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
449 return NULL;
450 {
451 PyThreadState* __tstate = wxPyBeginAllowThreads();
452 _result = (wxIcon *)wxEmptyIcon();
453
454 wxPyEndAllowThreads(__tstate);
455 if (PyErr_Occurred()) return NULL;
456 } if (_result) {
457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
458 _resultobj = Py_BuildValue("s",_ptemp);
459 } else {
460 Py_INCREF(Py_None);
461 _resultobj = Py_None;
462 }
463 return _resultobj;
464 }
465
466 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
467 PyObject * _resultobj;
468 wxIcon * _result;
469 PyObject * _arg0;
470 PyObject * _obj0 = 0;
471 char *_kwnames[] = { "listOfStrings", NULL };
472 char _ptemp[128];
473
474 self = self;
475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
476 return NULL;
477 {
478 _arg0 = _obj0;
479 }
480 {
481 PyThreadState* __tstate = wxPyBeginAllowThreads();
482 _result = (wxIcon *)wxIconFromXPMData(_arg0);
483
484 wxPyEndAllowThreads(__tstate);
485 if (PyErr_Occurred()) return NULL;
486 } if (_result) {
487 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
488 _resultobj = Py_BuildValue("s",_ptemp);
489 } else {
490 Py_INCREF(Py_None);
491 _resultobj = Py_None;
492 }
493 return _resultobj;
494 }
495
496 static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
497 PyObject * _resultobj;
498 wxIcon * _result;
499 wxBitmap * _arg0;
500 PyObject * _argo0 = 0;
501 char *_kwnames[] = { "bmp", NULL };
502 char _ptemp[128];
503
504 self = self;
505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
506 return NULL;
507 if (_argo0) {
508 if (_argo0 == Py_None) { _arg0 = NULL; }
509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
511 return NULL;
512 }
513 }
514 {
515 PyThreadState* __tstate = wxPyBeginAllowThreads();
516 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
517
518 wxPyEndAllowThreads(__tstate);
519 if (PyErr_Occurred()) return NULL;
520 } if (_result) {
521 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
522 _resultobj = Py_BuildValue("s",_ptemp);
523 } else {
524 Py_INCREF(Py_None);
525 _resultobj = Py_None;
526 }
527 return _resultobj;
528 }
529
530 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
531 PyObject * _resultobj;
532 wxCursor * _result;
533 int _arg0;
534 char *_kwnames[] = { "id", NULL };
535 char _ptemp[128];
536
537 self = self;
538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
539 return NULL;
540 {
541 PyThreadState* __tstate = wxPyBeginAllowThreads();
542 _result = (wxCursor *)wxPyStockCursor(_arg0);
543
544 wxPyEndAllowThreads(__tstate);
545 if (PyErr_Occurred()) return NULL;
546 } if (_result) {
547 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
548 _resultobj = Py_BuildValue("s",_ptemp);
549 } else {
550 Py_INCREF(Py_None);
551 _resultobj = Py_None;
552 }
553 return _resultobj;
554 }
555
556 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
557 PyObject * _resultobj;
558 wxColour * _result;
559 wxString * _arg0;
560 PyObject * _obj0 = 0;
561 char *_kwnames[] = { "colorName", NULL };
562 char _ptemp[128];
563
564 self = self;
565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
566 return NULL;
567 {
568 _arg0 = wxString_in_helper(_obj0);
569 if (_arg0 == NULL)
570 return NULL;
571 }
572 {
573 PyThreadState* __tstate = wxPyBeginAllowThreads();
574 _result = (wxColour *)wxNamedColour(*_arg0);
575
576 wxPyEndAllowThreads(__tstate);
577 if (PyErr_Occurred()) return NULL;
578 } if (_result) {
579 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
580 _resultobj = Py_BuildValue("s",_ptemp);
581 } else {
582 Py_INCREF(Py_None);
583 _resultobj = Py_None;
584 }
585 {
586 if (_obj0)
587 delete _arg0;
588 }
589 return _resultobj;
590 }
591
592 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
593 PyObject * _resultobj;
594 wxMemoryDC * _result;
595 wxDC * _arg0;
596 PyObject * _argo0 = 0;
597 char *_kwnames[] = { "oldDC", NULL };
598 char _ptemp[128];
599
600 self = self;
601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
602 return NULL;
603 if (_argo0) {
604 if (_argo0 == Py_None) { _arg0 = NULL; }
605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
607 return NULL;
608 }
609 }
610 {
611 PyThreadState* __tstate = wxPyBeginAllowThreads();
612 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
613
614 wxPyEndAllowThreads(__tstate);
615 if (PyErr_Occurred()) return NULL;
616 } if (_result) {
617 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
618 _resultobj = Py_BuildValue("s",_ptemp);
619 } else {
620 Py_INCREF(Py_None);
621 _resultobj = Py_None;
622 }
623 return _resultobj;
624 }
625
626 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
627
628 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
629 return 1;
630 }
631
632 static PyObject *_wrap_wxNORMAL_FONT_get() {
633 PyObject * pyobj;
634 char ptemp[128];
635
636 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
637 pyobj = PyString_FromString(ptemp);
638 return pyobj;
639 }
640
641 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
642
643 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
644 return 1;
645 }
646
647 static PyObject *_wrap_wxSMALL_FONT_get() {
648 PyObject * pyobj;
649 char ptemp[128];
650
651 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
652 pyobj = PyString_FromString(ptemp);
653 return pyobj;
654 }
655
656 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
657
658 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
659 return 1;
660 }
661
662 static PyObject *_wrap_wxITALIC_FONT_get() {
663 PyObject * pyobj;
664 char ptemp[128];
665
666 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
667 pyobj = PyString_FromString(ptemp);
668 return pyobj;
669 }
670
671 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
672
673 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
674 return 1;
675 }
676
677 static PyObject *_wrap_wxSWISS_FONT_get() {
678 PyObject * pyobj;
679 char ptemp[128];
680
681 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
682 pyobj = PyString_FromString(ptemp);
683 return pyobj;
684 }
685
686 static int _wrap_wxRED_PEN_set(PyObject *val) {
687
688 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
689 return 1;
690 }
691
692 static PyObject *_wrap_wxRED_PEN_get() {
693 PyObject * pyobj;
694 char ptemp[128];
695
696 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
697 pyobj = PyString_FromString(ptemp);
698 return pyobj;
699 }
700
701 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
702
703 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
704 return 1;
705 }
706
707 static PyObject *_wrap_wxCYAN_PEN_get() {
708 PyObject * pyobj;
709 char ptemp[128];
710
711 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
712 pyobj = PyString_FromString(ptemp);
713 return pyobj;
714 }
715
716 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
717
718 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
719 return 1;
720 }
721
722 static PyObject *_wrap_wxGREEN_PEN_get() {
723 PyObject * pyobj;
724 char ptemp[128];
725
726 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
727 pyobj = PyString_FromString(ptemp);
728 return pyobj;
729 }
730
731 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
732
733 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
734 return 1;
735 }
736
737 static PyObject *_wrap_wxBLACK_PEN_get() {
738 PyObject * pyobj;
739 char ptemp[128];
740
741 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
742 pyobj = PyString_FromString(ptemp);
743 return pyobj;
744 }
745
746 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
747
748 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
749 return 1;
750 }
751
752 static PyObject *_wrap_wxWHITE_PEN_get() {
753 PyObject * pyobj;
754 char ptemp[128];
755
756 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
757 pyobj = PyString_FromString(ptemp);
758 return pyobj;
759 }
760
761 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
762
763 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
764 return 1;
765 }
766
767 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
768 PyObject * pyobj;
769 char ptemp[128];
770
771 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
772 pyobj = PyString_FromString(ptemp);
773 return pyobj;
774 }
775
776 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
777
778 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
779 return 1;
780 }
781
782 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
783 PyObject * pyobj;
784 char ptemp[128];
785
786 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
787 pyobj = PyString_FromString(ptemp);
788 return pyobj;
789 }
790
791 static int _wrap_wxGREY_PEN_set(PyObject *val) {
792
793 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
794 return 1;
795 }
796
797 static PyObject *_wrap_wxGREY_PEN_get() {
798 PyObject * pyobj;
799 char ptemp[128];
800
801 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
802 pyobj = PyString_FromString(ptemp);
803 return pyobj;
804 }
805
806 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
807
808 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
809 return 1;
810 }
811
812 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
813 PyObject * pyobj;
814 char ptemp[128];
815
816 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
817 pyobj = PyString_FromString(ptemp);
818 return pyobj;
819 }
820
821 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
822
823 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
824 return 1;
825 }
826
827 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
828 PyObject * pyobj;
829 char ptemp[128];
830
831 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
832 pyobj = PyString_FromString(ptemp);
833 return pyobj;
834 }
835
836 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
837
838 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
839 return 1;
840 }
841
842 static PyObject *_wrap_wxBLUE_BRUSH_get() {
843 PyObject * pyobj;
844 char ptemp[128];
845
846 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
847 pyobj = PyString_FromString(ptemp);
848 return pyobj;
849 }
850
851 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
852
853 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
854 return 1;
855 }
856
857 static PyObject *_wrap_wxGREEN_BRUSH_get() {
858 PyObject * pyobj;
859 char ptemp[128];
860
861 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
862 pyobj = PyString_FromString(ptemp);
863 return pyobj;
864 }
865
866 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
867
868 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
869 return 1;
870 }
871
872 static PyObject *_wrap_wxWHITE_BRUSH_get() {
873 PyObject * pyobj;
874 char ptemp[128];
875
876 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
877 pyobj = PyString_FromString(ptemp);
878 return pyobj;
879 }
880
881 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
882
883 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
884 return 1;
885 }
886
887 static PyObject *_wrap_wxBLACK_BRUSH_get() {
888 PyObject * pyobj;
889 char ptemp[128];
890
891 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
892 pyobj = PyString_FromString(ptemp);
893 return pyobj;
894 }
895
896 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
897
898 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
899 return 1;
900 }
901
902 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
903 PyObject * pyobj;
904 char ptemp[128];
905
906 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
907 pyobj = PyString_FromString(ptemp);
908 return pyobj;
909 }
910
911 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
912
913 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
914 return 1;
915 }
916
917 static PyObject *_wrap_wxCYAN_BRUSH_get() {
918 PyObject * pyobj;
919 char ptemp[128];
920
921 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
922 pyobj = PyString_FromString(ptemp);
923 return pyobj;
924 }
925
926 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
927
928 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
929 return 1;
930 }
931
932 static PyObject *_wrap_wxRED_BRUSH_get() {
933 PyObject * pyobj;
934 char ptemp[128];
935
936 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
937 pyobj = PyString_FromString(ptemp);
938 return pyobj;
939 }
940
941 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
942
943 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
944 return 1;
945 }
946
947 static PyObject *_wrap_wxGREY_BRUSH_get() {
948 PyObject * pyobj;
949 char ptemp[128];
950
951 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
952 pyobj = PyString_FromString(ptemp);
953 return pyobj;
954 }
955
956 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
957
958 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
959 return 1;
960 }
961
962 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
963 PyObject * pyobj;
964 char ptemp[128];
965
966 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
967 pyobj = PyString_FromString(ptemp);
968 return pyobj;
969 }
970
971 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
972
973 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
974 return 1;
975 }
976
977 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
978 PyObject * pyobj;
979 char ptemp[128];
980
981 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
982 pyobj = PyString_FromString(ptemp);
983 return pyobj;
984 }
985
986 static int _wrap_wxBLACK_set(PyObject *val) {
987
988 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
989 return 1;
990 }
991
992 static PyObject *_wrap_wxBLACK_get() {
993 PyObject * pyobj;
994 char ptemp[128];
995
996 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
997 pyobj = PyString_FromString(ptemp);
998 return pyobj;
999 }
1000
1001 static int _wrap_wxWHITE_set(PyObject *val) {
1002
1003 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1004 return 1;
1005 }
1006
1007 static PyObject *_wrap_wxWHITE_get() {
1008 PyObject * pyobj;
1009 char ptemp[128];
1010
1011 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1012 pyobj = PyString_FromString(ptemp);
1013 return pyobj;
1014 }
1015
1016 static int _wrap_wxRED_set(PyObject *val) {
1017
1018 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1019 return 1;
1020 }
1021
1022 static PyObject *_wrap_wxRED_get() {
1023 PyObject * pyobj;
1024 char ptemp[128];
1025
1026 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1027 pyobj = PyString_FromString(ptemp);
1028 return pyobj;
1029 }
1030
1031 static int _wrap_wxBLUE_set(PyObject *val) {
1032
1033 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1034 return 1;
1035 }
1036
1037 static PyObject *_wrap_wxBLUE_get() {
1038 PyObject * pyobj;
1039 char ptemp[128];
1040
1041 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1042 pyobj = PyString_FromString(ptemp);
1043 return pyobj;
1044 }
1045
1046 static int _wrap_wxGREEN_set(PyObject *val) {
1047
1048 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1049 return 1;
1050 }
1051
1052 static PyObject *_wrap_wxGREEN_get() {
1053 PyObject * pyobj;
1054 char ptemp[128];
1055
1056 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1057 pyobj = PyString_FromString(ptemp);
1058 return pyobj;
1059 }
1060
1061 static int _wrap_wxCYAN_set(PyObject *val) {
1062
1063 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1064 return 1;
1065 }
1066
1067 static PyObject *_wrap_wxCYAN_get() {
1068 PyObject * pyobj;
1069 char ptemp[128];
1070
1071 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1072 pyobj = PyString_FromString(ptemp);
1073 return pyobj;
1074 }
1075
1076 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1077
1078 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1079 return 1;
1080 }
1081
1082 static PyObject *_wrap_wxLIGHT_GREY_get() {
1083 PyObject * pyobj;
1084 char ptemp[128];
1085
1086 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1087 pyobj = PyString_FromString(ptemp);
1088 return pyobj;
1089 }
1090
1091 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1092
1093 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1094 return 1;
1095 }
1096
1097 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1098 PyObject * pyobj;
1099 char ptemp[128];
1100
1101 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1102 pyobj = PyString_FromString(ptemp);
1103 return pyobj;
1104 }
1105
1106 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1107
1108 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1109 return 1;
1110 }
1111
1112 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1113 PyObject * pyobj;
1114 char ptemp[128];
1115
1116 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1117 pyobj = PyString_FromString(ptemp);
1118 return pyobj;
1119 }
1120
1121 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1122
1123 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1124 return 1;
1125 }
1126
1127 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1128 PyObject * pyobj;
1129 char ptemp[128];
1130
1131 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1132 pyobj = PyString_FromString(ptemp);
1133 return pyobj;
1134 }
1135
1136 static int _wrap_wxNullBitmap_set(PyObject *val) {
1137
1138 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1139 return 1;
1140 }
1141
1142 static PyObject *_wrap_wxNullBitmap_get() {
1143 PyObject * pyobj;
1144 char ptemp[128];
1145
1146 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1147 pyobj = PyString_FromString(ptemp);
1148 return pyobj;
1149 }
1150
1151 static int _wrap_wxNullIcon_set(PyObject *val) {
1152
1153 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1154 return 1;
1155 }
1156
1157 static PyObject *_wrap_wxNullIcon_get() {
1158 PyObject * pyobj;
1159 char ptemp[128];
1160
1161 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1162 pyobj = PyString_FromString(ptemp);
1163 return pyobj;
1164 }
1165
1166 static int _wrap_wxNullCursor_set(PyObject *val) {
1167
1168 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1169 return 1;
1170 }
1171
1172 static PyObject *_wrap_wxNullCursor_get() {
1173 PyObject * pyobj;
1174 char ptemp[128];
1175
1176 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1177 pyobj = PyString_FromString(ptemp);
1178 return pyobj;
1179 }
1180
1181 static int _wrap_wxNullPen_set(PyObject *val) {
1182
1183 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1184 return 1;
1185 }
1186
1187 static PyObject *_wrap_wxNullPen_get() {
1188 PyObject * pyobj;
1189 char ptemp[128];
1190
1191 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1192 pyobj = PyString_FromString(ptemp);
1193 return pyobj;
1194 }
1195
1196 static int _wrap_wxNullBrush_set(PyObject *val) {
1197
1198 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1199 return 1;
1200 }
1201
1202 static PyObject *_wrap_wxNullBrush_get() {
1203 PyObject * pyobj;
1204 char ptemp[128];
1205
1206 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1207 pyobj = PyString_FromString(ptemp);
1208 return pyobj;
1209 }
1210
1211 static int _wrap_wxNullPalette_set(PyObject *val) {
1212
1213 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1214 return 1;
1215 }
1216
1217 static PyObject *_wrap_wxNullPalette_get() {
1218 PyObject * pyobj;
1219 char ptemp[128];
1220
1221 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1222 pyobj = PyString_FromString(ptemp);
1223 return pyobj;
1224 }
1225
1226 static int _wrap_wxNullFont_set(PyObject *val) {
1227
1228 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1229 return 1;
1230 }
1231
1232 static PyObject *_wrap_wxNullFont_get() {
1233 PyObject * pyobj;
1234 char ptemp[128];
1235
1236 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1237 pyobj = PyString_FromString(ptemp);
1238 return pyobj;
1239 }
1240
1241 static int _wrap_wxNullColour_set(PyObject *val) {
1242
1243 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1244 return 1;
1245 }
1246
1247 static PyObject *_wrap_wxNullColour_get() {
1248 PyObject * pyobj;
1249 char ptemp[128];
1250
1251 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1252 pyobj = PyString_FromString(ptemp);
1253 return pyobj;
1254 }
1255
1256 static int _wrap_wxTheFontList_set(PyObject *val) {
1257
1258 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1259 return 1;
1260 }
1261
1262 static PyObject *_wrap_wxTheFontList_get() {
1263 PyObject * pyobj;
1264 char ptemp[128];
1265
1266 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1267 pyobj = PyString_FromString(ptemp);
1268 return pyobj;
1269 }
1270
1271 static int _wrap_wxThePenList_set(PyObject *val) {
1272
1273 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1274 return 1;
1275 }
1276
1277 static PyObject *_wrap_wxThePenList_get() {
1278 PyObject * pyobj;
1279 char ptemp[128];
1280
1281 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1282 pyobj = PyString_FromString(ptemp);
1283 return pyobj;
1284 }
1285
1286 static int _wrap_wxTheBrushList_set(PyObject *val) {
1287
1288 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1289 return 1;
1290 }
1291
1292 static PyObject *_wrap_wxTheBrushList_get() {
1293 PyObject * pyobj;
1294 char ptemp[128];
1295
1296 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1297 pyobj = PyString_FromString(ptemp);
1298 return pyobj;
1299 }
1300
1301 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1302
1303 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1304 return 1;
1305 }
1306
1307 static PyObject *_wrap_wxTheColourDatabase_get() {
1308 PyObject * pyobj;
1309 char ptemp[128];
1310
1311 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1312 pyobj = PyString_FromString(ptemp);
1313 return pyobj;
1314 }
1315
1316 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1317 wxGDIObject *src;
1318 wxObject *dest;
1319 src = (wxGDIObject *) ptr;
1320 dest = (wxObject *) src;
1321 return (void *) dest;
1322 }
1323
1324 #define new_wxGDIObject() (new wxGDIObject())
1325 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject * _resultobj;
1327 wxGDIObject * _result;
1328 char *_kwnames[] = { NULL };
1329 char _ptemp[128];
1330
1331 self = self;
1332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1333 return NULL;
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 _result = (wxGDIObject *)new_wxGDIObject();
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) return NULL;
1340 } if (_result) {
1341 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1342 _resultobj = Py_BuildValue("s",_ptemp);
1343 } else {
1344 Py_INCREF(Py_None);
1345 _resultobj = Py_None;
1346 }
1347 return _resultobj;
1348 }
1349
1350 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1351 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1352 PyObject * _resultobj;
1353 wxGDIObject * _arg0;
1354 PyObject * _argo0 = 0;
1355 char *_kwnames[] = { "self", NULL };
1356
1357 self = self;
1358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1359 return NULL;
1360 if (_argo0) {
1361 if (_argo0 == Py_None) { _arg0 = NULL; }
1362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1364 return NULL;
1365 }
1366 }
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 delete_wxGDIObject(_arg0);
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) return NULL;
1373 } Py_INCREF(Py_None);
1374 _resultobj = Py_None;
1375 return _resultobj;
1376 }
1377
1378 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1379 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1380 PyObject * _resultobj;
1381 bool _result;
1382 wxGDIObject * _arg0;
1383 PyObject * _argo0 = 0;
1384 char *_kwnames[] = { "self", NULL };
1385
1386 self = self;
1387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1388 return NULL;
1389 if (_argo0) {
1390 if (_argo0 == Py_None) { _arg0 = NULL; }
1391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1393 return NULL;
1394 }
1395 }
1396 {
1397 PyThreadState* __tstate = wxPyBeginAllowThreads();
1398 _result = (bool )wxGDIObject_GetVisible(_arg0);
1399
1400 wxPyEndAllowThreads(__tstate);
1401 if (PyErr_Occurred()) return NULL;
1402 } _resultobj = Py_BuildValue("i",_result);
1403 return _resultobj;
1404 }
1405
1406 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1407 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1408 PyObject * _resultobj;
1409 wxGDIObject * _arg0;
1410 bool _arg1;
1411 PyObject * _argo0 = 0;
1412 int tempbool1;
1413 char *_kwnames[] = { "self","visible", NULL };
1414
1415 self = self;
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1417 return NULL;
1418 if (_argo0) {
1419 if (_argo0 == Py_None) { _arg0 = NULL; }
1420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1422 return NULL;
1423 }
1424 }
1425 _arg1 = (bool ) tempbool1;
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 wxGDIObject_SetVisible(_arg0,_arg1);
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) return NULL;
1432 } Py_INCREF(Py_None);
1433 _resultobj = Py_None;
1434 return _resultobj;
1435 }
1436
1437 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1438 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1439 PyObject * _resultobj;
1440 bool _result;
1441 wxGDIObject * _arg0;
1442 PyObject * _argo0 = 0;
1443 char *_kwnames[] = { "self", NULL };
1444
1445 self = self;
1446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1447 return NULL;
1448 if (_argo0) {
1449 if (_argo0 == Py_None) { _arg0 = NULL; }
1450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1452 return NULL;
1453 }
1454 }
1455 {
1456 PyThreadState* __tstate = wxPyBeginAllowThreads();
1457 _result = (bool )wxGDIObject_IsNull(_arg0);
1458
1459 wxPyEndAllowThreads(__tstate);
1460 if (PyErr_Occurred()) return NULL;
1461 } _resultobj = Py_BuildValue("i",_result);
1462 return _resultobj;
1463 }
1464
1465 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1466 wxBitmap *src;
1467 wxGDIObject *dest;
1468 src = (wxBitmap *) ptr;
1469 dest = (wxGDIObject *) src;
1470 return (void *) dest;
1471 }
1472
1473 static void *SwigwxBitmapTowxObject(void *ptr) {
1474 wxBitmap *src;
1475 wxObject *dest;
1476 src = (wxBitmap *) ptr;
1477 dest = (wxObject *) src;
1478 return (void *) dest;
1479 }
1480
1481 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1482 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1483 PyObject * _resultobj;
1484 wxBitmap * _result;
1485 wxString * _arg0;
1486 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1487 PyObject * _obj0 = 0;
1488 char *_kwnames[] = { "name","type", NULL };
1489 char _ptemp[128];
1490
1491 self = self;
1492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1493 return NULL;
1494 {
1495 _arg0 = wxString_in_helper(_obj0);
1496 if (_arg0 == NULL)
1497 return NULL;
1498 }
1499 {
1500 PyThreadState* __tstate = wxPyBeginAllowThreads();
1501 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1502
1503 wxPyEndAllowThreads(__tstate);
1504 if (PyErr_Occurred()) return NULL;
1505 } if (_result) {
1506 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1507 _resultobj = Py_BuildValue("s",_ptemp);
1508 } else {
1509 Py_INCREF(Py_None);
1510 _resultobj = Py_None;
1511 }
1512 {
1513 if (_obj0)
1514 delete _arg0;
1515 }
1516 return _resultobj;
1517 }
1518
1519 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1520 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1521 PyObject * _resultobj;
1522 wxBitmap * _arg0;
1523 PyObject * _argo0 = 0;
1524 char *_kwnames[] = { "self", NULL };
1525
1526 self = self;
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1528 return NULL;
1529 if (_argo0) {
1530 if (_argo0 == Py_None) { _arg0 = NULL; }
1531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1533 return NULL;
1534 }
1535 }
1536 {
1537 PyThreadState* __tstate = wxPyBeginAllowThreads();
1538 delete_wxBitmap(_arg0);
1539
1540 wxPyEndAllowThreads(__tstate);
1541 if (PyErr_Occurred()) return NULL;
1542 } Py_INCREF(Py_None);
1543 _resultobj = Py_None;
1544 return _resultobj;
1545 }
1546
1547 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1548 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1549 PyObject * _resultobj;
1550 wxPalette * _result;
1551 wxBitmap * _arg0;
1552 PyObject * _argo0 = 0;
1553 char *_kwnames[] = { "self", NULL };
1554 char _ptemp[128];
1555
1556 self = self;
1557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1558 return NULL;
1559 if (_argo0) {
1560 if (_argo0 == Py_None) { _arg0 = NULL; }
1561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1563 return NULL;
1564 }
1565 }
1566 {
1567 PyThreadState* __tstate = wxPyBeginAllowThreads();
1568 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1569
1570 wxPyEndAllowThreads(__tstate);
1571 if (PyErr_Occurred()) return NULL;
1572 } if (_result) {
1573 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1574 _resultobj = Py_BuildValue("s",_ptemp);
1575 } else {
1576 Py_INCREF(Py_None);
1577 _resultobj = Py_None;
1578 }
1579 return _resultobj;
1580 }
1581
1582 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1583 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1584 PyObject * _resultobj;
1585 wxMask * _result;
1586 wxBitmap * _arg0;
1587 PyObject * _argo0 = 0;
1588 char *_kwnames[] = { "self", NULL };
1589 char _ptemp[128];
1590
1591 self = self;
1592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1593 return NULL;
1594 if (_argo0) {
1595 if (_argo0 == Py_None) { _arg0 = NULL; }
1596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1598 return NULL;
1599 }
1600 }
1601 {
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) return NULL;
1607 } if (_result) {
1608 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1609 _resultobj = Py_BuildValue("s",_ptemp);
1610 } else {
1611 Py_INCREF(Py_None);
1612 _resultobj = Py_None;
1613 }
1614 return _resultobj;
1615 }
1616
1617 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1618 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1619 PyObject * _resultobj;
1620 bool _result;
1621 wxBitmap * _arg0;
1622 wxString * _arg1;
1623 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1624 PyObject * _argo0 = 0;
1625 PyObject * _obj1 = 0;
1626 char *_kwnames[] = { "self","name","type", NULL };
1627
1628 self = self;
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1630 return NULL;
1631 if (_argo0) {
1632 if (_argo0 == Py_None) { _arg0 = NULL; }
1633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1635 return NULL;
1636 }
1637 }
1638 {
1639 _arg1 = wxString_in_helper(_obj1);
1640 if (_arg1 == NULL)
1641 return NULL;
1642 }
1643 {
1644 PyThreadState* __tstate = wxPyBeginAllowThreads();
1645 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1646
1647 wxPyEndAllowThreads(__tstate);
1648 if (PyErr_Occurred()) return NULL;
1649 } _resultobj = Py_BuildValue("i",_result);
1650 {
1651 if (_obj1)
1652 delete _arg1;
1653 }
1654 return _resultobj;
1655 }
1656
1657 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1658 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1659 PyObject * _resultobj;
1660 bool _result;
1661 wxBitmap * _arg0;
1662 wxString * _arg1;
1663 wxBitmapType _arg2;
1664 wxPalette * _arg3 = (wxPalette *) NULL;
1665 PyObject * _argo0 = 0;
1666 PyObject * _obj1 = 0;
1667 PyObject * _argo3 = 0;
1668 char *_kwnames[] = { "self","name","type","palette", NULL };
1669
1670 self = self;
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1672 return NULL;
1673 if (_argo0) {
1674 if (_argo0 == Py_None) { _arg0 = NULL; }
1675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1677 return NULL;
1678 }
1679 }
1680 {
1681 _arg1 = wxString_in_helper(_obj1);
1682 if (_arg1 == NULL)
1683 return NULL;
1684 }
1685 if (_argo3) {
1686 if (_argo3 == Py_None) { _arg3 = NULL; }
1687 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1688 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1689 return NULL;
1690 }
1691 }
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) return NULL;
1698 } _resultobj = Py_BuildValue("i",_result);
1699 {
1700 if (_obj1)
1701 delete _arg1;
1702 }
1703 return _resultobj;
1704 }
1705
1706 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1707 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1708 PyObject * _resultobj;
1709 wxBitmap * _arg0;
1710 wxMask * _arg1;
1711 PyObject * _argo0 = 0;
1712 PyObject * _argo1 = 0;
1713 char *_kwnames[] = { "self","mask", NULL };
1714
1715 self = self;
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1717 return NULL;
1718 if (_argo0) {
1719 if (_argo0 == Py_None) { _arg0 = NULL; }
1720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1722 return NULL;
1723 }
1724 }
1725 if (_argo1) {
1726 if (_argo1 == Py_None) { _arg1 = NULL; }
1727 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1728 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1729 return NULL;
1730 }
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
1734 wxBitmap_SetMask(_arg0,_arg1);
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) return NULL;
1738 } Py_INCREF(Py_None);
1739 _resultobj = Py_None;
1740 return _resultobj;
1741 }
1742
1743 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1744 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject * _resultobj;
1746 wxBitmap * _arg0;
1747 wxPalette * _arg1;
1748 PyObject * _argo0 = 0;
1749 PyObject * _argo1 = 0;
1750 char *_kwnames[] = { "self","palette", NULL };
1751
1752 self = self;
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1754 return NULL;
1755 if (_argo0) {
1756 if (_argo0 == Py_None) { _arg0 = NULL; }
1757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1759 return NULL;
1760 }
1761 }
1762 if (_argo1) {
1763 if (_argo1 == Py_None) { _arg1 = NULL; }
1764 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1765 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1766 return NULL;
1767 }
1768 }
1769 {
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 wxBitmap_SetPalette(_arg0,*_arg1);
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) return NULL;
1775 } Py_INCREF(Py_None);
1776 _resultobj = Py_None;
1777 return _resultobj;
1778 }
1779
1780 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1781 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject * _resultobj;
1783 long _result;
1784 wxBitmap * _arg0;
1785 PyObject * _argo0 = 0;
1786 char *_kwnames[] = { "self", NULL };
1787
1788 self = self;
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1790 return NULL;
1791 if (_argo0) {
1792 if (_argo0 == Py_None) { _arg0 = NULL; }
1793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1795 return NULL;
1796 }
1797 }
1798 {
1799 PyThreadState* __tstate = wxPyBeginAllowThreads();
1800 _result = (long )wxBitmap_GetHandle(_arg0);
1801
1802 wxPyEndAllowThreads(__tstate);
1803 if (PyErr_Occurred()) return NULL;
1804 } _resultobj = Py_BuildValue("l",_result);
1805 return _resultobj;
1806 }
1807
1808 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1809 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject * _resultobj;
1811 wxBitmap * _arg0;
1812 long _arg1;
1813 PyObject * _argo0 = 0;
1814 char *_kwnames[] = { "self","handle", NULL };
1815
1816 self = self;
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1818 return NULL;
1819 if (_argo0) {
1820 if (_argo0 == Py_None) { _arg0 = NULL; }
1821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1823 return NULL;
1824 }
1825 }
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 wxBitmap_SetHandle(_arg0,_arg1);
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) return NULL;
1832 } Py_INCREF(Py_None);
1833 _resultobj = Py_None;
1834 return _resultobj;
1835 }
1836
1837 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1838 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1839 PyObject * _resultobj;
1840 bool _result;
1841 wxBitmap * _arg0;
1842 PyObject * _argo0 = 0;
1843 char *_kwnames[] = { "self", NULL };
1844
1845 self = self;
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1847 return NULL;
1848 if (_argo0) {
1849 if (_argo0 == Py_None) { _arg0 = NULL; }
1850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1852 return NULL;
1853 }
1854 }
1855 {
1856 PyThreadState* __tstate = wxPyBeginAllowThreads();
1857 _result = (bool )wxBitmap_Ok(_arg0);
1858
1859 wxPyEndAllowThreads(__tstate);
1860 if (PyErr_Occurred()) return NULL;
1861 } _resultobj = Py_BuildValue("i",_result);
1862 return _resultobj;
1863 }
1864
1865 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1866 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject * _resultobj;
1868 int _result;
1869 wxBitmap * _arg0;
1870 PyObject * _argo0 = 0;
1871 char *_kwnames[] = { "self", NULL };
1872
1873 self = self;
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1875 return NULL;
1876 if (_argo0) {
1877 if (_argo0 == Py_None) { _arg0 = NULL; }
1878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1880 return NULL;
1881 }
1882 }
1883 {
1884 PyThreadState* __tstate = wxPyBeginAllowThreads();
1885 _result = (int )wxBitmap_GetWidth(_arg0);
1886
1887 wxPyEndAllowThreads(__tstate);
1888 if (PyErr_Occurred()) return NULL;
1889 } _resultobj = Py_BuildValue("i",_result);
1890 return _resultobj;
1891 }
1892
1893 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1894 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject * _resultobj;
1896 int _result;
1897 wxBitmap * _arg0;
1898 PyObject * _argo0 = 0;
1899 char *_kwnames[] = { "self", NULL };
1900
1901 self = self;
1902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1903 return NULL;
1904 if (_argo0) {
1905 if (_argo0 == Py_None) { _arg0 = NULL; }
1906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1908 return NULL;
1909 }
1910 }
1911 {
1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
1913 _result = (int )wxBitmap_GetHeight(_arg0);
1914
1915 wxPyEndAllowThreads(__tstate);
1916 if (PyErr_Occurred()) return NULL;
1917 } _resultobj = Py_BuildValue("i",_result);
1918 return _resultobj;
1919 }
1920
1921 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1922 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1923 PyObject * _resultobj;
1924 int _result;
1925 wxBitmap * _arg0;
1926 PyObject * _argo0 = 0;
1927 char *_kwnames[] = { "self", NULL };
1928
1929 self = self;
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1931 return NULL;
1932 if (_argo0) {
1933 if (_argo0 == Py_None) { _arg0 = NULL; }
1934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1936 return NULL;
1937 }
1938 }
1939 {
1940 PyThreadState* __tstate = wxPyBeginAllowThreads();
1941 _result = (int )wxBitmap_GetDepth(_arg0);
1942
1943 wxPyEndAllowThreads(__tstate);
1944 if (PyErr_Occurred()) return NULL;
1945 } _resultobj = Py_BuildValue("i",_result);
1946 return _resultobj;
1947 }
1948
1949 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1950 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1951 PyObject * _resultobj;
1952 wxBitmap * _arg0;
1953 int _arg1;
1954 PyObject * _argo0 = 0;
1955 char *_kwnames[] = { "self","w", NULL };
1956
1957 self = self;
1958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1959 return NULL;
1960 if (_argo0) {
1961 if (_argo0 == Py_None) { _arg0 = NULL; }
1962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1964 return NULL;
1965 }
1966 }
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 wxBitmap_SetWidth(_arg0,_arg1);
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) return NULL;
1973 } Py_INCREF(Py_None);
1974 _resultobj = Py_None;
1975 return _resultobj;
1976 }
1977
1978 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1979 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1980 PyObject * _resultobj;
1981 wxBitmap * _arg0;
1982 int _arg1;
1983 PyObject * _argo0 = 0;
1984 char *_kwnames[] = { "self","h", NULL };
1985
1986 self = self;
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
1988 return NULL;
1989 if (_argo0) {
1990 if (_argo0 == Py_None) { _arg0 = NULL; }
1991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1993 return NULL;
1994 }
1995 }
1996 {
1997 PyThreadState* __tstate = wxPyBeginAllowThreads();
1998 wxBitmap_SetHeight(_arg0,_arg1);
1999
2000 wxPyEndAllowThreads(__tstate);
2001 if (PyErr_Occurred()) return NULL;
2002 } Py_INCREF(Py_None);
2003 _resultobj = Py_None;
2004 return _resultobj;
2005 }
2006
2007 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2008 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2009 PyObject * _resultobj;
2010 wxBitmap * _arg0;
2011 int _arg1;
2012 PyObject * _argo0 = 0;
2013 char *_kwnames[] = { "self","d", NULL };
2014
2015 self = self;
2016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2017 return NULL;
2018 if (_argo0) {
2019 if (_argo0 == Py_None) { _arg0 = NULL; }
2020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2022 return NULL;
2023 }
2024 }
2025 {
2026 PyThreadState* __tstate = wxPyBeginAllowThreads();
2027 wxBitmap_SetDepth(_arg0,_arg1);
2028
2029 wxPyEndAllowThreads(__tstate);
2030 if (PyErr_Occurred()) return NULL;
2031 } Py_INCREF(Py_None);
2032 _resultobj = Py_None;
2033 return _resultobj;
2034 }
2035
2036 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2037 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2038 PyObject * _resultobj;
2039 wxBitmap * _arg0;
2040 wxSize * _arg1;
2041 PyObject * _argo0 = 0;
2042 wxSize temp;
2043 PyObject * _obj1 = 0;
2044 char *_kwnames[] = { "self","size", NULL };
2045
2046 self = self;
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2048 return NULL;
2049 if (_argo0) {
2050 if (_argo0 == Py_None) { _arg0 = NULL; }
2051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2053 return NULL;
2054 }
2055 }
2056 {
2057 _arg1 = &temp;
2058 if (! wxSize_helper(_obj1, &_arg1))
2059 return NULL;
2060 }
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 wxBitmap_SetSize(_arg0,*_arg1);
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) return NULL;
2067 } Py_INCREF(Py_None);
2068 _resultobj = Py_None;
2069 return _resultobj;
2070 }
2071
2072 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2073 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2074 PyObject * _resultobj;
2075 wxBitmap * _result;
2076 wxBitmap * _arg0;
2077 wxRect * _arg1;
2078 PyObject * _argo0 = 0;
2079 wxRect temp;
2080 PyObject * _obj1 = 0;
2081 char *_kwnames[] = { "self","rect", NULL };
2082 char _ptemp[128];
2083
2084 self = self;
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2086 return NULL;
2087 if (_argo0) {
2088 if (_argo0 == Py_None) { _arg0 = NULL; }
2089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2091 return NULL;
2092 }
2093 }
2094 {
2095 _arg1 = &temp;
2096 if (! wxRect_helper(_obj1, &_arg1))
2097 return NULL;
2098 }
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) return NULL;
2105 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2106 _resultobj = Py_BuildValue("s",_ptemp);
2107 return _resultobj;
2108 }
2109
2110 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2111 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject * _resultobj;
2113 bool _result;
2114 wxBitmap * _arg0;
2115 wxIcon * _arg1;
2116 PyObject * _argo0 = 0;
2117 PyObject * _argo1 = 0;
2118 char *_kwnames[] = { "self","icon", NULL };
2119
2120 self = self;
2121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2122 return NULL;
2123 if (_argo0) {
2124 if (_argo0 == Py_None) { _arg0 = NULL; }
2125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2127 return NULL;
2128 }
2129 }
2130 if (_argo1) {
2131 if (_argo1 == Py_None) { _arg1 = NULL; }
2132 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2133 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2134 return NULL;
2135 }
2136 }
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) return NULL;
2143 } _resultobj = Py_BuildValue("i",_result);
2144 return _resultobj;
2145 }
2146
2147 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2148 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject * _resultobj;
2150 bool _result;
2151 wxBitmap * _arg0;
2152 wxCursor * _arg1;
2153 PyObject * _argo0 = 0;
2154 PyObject * _argo1 = 0;
2155 char *_kwnames[] = { "self","cursor", NULL };
2156
2157 self = self;
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2159 return NULL;
2160 if (_argo0) {
2161 if (_argo0 == Py_None) { _arg0 = NULL; }
2162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2164 return NULL;
2165 }
2166 }
2167 if (_argo1) {
2168 if (_argo1 == Py_None) { _arg1 = NULL; }
2169 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2170 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2171 return NULL;
2172 }
2173 }
2174 {
2175 PyThreadState* __tstate = wxPyBeginAllowThreads();
2176 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2177
2178 wxPyEndAllowThreads(__tstate);
2179 if (PyErr_Occurred()) return NULL;
2180 } _resultobj = Py_BuildValue("i",_result);
2181 return _resultobj;
2182 }
2183
2184 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2185 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2186 PyObject * _resultobj;
2187 int _result;
2188 wxBitmap * _arg0;
2189 PyObject * _argo0 = 0;
2190 char *_kwnames[] = { "self", NULL };
2191
2192 self = self;
2193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2194 return NULL;
2195 if (_argo0) {
2196 if (_argo0 == Py_None) { _arg0 = NULL; }
2197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2199 return NULL;
2200 }
2201 }
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
2204 _result = (int )wxBitmap_GetQuality(_arg0);
2205
2206 wxPyEndAllowThreads(__tstate);
2207 if (PyErr_Occurred()) return NULL;
2208 } _resultobj = Py_BuildValue("i",_result);
2209 return _resultobj;
2210 }
2211
2212 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2213 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2214 PyObject * _resultobj;
2215 wxBitmap * _arg0;
2216 int _arg1;
2217 PyObject * _argo0 = 0;
2218 char *_kwnames[] = { "self","q", NULL };
2219
2220 self = self;
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2222 return NULL;
2223 if (_argo0) {
2224 if (_argo0 == Py_None) { _arg0 = NULL; }
2225 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2226 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2227 return NULL;
2228 }
2229 }
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 wxBitmap_SetQuality(_arg0,_arg1);
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) return NULL;
2236 } Py_INCREF(Py_None);
2237 _resultobj = Py_None;
2238 return _resultobj;
2239 }
2240
2241 static void *SwigwxMaskTowxObject(void *ptr) {
2242 wxMask *src;
2243 wxObject *dest;
2244 src = (wxMask *) ptr;
2245 dest = (wxObject *) src;
2246 return (void *) dest;
2247 }
2248
2249 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2250 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2251 PyObject * _resultobj;
2252 wxMask * _result;
2253 wxBitmap * _arg0;
2254 PyObject * _argo0 = 0;
2255 char *_kwnames[] = { "bitmap", NULL };
2256 char _ptemp[128];
2257
2258 self = self;
2259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2260 return NULL;
2261 if (_argo0) {
2262 if (_argo0 == Py_None) { _arg0 = NULL; }
2263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2265 return NULL;
2266 }
2267 }
2268 {
2269 PyThreadState* __tstate = wxPyBeginAllowThreads();
2270 _result = (wxMask *)new_wxMask(*_arg0);
2271
2272 wxPyEndAllowThreads(__tstate);
2273 if (PyErr_Occurred()) return NULL;
2274 } if (_result) {
2275 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2276 _resultobj = Py_BuildValue("s",_ptemp);
2277 } else {
2278 Py_INCREF(Py_None);
2279 _resultobj = Py_None;
2280 }
2281 return _resultobj;
2282 }
2283
2284 static void wxMask_Destroy(wxMask *self) { delete self; }
2285 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2286 PyObject * _resultobj;
2287 wxMask * _arg0;
2288 PyObject * _argo0 = 0;
2289 char *_kwnames[] = { "self", NULL };
2290
2291 self = self;
2292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2293 return NULL;
2294 if (_argo0) {
2295 if (_argo0 == Py_None) { _arg0 = NULL; }
2296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2298 return NULL;
2299 }
2300 }
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 wxMask_Destroy(_arg0);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) return NULL;
2307 } Py_INCREF(Py_None);
2308 _resultobj = Py_None;
2309 return _resultobj;
2310 }
2311
2312 static void *SwigwxIconTowxGDIObject(void *ptr) {
2313 wxIcon *src;
2314 wxGDIObject *dest;
2315 src = (wxIcon *) ptr;
2316 dest = (wxGDIObject *) src;
2317 return (void *) dest;
2318 }
2319
2320 static void *SwigwxIconTowxObject(void *ptr) {
2321 wxIcon *src;
2322 wxObject *dest;
2323 src = (wxIcon *) ptr;
2324 dest = (wxObject *) src;
2325 return (void *) dest;
2326 }
2327
2328 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2329 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject * _resultobj;
2331 wxIcon * _result;
2332 wxString * _arg0;
2333 long _arg1;
2334 int _arg2 = (int ) -1;
2335 int _arg3 = (int ) -1;
2336 PyObject * _obj0 = 0;
2337 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2338 char _ptemp[128];
2339
2340 self = self;
2341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2342 return NULL;
2343 {
2344 _arg0 = wxString_in_helper(_obj0);
2345 if (_arg0 == NULL)
2346 return NULL;
2347 }
2348 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
2350 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) return NULL;
2354 } if (_result) {
2355 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2356 _resultobj = Py_BuildValue("s",_ptemp);
2357 } else {
2358 Py_INCREF(Py_None);
2359 _resultobj = Py_None;
2360 }
2361 {
2362 if (_obj0)
2363 delete _arg0;
2364 }
2365 return _resultobj;
2366 }
2367
2368 #define delete_wxIcon(_swigobj) (delete _swigobj)
2369 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2370 PyObject * _resultobj;
2371 wxIcon * _arg0;
2372 PyObject * _argo0 = 0;
2373 char *_kwnames[] = { "self", NULL };
2374
2375 self = self;
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2377 return NULL;
2378 if (_argo0) {
2379 if (_argo0 == Py_None) { _arg0 = NULL; }
2380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2382 return NULL;
2383 }
2384 }
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 delete_wxIcon(_arg0);
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) return NULL;
2391 } Py_INCREF(Py_None);
2392 _resultobj = Py_None;
2393 return _resultobj;
2394 }
2395
2396 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2397 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject * _resultobj;
2399 bool _result;
2400 wxIcon * _arg0;
2401 wxString * _arg1;
2402 long _arg2;
2403 PyObject * _argo0 = 0;
2404 PyObject * _obj1 = 0;
2405 char *_kwnames[] = { "self","name","flags", NULL };
2406
2407 self = self;
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2409 return NULL;
2410 if (_argo0) {
2411 if (_argo0 == Py_None) { _arg0 = NULL; }
2412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2414 return NULL;
2415 }
2416 }
2417 {
2418 _arg1 = wxString_in_helper(_obj1);
2419 if (_arg1 == NULL)
2420 return NULL;
2421 }
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) return NULL;
2428 } _resultobj = Py_BuildValue("i",_result);
2429 {
2430 if (_obj1)
2431 delete _arg1;
2432 }
2433 return _resultobj;
2434 }
2435
2436 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2437 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2438 PyObject * _resultobj;
2439 long _result;
2440 wxIcon * _arg0;
2441 PyObject * _argo0 = 0;
2442 char *_kwnames[] = { "self", NULL };
2443
2444 self = self;
2445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2446 return NULL;
2447 if (_argo0) {
2448 if (_argo0 == Py_None) { _arg0 = NULL; }
2449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2451 return NULL;
2452 }
2453 }
2454 {
2455 PyThreadState* __tstate = wxPyBeginAllowThreads();
2456 _result = (long )wxIcon_GetHandle(_arg0);
2457
2458 wxPyEndAllowThreads(__tstate);
2459 if (PyErr_Occurred()) return NULL;
2460 } _resultobj = Py_BuildValue("l",_result);
2461 return _resultobj;
2462 }
2463
2464 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2465 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 wxIcon * _arg0;
2468 long _arg1;
2469 PyObject * _argo0 = 0;
2470 char *_kwnames[] = { "self","handle", NULL };
2471
2472 self = self;
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2474 return NULL;
2475 if (_argo0) {
2476 if (_argo0 == Py_None) { _arg0 = NULL; }
2477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2479 return NULL;
2480 }
2481 }
2482 {
2483 PyThreadState* __tstate = wxPyBeginAllowThreads();
2484 wxIcon_SetHandle(_arg0,_arg1);
2485
2486 wxPyEndAllowThreads(__tstate);
2487 if (PyErr_Occurred()) return NULL;
2488 } Py_INCREF(Py_None);
2489 _resultobj = Py_None;
2490 return _resultobj;
2491 }
2492
2493 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2494 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2495 PyObject * _resultobj;
2496 bool _result;
2497 wxIcon * _arg0;
2498 PyObject * _argo0 = 0;
2499 char *_kwnames[] = { "self", NULL };
2500
2501 self = self;
2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2503 return NULL;
2504 if (_argo0) {
2505 if (_argo0 == Py_None) { _arg0 = NULL; }
2506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2508 return NULL;
2509 }
2510 }
2511 {
2512 PyThreadState* __tstate = wxPyBeginAllowThreads();
2513 _result = (bool )wxIcon_Ok(_arg0);
2514
2515 wxPyEndAllowThreads(__tstate);
2516 if (PyErr_Occurred()) return NULL;
2517 } _resultobj = Py_BuildValue("i",_result);
2518 return _resultobj;
2519 }
2520
2521 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2522 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2523 PyObject * _resultobj;
2524 int _result;
2525 wxIcon * _arg0;
2526 PyObject * _argo0 = 0;
2527 char *_kwnames[] = { "self", NULL };
2528
2529 self = self;
2530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2531 return NULL;
2532 if (_argo0) {
2533 if (_argo0 == Py_None) { _arg0 = NULL; }
2534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2536 return NULL;
2537 }
2538 }
2539 {
2540 PyThreadState* __tstate = wxPyBeginAllowThreads();
2541 _result = (int )wxIcon_GetWidth(_arg0);
2542
2543 wxPyEndAllowThreads(__tstate);
2544 if (PyErr_Occurred()) return NULL;
2545 } _resultobj = Py_BuildValue("i",_result);
2546 return _resultobj;
2547 }
2548
2549 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2550 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2551 PyObject * _resultobj;
2552 int _result;
2553 wxIcon * _arg0;
2554 PyObject * _argo0 = 0;
2555 char *_kwnames[] = { "self", NULL };
2556
2557 self = self;
2558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2559 return NULL;
2560 if (_argo0) {
2561 if (_argo0 == Py_None) { _arg0 = NULL; }
2562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2564 return NULL;
2565 }
2566 }
2567 {
2568 PyThreadState* __tstate = wxPyBeginAllowThreads();
2569 _result = (int )wxIcon_GetHeight(_arg0);
2570
2571 wxPyEndAllowThreads(__tstate);
2572 if (PyErr_Occurred()) return NULL;
2573 } _resultobj = Py_BuildValue("i",_result);
2574 return _resultobj;
2575 }
2576
2577 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2578 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2579 PyObject * _resultobj;
2580 int _result;
2581 wxIcon * _arg0;
2582 PyObject * _argo0 = 0;
2583 char *_kwnames[] = { "self", NULL };
2584
2585 self = self;
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2587 return NULL;
2588 if (_argo0) {
2589 if (_argo0 == Py_None) { _arg0 = NULL; }
2590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2592 return NULL;
2593 }
2594 }
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 _result = (int )wxIcon_GetDepth(_arg0);
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) return NULL;
2601 } _resultobj = Py_BuildValue("i",_result);
2602 return _resultobj;
2603 }
2604
2605 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2606 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2607 PyObject * _resultobj;
2608 wxIcon * _arg0;
2609 int _arg1;
2610 PyObject * _argo0 = 0;
2611 char *_kwnames[] = { "self","w", NULL };
2612
2613 self = self;
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2615 return NULL;
2616 if (_argo0) {
2617 if (_argo0 == Py_None) { _arg0 = NULL; }
2618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2620 return NULL;
2621 }
2622 }
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 wxIcon_SetWidth(_arg0,_arg1);
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) return NULL;
2629 } Py_INCREF(Py_None);
2630 _resultobj = Py_None;
2631 return _resultobj;
2632 }
2633
2634 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2635 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject * _resultobj;
2637 wxIcon * _arg0;
2638 int _arg1;
2639 PyObject * _argo0 = 0;
2640 char *_kwnames[] = { "self","h", NULL };
2641
2642 self = self;
2643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2644 return NULL;
2645 if (_argo0) {
2646 if (_argo0 == Py_None) { _arg0 = NULL; }
2647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2649 return NULL;
2650 }
2651 }
2652 {
2653 PyThreadState* __tstate = wxPyBeginAllowThreads();
2654 wxIcon_SetHeight(_arg0,_arg1);
2655
2656 wxPyEndAllowThreads(__tstate);
2657 if (PyErr_Occurred()) return NULL;
2658 } Py_INCREF(Py_None);
2659 _resultobj = Py_None;
2660 return _resultobj;
2661 }
2662
2663 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2664 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2665 PyObject * _resultobj;
2666 wxIcon * _arg0;
2667 int _arg1;
2668 PyObject * _argo0 = 0;
2669 char *_kwnames[] = { "self","d", NULL };
2670
2671 self = self;
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2673 return NULL;
2674 if (_argo0) {
2675 if (_argo0 == Py_None) { _arg0 = NULL; }
2676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2678 return NULL;
2679 }
2680 }
2681 {
2682 PyThreadState* __tstate = wxPyBeginAllowThreads();
2683 wxIcon_SetDepth(_arg0,_arg1);
2684
2685 wxPyEndAllowThreads(__tstate);
2686 if (PyErr_Occurred()) return NULL;
2687 } Py_INCREF(Py_None);
2688 _resultobj = Py_None;
2689 return _resultobj;
2690 }
2691
2692 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2693 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2694 PyObject * _resultobj;
2695 wxIcon * _arg0;
2696 wxSize * _arg1;
2697 PyObject * _argo0 = 0;
2698 wxSize temp;
2699 PyObject * _obj1 = 0;
2700 char *_kwnames[] = { "self","size", NULL };
2701
2702 self = self;
2703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2704 return NULL;
2705 if (_argo0) {
2706 if (_argo0 == Py_None) { _arg0 = NULL; }
2707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2709 return NULL;
2710 }
2711 }
2712 {
2713 _arg1 = &temp;
2714 if (! wxSize_helper(_obj1, &_arg1))
2715 return NULL;
2716 }
2717 {
2718 PyThreadState* __tstate = wxPyBeginAllowThreads();
2719 wxIcon_SetSize(_arg0,*_arg1);
2720
2721 wxPyEndAllowThreads(__tstate);
2722 if (PyErr_Occurred()) return NULL;
2723 } Py_INCREF(Py_None);
2724 _resultobj = Py_None;
2725 return _resultobj;
2726 }
2727
2728 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2729 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 wxIcon * _arg0;
2732 wxBitmap * _arg1;
2733 PyObject * _argo0 = 0;
2734 PyObject * _argo1 = 0;
2735 char *_kwnames[] = { "self","bmp", NULL };
2736
2737 self = self;
2738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2739 return NULL;
2740 if (_argo0) {
2741 if (_argo0 == Py_None) { _arg0 = NULL; }
2742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2744 return NULL;
2745 }
2746 }
2747 if (_argo1) {
2748 if (_argo1 == Py_None) { _arg1 = NULL; }
2749 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2750 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2751 return NULL;
2752 }
2753 }
2754 {
2755 PyThreadState* __tstate = wxPyBeginAllowThreads();
2756 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2757
2758 wxPyEndAllowThreads(__tstate);
2759 if (PyErr_Occurred()) return NULL;
2760 } Py_INCREF(Py_None);
2761 _resultobj = Py_None;
2762 return _resultobj;
2763 }
2764
2765 #define new_wxIconBundle() (new wxIconBundle())
2766 static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
2767 PyObject * _resultobj;
2768 wxIconBundle * _result;
2769 char *_kwnames[] = { NULL };
2770 char _ptemp[128];
2771
2772 self = self;
2773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames))
2774 return NULL;
2775 {
2776 PyThreadState* __tstate = wxPyBeginAllowThreads();
2777 _result = (wxIconBundle *)new_wxIconBundle();
2778
2779 wxPyEndAllowThreads(__tstate);
2780 if (PyErr_Occurred()) return NULL;
2781 } if (_result) {
2782 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2783 _resultobj = Py_BuildValue("s",_ptemp);
2784 } else {
2785 Py_INCREF(Py_None);
2786 _resultobj = Py_None;
2787 }
2788 return _resultobj;
2789 }
2790
2791 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2792 static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject * _resultobj;
2794 wxIconBundle * _result;
2795 wxString * _arg0;
2796 long _arg1;
2797 PyObject * _obj0 = 0;
2798 char *_kwnames[] = { "file","type", NULL };
2799 char _ptemp[128];
2800
2801 self = self;
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1))
2803 return NULL;
2804 {
2805 _arg0 = wxString_in_helper(_obj0);
2806 if (_arg0 == NULL)
2807 return NULL;
2808 }
2809 {
2810 PyThreadState* __tstate = wxPyBeginAllowThreads();
2811 _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1);
2812
2813 wxPyEndAllowThreads(__tstate);
2814 if (PyErr_Occurred()) return NULL;
2815 } if (_result) {
2816 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2817 _resultobj = Py_BuildValue("s",_ptemp);
2818 } else {
2819 Py_INCREF(Py_None);
2820 _resultobj = Py_None;
2821 }
2822 {
2823 if (_obj0)
2824 delete _arg0;
2825 }
2826 return _resultobj;
2827 }
2828
2829 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2830 static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2831 PyObject * _resultobj;
2832 wxIconBundle * _result;
2833 wxIcon * _arg0;
2834 PyObject * _argo0 = 0;
2835 char *_kwnames[] = { "icon", NULL };
2836 char _ptemp[128];
2837
2838 self = self;
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0))
2840 return NULL;
2841 if (_argo0) {
2842 if (_argo0 == Py_None) { _arg0 = NULL; }
2843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2845 return NULL;
2846 }
2847 }
2848 {
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0);
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) return NULL;
2854 } if (_result) {
2855 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2856 _resultobj = Py_BuildValue("s",_ptemp);
2857 } else {
2858 Py_INCREF(Py_None);
2859 _resultobj = Py_None;
2860 }
2861 return _resultobj;
2862 }
2863
2864 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2865 static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
2866 PyObject * _resultobj;
2867 wxIconBundle * _arg0;
2868 PyObject * _argo0 = 0;
2869 char *_kwnames[] = { "self", NULL };
2870
2871 self = self;
2872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0))
2873 return NULL;
2874 if (_argo0) {
2875 if (_argo0 == Py_None) { _arg0 = NULL; }
2876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2878 return NULL;
2879 }
2880 }
2881 {
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 delete_wxIconBundle(_arg0);
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) return NULL;
2887 } Py_INCREF(Py_None);
2888 _resultobj = Py_None;
2889 return _resultobj;
2890 }
2891
2892 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2893 static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2894 PyObject * _resultobj;
2895 wxIconBundle * _arg0;
2896 wxIcon * _arg1;
2897 PyObject * _argo0 = 0;
2898 PyObject * _argo1 = 0;
2899 char *_kwnames[] = { "self","icon", NULL };
2900
2901 self = self;
2902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1))
2903 return NULL;
2904 if (_argo0) {
2905 if (_argo0 == Py_None) { _arg0 = NULL; }
2906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2908 return NULL;
2909 }
2910 }
2911 if (_argo1) {
2912 if (_argo1 == Py_None) { _arg1 = NULL; }
2913 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2914 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2915 return NULL;
2916 }
2917 }
2918 {
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 wxIconBundle_AddIcon(_arg0,*_arg1);
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) return NULL;
2924 } Py_INCREF(Py_None);
2925 _resultobj = Py_None;
2926 return _resultobj;
2927 }
2928
2929 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2930 static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject * _resultobj;
2932 wxIconBundle * _arg0;
2933 wxString * _arg1;
2934 long _arg2;
2935 PyObject * _argo0 = 0;
2936 PyObject * _obj1 = 0;
2937 char *_kwnames[] = { "self","file","type", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 _arg1 = wxString_in_helper(_obj1);
2951 if (_arg1 == NULL)
2952 return NULL;
2953 }
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2);
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) return NULL;
2960 } Py_INCREF(Py_None);
2961 _resultobj = Py_None;
2962 {
2963 if (_obj1)
2964 delete _arg1;
2965 }
2966 return _resultobj;
2967 }
2968
2969 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2970 static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2971 PyObject * _resultobj;
2972 wxIcon * _result;
2973 wxIconBundle * _arg0;
2974 wxSize * _arg1;
2975 PyObject * _argo0 = 0;
2976 wxSize temp;
2977 PyObject * _obj1 = 0;
2978 char *_kwnames[] = { "self","size", NULL };
2979 char _ptemp[128];
2980
2981 self = self;
2982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1))
2983 return NULL;
2984 if (_argo0) {
2985 if (_argo0 == Py_None) { _arg0 = NULL; }
2986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
2988 return NULL;
2989 }
2990 }
2991 {
2992 _arg1 = &temp;
2993 if (! wxSize_helper(_obj1, &_arg1))
2994 return NULL;
2995 }
2996 {
2997 PyThreadState* __tstate = wxPyBeginAllowThreads();
2998 const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1);
2999 _result = (wxIcon *) &_result_ref;
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) return NULL;
3003 } if (_result) {
3004 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
3005 _resultobj = Py_BuildValue("s",_ptemp);
3006 } else {
3007 Py_INCREF(Py_None);
3008 _resultobj = Py_None;
3009 }
3010 return _resultobj;
3011 }
3012
3013 static void *SwigwxCursorTowxGDIObject(void *ptr) {
3014 wxCursor *src;
3015 wxGDIObject *dest;
3016 src = (wxCursor *) ptr;
3017 dest = (wxGDIObject *) src;
3018 return (void *) dest;
3019 }
3020
3021 static void *SwigwxCursorTowxObject(void *ptr) {
3022 wxCursor *src;
3023 wxObject *dest;
3024 src = (wxCursor *) ptr;
3025 dest = (wxObject *) src;
3026 return (void *) dest;
3027 }
3028
3029 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3030 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject * _resultobj;
3032 wxCursor * _result;
3033 wxString * _arg0;
3034 long _arg1;
3035 int _arg2 = (int ) 0;
3036 int _arg3 = (int ) 0;
3037 PyObject * _obj0 = 0;
3038 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
3039 char _ptemp[128];
3040
3041 self = self;
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
3043 return NULL;
3044 {
3045 _arg0 = wxString_in_helper(_obj0);
3046 if (_arg0 == NULL)
3047 return NULL;
3048 }
3049 {
3050 PyThreadState* __tstate = wxPyBeginAllowThreads();
3051 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
3052
3053 wxPyEndAllowThreads(__tstate);
3054 if (PyErr_Occurred()) return NULL;
3055 } if (_result) {
3056 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
3057 _resultobj = Py_BuildValue("s",_ptemp);
3058 } else {
3059 Py_INCREF(Py_None);
3060 _resultobj = Py_None;
3061 }
3062 {
3063 if (_obj0)
3064 delete _arg0;
3065 }
3066 return _resultobj;
3067 }
3068
3069 #define delete_wxCursor(_swigobj) (delete _swigobj)
3070 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3071 PyObject * _resultobj;
3072 wxCursor * _arg0;
3073 PyObject * _argo0 = 0;
3074 char *_kwnames[] = { "self", NULL };
3075
3076 self = self;
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
3078 return NULL;
3079 if (_argo0) {
3080 if (_argo0 == Py_None) { _arg0 = NULL; }
3081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
3083 return NULL;
3084 }
3085 }
3086 {
3087 PyThreadState* __tstate = wxPyBeginAllowThreads();
3088 delete_wxCursor(_arg0);
3089
3090 wxPyEndAllowThreads(__tstate);
3091 if (PyErr_Occurred()) return NULL;
3092 } Py_INCREF(Py_None);
3093 _resultobj = Py_None;
3094 return _resultobj;
3095 }
3096
3097 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
3098 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject * _resultobj;
3100 long _result;
3101 wxCursor * _arg0;
3102 PyObject * _argo0 = 0;
3103 char *_kwnames[] = { "self", NULL };
3104
3105 self = self;
3106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
3107 return NULL;
3108 if (_argo0) {
3109 if (_argo0 == Py_None) { _arg0 = NULL; }
3110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
3112 return NULL;
3113 }
3114 }
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 _result = (long )wxCursor_GetHandle(_arg0);
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) return NULL;
3121 } _resultobj = Py_BuildValue("l",_result);
3122 return _resultobj;
3123 }
3124
3125 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
3126 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3127 PyObject * _resultobj;
3128 wxCursor * _arg0;
3129 long _arg1;
3130 PyObject * _argo0 = 0;
3131 char *_kwnames[] = { "self","handle", NULL };
3132
3133 self = self;
3134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
3135 return NULL;
3136 if (_argo0) {
3137 if (_argo0 == Py_None) { _arg0 = NULL; }
3138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
3140 return NULL;
3141 }
3142 }
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 wxCursor_SetHandle(_arg0,_arg1);
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) return NULL;
3149 } Py_INCREF(Py_None);
3150 _resultobj = Py_None;
3151 return _resultobj;
3152 }
3153
3154 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3155 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3156 PyObject * _resultobj;
3157 bool _result;
3158 wxCursor * _arg0;
3159 PyObject * _argo0 = 0;
3160 char *_kwnames[] = { "self", NULL };
3161
3162 self = self;
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
3164 return NULL;
3165 if (_argo0) {
3166 if (_argo0 == Py_None) { _arg0 = NULL; }
3167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3169 return NULL;
3170 }
3171 }
3172 {
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 _result = (bool )wxCursor_Ok(_arg0);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) return NULL;
3178 } _resultobj = Py_BuildValue("i",_result);
3179 return _resultobj;
3180 }
3181
3182 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3183 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3184 PyObject * _resultobj;
3185 int _result;
3186 wxCursor * _arg0;
3187 PyObject * _argo0 = 0;
3188 char *_kwnames[] = { "self", NULL };
3189
3190 self = self;
3191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
3192 return NULL;
3193 if (_argo0) {
3194 if (_argo0 == Py_None) { _arg0 = NULL; }
3195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3197 return NULL;
3198 }
3199 }
3200 {
3201 PyThreadState* __tstate = wxPyBeginAllowThreads();
3202 _result = (int )wxCursor_GetWidth(_arg0);
3203
3204 wxPyEndAllowThreads(__tstate);
3205 if (PyErr_Occurred()) return NULL;
3206 } _resultobj = Py_BuildValue("i",_result);
3207 return _resultobj;
3208 }
3209
3210 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3211 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3212 PyObject * _resultobj;
3213 int _result;
3214 wxCursor * _arg0;
3215 PyObject * _argo0 = 0;
3216 char *_kwnames[] = { "self", NULL };
3217
3218 self = self;
3219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3220 return NULL;
3221 if (_argo0) {
3222 if (_argo0 == Py_None) { _arg0 = NULL; }
3223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3225 return NULL;
3226 }
3227 }
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 _result = (int )wxCursor_GetHeight(_arg0);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) return NULL;
3234 } _resultobj = Py_BuildValue("i",_result);
3235 return _resultobj;
3236 }
3237
3238 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3239 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3240 PyObject * _resultobj;
3241 int _result;
3242 wxCursor * _arg0;
3243 PyObject * _argo0 = 0;
3244 char *_kwnames[] = { "self", NULL };
3245
3246 self = self;
3247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3248 return NULL;
3249 if (_argo0) {
3250 if (_argo0 == Py_None) { _arg0 = NULL; }
3251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3253 return NULL;
3254 }
3255 }
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 _result = (int )wxCursor_GetDepth(_arg0);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) return NULL;
3262 } _resultobj = Py_BuildValue("i",_result);
3263 return _resultobj;
3264 }
3265
3266 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3267 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3268 PyObject * _resultobj;
3269 wxCursor * _arg0;
3270 int _arg1;
3271 PyObject * _argo0 = 0;
3272 char *_kwnames[] = { "self","w", NULL };
3273
3274 self = self;
3275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3276 return NULL;
3277 if (_argo0) {
3278 if (_argo0 == Py_None) { _arg0 = NULL; }
3279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3281 return NULL;
3282 }
3283 }
3284 {
3285 PyThreadState* __tstate = wxPyBeginAllowThreads();
3286 wxCursor_SetWidth(_arg0,_arg1);
3287
3288 wxPyEndAllowThreads(__tstate);
3289 if (PyErr_Occurred()) return NULL;
3290 } Py_INCREF(Py_None);
3291 _resultobj = Py_None;
3292 return _resultobj;
3293 }
3294
3295 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3296 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3297 PyObject * _resultobj;
3298 wxCursor * _arg0;
3299 int _arg1;
3300 PyObject * _argo0 = 0;
3301 char *_kwnames[] = { "self","h", NULL };
3302
3303 self = self;
3304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3305 return NULL;
3306 if (_argo0) {
3307 if (_argo0 == Py_None) { _arg0 = NULL; }
3308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3310 return NULL;
3311 }
3312 }
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 wxCursor_SetHeight(_arg0,_arg1);
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) return NULL;
3319 } Py_INCREF(Py_None);
3320 _resultobj = Py_None;
3321 return _resultobj;
3322 }
3323
3324 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3325 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3326 PyObject * _resultobj;
3327 wxCursor * _arg0;
3328 int _arg1;
3329 PyObject * _argo0 = 0;
3330 char *_kwnames[] = { "self","d", NULL };
3331
3332 self = self;
3333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3334 return NULL;
3335 if (_argo0) {
3336 if (_argo0 == Py_None) { _arg0 = NULL; }
3337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3339 return NULL;
3340 }
3341 }
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 wxCursor_SetDepth(_arg0,_arg1);
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) return NULL;
3348 } Py_INCREF(Py_None);
3349 _resultobj = Py_None;
3350 return _resultobj;
3351 }
3352
3353 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3354 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3355 PyObject * _resultobj;
3356 wxCursor * _arg0;
3357 wxSize * _arg1;
3358 PyObject * _argo0 = 0;
3359 wxSize temp;
3360 PyObject * _obj1 = 0;
3361 char *_kwnames[] = { "self","size", NULL };
3362
3363 self = self;
3364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3365 return NULL;
3366 if (_argo0) {
3367 if (_argo0 == Py_None) { _arg0 = NULL; }
3368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3370 return NULL;
3371 }
3372 }
3373 {
3374 _arg1 = &temp;
3375 if (! wxSize_helper(_obj1, &_arg1))
3376 return NULL;
3377 }
3378 {
3379 PyThreadState* __tstate = wxPyBeginAllowThreads();
3380 wxCursor_SetSize(_arg0,*_arg1);
3381
3382 wxPyEndAllowThreads(__tstate);
3383 if (PyErr_Occurred()) return NULL;
3384 } Py_INCREF(Py_None);
3385 _resultobj = Py_None;
3386 return _resultobj;
3387 }
3388
3389 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3390 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3391 PyObject * _resultobj;
3392 wxNativeFontInfo * _result;
3393 char *_kwnames[] = { NULL };
3394 char _ptemp[128];
3395
3396 self = self;
3397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
3398 return NULL;
3399 {
3400 PyThreadState* __tstate = wxPyBeginAllowThreads();
3401 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
3402
3403 wxPyEndAllowThreads(__tstate);
3404 if (PyErr_Occurred()) return NULL;
3405 } if (_result) {
3406 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3407 _resultobj = Py_BuildValue("s",_ptemp);
3408 } else {
3409 Py_INCREF(Py_None);
3410 _resultobj = Py_None;
3411 }
3412 return _resultobj;
3413 }
3414
3415 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3416 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3417 PyObject * _resultobj;
3418 wxNativeFontInfo * _arg0;
3419 PyObject * _argo0 = 0;
3420 char *_kwnames[] = { "self", NULL };
3421
3422 self = self;
3423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
3424 return NULL;
3425 if (_argo0) {
3426 if (_argo0 == Py_None) { _arg0 = NULL; }
3427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3429 return NULL;
3430 }
3431 }
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 wxNativeFontInfo_Init(_arg0);
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) return NULL;
3438 } Py_INCREF(Py_None);
3439 _resultobj = Py_None;
3440 return _resultobj;
3441 }
3442
3443 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3444 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3445 PyObject * _resultobj;
3446 int _result;
3447 wxNativeFontInfo * _arg0;
3448 PyObject * _argo0 = 0;
3449 char *_kwnames[] = { "self", NULL };
3450
3451 self = self;
3452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
3453 return NULL;
3454 if (_argo0) {
3455 if (_argo0 == Py_None) { _arg0 = NULL; }
3456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3458 return NULL;
3459 }
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) return NULL;
3467 } _resultobj = Py_BuildValue("i",_result);
3468 return _resultobj;
3469 }
3470
3471 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3472 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject * _resultobj;
3474 wxFontStyle _result;
3475 wxNativeFontInfo * _arg0;
3476 PyObject * _argo0 = 0;
3477 char *_kwnames[] = { "self", NULL };
3478
3479 self = self;
3480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
3481 return NULL;
3482 if (_argo0) {
3483 if (_argo0 == Py_None) { _arg0 = NULL; }
3484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3486 return NULL;
3487 }
3488 }
3489 {
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
3492
3493 wxPyEndAllowThreads(__tstate);
3494 if (PyErr_Occurred()) return NULL;
3495 } _resultobj = Py_BuildValue("i",_result);
3496 return _resultobj;
3497 }
3498
3499 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3500 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3501 PyObject * _resultobj;
3502 wxFontWeight _result;
3503 wxNativeFontInfo * _arg0;
3504 PyObject * _argo0 = 0;
3505 char *_kwnames[] = { "self", NULL };
3506
3507 self = self;
3508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
3509 return NULL;
3510 if (_argo0) {
3511 if (_argo0 == Py_None) { _arg0 = NULL; }
3512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3514 return NULL;
3515 }
3516 }
3517 {
3518 PyThreadState* __tstate = wxPyBeginAllowThreads();
3519 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
3520
3521 wxPyEndAllowThreads(__tstate);
3522 if (PyErr_Occurred()) return NULL;
3523 } _resultobj = Py_BuildValue("i",_result);
3524 return _resultobj;
3525 }
3526
3527 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3528 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3529 PyObject * _resultobj;
3530 bool _result;
3531 wxNativeFontInfo * _arg0;
3532 PyObject * _argo0 = 0;
3533 char *_kwnames[] = { "self", NULL };
3534
3535 self = self;
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
3537 return NULL;
3538 if (_argo0) {
3539 if (_argo0 == Py_None) { _arg0 = NULL; }
3540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3542 return NULL;
3543 }
3544 }
3545 {
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
3548
3549 wxPyEndAllowThreads(__tstate);
3550 if (PyErr_Occurred()) return NULL;
3551 } _resultobj = Py_BuildValue("i",_result);
3552 return _resultobj;
3553 }
3554
3555 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3556 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject * _resultobj;
3558 wxString * _result;
3559 wxNativeFontInfo * _arg0;
3560 PyObject * _argo0 = 0;
3561 char *_kwnames[] = { "self", NULL };
3562
3563 self = self;
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
3565 return NULL;
3566 if (_argo0) {
3567 if (_argo0 == Py_None) { _arg0 = NULL; }
3568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3570 return NULL;
3571 }
3572 }
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) return NULL;
3579 }{
3580 #if wxUSE_UNICODE
3581 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3582 #else
3583 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3584 #endif
3585 }
3586 {
3587 delete _result;
3588 }
3589 return _resultobj;
3590 }
3591
3592 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3593 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject * _resultobj;
3595 wxFontFamily _result;
3596 wxNativeFontInfo * _arg0;
3597 PyObject * _argo0 = 0;
3598 char *_kwnames[] = { "self", NULL };
3599
3600 self = self;
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
3602 return NULL;
3603 if (_argo0) {
3604 if (_argo0 == Py_None) { _arg0 = NULL; }
3605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3607 return NULL;
3608 }
3609 }
3610 {
3611 PyThreadState* __tstate = wxPyBeginAllowThreads();
3612 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
3613
3614 wxPyEndAllowThreads(__tstate);
3615 if (PyErr_Occurred()) return NULL;
3616 } _resultobj = Py_BuildValue("i",_result);
3617 return _resultobj;
3618 }
3619
3620 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3621 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3622 PyObject * _resultobj;
3623 wxFontEncoding _result;
3624 wxNativeFontInfo * _arg0;
3625 PyObject * _argo0 = 0;
3626 char *_kwnames[] = { "self", NULL };
3627
3628 self = self;
3629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
3630 return NULL;
3631 if (_argo0) {
3632 if (_argo0 == Py_None) { _arg0 = NULL; }
3633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3635 return NULL;
3636 }
3637 }
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
3641
3642 wxPyEndAllowThreads(__tstate);
3643 if (PyErr_Occurred()) return NULL;
3644 } _resultobj = Py_BuildValue("i",_result);
3645 return _resultobj;
3646 }
3647
3648 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3649 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3650 PyObject * _resultobj;
3651 wxNativeFontInfo * _arg0;
3652 int _arg1;
3653 PyObject * _argo0 = 0;
3654 char *_kwnames[] = { "self","pointsize", NULL };
3655
3656 self = self;
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
3658 return NULL;
3659 if (_argo0) {
3660 if (_argo0 == Py_None) { _arg0 = NULL; }
3661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3663 return NULL;
3664 }
3665 }
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
3669
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) return NULL;
3672 } Py_INCREF(Py_None);
3673 _resultobj = Py_None;
3674 return _resultobj;
3675 }
3676
3677 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3678 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject * _resultobj;
3680 wxNativeFontInfo * _arg0;
3681 wxFontStyle _arg1;
3682 PyObject * _argo0 = 0;
3683 char *_kwnames[] = { "self","style", NULL };
3684
3685 self = self;
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
3687 return NULL;
3688 if (_argo0) {
3689 if (_argo0 == Py_None) { _arg0 = NULL; }
3690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3692 return NULL;
3693 }
3694 }
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 wxNativeFontInfo_SetStyle(_arg0,_arg1);
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) return NULL;
3701 } Py_INCREF(Py_None);
3702 _resultobj = Py_None;
3703 return _resultobj;
3704 }
3705
3706 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3707 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3708 PyObject * _resultobj;
3709 wxNativeFontInfo * _arg0;
3710 wxFontWeight _arg1;
3711 PyObject * _argo0 = 0;
3712 char *_kwnames[] = { "self","weight", NULL };
3713
3714 self = self;
3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
3716 return NULL;
3717 if (_argo0) {
3718 if (_argo0 == Py_None) { _arg0 = NULL; }
3719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3721 return NULL;
3722 }
3723 }
3724 {
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 wxNativeFontInfo_SetWeight(_arg0,_arg1);
3727
3728 wxPyEndAllowThreads(__tstate);
3729 if (PyErr_Occurred()) return NULL;
3730 } Py_INCREF(Py_None);
3731 _resultobj = Py_None;
3732 return _resultobj;
3733 }
3734
3735 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3736 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3737 PyObject * _resultobj;
3738 wxNativeFontInfo * _arg0;
3739 bool _arg1;
3740 PyObject * _argo0 = 0;
3741 int tempbool1;
3742 char *_kwnames[] = { "self","underlined", NULL };
3743
3744 self = self;
3745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3746 return NULL;
3747 if (_argo0) {
3748 if (_argo0 == Py_None) { _arg0 = NULL; }
3749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3751 return NULL;
3752 }
3753 }
3754 _arg1 = (bool ) tempbool1;
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) return NULL;
3761 } Py_INCREF(Py_None);
3762 _resultobj = Py_None;
3763 return _resultobj;
3764 }
3765
3766 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3767 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3768 PyObject * _resultobj;
3769 wxNativeFontInfo * _arg0;
3770 wxString * _arg1;
3771 PyObject * _argo0 = 0;
3772 PyObject * _obj1 = 0;
3773 char *_kwnames[] = { "self","facename", NULL };
3774
3775 self = self;
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
3777 return NULL;
3778 if (_argo0) {
3779 if (_argo0 == Py_None) { _arg0 = NULL; }
3780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3782 return NULL;
3783 }
3784 }
3785 {
3786 _arg1 = wxString_in_helper(_obj1);
3787 if (_arg1 == NULL)
3788 return NULL;
3789 }
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
3793
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) return NULL;
3796 } Py_INCREF(Py_None);
3797 _resultobj = Py_None;
3798 {
3799 if (_obj1)
3800 delete _arg1;
3801 }
3802 return _resultobj;
3803 }
3804
3805 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3806 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 wxNativeFontInfo * _arg0;
3809 wxFontFamily _arg1;
3810 PyObject * _argo0 = 0;
3811 char *_kwnames[] = { "self","family", NULL };
3812
3813 self = self;
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
3815 return NULL;
3816 if (_argo0) {
3817 if (_argo0 == Py_None) { _arg0 = NULL; }
3818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3820 return NULL;
3821 }
3822 }
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 wxNativeFontInfo_SetFamily(_arg0,_arg1);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) return NULL;
3829 } Py_INCREF(Py_None);
3830 _resultobj = Py_None;
3831 return _resultobj;
3832 }
3833
3834 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3835 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject * _resultobj;
3837 wxNativeFontInfo * _arg0;
3838 wxFontEncoding _arg1;
3839 PyObject * _argo0 = 0;
3840 char *_kwnames[] = { "self","encoding", NULL };
3841
3842 self = self;
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
3844 return NULL;
3845 if (_argo0) {
3846 if (_argo0 == Py_None) { _arg0 = NULL; }
3847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3849 return NULL;
3850 }
3851 }
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) return NULL;
3858 } Py_INCREF(Py_None);
3859 _resultobj = Py_None;
3860 return _resultobj;
3861 }
3862
3863 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3864 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3865 PyObject * _resultobj;
3866 bool _result;
3867 wxNativeFontInfo * _arg0;
3868 wxString * _arg1;
3869 PyObject * _argo0 = 0;
3870 PyObject * _obj1 = 0;
3871 char *_kwnames[] = { "self","s", NULL };
3872
3873 self = self;
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3875 return NULL;
3876 if (_argo0) {
3877 if (_argo0 == Py_None) { _arg0 = NULL; }
3878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3880 return NULL;
3881 }
3882 }
3883 {
3884 _arg1 = wxString_in_helper(_obj1);
3885 if (_arg1 == NULL)
3886 return NULL;
3887 }
3888 {
3889 PyThreadState* __tstate = wxPyBeginAllowThreads();
3890 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3891
3892 wxPyEndAllowThreads(__tstate);
3893 if (PyErr_Occurred()) return NULL;
3894 } _resultobj = Py_BuildValue("i",_result);
3895 {
3896 if (_obj1)
3897 delete _arg1;
3898 }
3899 return _resultobj;
3900 }
3901
3902 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3903 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject * _resultobj;
3905 wxString * _result;
3906 wxNativeFontInfo * _arg0;
3907 PyObject * _argo0 = 0;
3908 char *_kwnames[] = { "self", NULL };
3909
3910 self = self;
3911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3912 return NULL;
3913 if (_argo0) {
3914 if (_argo0 == Py_None) { _arg0 = NULL; }
3915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3917 return NULL;
3918 }
3919 }
3920 {
3921 PyThreadState* __tstate = wxPyBeginAllowThreads();
3922 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3923
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) return NULL;
3926 }{
3927 #if wxUSE_UNICODE
3928 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3929 #else
3930 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3931 #endif
3932 }
3933 {
3934 delete _result;
3935 }
3936 return _resultobj;
3937 }
3938
3939 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3940 return self->ToString();
3941 }
3942 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3943 PyObject * _resultobj;
3944 wxString * _result;
3945 wxNativeFontInfo * _arg0;
3946 PyObject * _argo0 = 0;
3947 char *_kwnames[] = { "self", NULL };
3948
3949 self = self;
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3951 return NULL;
3952 if (_argo0) {
3953 if (_argo0 == Py_None) { _arg0 = NULL; }
3954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3956 return NULL;
3957 }
3958 }
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) return NULL;
3965 }{
3966 #if wxUSE_UNICODE
3967 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3968 #else
3969 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3970 #endif
3971 }
3972 {
3973 delete _result;
3974 }
3975 return _resultobj;
3976 }
3977
3978 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3979 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject * _resultobj;
3981 bool _result;
3982 wxNativeFontInfo * _arg0;
3983 wxString * _arg1;
3984 PyObject * _argo0 = 0;
3985 PyObject * _obj1 = 0;
3986 char *_kwnames[] = { "self","s", NULL };
3987
3988 self = self;
3989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3990 return NULL;
3991 if (_argo0) {
3992 if (_argo0 == Py_None) { _arg0 = NULL; }
3993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3995 return NULL;
3996 }
3997 }
3998 {
3999 _arg1 = wxString_in_helper(_obj1);
4000 if (_arg1 == NULL)
4001 return NULL;
4002 }
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) return NULL;
4009 } _resultobj = Py_BuildValue("i",_result);
4010 {
4011 if (_obj1)
4012 delete _arg1;
4013 }
4014 return _resultobj;
4015 }
4016
4017 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
4018 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
4019 PyObject * _resultobj;
4020 wxString * _result;
4021 wxNativeFontInfo * _arg0;
4022 PyObject * _argo0 = 0;
4023 char *_kwnames[] = { "self", NULL };
4024
4025 self = self;
4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
4027 return NULL;
4028 if (_argo0) {
4029 if (_argo0 == Py_None) { _arg0 = NULL; }
4030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
4032 return NULL;
4033 }
4034 }
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) return NULL;
4041 }{
4042 #if wxUSE_UNICODE
4043 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4044 #else
4045 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4046 #endif
4047 }
4048 {
4049 delete _result;
4050 }
4051 return _resultobj;
4052 }
4053
4054 #define new_wxFontMapper() (new wxFontMapper())
4055 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
4056 PyObject * _resultobj;
4057 wxFontMapper * _result;
4058 char *_kwnames[] = { NULL };
4059 char _ptemp[128];
4060
4061 self = self;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
4063 return NULL;
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 _result = (wxFontMapper *)new_wxFontMapper();
4067
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) return NULL;
4070 } if (_result) {
4071 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
4072 _resultobj = Py_BuildValue("s",_ptemp);
4073 } else {
4074 Py_INCREF(Py_None);
4075 _resultobj = Py_None;
4076 }
4077 return _resultobj;
4078 }
4079
4080 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
4081 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
4082 PyObject * _resultobj;
4083 wxFontMapper * _arg0;
4084 PyObject * _argo0 = 0;
4085 char *_kwnames[] = { "self", NULL };
4086
4087 self = self;
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
4089 return NULL;
4090 if (_argo0) {
4091 if (_argo0 == Py_None) { _arg0 = NULL; }
4092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
4094 return NULL;
4095 }
4096 }
4097 {
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
4099 delete_wxFontMapper(_arg0);
4100
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) return NULL;
4103 } Py_INCREF(Py_None);
4104 _resultobj = Py_None;
4105 return _resultobj;
4106 }
4107
4108 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
4109 wxFontEncoding alt_enc;
4110 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
4111 return PyInt_FromLong(alt_enc);
4112 else {
4113 Py_INCREF(Py_None);
4114 return Py_None;
4115 }
4116 }
4117 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4118 PyObject * _resultobj;
4119 PyObject * _result;
4120 wxFontMapper * _arg0;
4121 wxFontEncoding _arg1;
4122 wxString * _arg2 = (wxString *) &wxPyEmptyString;
4123 bool _arg3 = (bool ) TRUE;
4124 PyObject * _argo0 = 0;
4125 PyObject * _obj2 = 0;
4126 int tempbool3 = (int) TRUE;
4127 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
4128
4129 self = self;
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
4131 return NULL;
4132 if (_argo0) {
4133 if (_argo0 == Py_None) { _arg0 = NULL; }
4134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
4136 return NULL;
4137 }
4138 }
4139 if (_obj2)
4140 {
4141 _arg2 = wxString_in_helper(_obj2);
4142 if (_arg2 == NULL)
4143 return NULL;
4144 }
4145 _arg3 = (bool ) tempbool3;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) return NULL;
4152 }{
4153 _resultobj = _result;
4154 }
4155 {
4156 if (_obj2)
4157 delete _arg2;
4158 }
4159 return _resultobj;
4160 }
4161
4162 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4163 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
4164 PyObject * _resultobj;
4165 bool _result;
4166 wxFontMapper * _arg0;
4167 wxFontEncoding _arg1;
4168 wxString * _arg2 = (wxString *) &wxPyEmptyString;
4169 PyObject * _argo0 = 0;
4170 PyObject * _obj2 = 0;
4171 char *_kwnames[] = { "self","encoding","facename", NULL };
4172
4173 self = self;
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
4175 return NULL;
4176 if (_argo0) {
4177 if (_argo0 == Py_None) { _arg0 = NULL; }
4178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4180 return NULL;
4181 }
4182 }
4183 if (_obj2)
4184 {
4185 _arg2 = wxString_in_helper(_obj2);
4186 if (_arg2 == NULL)
4187 return NULL;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) return NULL;
4195 } _resultobj = Py_BuildValue("i",_result);
4196 {
4197 if (_obj2)
4198 delete _arg2;
4199 }
4200 return _resultobj;
4201 }
4202
4203 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4204 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4205 PyObject * _resultobj;
4206 wxFontEncoding _result;
4207 wxFontMapper * _arg0;
4208 wxString * _arg1;
4209 bool _arg2 = (bool ) TRUE;
4210 PyObject * _argo0 = 0;
4211 PyObject * _obj1 = 0;
4212 int tempbool2 = (int) TRUE;
4213 char *_kwnames[] = { "self","charset","interactive", NULL };
4214
4215 self = self;
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
4217 return NULL;
4218 if (_argo0) {
4219 if (_argo0 == Py_None) { _arg0 = NULL; }
4220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4222 return NULL;
4223 }
4224 }
4225 {
4226 _arg1 = wxString_in_helper(_obj1);
4227 if (_arg1 == NULL)
4228 return NULL;
4229 }
4230 _arg2 = (bool ) tempbool2;
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) return NULL;
4237 } _resultobj = Py_BuildValue("i",_result);
4238 {
4239 if (_obj1)
4240 delete _arg1;
4241 }
4242 return _resultobj;
4243 }
4244
4245 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject * _resultobj;
4247 wxString * _result;
4248 wxFontEncoding _arg0;
4249 char *_kwnames[] = { "encoding", NULL };
4250
4251 self = self;
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
4253 return NULL;
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) return NULL;
4260 }{
4261 #if wxUSE_UNICODE
4262 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4263 #else
4264 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4265 #endif
4266 }
4267 {
4268 delete _result;
4269 }
4270 return _resultobj;
4271 }
4272
4273 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject * _resultobj;
4275 wxString * _result;
4276 wxFontEncoding _arg0;
4277 char *_kwnames[] = { "encoding", NULL };
4278
4279 self = self;
4280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
4281 return NULL;
4282 {
4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4284 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
4285
4286 wxPyEndAllowThreads(__tstate);
4287 if (PyErr_Occurred()) return NULL;
4288 }{
4289 #if wxUSE_UNICODE
4290 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4291 #else
4292 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4293 #endif
4294 }
4295 {
4296 delete _result;
4297 }
4298 return _resultobj;
4299 }
4300
4301 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4302 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject * _resultobj;
4304 wxFontMapper * _arg0;
4305 wxWindow * _arg1;
4306 PyObject * _argo0 = 0;
4307 PyObject * _argo1 = 0;
4308 char *_kwnames[] = { "self","parent", NULL };
4309
4310 self = self;
4311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
4312 return NULL;
4313 if (_argo0) {
4314 if (_argo0 == Py_None) { _arg0 = NULL; }
4315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4317 return NULL;
4318 }
4319 }
4320 if (_argo1) {
4321 if (_argo1 == Py_None) { _arg1 = NULL; }
4322 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4323 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4324 return NULL;
4325 }
4326 }
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 wxFontMapper_SetDialogParent(_arg0,_arg1);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) return NULL;
4333 } Py_INCREF(Py_None);
4334 _resultobj = Py_None;
4335 return _resultobj;
4336 }
4337
4338 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4339 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4340 PyObject * _resultobj;
4341 wxFontMapper * _arg0;
4342 wxString * _arg1;
4343 PyObject * _argo0 = 0;
4344 PyObject * _obj1 = 0;
4345 char *_kwnames[] = { "self","title", NULL };
4346
4347 self = self;
4348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
4349 return NULL;
4350 if (_argo0) {
4351 if (_argo0 == Py_None) { _arg0 = NULL; }
4352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4354 return NULL;
4355 }
4356 }
4357 {
4358 _arg1 = wxString_in_helper(_obj1);
4359 if (_arg1 == NULL)
4360 return NULL;
4361 }
4362 {
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) return NULL;
4368 } Py_INCREF(Py_None);
4369 _resultobj = Py_None;
4370 {
4371 if (_obj1)
4372 delete _arg1;
4373 }
4374 return _resultobj;
4375 }
4376
4377 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4378 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
4379 PyObject * _resultobj;
4380 wxFontMapper * _arg0;
4381 wxConfigBase * _arg1;
4382 PyObject * _argo0 = 0;
4383 PyObject * _argo1 = 0;
4384 char *_kwnames[] = { "self","config", NULL };
4385
4386 self = self;
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
4388 return NULL;
4389 if (_argo0) {
4390 if (_argo0 == Py_None) { _arg0 = NULL; }
4391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4393 return NULL;
4394 }
4395 }
4396 if (_argo1) {
4397 if (_argo1 == Py_None) { _arg1 = NULL; }
4398 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4399 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4400 return NULL;
4401 }
4402 }
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 wxFontMapper_SetConfig(_arg0,_arg1);
4406
4407 wxPyEndAllowThreads(__tstate);
4408 if (PyErr_Occurred()) return NULL;
4409 } Py_INCREF(Py_None);
4410 _resultobj = Py_None;
4411 return _resultobj;
4412 }
4413
4414 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4415 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4416 PyObject * _resultobj;
4417 wxFontMapper * _arg0;
4418 wxString * _arg1;
4419 PyObject * _argo0 = 0;
4420 PyObject * _obj1 = 0;
4421 char *_kwnames[] = { "self","prefix", NULL };
4422
4423 self = self;
4424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
4425 return NULL;
4426 if (_argo0) {
4427 if (_argo0 == Py_None) { _arg0 = NULL; }
4428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4430 return NULL;
4431 }
4432 }
4433 {
4434 _arg1 = wxString_in_helper(_obj1);
4435 if (_arg1 == NULL)
4436 return NULL;
4437 }
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 wxFontMapper_SetConfigPath(_arg0,*_arg1);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) return NULL;
4444 } Py_INCREF(Py_None);
4445 _resultobj = Py_None;
4446 {
4447 if (_obj1)
4448 delete _arg1;
4449 }
4450 return _resultobj;
4451 }
4452
4453 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4454 PyObject * _resultobj;
4455 wxString * _result;
4456 char *_kwnames[] = { NULL };
4457
4458 self = self;
4459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
4460 return NULL;
4461 {
4462 PyThreadState* __tstate = wxPyBeginAllowThreads();
4463 _result = new wxString (wxFontMapper::GetDefaultConfigPath());
4464
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) return NULL;
4467 }{
4468 #if wxUSE_UNICODE
4469 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4470 #else
4471 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4472 #endif
4473 }
4474 {
4475 delete _result;
4476 }
4477 return _resultobj;
4478 }
4479
4480 static void *SwigwxFontTowxGDIObject(void *ptr) {
4481 wxFont *src;
4482 wxGDIObject *dest;
4483 src = (wxFont *) ptr;
4484 dest = (wxGDIObject *) src;
4485 return (void *) dest;
4486 }
4487
4488 static void *SwigwxFontTowxObject(void *ptr) {
4489 wxFont *src;
4490 wxObject *dest;
4491 src = (wxFont *) ptr;
4492 dest = (wxObject *) src;
4493 return (void *) dest;
4494 }
4495
4496 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4497 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject * _resultobj;
4499 wxFont * _result;
4500 int _arg0;
4501 int _arg1;
4502 int _arg2;
4503 int _arg3;
4504 int _arg4 = (int ) FALSE;
4505 wxString * _arg5 = (wxString *) &wxPyEmptyString;
4506 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4507 PyObject * _obj5 = 0;
4508 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
4509 char _ptemp[128];
4510
4511 self = self;
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|iOi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
4513 return NULL;
4514 if (_obj5)
4515 {
4516 _arg5 = wxString_in_helper(_obj5);
4517 if (_arg5 == NULL)
4518 return NULL;
4519 }
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,_arg6);
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) return NULL;
4526 } if (_result) {
4527 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4528 _resultobj = Py_BuildValue("s",_ptemp);
4529 } else {
4530 Py_INCREF(Py_None);
4531 _resultobj = Py_None;
4532 }
4533 {
4534 if (_obj5)
4535 delete _arg5;
4536 }
4537 return _resultobj;
4538 }
4539
4540 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4541 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject * _resultobj;
4543 wxFont * _result;
4544 wxNativeFontInfo * _arg0;
4545 PyObject * _argo0 = 0;
4546 char *_kwnames[] = { "info", NULL };
4547 char _ptemp[128];
4548
4549 self = self;
4550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
4551 return NULL;
4552 if (_argo0) {
4553 if (_argo0 == Py_None) { _arg0 = NULL; }
4554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4556 return NULL;
4557 }
4558 }
4559 {
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
4562
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) return NULL;
4565 } if (_result) {
4566 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4567 _resultobj = Py_BuildValue("s",_ptemp);
4568 } else {
4569 Py_INCREF(Py_None);
4570 _resultobj = Py_None;
4571 }
4572 return _resultobj;
4573 }
4574
4575 #define delete_wxFont(_swigobj) (delete _swigobj)
4576 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject * _resultobj;
4578 wxFont * _arg0;
4579 PyObject * _argo0 = 0;
4580 char *_kwnames[] = { "self", NULL };
4581
4582 self = self;
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
4584 return NULL;
4585 if (_argo0) {
4586 if (_argo0 == Py_None) { _arg0 = NULL; }
4587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4589 return NULL;
4590 }
4591 }
4592 {
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 delete_wxFont(_arg0);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) return NULL;
4598 } Py_INCREF(Py_None);
4599 _resultobj = Py_None;
4600 return _resultobj;
4601 }
4602
4603 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4604 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4605 PyObject * _resultobj;
4606 bool _result;
4607 wxFont * _arg0;
4608 PyObject * _argo0 = 0;
4609 char *_kwnames[] = { "self", NULL };
4610
4611 self = self;
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
4613 return NULL;
4614 if (_argo0) {
4615 if (_argo0 == Py_None) { _arg0 = NULL; }
4616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4618 return NULL;
4619 }
4620 }
4621 {
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 _result = (bool )wxFont_Ok(_arg0);
4624
4625 wxPyEndAllowThreads(__tstate);
4626 if (PyErr_Occurred()) return NULL;
4627 } _resultobj = Py_BuildValue("i",_result);
4628 return _resultobj;
4629 }
4630
4631 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4632 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4633 PyObject * _resultobj;
4634 int _result;
4635 wxFont * _arg0;
4636 PyObject * _argo0 = 0;
4637 char *_kwnames[] = { "self", NULL };
4638
4639 self = self;
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
4641 return NULL;
4642 if (_argo0) {
4643 if (_argo0 == Py_None) { _arg0 = NULL; }
4644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4646 return NULL;
4647 }
4648 }
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 _result = (int )wxFont_GetPointSize(_arg0);
4652
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) return NULL;
4655 } _resultobj = Py_BuildValue("i",_result);
4656 return _resultobj;
4657 }
4658
4659 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4660 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4661 PyObject * _resultobj;
4662 int _result;
4663 wxFont * _arg0;
4664 PyObject * _argo0 = 0;
4665 char *_kwnames[] = { "self", NULL };
4666
4667 self = self;
4668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
4669 return NULL;
4670 if (_argo0) {
4671 if (_argo0 == Py_None) { _arg0 = NULL; }
4672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4674 return NULL;
4675 }
4676 }
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 _result = (int )wxFont_GetFamily(_arg0);
4680
4681 wxPyEndAllowThreads(__tstate);
4682 if (PyErr_Occurred()) return NULL;
4683 } _resultobj = Py_BuildValue("i",_result);
4684 return _resultobj;
4685 }
4686
4687 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4688 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject * _resultobj;
4690 int _result;
4691 wxFont * _arg0;
4692 PyObject * _argo0 = 0;
4693 char *_kwnames[] = { "self", NULL };
4694
4695 self = self;
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
4697 return NULL;
4698 if (_argo0) {
4699 if (_argo0 == Py_None) { _arg0 = NULL; }
4700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4702 return NULL;
4703 }
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 _result = (int )wxFont_GetStyle(_arg0);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) return NULL;
4711 } _resultobj = Py_BuildValue("i",_result);
4712 return _resultobj;
4713 }
4714
4715 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4716 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject * _resultobj;
4718 int _result;
4719 wxFont * _arg0;
4720 PyObject * _argo0 = 0;
4721 char *_kwnames[] = { "self", NULL };
4722
4723 self = self;
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4725 return NULL;
4726 if (_argo0) {
4727 if (_argo0 == Py_None) { _arg0 = NULL; }
4728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4730 return NULL;
4731 }
4732 }
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 _result = (int )wxFont_GetWeight(_arg0);
4736
4737 wxPyEndAllowThreads(__tstate);
4738 if (PyErr_Occurred()) return NULL;
4739 } _resultobj = Py_BuildValue("i",_result);
4740 return _resultobj;
4741 }
4742
4743 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4744 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject * _resultobj;
4746 bool _result;
4747 wxFont * _arg0;
4748 PyObject * _argo0 = 0;
4749 char *_kwnames[] = { "self", NULL };
4750
4751 self = self;
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4753 return NULL;
4754 if (_argo0) {
4755 if (_argo0 == Py_None) { _arg0 = NULL; }
4756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4758 return NULL;
4759 }
4760 }
4761 {
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 _result = (bool )wxFont_GetUnderlined(_arg0);
4764
4765 wxPyEndAllowThreads(__tstate);
4766 if (PyErr_Occurred()) return NULL;
4767 } _resultobj = Py_BuildValue("i",_result);
4768 return _resultobj;
4769 }
4770
4771 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4772 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject * _resultobj;
4774 wxString * _result;
4775 wxFont * _arg0;
4776 PyObject * _argo0 = 0;
4777 char *_kwnames[] = { "self", NULL };
4778
4779 self = self;
4780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4781 return NULL;
4782 if (_argo0) {
4783 if (_argo0 == Py_None) { _arg0 = NULL; }
4784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4786 return NULL;
4787 }
4788 }
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 _result = new wxString (wxFont_GetFaceName(_arg0));
4792
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) return NULL;
4795 }{
4796 #if wxUSE_UNICODE
4797 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4798 #else
4799 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4800 #endif
4801 }
4802 {
4803 delete _result;
4804 }
4805 return _resultobj;
4806 }
4807
4808 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4809 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject * _resultobj;
4811 wxFontEncoding _result;
4812 wxFont * _arg0;
4813 PyObject * _argo0 = 0;
4814 char *_kwnames[] = { "self", NULL };
4815
4816 self = self;
4817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4818 return NULL;
4819 if (_argo0) {
4820 if (_argo0 == Py_None) { _arg0 = NULL; }
4821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4823 return NULL;
4824 }
4825 }
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) return NULL;
4832 } _resultobj = Py_BuildValue("i",_result);
4833 return _resultobj;
4834 }
4835
4836 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4837 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject * _resultobj;
4839 bool _result;
4840 wxFont * _arg0;
4841 PyObject * _argo0 = 0;
4842 char *_kwnames[] = { "self", NULL };
4843
4844 self = self;
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
4846 return NULL;
4847 if (_argo0) {
4848 if (_argo0 == Py_None) { _arg0 = NULL; }
4849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4851 return NULL;
4852 }
4853 }
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 _result = (bool )wxFont_IsFixedWidth(_arg0);
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) return NULL;
4860 } _resultobj = Py_BuildValue("i",_result);
4861 return _resultobj;
4862 }
4863
4864 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4865 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject * _resultobj;
4867 wxNativeFontInfo * _result;
4868 wxFont * _arg0;
4869 PyObject * _argo0 = 0;
4870 char *_kwnames[] = { "self", NULL };
4871 char _ptemp[128];
4872
4873 self = self;
4874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4875 return NULL;
4876 if (_argo0) {
4877 if (_argo0 == Py_None) { _arg0 = NULL; }
4878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4880 return NULL;
4881 }
4882 }
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) return NULL;
4889 } if (_result) {
4890 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4891 _resultobj = Py_BuildValue("s",_ptemp);
4892 } else {
4893 Py_INCREF(Py_None);
4894 _resultobj = Py_None;
4895 }
4896 return _resultobj;
4897 }
4898
4899 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4900 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4901 PyObject * _resultobj;
4902 wxString * _result;
4903 wxFont * _arg0;
4904 PyObject * _argo0 = 0;
4905 char *_kwnames[] = { "self", NULL };
4906
4907 self = self;
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4909 return NULL;
4910 if (_argo0) {
4911 if (_argo0 == Py_None) { _arg0 = NULL; }
4912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4914 return NULL;
4915 }
4916 }
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4920
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) return NULL;
4923 }{
4924 #if wxUSE_UNICODE
4925 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4926 #else
4927 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4928 #endif
4929 }
4930 {
4931 delete _result;
4932 }
4933 return _resultobj;
4934 }
4935
4936 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4937 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject * _resultobj;
4939 wxString * _result;
4940 wxFont * _arg0;
4941 PyObject * _argo0 = 0;
4942 char *_kwnames[] = { "self", NULL };
4943
4944 self = self;
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4946 return NULL;
4947 if (_argo0) {
4948 if (_argo0 == Py_None) { _arg0 = NULL; }
4949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4951 return NULL;
4952 }
4953 }
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4957
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) return NULL;
4960 }{
4961 #if wxUSE_UNICODE
4962 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4963 #else
4964 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4965 #endif
4966 }
4967 {
4968 delete _result;
4969 }
4970 return _resultobj;
4971 }
4972
4973 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4974 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4975 PyObject * _resultobj;
4976 wxFont * _arg0;
4977 int _arg1;
4978 PyObject * _argo0 = 0;
4979 char *_kwnames[] = { "self","pointSize", NULL };
4980
4981 self = self;
4982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4983 return NULL;
4984 if (_argo0) {
4985 if (_argo0 == Py_None) { _arg0 = NULL; }
4986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4988 return NULL;
4989 }
4990 }
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 wxFont_SetPointSize(_arg0,_arg1);
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) return NULL;
4997 } Py_INCREF(Py_None);
4998 _resultobj = Py_None;
4999 return _resultobj;
5000 }
5001
5002 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
5003 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5004 PyObject * _resultobj;
5005 wxFont * _arg0;
5006 int _arg1;
5007 PyObject * _argo0 = 0;
5008 char *_kwnames[] = { "self","family", NULL };
5009
5010 self = self;
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
5012 return NULL;
5013 if (_argo0) {
5014 if (_argo0 == Py_None) { _arg0 = NULL; }
5015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
5017 return NULL;
5018 }
5019 }
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 wxFont_SetFamily(_arg0,_arg1);
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) return NULL;
5026 } Py_INCREF(Py_None);
5027 _resultobj = Py_None;
5028 return _resultobj;
5029 }
5030
5031 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5032 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject * _resultobj;
5034 wxFont * _arg0;
5035 int _arg1;
5036 PyObject * _argo0 = 0;
5037 char *_kwnames[] = { "self","style", NULL };
5038
5039 self = self;
5040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
5041 return NULL;
5042 if (_argo0) {
5043 if (_argo0 == Py_None) { _arg0 = NULL; }
5044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
5046 return NULL;
5047 }
5048 }
5049 {
5050 PyThreadState* __tstate = wxPyBeginAllowThreads();
5051 wxFont_SetStyle(_arg0,_arg1);
5052
5053 wxPyEndAllowThreads(__tstate);
5054 if (PyErr_Occurred()) return NULL;
5055 } Py_INCREF(Py_None);
5056 _resultobj = Py_None;
5057 return _resultobj;
5058 }
5059
5060 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
5061 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject * _resultobj;
5063 wxFont * _arg0;
5064 int _arg1;
5065 PyObject * _argo0 = 0;
5066 char *_kwnames[] = { "self","weight", NULL };
5067
5068 self = self;
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
5070 return NULL;
5071 if (_argo0) {
5072 if (_argo0 == Py_None) { _arg0 = NULL; }
5073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
5075 return NULL;
5076 }
5077 }
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 wxFont_SetWeight(_arg0,_arg1);
5081
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) return NULL;
5084 } Py_INCREF(Py_None);
5085 _resultobj = Py_None;
5086 return _resultobj;
5087 }
5088
5089 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
5090 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5091 PyObject * _resultobj;
5092 wxFont * _arg0;
5093 wxString * _arg1;
5094 PyObject * _argo0 = 0;
5095 PyObject * _obj1 = 0;
5096 char *_kwnames[] = { "self","faceName", NULL };
5097
5098 self = self;
5099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
5100 return NULL;
5101 if (_argo0) {
5102 if (_argo0 == Py_None) { _arg0 = NULL; }
5103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
5105 return NULL;
5106 }
5107 }
5108 {
5109 _arg1 = wxString_in_helper(_obj1);
5110 if (_arg1 == NULL)
5111 return NULL;
5112 }
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 wxFont_SetFaceName(_arg0,*_arg1);
5116
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) return NULL;
5119 } Py_INCREF(Py_None);
5120 _resultobj = Py_None;
5121 {
5122 if (_obj1)
5123 delete _arg1;
5124 }
5125 return _resultobj;
5126 }
5127
5128 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
5129 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5130 PyObject * _resultobj;
5131 wxFont * _arg0;
5132 bool _arg1;
5133 PyObject * _argo0 = 0;
5134 int tempbool1;
5135 char *_kwnames[] = { "self","underlined", NULL };
5136
5137 self = self;
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
5139 return NULL;
5140 if (_argo0) {
5141 if (_argo0 == Py_None) { _arg0 = NULL; }
5142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
5144 return NULL;
5145 }
5146 }
5147 _arg1 = (bool ) tempbool1;
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 wxFont_SetUnderlined(_arg0,_arg1);
5151
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) return NULL;
5154 } Py_INCREF(Py_None);
5155 _resultobj = Py_None;
5156 return _resultobj;
5157 }
5158
5159 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
5160 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject * _resultobj;
5162 wxFont * _arg0;
5163 wxFontEncoding _arg1;
5164 PyObject * _argo0 = 0;
5165 char *_kwnames[] = { "self","encoding", NULL };
5166
5167 self = self;
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
5169 return NULL;
5170 if (_argo0) {
5171 if (_argo0 == Py_None) { _arg0 = NULL; }
5172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5174 return NULL;
5175 }
5176 }
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 wxFont_SetEncoding(_arg0,_arg1);
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) return NULL;
5183 } Py_INCREF(Py_None);
5184 _resultobj = Py_None;
5185 return _resultobj;
5186 }
5187
5188 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5189 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5190 PyObject * _resultobj;
5191 wxFont * _arg0;
5192 wxNativeFontInfo * _arg1;
5193 PyObject * _argo0 = 0;
5194 PyObject * _argo1 = 0;
5195 char *_kwnames[] = { "self","info", NULL };
5196
5197 self = self;
5198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
5199 return NULL;
5200 if (_argo0) {
5201 if (_argo0 == Py_None) { _arg0 = NULL; }
5202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5204 return NULL;
5205 }
5206 }
5207 if (_argo1) {
5208 if (_argo1 == Py_None) { _arg1 = NULL; }
5209 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
5210 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5211 return NULL;
5212 }
5213 }
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 wxFont_SetNativeFontInfo(_arg0,*_arg1);
5217
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) return NULL;
5220 } Py_INCREF(Py_None);
5221 _resultobj = Py_None;
5222 return _resultobj;
5223 }
5224
5225 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5226 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject * _resultobj;
5228 wxFont * _arg0;
5229 wxString * _arg1;
5230 PyObject * _argo0 = 0;
5231 PyObject * _obj1 = 0;
5232 char *_kwnames[] = { "self","info", NULL };
5233
5234 self = self;
5235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
5236 return NULL;
5237 if (_argo0) {
5238 if (_argo0 == Py_None) { _arg0 = NULL; }
5239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5241 return NULL;
5242 }
5243 }
5244 {
5245 _arg1 = wxString_in_helper(_obj1);
5246 if (_arg1 == NULL)
5247 return NULL;
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
5255 } Py_INCREF(Py_None);
5256 _resultobj = Py_None;
5257 {
5258 if (_obj1)
5259 delete _arg1;
5260 }
5261 return _resultobj;
5262 }
5263
5264 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5265 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
5266 PyObject * _resultobj;
5267 wxString * _result;
5268 wxFont * _arg0;
5269 PyObject * _argo0 = 0;
5270 char *_kwnames[] = { "self", NULL };
5271
5272 self = self;
5273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
5274 return NULL;
5275 if (_argo0) {
5276 if (_argo0 == Py_None) { _arg0 = NULL; }
5277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5279 return NULL;
5280 }
5281 }
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 _result = new wxString (wxFont_GetFamilyString(_arg0));
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) return NULL;
5288 }{
5289 #if wxUSE_UNICODE
5290 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5291 #else
5292 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5293 #endif
5294 }
5295 {
5296 delete _result;
5297 }
5298 return _resultobj;
5299 }
5300
5301 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5302 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
5303 PyObject * _resultobj;
5304 wxString * _result;
5305 wxFont * _arg0;
5306 PyObject * _argo0 = 0;
5307 char *_kwnames[] = { "self", NULL };
5308
5309 self = self;
5310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
5311 return NULL;
5312 if (_argo0) {
5313 if (_argo0 == Py_None) { _arg0 = NULL; }
5314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5316 return NULL;
5317 }
5318 }
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 _result = new wxString (wxFont_GetStyleString(_arg0));
5322
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) return NULL;
5325 }{
5326 #if wxUSE_UNICODE
5327 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5328 #else
5329 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5330 #endif
5331 }
5332 {
5333 delete _result;
5334 }
5335 return _resultobj;
5336 }
5337
5338 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5339 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
5340 PyObject * _resultobj;
5341 wxString * _result;
5342 wxFont * _arg0;
5343 PyObject * _argo0 = 0;
5344 char *_kwnames[] = { "self", NULL };
5345
5346 self = self;
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
5348 return NULL;
5349 if (_argo0) {
5350 if (_argo0 == Py_None) { _arg0 = NULL; }
5351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5353 return NULL;
5354 }
5355 }
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 _result = new wxString (wxFont_GetWeightString(_arg0));
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) return NULL;
5362 }{
5363 #if wxUSE_UNICODE
5364 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5365 #else
5366 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5367 #endif
5368 }
5369 {
5370 delete _result;
5371 }
5372 return _resultobj;
5373 }
5374
5375 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5376 PyObject * _resultobj;
5377 wxFontEncoding _result;
5378 char *_kwnames[] = { NULL };
5379
5380 self = self;
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
5382 return NULL;
5383 {
5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
5385 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
5386
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) return NULL;
5389 } _resultobj = Py_BuildValue("i",_result);
5390 return _resultobj;
5391 }
5392
5393 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject * _resultobj;
5395 wxFontEncoding _arg0;
5396 char *_kwnames[] = { "encoding", NULL };
5397
5398 self = self;
5399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
5400 return NULL;
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 wxFont::SetDefaultEncoding(_arg0);
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) return NULL;
5407 } Py_INCREF(Py_None);
5408 _resultobj = Py_None;
5409 return _resultobj;
5410 }
5411
5412 static void *SwigwxFontListTowxObject(void *ptr) {
5413 wxFontList *src;
5414 wxObject *dest;
5415 src = (wxFontList *) ptr;
5416 dest = (wxObject *) src;
5417 return (void *) dest;
5418 }
5419
5420 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5421 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5422 PyObject * _resultobj;
5423 wxFontList * _arg0;
5424 wxFont * _arg1;
5425 PyObject * _argo0 = 0;
5426 PyObject * _argo1 = 0;
5427 char *_kwnames[] = { "self","font", NULL };
5428
5429 self = self;
5430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
5431 return NULL;
5432 if (_argo0) {
5433 if (_argo0 == Py_None) { _arg0 = NULL; }
5434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5436 return NULL;
5437 }
5438 }
5439 if (_argo1) {
5440 if (_argo1 == Py_None) { _arg1 = NULL; }
5441 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5442 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5443 return NULL;
5444 }
5445 }
5446 {
5447 PyThreadState* __tstate = wxPyBeginAllowThreads();
5448 wxFontList_AddFont(_arg0,_arg1);
5449
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) return NULL;
5452 } Py_INCREF(Py_None);
5453 _resultobj = Py_None;
5454 return _resultobj;
5455 }
5456
5457 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5458 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject * _resultobj;
5460 wxFont * _result;
5461 wxFontList * _arg0;
5462 int _arg1;
5463 int _arg2;
5464 int _arg3;
5465 int _arg4;
5466 bool _arg5 = (bool ) FALSE;
5467 wxString * _arg6 = (wxString *) &wxPyEmptyString;
5468 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
5469 PyObject * _argo0 = 0;
5470 int tempbool5 = (int) FALSE;
5471 PyObject * _obj6 = 0;
5472 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
5473 char _ptemp[128];
5474
5475 self = self;
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iOi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_obj6,&_arg7))
5477 return NULL;
5478 if (_argo0) {
5479 if (_argo0 == Py_None) { _arg0 = NULL; }
5480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5482 return NULL;
5483 }
5484 }
5485 _arg5 = (bool ) tempbool5;
5486 if (_obj6)
5487 {
5488 _arg6 = wxString_in_helper(_obj6);
5489 if (_arg6 == NULL)
5490 return NULL;
5491 }
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,_arg7);
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) return NULL;
5498 } if (_result) {
5499 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5500 _resultobj = Py_BuildValue("s",_ptemp);
5501 } else {
5502 Py_INCREF(Py_None);
5503 _resultobj = Py_None;
5504 }
5505 {
5506 if (_obj6)
5507 delete _arg6;
5508 }
5509 return _resultobj;
5510 }
5511
5512 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5513 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5514 PyObject * _resultobj;
5515 wxFontList * _arg0;
5516 wxFont * _arg1;
5517 PyObject * _argo0 = 0;
5518 PyObject * _argo1 = 0;
5519 char *_kwnames[] = { "self","font", NULL };
5520
5521 self = self;
5522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
5523 return NULL;
5524 if (_argo0) {
5525 if (_argo0 == Py_None) { _arg0 = NULL; }
5526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5528 return NULL;
5529 }
5530 }
5531 if (_argo1) {
5532 if (_argo1 == Py_None) { _arg1 = NULL; }
5533 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5534 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5535 return NULL;
5536 }
5537 }
5538 {
5539 PyThreadState* __tstate = wxPyBeginAllowThreads();
5540 wxFontList_RemoveFont(_arg0,_arg1);
5541
5542 wxPyEndAllowThreads(__tstate);
5543 if (PyErr_Occurred()) return NULL;
5544 } Py_INCREF(Py_None);
5545 _resultobj = Py_None;
5546 return _resultobj;
5547 }
5548
5549 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5550 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5551 PyObject * _resultobj;
5552 int _result;
5553 wxFontList * _arg0;
5554 PyObject * _argo0 = 0;
5555 char *_kwnames[] = { "self", NULL };
5556
5557 self = self;
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
5559 return NULL;
5560 if (_argo0) {
5561 if (_argo0 == Py_None) { _arg0 = NULL; }
5562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5564 return NULL;
5565 }
5566 }
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 _result = (int )wxFontList_GetCount(_arg0);
5570
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) return NULL;
5573 } _resultobj = Py_BuildValue("i",_result);
5574 return _resultobj;
5575 }
5576
5577 static void *SwigwxColourTowxObject(void *ptr) {
5578 wxColour *src;
5579 wxObject *dest;
5580 src = (wxColour *) ptr;
5581 dest = (wxObject *) src;
5582 return (void *) dest;
5583 }
5584
5585 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5586 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5587 PyObject * _resultobj;
5588 wxColour * _result;
5589 unsigned char _arg0 = (unsigned char ) 0;
5590 unsigned char _arg1 = (unsigned char ) 0;
5591 unsigned char _arg2 = (unsigned char ) 0;
5592 char *_kwnames[] = { "red","green","blue", NULL };
5593 char _ptemp[128];
5594
5595 self = self;
5596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
5597 return NULL;
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) return NULL;
5604 } if (_result) {
5605 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5606 _resultobj = Py_BuildValue("s",_ptemp);
5607 } else {
5608 Py_INCREF(Py_None);
5609 _resultobj = Py_None;
5610 }
5611 return _resultobj;
5612 }
5613
5614 #define delete_wxColour(_swigobj) (delete _swigobj)
5615 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5616 PyObject * _resultobj;
5617 wxColour * _arg0;
5618 wxColour temp;
5619 PyObject * _obj0 = 0;
5620 char *_kwnames[] = { "self", NULL };
5621
5622 self = self;
5623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
5624 return NULL;
5625 {
5626 _arg0 = &temp;
5627 if (! wxColour_helper(_obj0, &_arg0))
5628 return NULL;
5629 }
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 delete_wxColour(_arg0);
5633
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) return NULL;
5636 } Py_INCREF(Py_None);
5637 _resultobj = Py_None;
5638 return _resultobj;
5639 }
5640
5641 #define wxColour_Red(_swigobj) (_swigobj->Red())
5642 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject * _resultobj;
5644 unsigned char _result;
5645 wxColour * _arg0;
5646 wxColour temp;
5647 PyObject * _obj0 = 0;
5648 char *_kwnames[] = { "self", NULL };
5649
5650 self = self;
5651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
5652 return NULL;
5653 {
5654 _arg0 = &temp;
5655 if (! wxColour_helper(_obj0, &_arg0))
5656 return NULL;
5657 }
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 _result = (unsigned char )wxColour_Red(_arg0);
5661
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) return NULL;
5664 } _resultobj = Py_BuildValue("b",_result);
5665 return _resultobj;
5666 }
5667
5668 #define wxColour_Green(_swigobj) (_swigobj->Green())
5669 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
5670 PyObject * _resultobj;
5671 unsigned char _result;
5672 wxColour * _arg0;
5673 wxColour temp;
5674 PyObject * _obj0 = 0;
5675 char *_kwnames[] = { "self", NULL };
5676
5677 self = self;
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
5679 return NULL;
5680 {
5681 _arg0 = &temp;
5682 if (! wxColour_helper(_obj0, &_arg0))
5683 return NULL;
5684 }
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 _result = (unsigned char )wxColour_Green(_arg0);
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) return NULL;
5691 } _resultobj = Py_BuildValue("b",_result);
5692 return _resultobj;
5693 }
5694
5695 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5696 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
5697 PyObject * _resultobj;
5698 unsigned char _result;
5699 wxColour * _arg0;
5700 wxColour temp;
5701 PyObject * _obj0 = 0;
5702 char *_kwnames[] = { "self", NULL };
5703
5704 self = self;
5705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
5706 return NULL;
5707 {
5708 _arg0 = &temp;
5709 if (! wxColour_helper(_obj0, &_arg0))
5710 return NULL;
5711 }
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 _result = (unsigned char )wxColour_Blue(_arg0);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) return NULL;
5718 } _resultobj = Py_BuildValue("b",_result);
5719 return _resultobj;
5720 }
5721
5722 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5723 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5724 PyObject * _resultobj;
5725 bool _result;
5726 wxColour * _arg0;
5727 wxColour temp;
5728 PyObject * _obj0 = 0;
5729 char *_kwnames[] = { "self", NULL };
5730
5731 self = self;
5732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
5733 return NULL;
5734 {
5735 _arg0 = &temp;
5736 if (! wxColour_helper(_obj0, &_arg0))
5737 return NULL;
5738 }
5739 {
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 _result = (bool )wxColour_Ok(_arg0);
5742
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) return NULL;
5745 } _resultobj = Py_BuildValue("i",_result);
5746 return _resultobj;
5747 }
5748
5749 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5750 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject * _resultobj;
5752 wxColour * _arg0;
5753 unsigned char _arg1;
5754 unsigned char _arg2;
5755 unsigned char _arg3;
5756 wxColour temp;
5757 PyObject * _obj0 = 0;
5758 char *_kwnames[] = { "self","red","green","blue", NULL };
5759
5760 self = self;
5761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
5762 return NULL;
5763 {
5764 _arg0 = &temp;
5765 if (! wxColour_helper(_obj0, &_arg0))
5766 return NULL;
5767 }
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
5771
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) return NULL;
5774 } Py_INCREF(Py_None);
5775 _resultobj = Py_None;
5776 return _resultobj;
5777 }
5778
5779 static PyObject * wxColour_Get(wxColour *self) {
5780 PyObject* rv = PyTuple_New(3);
5781 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
5782 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
5783 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
5784 return rv;
5785 }
5786 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5787 PyObject * _resultobj;
5788 PyObject * _result;
5789 wxColour * _arg0;
5790 wxColour temp;
5791 PyObject * _obj0 = 0;
5792 char *_kwnames[] = { "self", NULL };
5793
5794 self = self;
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
5796 return NULL;
5797 {
5798 _arg0 = &temp;
5799 if (! wxColour_helper(_obj0, &_arg0))
5800 return NULL;
5801 }
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 _result = (PyObject *)wxColour_Get(_arg0);
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) return NULL;
5808 }{
5809 _resultobj = _result;
5810 }
5811 return _resultobj;
5812 }
5813
5814 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
5815 wxColourDatabase *src;
5816 wxObject *dest;
5817 src = (wxColourDatabase *) ptr;
5818 dest = (wxObject *) src;
5819 return (void *) dest;
5820 }
5821
5822 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5823 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject * _resultobj;
5825 wxColour * _result;
5826 wxColourDatabase * _arg0;
5827 wxString * _arg1;
5828 PyObject * _argo0 = 0;
5829 PyObject * _obj1 = 0;
5830 char *_kwnames[] = { "self","colour", NULL };
5831 char _ptemp[128];
5832
5833 self = self;
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5835 return NULL;
5836 if (_argo0) {
5837 if (_argo0 == Py_None) { _arg0 = NULL; }
5838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5840 return NULL;
5841 }
5842 }
5843 {
5844 _arg1 = wxString_in_helper(_obj1);
5845 if (_arg1 == NULL)
5846 return NULL;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) return NULL;
5854 } if (_result) {
5855 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5856 _resultobj = Py_BuildValue("s",_ptemp);
5857 } else {
5858 Py_INCREF(Py_None);
5859 _resultobj = Py_None;
5860 }
5861 {
5862 if (_obj1)
5863 delete _arg1;
5864 }
5865 return _resultobj;
5866 }
5867
5868 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5869 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject * _resultobj;
5871 wxString * _result;
5872 wxColourDatabase * _arg0;
5873 wxColour * _arg1;
5874 PyObject * _argo0 = 0;
5875 wxColour temp;
5876 PyObject * _obj1 = 0;
5877 char *_kwnames[] = { "self","colour", NULL };
5878
5879 self = self;
5880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5881 return NULL;
5882 if (_argo0) {
5883 if (_argo0 == Py_None) { _arg0 = NULL; }
5884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5886 return NULL;
5887 }
5888 }
5889 {
5890 _arg1 = &temp;
5891 if (! wxColour_helper(_obj1, &_arg1))
5892 return NULL;
5893 }
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5897
5898 wxPyEndAllowThreads(__tstate);
5899 if (PyErr_Occurred()) return NULL;
5900 }{
5901 #if wxUSE_UNICODE
5902 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5903 #else
5904 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5905 #endif
5906 }
5907 {
5908 delete _result;
5909 }
5910 return _resultobj;
5911 }
5912
5913 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5914 // first see if the name is already there
5915 wxString cName = name;
5916 cName.MakeUpper();
5917 wxString cName2 = cName;
5918 if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) )
5919 cName2.clear();
5920
5921 wxNode *node = self->First();
5922 while ( node ) {
5923 const wxChar *key = node->GetKeyString();
5924 if ( cName == key || cName2 == key ) {
5925 wxColour* c = (wxColour *)node->Data();
5926 c->Set(red, green, blue);
5927 return;
5928 }
5929 node = node->Next();
5930 }
5931
5932 // otherwise append the new colour
5933 self->Append(name.c_str(), new wxColour(red, green, blue));
5934 }
5935 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5936 PyObject * _resultobj;
5937 wxColourDatabase * _arg0;
5938 wxString * _arg1;
5939 int _arg2;
5940 int _arg3;
5941 int _arg4;
5942 PyObject * _argo0 = 0;
5943 PyObject * _obj1 = 0;
5944 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5945
5946 self = self;
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5948 return NULL;
5949 if (_argo0) {
5950 if (_argo0 == Py_None) { _arg0 = NULL; }
5951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5953 return NULL;
5954 }
5955 }
5956 {
5957 _arg1 = wxString_in_helper(_obj1);
5958 if (_arg1 == NULL)
5959 return NULL;
5960 }
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) return NULL;
5967 } Py_INCREF(Py_None);
5968 _resultobj = Py_None;
5969 {
5970 if (_obj1)
5971 delete _arg1;
5972 }
5973 return _resultobj;
5974 }
5975
5976 static void *SwigwxPenTowxGDIObject(void *ptr) {
5977 wxPen *src;
5978 wxGDIObject *dest;
5979 src = (wxPen *) ptr;
5980 dest = (wxGDIObject *) src;
5981 return (void *) dest;
5982 }
5983
5984 static void *SwigwxPenTowxObject(void *ptr) {
5985 wxPen *src;
5986 wxObject *dest;
5987 src = (wxPen *) ptr;
5988 dest = (wxObject *) src;
5989 return (void *) dest;
5990 }
5991
5992 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5993 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject * _resultobj;
5995 wxPen * _result;
5996 wxColour * _arg0;
5997 int _arg1 = (int ) 1;
5998 int _arg2 = (int ) wxSOLID;
5999 wxColour temp;
6000 PyObject * _obj0 = 0;
6001 char *_kwnames[] = { "colour","width","style", NULL };
6002 char _ptemp[128];
6003
6004 self = self;
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
6006 return NULL;
6007 {
6008 _arg0 = &temp;
6009 if (! wxColour_helper(_obj0, &_arg0))
6010 return NULL;
6011 }
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) return NULL;
6018 } if (_result) {
6019 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6020 _resultobj = Py_BuildValue("s",_ptemp);
6021 } else {
6022 Py_INCREF(Py_None);
6023 _resultobj = Py_None;
6024 }
6025 return _resultobj;
6026 }
6027
6028 #define delete_wxPen(_swigobj) (delete _swigobj)
6029 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6030 PyObject * _resultobj;
6031 wxPen * _arg0;
6032 PyObject * _argo0 = 0;
6033 char *_kwnames[] = { "self", NULL };
6034
6035 self = self;
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
6037 return NULL;
6038 if (_argo0) {
6039 if (_argo0 == Py_None) { _arg0 = NULL; }
6040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
6042 return NULL;
6043 }
6044 }
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 delete_wxPen(_arg0);
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) return NULL;
6051 } Py_INCREF(Py_None);
6052 _resultobj = Py_None;
6053 return _resultobj;
6054 }
6055
6056 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
6057 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
6058 PyObject * _resultobj;
6059 int _result;
6060 wxPen * _arg0;
6061 PyObject * _argo0 = 0;
6062 char *_kwnames[] = { "self", NULL };
6063
6064 self = self;
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
6066 return NULL;
6067 if (_argo0) {
6068 if (_argo0 == Py_None) { _arg0 = NULL; }
6069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
6071 return NULL;
6072 }
6073 }
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 _result = (int )wxPen_GetCap(_arg0);
6077
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) return NULL;
6080 } _resultobj = Py_BuildValue("i",_result);
6081 return _resultobj;
6082 }
6083
6084 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
6085 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject * _resultobj;
6087 wxColour * _result;
6088 wxPen * _arg0;
6089 PyObject * _argo0 = 0;
6090 char *_kwnames[] = { "self", NULL };
6091 char _ptemp[128];
6092
6093 self = self;
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
6095 return NULL;
6096 if (_argo0) {
6097 if (_argo0 == Py_None) { _arg0 = NULL; }
6098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
6100 return NULL;
6101 }
6102 }
6103 {
6104 PyThreadState* __tstate = wxPyBeginAllowThreads();
6105 _result = new wxColour (wxPen_GetColour(_arg0));
6106
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) return NULL;
6109 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6110 _resultobj = Py_BuildValue("s",_ptemp);
6111 return _resultobj;
6112 }
6113
6114 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
6115 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6116 PyObject * _resultobj;
6117 int _result;
6118 wxPen * _arg0;
6119 PyObject * _argo0 = 0;
6120 char *_kwnames[] = { "self", NULL };
6121
6122 self = self;
6123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
6124 return NULL;
6125 if (_argo0) {
6126 if (_argo0 == Py_None) { _arg0 = NULL; }
6127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
6129 return NULL;
6130 }
6131 }
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 _result = (int )wxPen_GetJoin(_arg0);
6135
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) return NULL;
6138 } _resultobj = Py_BuildValue("i",_result);
6139 return _resultobj;
6140 }
6141
6142 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
6143 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject * _resultobj;
6145 int _result;
6146 wxPen * _arg0;
6147 PyObject * _argo0 = 0;
6148 char *_kwnames[] = { "self", NULL };
6149
6150 self = self;
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
6152 return NULL;
6153 if (_argo0) {
6154 if (_argo0 == Py_None) { _arg0 = NULL; }
6155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
6157 return NULL;
6158 }
6159 }
6160 {
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 _result = (int )wxPen_GetStyle(_arg0);
6163
6164 wxPyEndAllowThreads(__tstate);
6165 if (PyErr_Occurred()) return NULL;
6166 } _resultobj = Py_BuildValue("i",_result);
6167 return _resultobj;
6168 }
6169
6170 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6171 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6172 PyObject * _resultobj;
6173 int _result;
6174 wxPen * _arg0;
6175 PyObject * _argo0 = 0;
6176 char *_kwnames[] = { "self", NULL };
6177
6178 self = self;
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
6180 return NULL;
6181 if (_argo0) {
6182 if (_argo0 == Py_None) { _arg0 = NULL; }
6183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6185 return NULL;
6186 }
6187 }
6188 {
6189 PyThreadState* __tstate = wxPyBeginAllowThreads();
6190 _result = (int )wxPen_GetWidth(_arg0);
6191
6192 wxPyEndAllowThreads(__tstate);
6193 if (PyErr_Occurred()) return NULL;
6194 } _resultobj = Py_BuildValue("i",_result);
6195 return _resultobj;
6196 }
6197
6198 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6199 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6200 PyObject * _resultobj;
6201 bool _result;
6202 wxPen * _arg0;
6203 PyObject * _argo0 = 0;
6204 char *_kwnames[] = { "self", NULL };
6205
6206 self = self;
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
6208 return NULL;
6209 if (_argo0) {
6210 if (_argo0 == Py_None) { _arg0 = NULL; }
6211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6213 return NULL;
6214 }
6215 }
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 _result = (bool )wxPen_Ok(_arg0);
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) return NULL;
6222 } _resultobj = Py_BuildValue("i",_result);
6223 return _resultobj;
6224 }
6225
6226 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6227 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject * _resultobj;
6229 wxPen * _arg0;
6230 int _arg1;
6231 PyObject * _argo0 = 0;
6232 char *_kwnames[] = { "self","cap_style", NULL };
6233
6234 self = self;
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
6236 return NULL;
6237 if (_argo0) {
6238 if (_argo0 == Py_None) { _arg0 = NULL; }
6239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6241 return NULL;
6242 }
6243 }
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 wxPen_SetCap(_arg0,_arg1);
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) return NULL;
6250 } Py_INCREF(Py_None);
6251 _resultobj = Py_None;
6252 return _resultobj;
6253 }
6254
6255 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6256 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6257 PyObject * _resultobj;
6258 wxPen * _arg0;
6259 wxColour * _arg1;
6260 PyObject * _argo0 = 0;
6261 wxColour temp;
6262 PyObject * _obj1 = 0;
6263 char *_kwnames[] = { "self","colour", NULL };
6264
6265 self = self;
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
6267 return NULL;
6268 if (_argo0) {
6269 if (_argo0 == Py_None) { _arg0 = NULL; }
6270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6272 return NULL;
6273 }
6274 }
6275 {
6276 _arg1 = &temp;
6277 if (! wxColour_helper(_obj1, &_arg1))
6278 return NULL;
6279 }
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 wxPen_SetColour(_arg0,*_arg1);
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) return NULL;
6286 } Py_INCREF(Py_None);
6287 _resultobj = Py_None;
6288 return _resultobj;
6289 }
6290
6291 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6292 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject * _resultobj;
6294 wxPen * _arg0;
6295 int _arg1;
6296 PyObject * _argo0 = 0;
6297 char *_kwnames[] = { "self","join_style", NULL };
6298
6299 self = self;
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
6301 return NULL;
6302 if (_argo0) {
6303 if (_argo0 == Py_None) { _arg0 = NULL; }
6304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6306 return NULL;
6307 }
6308 }
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 wxPen_SetJoin(_arg0,_arg1);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) return NULL;
6315 } Py_INCREF(Py_None);
6316 _resultobj = Py_None;
6317 return _resultobj;
6318 }
6319
6320 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6321 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject * _resultobj;
6323 wxPen * _arg0;
6324 int _arg1;
6325 PyObject * _argo0 = 0;
6326 char *_kwnames[] = { "self","style", NULL };
6327
6328 self = self;
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
6330 return NULL;
6331 if (_argo0) {
6332 if (_argo0 == Py_None) { _arg0 = NULL; }
6333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6335 return NULL;
6336 }
6337 }
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 wxPen_SetStyle(_arg0,_arg1);
6341
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) return NULL;
6344 } Py_INCREF(Py_None);
6345 _resultobj = Py_None;
6346 return _resultobj;
6347 }
6348
6349 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6350 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject * _resultobj;
6352 wxPen * _arg0;
6353 int _arg1;
6354 PyObject * _argo0 = 0;
6355 char *_kwnames[] = { "self","width", NULL };
6356
6357 self = self;
6358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
6359 return NULL;
6360 if (_argo0) {
6361 if (_argo0 == Py_None) { _arg0 = NULL; }
6362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6364 return NULL;
6365 }
6366 }
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 wxPen_SetWidth(_arg0,_arg1);
6370
6371 wxPyEndAllowThreads(__tstate);
6372 if (PyErr_Occurred()) return NULL;
6373 } Py_INCREF(Py_None);
6374 _resultobj = Py_None;
6375 return _resultobj;
6376 }
6377
6378 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6379 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6380 PyObject * _resultobj;
6381 wxPen * _arg0;
6382 int _arg1;
6383 wxDash * _arg2;
6384 PyObject * _argo0 = 0;
6385 PyObject * _obj2 = 0;
6386 char *_kwnames[] = { "self","choices", NULL };
6387
6388 self = self;
6389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
6390 return NULL;
6391 if (_argo0) {
6392 if (_argo0 == Py_None) { _arg0 = NULL; }
6393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6395 return NULL;
6396 }
6397 }
6398 if (_obj2)
6399 {
6400 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6401 if (_arg2 == NULL) {
6402 return NULL;
6403 }
6404 }
6405 {
6406 if (_obj2) {
6407 _arg1 = PyList_Size(_obj2);
6408 }
6409 else {
6410 _arg1 = 0;
6411 }
6412 }
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 wxPen_SetDashes(_arg0,_arg1,_arg2);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) return NULL;
6419 } Py_INCREF(Py_None);
6420 _resultobj = Py_None;
6421 {
6422 delete [] _arg2;
6423 }
6424 return _resultobj;
6425 }
6426
6427 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6428 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6429 PyObject * _resultobj;
6430 wxBitmap * _result;
6431 wxPen * _arg0;
6432 PyObject * _argo0 = 0;
6433 char *_kwnames[] = { "self", NULL };
6434 char _ptemp[128];
6435
6436 self = self;
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
6438 return NULL;
6439 if (_argo0) {
6440 if (_argo0 == Py_None) { _arg0 = NULL; }
6441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6443 return NULL;
6444 }
6445 }
6446 {
6447 PyThreadState* __tstate = wxPyBeginAllowThreads();
6448 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
6449
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) return NULL;
6452 } if (_result) {
6453 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6454 _resultobj = Py_BuildValue("s",_ptemp);
6455 } else {
6456 Py_INCREF(Py_None);
6457 _resultobj = Py_None;
6458 }
6459 return _resultobj;
6460 }
6461
6462 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6463 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6464 PyObject * _resultobj;
6465 wxPen * _arg0;
6466 wxBitmap * _arg1;
6467 PyObject * _argo0 = 0;
6468 PyObject * _argo1 = 0;
6469 char *_kwnames[] = { "self","stipple", NULL };
6470
6471 self = self;
6472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
6473 return NULL;
6474 if (_argo0) {
6475 if (_argo0 == Py_None) { _arg0 = NULL; }
6476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6478 return NULL;
6479 }
6480 }
6481 if (_argo1) {
6482 if (_argo1 == Py_None) { _arg1 = NULL; }
6483 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6484 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6485 return NULL;
6486 }
6487 }
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 wxPen_SetStipple(_arg0,*_arg1);
6491
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) return NULL;
6494 } Py_INCREF(Py_None);
6495 _resultobj = Py_None;
6496 return _resultobj;
6497 }
6498
6499 static void *SwigwxPyPenTowxPen(void *ptr) {
6500 wxPyPen *src;
6501 wxPen *dest;
6502 src = (wxPyPen *) ptr;
6503 dest = (wxPen *) src;
6504 return (void *) dest;
6505 }
6506
6507 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
6508 wxPyPen *src;
6509 wxGDIObject *dest;
6510 src = (wxPyPen *) ptr;
6511 dest = (wxGDIObject *) src;
6512 return (void *) dest;
6513 }
6514
6515 static void *SwigwxPyPenTowxObject(void *ptr) {
6516 wxPyPen *src;
6517 wxObject *dest;
6518 src = (wxPyPen *) ptr;
6519 dest = (wxObject *) src;
6520 return (void *) dest;
6521 }
6522
6523 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6524 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6525 PyObject * _resultobj;
6526 wxPyPen * _result;
6527 wxColour * _arg0;
6528 int _arg1 = (int ) 1;
6529 int _arg2 = (int ) wxSOLID;
6530 wxColour temp;
6531 PyObject * _obj0 = 0;
6532 char *_kwnames[] = { "colour","width","style", NULL };
6533 char _ptemp[128];
6534
6535 self = self;
6536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
6537 return NULL;
6538 {
6539 _arg0 = &temp;
6540 if (! wxColour_helper(_obj0, &_arg0))
6541 return NULL;
6542 }
6543 {
6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
6545 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
6546
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) return NULL;
6549 } if (_result) {
6550 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
6551 _resultobj = Py_BuildValue("s",_ptemp);
6552 } else {
6553 Py_INCREF(Py_None);
6554 _resultobj = Py_None;
6555 }
6556 return _resultobj;
6557 }
6558
6559 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6560 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6561 PyObject * _resultobj;
6562 wxPyPen * _arg0;
6563 PyObject * _argo0 = 0;
6564 char *_kwnames[] = { "self", NULL };
6565
6566 self = self;
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
6568 return NULL;
6569 if (_argo0) {
6570 if (_argo0 == Py_None) { _arg0 = NULL; }
6571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6573 return NULL;
6574 }
6575 }
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 delete_wxPyPen(_arg0);
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) return NULL;
6582 } Py_INCREF(Py_None);
6583 _resultobj = Py_None;
6584 return _resultobj;
6585 }
6586
6587 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6588 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject * _resultobj;
6590 wxPyPen * _arg0;
6591 int _arg1;
6592 wxDash * _arg2;
6593 PyObject * _argo0 = 0;
6594 PyObject * _obj2 = 0;
6595 char *_kwnames[] = { "self","choices", NULL };
6596
6597 self = self;
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
6599 return NULL;
6600 if (_argo0) {
6601 if (_argo0 == Py_None) { _arg0 = NULL; }
6602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6604 return NULL;
6605 }
6606 }
6607 if (_obj2)
6608 {
6609 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6610 if (_arg2 == NULL) {
6611 return NULL;
6612 }
6613 }
6614 {
6615 if (_obj2) {
6616 _arg1 = PyList_Size(_obj2);
6617 }
6618 else {
6619 _arg1 = 0;
6620 }
6621 }
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) return NULL;
6628 } Py_INCREF(Py_None);
6629 _resultobj = Py_None;
6630 {
6631 delete [] _arg2;
6632 }
6633 return _resultobj;
6634 }
6635
6636 static void *SwigwxPenListTowxObject(void *ptr) {
6637 wxPenList *src;
6638 wxObject *dest;
6639 src = (wxPenList *) ptr;
6640 dest = (wxObject *) src;
6641 return (void *) dest;
6642 }
6643
6644 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6645 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject * _resultobj;
6647 wxPenList * _arg0;
6648 wxPen * _arg1;
6649 PyObject * _argo0 = 0;
6650 PyObject * _argo1 = 0;
6651 char *_kwnames[] = { "self","pen", NULL };
6652
6653 self = self;
6654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
6655 return NULL;
6656 if (_argo0) {
6657 if (_argo0 == Py_None) { _arg0 = NULL; }
6658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6660 return NULL;
6661 }
6662 }
6663 if (_argo1) {
6664 if (_argo1 == Py_None) { _arg1 = NULL; }
6665 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6666 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6667 return NULL;
6668 }
6669 }
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 wxPenList_AddPen(_arg0,_arg1);
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) return NULL;
6676 } Py_INCREF(Py_None);
6677 _resultobj = Py_None;
6678 return _resultobj;
6679 }
6680
6681 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6682 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6683 PyObject * _resultobj;
6684 wxPen * _result;
6685 wxPenList * _arg0;
6686 wxColour * _arg1;
6687 int _arg2;
6688 int _arg3;
6689 PyObject * _argo0 = 0;
6690 wxColour temp;
6691 PyObject * _obj1 = 0;
6692 char *_kwnames[] = { "self","colour","width","style", NULL };
6693 char _ptemp[128];
6694
6695 self = self;
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6697 return NULL;
6698 if (_argo0) {
6699 if (_argo0 == Py_None) { _arg0 = NULL; }
6700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6702 return NULL;
6703 }
6704 }
6705 {
6706 _arg1 = &temp;
6707 if (! wxColour_helper(_obj1, &_arg1))
6708 return NULL;
6709 }
6710 {
6711 PyThreadState* __tstate = wxPyBeginAllowThreads();
6712 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
6713
6714 wxPyEndAllowThreads(__tstate);
6715 if (PyErr_Occurred()) return NULL;
6716 } if (_result) {
6717 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6718 _resultobj = Py_BuildValue("s",_ptemp);
6719 } else {
6720 Py_INCREF(Py_None);
6721 _resultobj = Py_None;
6722 }
6723 return _resultobj;
6724 }
6725
6726 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6727 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject * _resultobj;
6729 wxPenList * _arg0;
6730 wxPen * _arg1;
6731 PyObject * _argo0 = 0;
6732 PyObject * _argo1 = 0;
6733 char *_kwnames[] = { "self","pen", NULL };
6734
6735 self = self;
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
6737 return NULL;
6738 if (_argo0) {
6739 if (_argo0 == Py_None) { _arg0 = NULL; }
6740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6742 return NULL;
6743 }
6744 }
6745 if (_argo1) {
6746 if (_argo1 == Py_None) { _arg1 = NULL; }
6747 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6748 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6749 return NULL;
6750 }
6751 }
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 wxPenList_RemovePen(_arg0,_arg1);
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) return NULL;
6758 } Py_INCREF(Py_None);
6759 _resultobj = Py_None;
6760 return _resultobj;
6761 }
6762
6763 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6764 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6765 PyObject * _resultobj;
6766 int _result;
6767 wxPenList * _arg0;
6768 PyObject * _argo0 = 0;
6769 char *_kwnames[] = { "self", NULL };
6770
6771 self = self;
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
6773 return NULL;
6774 if (_argo0) {
6775 if (_argo0 == Py_None) { _arg0 = NULL; }
6776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6778 return NULL;
6779 }
6780 }
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 _result = (int )wxPenList_GetCount(_arg0);
6784
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) return NULL;
6787 } _resultobj = Py_BuildValue("i",_result);
6788 return _resultobj;
6789 }
6790
6791 static void *SwigwxBrushTowxGDIObject(void *ptr) {
6792 wxBrush *src;
6793 wxGDIObject *dest;
6794 src = (wxBrush *) ptr;
6795 dest = (wxGDIObject *) src;
6796 return (void *) dest;
6797 }
6798
6799 static void *SwigwxBrushTowxObject(void *ptr) {
6800 wxBrush *src;
6801 wxObject *dest;
6802 src = (wxBrush *) ptr;
6803 dest = (wxObject *) src;
6804 return (void *) dest;
6805 }
6806
6807 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6808 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject * _resultobj;
6810 wxBrush * _result;
6811 wxColour * _arg0;
6812 int _arg1 = (int ) wxSOLID;
6813 wxColour temp;
6814 PyObject * _obj0 = 0;
6815 char *_kwnames[] = { "colour","style", NULL };
6816 char _ptemp[128];
6817
6818 self = self;
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
6820 return NULL;
6821 {
6822 _arg0 = &temp;
6823 if (! wxColour_helper(_obj0, &_arg0))
6824 return NULL;
6825 }
6826 {
6827 PyThreadState* __tstate = wxPyBeginAllowThreads();
6828 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
6829
6830 wxPyEndAllowThreads(__tstate);
6831 if (PyErr_Occurred()) return NULL;
6832 } if (_result) {
6833 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6834 _resultobj = Py_BuildValue("s",_ptemp);
6835 } else {
6836 Py_INCREF(Py_None);
6837 _resultobj = Py_None;
6838 }
6839 return _resultobj;
6840 }
6841
6842 #define delete_wxBrush(_swigobj) (delete _swigobj)
6843 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6844 PyObject * _resultobj;
6845 wxBrush * _arg0;
6846 PyObject * _argo0 = 0;
6847 char *_kwnames[] = { "self", NULL };
6848
6849 self = self;
6850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
6851 return NULL;
6852 if (_argo0) {
6853 if (_argo0 == Py_None) { _arg0 = NULL; }
6854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6856 return NULL;
6857 }
6858 }
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
6861 delete_wxBrush(_arg0);
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) return NULL;
6865 } Py_INCREF(Py_None);
6866 _resultobj = Py_None;
6867 return _resultobj;
6868 }
6869
6870 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6871 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6872 PyObject * _resultobj;
6873 wxColour * _result;
6874 wxBrush * _arg0;
6875 PyObject * _argo0 = 0;
6876 char *_kwnames[] = { "self", NULL };
6877 char _ptemp[128];
6878
6879 self = self;
6880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6881 return NULL;
6882 if (_argo0) {
6883 if (_argo0 == Py_None) { _arg0 = NULL; }
6884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6886 return NULL;
6887 }
6888 }
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 _result = new wxColour (wxBrush_GetColour(_arg0));
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) return NULL;
6895 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6896 _resultobj = Py_BuildValue("s",_ptemp);
6897 return _resultobj;
6898 }
6899
6900 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6901 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6902 PyObject * _resultobj;
6903 wxBitmap * _result;
6904 wxBrush * _arg0;
6905 PyObject * _argo0 = 0;
6906 char *_kwnames[] = { "self", NULL };
6907 char _ptemp[128];
6908
6909 self = self;
6910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6911 return NULL;
6912 if (_argo0) {
6913 if (_argo0 == Py_None) { _arg0 = NULL; }
6914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6916 return NULL;
6917 }
6918 }
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) return NULL;
6925 } if (_result) {
6926 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6927 _resultobj = Py_BuildValue("s",_ptemp);
6928 } else {
6929 Py_INCREF(Py_None);
6930 _resultobj = Py_None;
6931 }
6932 return _resultobj;
6933 }
6934
6935 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6936 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6937 PyObject * _resultobj;
6938 int _result;
6939 wxBrush * _arg0;
6940 PyObject * _argo0 = 0;
6941 char *_kwnames[] = { "self", NULL };
6942
6943 self = self;
6944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6945 return NULL;
6946 if (_argo0) {
6947 if (_argo0 == Py_None) { _arg0 = NULL; }
6948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6950 return NULL;
6951 }
6952 }
6953 {
6954 PyThreadState* __tstate = wxPyBeginAllowThreads();
6955 _result = (int )wxBrush_GetStyle(_arg0);
6956
6957 wxPyEndAllowThreads(__tstate);
6958 if (PyErr_Occurred()) return NULL;
6959 } _resultobj = Py_BuildValue("i",_result);
6960 return _resultobj;
6961 }
6962
6963 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6964 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6965 PyObject * _resultobj;
6966 bool _result;
6967 wxBrush * _arg0;
6968 PyObject * _argo0 = 0;
6969 char *_kwnames[] = { "self", NULL };
6970
6971 self = self;
6972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6973 return NULL;
6974 if (_argo0) {
6975 if (_argo0 == Py_None) { _arg0 = NULL; }
6976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6978 return NULL;
6979 }
6980 }
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 _result = (bool )wxBrush_Ok(_arg0);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) return NULL;
6987 } _resultobj = Py_BuildValue("i",_result);
6988 return _resultobj;
6989 }
6990
6991 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6992 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6993 PyObject * _resultobj;
6994 wxBrush * _arg0;
6995 wxColour * _arg1;
6996 PyObject * _argo0 = 0;
6997 wxColour temp;
6998 PyObject * _obj1 = 0;
6999 char *_kwnames[] = { "self","colour", NULL };
7000
7001 self = self;
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
7003 return NULL;
7004 if (_argo0) {
7005 if (_argo0 == Py_None) { _arg0 = NULL; }
7006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
7007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
7008 return NULL;
7009 }
7010 }
7011 {
7012 _arg1 = &temp;
7013 if (! wxColour_helper(_obj1, &_arg1))
7014 return NULL;
7015 }
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 wxBrush_SetColour(_arg0,*_arg1);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) return NULL;
7022 } Py_INCREF(Py_None);
7023 _resultobj = Py_None;
7024 return _resultobj;
7025 }
7026
7027 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
7028 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
7029 PyObject * _resultobj;
7030 wxBrush * _arg0;
7031 wxBitmap * _arg1;
7032 PyObject * _argo0 = 0;
7033 PyObject * _argo1 = 0;
7034 char *_kwnames[] = { "self","bitmap", NULL };
7035
7036 self = self;
7037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
7038 return NULL;
7039 if (_argo0) {
7040 if (_argo0 == Py_None) { _arg0 = NULL; }
7041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
7042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
7043 return NULL;
7044 }
7045 }
7046 if (_argo1) {
7047 if (_argo1 == Py_None) { _arg1 = NULL; }
7048 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7049 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
7050 return NULL;
7051 }
7052 }
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 wxBrush_SetStipple(_arg0,*_arg1);
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) return NULL;
7059 } Py_INCREF(Py_None);
7060 _resultobj = Py_None;
7061 return _resultobj;
7062 }
7063
7064 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
7065 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7066 PyObject * _resultobj;
7067 wxBrush * _arg0;
7068 int _arg1;
7069 PyObject * _argo0 = 0;
7070 char *_kwnames[] = { "self","style", NULL };
7071
7072 self = self;
7073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
7074 return NULL;
7075 if (_argo0) {
7076 if (_argo0 == Py_None) { _arg0 = NULL; }
7077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
7078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
7079 return NULL;
7080 }
7081 }
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 wxBrush_SetStyle(_arg0,_arg1);
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 static void *SwigwxBrushListTowxObject(void *ptr) {
7094 wxBrushList *src;
7095 wxObject *dest;
7096 src = (wxBrushList *) ptr;
7097 dest = (wxObject *) src;
7098 return (void *) dest;
7099 }
7100
7101 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
7102 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7103 PyObject * _resultobj;
7104 wxBrushList * _arg0;
7105 wxBrush * _arg1;
7106 PyObject * _argo0 = 0;
7107 PyObject * _argo1 = 0;
7108 char *_kwnames[] = { "self","brush", NULL };
7109
7110 self = self;
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
7112 return NULL;
7113 if (_argo0) {
7114 if (_argo0 == Py_None) { _arg0 = NULL; }
7115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
7117 return NULL;
7118 }
7119 }
7120 if (_argo1) {
7121 if (_argo1 == Py_None) { _arg1 = NULL; }
7122 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7123 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
7124 return NULL;
7125 }
7126 }
7127 {
7128 PyThreadState* __tstate = wxPyBeginAllowThreads();
7129 wxBrushList_AddBrush(_arg0,_arg1);
7130
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) return NULL;
7133 } Py_INCREF(Py_None);
7134 _resultobj = Py_None;
7135 return _resultobj;
7136 }
7137
7138 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
7139 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7140 PyObject * _resultobj;
7141 wxBrush * _result;
7142 wxBrushList * _arg0;
7143 wxColour * _arg1;
7144 int _arg2;
7145 PyObject * _argo0 = 0;
7146 wxColour temp;
7147 PyObject * _obj1 = 0;
7148 char *_kwnames[] = { "self","colour","style", NULL };
7149 char _ptemp[128];
7150
7151 self = self;
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
7153 return NULL;
7154 if (_argo0) {
7155 if (_argo0 == Py_None) { _arg0 = NULL; }
7156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
7158 return NULL;
7159 }
7160 }
7161 {
7162 _arg1 = &temp;
7163 if (! wxColour_helper(_obj1, &_arg1))
7164 return NULL;
7165 }
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) return NULL;
7172 } if (_result) {
7173 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7174 _resultobj = Py_BuildValue("s",_ptemp);
7175 } else {
7176 Py_INCREF(Py_None);
7177 _resultobj = Py_None;
7178 }
7179 return _resultobj;
7180 }
7181
7182 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7183 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject * _resultobj;
7185 wxBrushList * _arg0;
7186 wxBrush * _arg1;
7187 PyObject * _argo0 = 0;
7188 PyObject * _argo1 = 0;
7189 char *_kwnames[] = { "self","brush", NULL };
7190
7191 self = self;
7192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
7193 return NULL;
7194 if (_argo0) {
7195 if (_argo0 == Py_None) { _arg0 = NULL; }
7196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7198 return NULL;
7199 }
7200 }
7201 if (_argo1) {
7202 if (_argo1 == Py_None) { _arg1 = NULL; }
7203 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7204 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7205 return NULL;
7206 }
7207 }
7208 {
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 wxBrushList_RemoveBrush(_arg0,_arg1);
7211
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) return NULL;
7214 } Py_INCREF(Py_None);
7215 _resultobj = Py_None;
7216 return _resultobj;
7217 }
7218
7219 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7220 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject * _resultobj;
7222 int _result;
7223 wxBrushList * _arg0;
7224 PyObject * _argo0 = 0;
7225 char *_kwnames[] = { "self", NULL };
7226
7227 self = self;
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
7229 return NULL;
7230 if (_argo0) {
7231 if (_argo0 == Py_None) { _arg0 = NULL; }
7232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7234 return NULL;
7235 }
7236 }
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 _result = (int )wxBrushList_GetCount(_arg0);
7240
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) return NULL;
7243 } _resultobj = Py_BuildValue("i",_result);
7244 return _resultobj;
7245 }
7246
7247 static void *SwigwxDCTowxObject(void *ptr) {
7248 wxDC *src;
7249 wxObject *dest;
7250 src = (wxDC *) ptr;
7251 dest = (wxObject *) src;
7252 return (void *) dest;
7253 }
7254
7255 #define delete_wxDC(_swigobj) (delete _swigobj)
7256 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject * _resultobj;
7258 wxDC * _arg0;
7259 PyObject * _argo0 = 0;
7260 char *_kwnames[] = { "self", NULL };
7261
7262 self = self;
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
7264 return NULL;
7265 if (_argo0) {
7266 if (_argo0 == Py_None) { _arg0 = NULL; }
7267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7269 return NULL;
7270 }
7271 }
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 delete_wxDC(_arg0);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) return NULL;
7278 } Py_INCREF(Py_None);
7279 _resultobj = Py_None;
7280 return _resultobj;
7281 }
7282
7283 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7284 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject * _resultobj;
7286 wxDC * _arg0;
7287 PyObject * _argo0 = 0;
7288 char *_kwnames[] = { "self", NULL };
7289
7290 self = self;
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
7292 return NULL;
7293 if (_argo0) {
7294 if (_argo0 == Py_None) { _arg0 = NULL; }
7295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7297 return NULL;
7298 }
7299 }
7300 {
7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
7302 wxDC_BeginDrawing(_arg0);
7303
7304 wxPyEndAllowThreads(__tstate);
7305 if (PyErr_Occurred()) return NULL;
7306 } Py_INCREF(Py_None);
7307 _resultobj = Py_None;
7308 return _resultobj;
7309 }
7310
7311 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7312 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
7313 PyObject * _resultobj;
7314 bool _result;
7315 wxDC * _arg0;
7316 long _arg1;
7317 long _arg2;
7318 long _arg3;
7319 long _arg4;
7320 wxDC * _arg5;
7321 long _arg6;
7322 long _arg7;
7323 int _arg8 = (int ) wxCOPY;
7324 int _arg9 = (int ) FALSE;
7325 PyObject * _argo0 = 0;
7326 PyObject * _argo5 = 0;
7327 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
7328
7329 self = self;
7330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
7331 return NULL;
7332 if (_argo0) {
7333 if (_argo0 == Py_None) { _arg0 = NULL; }
7334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7336 return NULL;
7337 }
7338 }
7339 if (_argo5) {
7340 if (_argo5 == Py_None) { _arg5 = NULL; }
7341 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
7342 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7343 return NULL;
7344 }
7345 }
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) return NULL;
7352 } _resultobj = Py_BuildValue("i",_result);
7353 return _resultobj;
7354 }
7355
7356 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7357 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject * _resultobj;
7359 wxDC * _arg0;
7360 PyObject * _argo0 = 0;
7361 char *_kwnames[] = { "self", NULL };
7362
7363 self = self;
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
7365 return NULL;
7366 if (_argo0) {
7367 if (_argo0 == Py_None) { _arg0 = NULL; }
7368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7370 return NULL;
7371 }
7372 }
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 wxDC_Clear(_arg0);
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) return NULL;
7379 } Py_INCREF(Py_None);
7380 _resultobj = Py_None;
7381 return _resultobj;
7382 }
7383
7384 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7385 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
7386 PyObject * _resultobj;
7387 wxDC * _arg0;
7388 long _arg1;
7389 long _arg2;
7390 PyObject * _argo0 = 0;
7391 char *_kwnames[] = { "self","x","y", NULL };
7392
7393 self = self;
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
7395 return NULL;
7396 if (_argo0) {
7397 if (_argo0 == Py_None) { _arg0 = NULL; }
7398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7400 return NULL;
7401 }
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 wxDC_CrossHair(_arg0,_arg1,_arg2);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) return NULL;
7409 } Py_INCREF(Py_None);
7410 _resultobj = Py_None;
7411 return _resultobj;
7412 }
7413
7414 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7415 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject * _resultobj;
7417 wxDC * _arg0;
7418 PyObject * _argo0 = 0;
7419 char *_kwnames[] = { "self", NULL };
7420
7421 self = self;
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
7423 return NULL;
7424 if (_argo0) {
7425 if (_argo0 == Py_None) { _arg0 = NULL; }
7426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7428 return NULL;
7429 }
7430 }
7431 {
7432 PyThreadState* __tstate = wxPyBeginAllowThreads();
7433 wxDC_DestroyClippingRegion(_arg0);
7434
7435 wxPyEndAllowThreads(__tstate);
7436 if (PyErr_Occurred()) return NULL;
7437 } Py_INCREF(Py_None);
7438 _resultobj = Py_None;
7439 return _resultobj;
7440 }
7441
7442 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7443 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject * _resultobj;
7445 long _result;
7446 wxDC * _arg0;
7447 long _arg1;
7448 PyObject * _argo0 = 0;
7449 char *_kwnames[] = { "self","x", NULL };
7450
7451 self = self;
7452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
7453 return NULL;
7454 if (_argo0) {
7455 if (_argo0 == Py_None) { _arg0 = NULL; }
7456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7458 return NULL;
7459 }
7460 }
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) return NULL;
7467 } _resultobj = Py_BuildValue("l",_result);
7468 return _resultobj;
7469 }
7470
7471 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7472 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7473 PyObject * _resultobj;
7474 long _result;
7475 wxDC * _arg0;
7476 long _arg1;
7477 PyObject * _argo0 = 0;
7478 char *_kwnames[] = { "self","x", NULL };
7479
7480 self = self;
7481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
7482 return NULL;
7483 if (_argo0) {
7484 if (_argo0 == Py_None) { _arg0 = NULL; }
7485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7487 return NULL;
7488 }
7489 }
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) return NULL;
7496 } _resultobj = Py_BuildValue("l",_result);
7497 return _resultobj;
7498 }
7499
7500 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7501 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject * _resultobj;
7503 long _result;
7504 wxDC * _arg0;
7505 long _arg1;
7506 PyObject * _argo0 = 0;
7507 char *_kwnames[] = { "self","y", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7516 return NULL;
7517 }
7518 }
7519 {
7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
7521 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
7522
7523 wxPyEndAllowThreads(__tstate);
7524 if (PyErr_Occurred()) return NULL;
7525 } _resultobj = Py_BuildValue("l",_result);
7526 return _resultobj;
7527 }
7528
7529 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7530 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7531 PyObject * _resultobj;
7532 long _result;
7533 wxDC * _arg0;
7534 long _arg1;
7535 PyObject * _argo0 = 0;
7536 char *_kwnames[] = { "self","y", NULL };
7537
7538 self = self;
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
7540 return NULL;
7541 if (_argo0) {
7542 if (_argo0 == Py_None) { _arg0 = NULL; }
7543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7545 return NULL;
7546 }
7547 }
7548 {
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
7551
7552 wxPyEndAllowThreads(__tstate);
7553 if (PyErr_Occurred()) return NULL;
7554 } _resultobj = Py_BuildValue("l",_result);
7555 return _resultobj;
7556 }
7557
7558 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7559 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7560 PyObject * _resultobj;
7561 wxDC * _arg0;
7562 long _arg1;
7563 long _arg2;
7564 long _arg3;
7565 long _arg4;
7566 long _arg5;
7567 long _arg6;
7568 PyObject * _argo0 = 0;
7569 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
7570
7571 self = self;
7572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7573 return NULL;
7574 if (_argo0) {
7575 if (_argo0 == Py_None) { _arg0 = NULL; }
7576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7578 return NULL;
7579 }
7580 }
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) return NULL;
7587 } Py_INCREF(Py_None);
7588 _resultobj = Py_None;
7589 return _resultobj;
7590 }
7591
7592 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7593 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
7594 PyObject * _resultobj;
7595 wxDC * _arg0;
7596 long _arg1;
7597 long _arg2;
7598 long _arg3;
7599 PyObject * _argo0 = 0;
7600 char *_kwnames[] = { "self","x","y","radius", NULL };
7601
7602 self = self;
7603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7604 return NULL;
7605 if (_argo0) {
7606 if (_argo0 == Py_None) { _arg0 = NULL; }
7607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7609 return NULL;
7610 }
7611 }
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) return NULL;
7618 } Py_INCREF(Py_None);
7619 _resultobj = Py_None;
7620 return _resultobj;
7621 }
7622
7623 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7624 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
7625 PyObject * _resultobj;
7626 wxDC * _arg0;
7627 long _arg1;
7628 long _arg2;
7629 long _arg3;
7630 long _arg4;
7631 PyObject * _argo0 = 0;
7632 char *_kwnames[] = { "self","x","y","width","height", NULL };
7633
7634 self = self;
7635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7636 return NULL;
7637 if (_argo0) {
7638 if (_argo0 == Py_None) { _arg0 = NULL; }
7639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7641 return NULL;
7642 }
7643 }
7644 {
7645 PyThreadState* __tstate = wxPyBeginAllowThreads();
7646 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
7647
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) return NULL;
7650 } Py_INCREF(Py_None);
7651 _resultobj = Py_None;
7652 return _resultobj;
7653 }
7654
7655 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7656 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject * _resultobj;
7658 wxDC * _arg0;
7659 long _arg1;
7660 long _arg2;
7661 long _arg3;
7662 long _arg4;
7663 long _arg5;
7664 long _arg6;
7665 PyObject * _argo0 = 0;
7666 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
7667
7668 self = self;
7669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7670 return NULL;
7671 if (_argo0) {
7672 if (_argo0 == Py_None) { _arg0 = NULL; }
7673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7675 return NULL;
7676 }
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7681
7682 wxPyEndAllowThreads(__tstate);
7683 if (PyErr_Occurred()) return NULL;
7684 } Py_INCREF(Py_None);
7685 _resultobj = Py_None;
7686 return _resultobj;
7687 }
7688
7689 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7690 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject * _resultobj;
7692 wxDC * _arg0;
7693 wxIcon * _arg1;
7694 long _arg2;
7695 long _arg3;
7696 PyObject * _argo0 = 0;
7697 PyObject * _argo1 = 0;
7698 char *_kwnames[] = { "self","icon","x","y", NULL };
7699
7700 self = self;
7701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7702 return NULL;
7703 if (_argo0) {
7704 if (_argo0 == Py_None) { _arg0 = NULL; }
7705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7707 return NULL;
7708 }
7709 }
7710 if (_argo1) {
7711 if (_argo1 == Py_None) { _arg1 = NULL; }
7712 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
7713 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7714 return NULL;
7715 }
7716 }
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) return NULL;
7723 } Py_INCREF(Py_None);
7724 _resultobj = Py_None;
7725 return _resultobj;
7726 }
7727
7728 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7729 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7730 PyObject * _resultobj;
7731 wxDC * _arg0;
7732 wxString * _arg1;
7733 wxRect * _arg2;
7734 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7735 int _arg4 = (int ) -1;
7736 PyObject * _argo0 = 0;
7737 PyObject * _obj1 = 0;
7738 wxRect temp;
7739 PyObject * _obj2 = 0;
7740 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
7741
7742 self = self;
7743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
7744 return NULL;
7745 if (_argo0) {
7746 if (_argo0 == Py_None) { _arg0 = NULL; }
7747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7749 return NULL;
7750 }
7751 }
7752 {
7753 _arg1 = wxString_in_helper(_obj1);
7754 if (_arg1 == NULL)
7755 return NULL;
7756 }
7757 {
7758 _arg2 = &temp;
7759 if (! wxRect_helper(_obj2, &_arg2))
7760 return NULL;
7761 }
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
7765
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) return NULL;
7768 } Py_INCREF(Py_None);
7769 _resultobj = Py_None;
7770 {
7771 if (_obj1)
7772 delete _arg1;
7773 }
7774 return _resultobj;
7775 }
7776
7777 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
7778 wxRect rv;
7779 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
7780 return rv;
7781 }
7782 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject * _resultobj;
7784 wxRect * _result;
7785 wxDC * _arg0;
7786 wxString * _arg1;
7787 wxBitmap * _arg2;
7788 wxRect * _arg3;
7789 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7790 int _arg5 = (int ) -1;
7791 PyObject * _argo0 = 0;
7792 PyObject * _obj1 = 0;
7793 PyObject * _argo2 = 0;
7794 wxRect temp;
7795 PyObject * _obj3 = 0;
7796 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
7797 char _ptemp[128];
7798
7799 self = self;
7800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
7801 return NULL;
7802 if (_argo0) {
7803 if (_argo0 == Py_None) { _arg0 = NULL; }
7804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7806 return NULL;
7807 }
7808 }
7809 {
7810 _arg1 = wxString_in_helper(_obj1);
7811 if (_arg1 == NULL)
7812 return NULL;
7813 }
7814 if (_argo2) {
7815 if (_argo2 == Py_None) { _arg2 = NULL; }
7816 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7817 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7818 return NULL;
7819 }
7820 }
7821 {
7822 _arg3 = &temp;
7823 if (! wxRect_helper(_obj3, &_arg3))
7824 return NULL;
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) return NULL;
7832 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
7833 _resultobj = Py_BuildValue("s",_ptemp);
7834 {
7835 if (_obj1)
7836 delete _arg1;
7837 }
7838 return _resultobj;
7839 }
7840
7841 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7842 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7843 PyObject * _resultobj;
7844 wxDC * _arg0;
7845 long _arg1;
7846 long _arg2;
7847 long _arg3;
7848 long _arg4;
7849 PyObject * _argo0 = 0;
7850 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
7851
7852 self = self;
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7854 return NULL;
7855 if (_argo0) {
7856 if (_argo0 == Py_None) { _arg0 = NULL; }
7857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7859 return NULL;
7860 }
7861 }
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
7865
7866 wxPyEndAllowThreads(__tstate);
7867 if (PyErr_Occurred()) return NULL;
7868 } Py_INCREF(Py_None);
7869 _resultobj = Py_None;
7870 return _resultobj;
7871 }
7872
7873 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7874 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7875 PyObject * _resultobj;
7876 wxDC * _arg0;
7877 int _arg1;
7878 wxPoint * _arg2;
7879 long _arg3 = (long ) 0;
7880 long _arg4 = (long ) 0;
7881 PyObject * _argo0 = 0;
7882 int NPOINTS;
7883 PyObject * _obj2 = 0;
7884 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7885
7886 self = self;
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7888 return NULL;
7889 if (_argo0) {
7890 if (_argo0 == Py_None) { _arg0 = NULL; }
7891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7893 return NULL;
7894 }
7895 }
7896 if (_obj2)
7897 {
7898 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7899 if (_arg2 == NULL) {
7900 return NULL;
7901 }
7902 }
7903 {
7904 _arg1 = NPOINTS;
7905 }
7906 {
7907 PyThreadState* __tstate = wxPyBeginAllowThreads();
7908 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7909
7910 wxPyEndAllowThreads(__tstate);
7911 if (PyErr_Occurred()) return NULL;
7912 } Py_INCREF(Py_None);
7913 _resultobj = Py_None;
7914 {
7915 delete [] _arg2;
7916 }
7917 return _resultobj;
7918 }
7919
7920 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7921 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7922 PyObject * _resultobj;
7923 wxDC * _arg0;
7924 int _arg1;
7925 wxPoint * _arg2;
7926 long _arg3 = (long ) 0;
7927 long _arg4 = (long ) 0;
7928 int _arg5 = (int ) wxODDEVEN_RULE;
7929 PyObject * _argo0 = 0;
7930 int NPOINTS;
7931 PyObject * _obj2 = 0;
7932 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7933
7934 self = self;
7935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7936 return NULL;
7937 if (_argo0) {
7938 if (_argo0 == Py_None) { _arg0 = NULL; }
7939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7941 return NULL;
7942 }
7943 }
7944 if (_obj2)
7945 {
7946 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7947 if (_arg2 == NULL) {
7948 return NULL;
7949 }
7950 }
7951 {
7952 _arg1 = NPOINTS;
7953 }
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7957
7958 wxPyEndAllowThreads(__tstate);
7959 if (PyErr_Occurred()) return NULL;
7960 } Py_INCREF(Py_None);
7961 _resultobj = Py_None;
7962 {
7963 delete [] _arg2;
7964 }
7965 return _resultobj;
7966 }
7967
7968 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7969 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject * _resultobj;
7971 wxDC * _arg0;
7972 long _arg1;
7973 long _arg2;
7974 PyObject * _argo0 = 0;
7975 char *_kwnames[] = { "self","x","y", NULL };
7976
7977 self = self;
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7979 return NULL;
7980 if (_argo0) {
7981 if (_argo0 == Py_None) { _arg0 = NULL; }
7982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7984 return NULL;
7985 }
7986 }
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7990
7991 wxPyEndAllowThreads(__tstate);
7992 if (PyErr_Occurred()) return NULL;
7993 } Py_INCREF(Py_None);
7994 _resultobj = Py_None;
7995 return _resultobj;
7996 }
7997
7998 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7999 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject * _resultobj;
8001 wxDC * _arg0;
8002 long _arg1;
8003 long _arg2;
8004 long _arg3;
8005 long _arg4;
8006 PyObject * _argo0 = 0;
8007 char *_kwnames[] = { "self","x","y","width","height", NULL };
8008
8009 self = self;
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8011 return NULL;
8012 if (_argo0) {
8013 if (_argo0 == Py_None) { _arg0 = NULL; }
8014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
8016 return NULL;
8017 }
8018 }
8019 {
8020 PyThreadState* __tstate = wxPyBeginAllowThreads();
8021 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
8022
8023 wxPyEndAllowThreads(__tstate);
8024 if (PyErr_Occurred()) return NULL;
8025 } Py_INCREF(Py_None);
8026 _resultobj = Py_None;
8027 return _resultobj;
8028 }
8029
8030 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8031 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject * _resultobj;
8033 wxDC * _arg0;
8034 wxString * _arg1;
8035 wxCoord _arg2;
8036 wxCoord _arg3;
8037 double _arg4;
8038 PyObject * _argo0 = 0;
8039 PyObject * _obj1 = 0;
8040 char *_kwnames[] = { "self","text","x","y","angle", NULL };
8041
8042 self = self;
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
8044 return NULL;
8045 if (_argo0) {
8046 if (_argo0 == Py_None) { _arg0 = NULL; }
8047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
8049 return NULL;
8050 }
8051 }
8052 {
8053 _arg1 = wxString_in_helper(_obj1);
8054 if (_arg1 == NULL)
8055 return NULL;
8056 }
8057 {
8058 PyThreadState* __tstate = wxPyBeginAllowThreads();
8059 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
8060
8061 wxPyEndAllowThreads(__tstate);
8062 if (PyErr_Occurred()) return NULL;
8063 } Py_INCREF(Py_None);
8064 _resultobj = Py_None;
8065 {
8066 if (_obj1)
8067 delete _arg1;
8068 }
8069 return _resultobj;
8070 }
8071
8072 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8073 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8074 PyObject * _resultobj;
8075 wxDC * _arg0;
8076 long _arg1;
8077 long _arg2;
8078 long _arg3;
8079 long _arg4;
8080 long _arg5 = (long ) 20;
8081 PyObject * _argo0 = 0;
8082 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
8083
8084 self = self;
8085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
8086 return NULL;
8087 if (_argo0) {
8088 if (_argo0 == Py_None) { _arg0 = NULL; }
8089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
8091 return NULL;
8092 }
8093 }
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) return NULL;
8100 } Py_INCREF(Py_None);
8101 _resultobj = Py_None;
8102 return _resultobj;
8103 }
8104
8105 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
8106 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject * _resultobj;
8108 wxDC * _arg0;
8109 int _arg1;
8110 wxPoint * _arg2;
8111 PyObject * _argo0 = 0;
8112 int NPOINTS;
8113 PyObject * _obj2 = 0;
8114 char *_kwnames[] = { "self","points", NULL };
8115
8116 self = self;
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
8118 return NULL;
8119 if (_argo0) {
8120 if (_argo0 == Py_None) { _arg0 = NULL; }
8121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
8123 return NULL;
8124 }
8125 }
8126 if (_obj2)
8127 {
8128 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
8129 if (_arg2 == NULL) {
8130 return NULL;
8131 }
8132 }
8133 {
8134 _arg1 = NPOINTS;
8135 }
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 wxDC_DrawSpline(_arg0,_arg1,_arg2);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) return NULL;
8142 } Py_INCREF(Py_None);
8143 _resultobj = Py_None;
8144 {
8145 delete [] _arg2;
8146 }
8147 return _resultobj;
8148 }
8149
8150 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
8151 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
8152 PyObject * _resultobj;
8153 wxDC * _arg0;
8154 wxString * _arg1;
8155 long _arg2;
8156 long _arg3;
8157 PyObject * _argo0 = 0;
8158 PyObject * _obj1 = 0;
8159 char *_kwnames[] = { "self","text","x","y", NULL };
8160
8161 self = self;
8162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
8163 return NULL;
8164 if (_argo0) {
8165 if (_argo0 == Py_None) { _arg0 = NULL; }
8166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
8168 return NULL;
8169 }
8170 }
8171 {
8172 _arg1 = wxString_in_helper(_obj1);
8173 if (_arg1 == NULL)
8174 return NULL;
8175 }
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) return NULL;
8182 } Py_INCREF(Py_None);
8183 _resultobj = Py_None;
8184 {
8185 if (_obj1)
8186 delete _arg1;
8187 }
8188 return _resultobj;
8189 }
8190
8191 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
8192 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject * _resultobj;
8194 wxDC * _arg0;
8195 PyObject * _argo0 = 0;
8196 char *_kwnames[] = { "self", NULL };
8197
8198 self = self;
8199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
8200 return NULL;
8201 if (_argo0) {
8202 if (_argo0 == Py_None) { _arg0 = NULL; }
8203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
8205 return NULL;
8206 }
8207 }
8208 {
8209 PyThreadState* __tstate = wxPyBeginAllowThreads();
8210 wxDC_EndDoc(_arg0);
8211
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) return NULL;
8214 } Py_INCREF(Py_None);
8215 _resultobj = Py_None;
8216 return _resultobj;
8217 }
8218
8219 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
8220 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject * _resultobj;
8222 wxDC * _arg0;
8223 PyObject * _argo0 = 0;
8224 char *_kwnames[] = { "self", NULL };
8225
8226 self = self;
8227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
8228 return NULL;
8229 if (_argo0) {
8230 if (_argo0 == Py_None) { _arg0 = NULL; }
8231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
8233 return NULL;
8234 }
8235 }
8236 {
8237 PyThreadState* __tstate = wxPyBeginAllowThreads();
8238 wxDC_EndDrawing(_arg0);
8239
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) return NULL;
8242 } Py_INCREF(Py_None);
8243 _resultobj = Py_None;
8244 return _resultobj;
8245 }
8246
8247 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
8248 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8249 PyObject * _resultobj;
8250 wxDC * _arg0;
8251 PyObject * _argo0 = 0;
8252 char *_kwnames[] = { "self", NULL };
8253
8254 self = self;
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
8256 return NULL;
8257 if (_argo0) {
8258 if (_argo0 == Py_None) { _arg0 = NULL; }
8259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8261 return NULL;
8262 }
8263 }
8264 {
8265 PyThreadState* __tstate = wxPyBeginAllowThreads();
8266 wxDC_EndPage(_arg0);
8267
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) return NULL;
8270 } Py_INCREF(Py_None);
8271 _resultobj = Py_None;
8272 return _resultobj;
8273 }
8274
8275 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8276 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
8277 PyObject * _resultobj;
8278 wxDC * _arg0;
8279 long _arg1;
8280 long _arg2;
8281 wxColour * _arg3;
8282 int _arg4 = (int ) wxFLOOD_SURFACE;
8283 PyObject * _argo0 = 0;
8284 wxColour temp;
8285 PyObject * _obj3 = 0;
8286 char *_kwnames[] = { "self","x","y","colour","style", NULL };
8287
8288 self = self;
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8290 return NULL;
8291 if (_argo0) {
8292 if (_argo0 == Py_None) { _arg0 = NULL; }
8293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8295 return NULL;
8296 }
8297 }
8298 {
8299 _arg3 = &temp;
8300 if (! wxColour_helper(_obj3, &_arg3))
8301 return NULL;
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) return NULL;
8309 } Py_INCREF(Py_None);
8310 _resultobj = Py_None;
8311 return _resultobj;
8312 }
8313
8314 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8315 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8316 PyObject * _resultobj;
8317 wxBrush * _result;
8318 wxDC * _arg0;
8319 PyObject * _argo0 = 0;
8320 char *_kwnames[] = { "self", NULL };
8321 char _ptemp[128];
8322
8323 self = self;
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
8325 return NULL;
8326 if (_argo0) {
8327 if (_argo0 == Py_None) { _arg0 = NULL; }
8328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8330 return NULL;
8331 }
8332 }
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 _result = new wxBrush (wxDC_GetBackground(_arg0));
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) return NULL;
8339 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8340 _resultobj = Py_BuildValue("s",_ptemp);
8341 return _resultobj;
8342 }
8343
8344 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8345 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8346 PyObject * _resultobj;
8347 wxBrush * _result;
8348 wxDC * _arg0;
8349 PyObject * _argo0 = 0;
8350 char *_kwnames[] = { "self", NULL };
8351 char _ptemp[128];
8352
8353 self = self;
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
8355 return NULL;
8356 if (_argo0) {
8357 if (_argo0 == Py_None) { _arg0 = NULL; }
8358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8360 return NULL;
8361 }
8362 }
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 _result = new wxBrush (wxDC_GetBrush(_arg0));
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) return NULL;
8369 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8370 _resultobj = Py_BuildValue("s",_ptemp);
8371 return _resultobj;
8372 }
8373
8374 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8375 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8376 PyObject * _resultobj;
8377 long _result;
8378 wxDC * _arg0;
8379 PyObject * _argo0 = 0;
8380 char *_kwnames[] = { "self", NULL };
8381
8382 self = self;
8383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
8384 return NULL;
8385 if (_argo0) {
8386 if (_argo0 == Py_None) { _arg0 = NULL; }
8387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8389 return NULL;
8390 }
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 _result = (long )wxDC_GetCharHeight(_arg0);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) return NULL;
8398 } _resultobj = Py_BuildValue("l",_result);
8399 return _resultobj;
8400 }
8401
8402 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8403 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8404 PyObject * _resultobj;
8405 long _result;
8406 wxDC * _arg0;
8407 PyObject * _argo0 = 0;
8408 char *_kwnames[] = { "self", NULL };
8409
8410 self = self;
8411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
8412 return NULL;
8413 if (_argo0) {
8414 if (_argo0 == Py_None) { _arg0 = NULL; }
8415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8417 return NULL;
8418 }
8419 }
8420 {
8421 PyThreadState* __tstate = wxPyBeginAllowThreads();
8422 _result = (long )wxDC_GetCharWidth(_arg0);
8423
8424 wxPyEndAllowThreads(__tstate);
8425 if (PyErr_Occurred()) return NULL;
8426 } _resultobj = Py_BuildValue("l",_result);
8427 return _resultobj;
8428 }
8429
8430 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8431 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8432 PyObject * _resultobj;
8433 wxDC * _arg0;
8434 long * _arg1;
8435 long temp;
8436 long * _arg2;
8437 long temp0;
8438 long * _arg3;
8439 long temp1;
8440 long * _arg4;
8441 long temp2;
8442 PyObject * _argo0 = 0;
8443 char *_kwnames[] = { "self", NULL };
8444
8445 self = self;
8446 {
8447 _arg1 = &temp;
8448 }
8449 {
8450 _arg2 = &temp0;
8451 }
8452 {
8453 _arg3 = &temp1;
8454 }
8455 {
8456 _arg4 = &temp2;
8457 }
8458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
8459 return NULL;
8460 if (_argo0) {
8461 if (_argo0 == Py_None) { _arg0 = NULL; }
8462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8464 return NULL;
8465 }
8466 }
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) return NULL;
8473 } Py_INCREF(Py_None);
8474 _resultobj = Py_None;
8475 {
8476 PyObject *o;
8477 o = PyInt_FromLong((long) (*_arg1));
8478 _resultobj = t_output_helper(_resultobj, o);
8479 }
8480 {
8481 PyObject *o;
8482 o = PyInt_FromLong((long) (*_arg2));
8483 _resultobj = t_output_helper(_resultobj, o);
8484 }
8485 {
8486 PyObject *o;
8487 o = PyInt_FromLong((long) (*_arg3));
8488 _resultobj = t_output_helper(_resultobj, o);
8489 }
8490 {
8491 PyObject *o;
8492 o = PyInt_FromLong((long) (*_arg4));
8493 _resultobj = t_output_helper(_resultobj, o);
8494 }
8495 return _resultobj;
8496 }
8497
8498 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8499 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8500 PyObject * _resultobj;
8501 wxFont * _result;
8502 wxDC * _arg0;
8503 PyObject * _argo0 = 0;
8504 char *_kwnames[] = { "self", NULL };
8505 char _ptemp[128];
8506
8507 self = self;
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
8509 return NULL;
8510 if (_argo0) {
8511 if (_argo0 == Py_None) { _arg0 = NULL; }
8512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8514 return NULL;
8515 }
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 _result = new wxFont (wxDC_GetFont(_arg0));
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) return NULL;
8523 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
8524 _resultobj = Py_BuildValue("s",_ptemp);
8525 return _resultobj;
8526 }
8527
8528 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8529 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8530 PyObject * _resultobj;
8531 int _result;
8532 wxDC * _arg0;
8533 PyObject * _argo0 = 0;
8534 char *_kwnames[] = { "self", NULL };
8535
8536 self = self;
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
8538 return NULL;
8539 if (_argo0) {
8540 if (_argo0 == Py_None) { _arg0 = NULL; }
8541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8543 return NULL;
8544 }
8545 }
8546 {
8547 PyThreadState* __tstate = wxPyBeginAllowThreads();
8548 _result = (int )wxDC_GetLogicalFunction(_arg0);
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) return NULL;
8552 } _resultobj = Py_BuildValue("i",_result);
8553 return _resultobj;
8554 }
8555
8556 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8557 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8558 PyObject * _resultobj;
8559 wxDC * _arg0;
8560 double * _arg1;
8561 double temp;
8562 double * _arg2;
8563 double temp0;
8564 PyObject * _argo0 = 0;
8565 char *_kwnames[] = { "self", NULL };
8566
8567 self = self;
8568 {
8569 _arg1 = &temp;
8570 }
8571 {
8572 _arg2 = &temp0;
8573 }
8574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
8575 return NULL;
8576 if (_argo0) {
8577 if (_argo0 == Py_None) { _arg0 = NULL; }
8578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8580 return NULL;
8581 }
8582 }
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) return NULL;
8589 } Py_INCREF(Py_None);
8590 _resultobj = Py_None;
8591 {
8592 PyObject *o;
8593 o = PyFloat_FromDouble((double) (*_arg1));
8594 _resultobj = t_output_helper(_resultobj, o);
8595 }
8596 {
8597 PyObject *o;
8598 o = PyFloat_FromDouble((double) (*_arg2));
8599 _resultobj = t_output_helper(_resultobj, o);
8600 }
8601 return _resultobj;
8602 }
8603
8604 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8605 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject * _resultobj;
8607 int _result;
8608 wxDC * _arg0;
8609 PyObject * _argo0 = 0;
8610 char *_kwnames[] = { "self", NULL };
8611
8612 self = self;
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
8614 return NULL;
8615 if (_argo0) {
8616 if (_argo0 == Py_None) { _arg0 = NULL; }
8617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8619 return NULL;
8620 }
8621 }
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 _result = (int )wxDC_GetMapMode(_arg0);
8625
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) return NULL;
8628 } _resultobj = Py_BuildValue("i",_result);
8629 return _resultobj;
8630 }
8631
8632 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8633 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8634 PyObject * _resultobj;
8635 bool _result;
8636 wxDC * _arg0;
8637 PyObject * _argo0 = 0;
8638 char *_kwnames[] = { "self", NULL };
8639
8640 self = self;
8641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
8642 return NULL;
8643 if (_argo0) {
8644 if (_argo0 == Py_None) { _arg0 = NULL; }
8645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8647 return NULL;
8648 }
8649 }
8650 {
8651 PyThreadState* __tstate = wxPyBeginAllowThreads();
8652 _result = (bool )wxDC_GetOptimization(_arg0);
8653
8654 wxPyEndAllowThreads(__tstate);
8655 if (PyErr_Occurred()) return NULL;
8656 } _resultobj = Py_BuildValue("i",_result);
8657 return _resultobj;
8658 }
8659
8660 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8661 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8662 PyObject * _resultobj;
8663 wxPen * _result;
8664 wxDC * _arg0;
8665 PyObject * _argo0 = 0;
8666 char *_kwnames[] = { "self", NULL };
8667 char _ptemp[128];
8668
8669 self = self;
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
8671 return NULL;
8672 if (_argo0) {
8673 if (_argo0 == Py_None) { _arg0 = NULL; }
8674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8676 return NULL;
8677 }
8678 }
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 _result = new wxPen (wxDC_GetPen(_arg0));
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) return NULL;
8685 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
8686 _resultobj = Py_BuildValue("s",_ptemp);
8687 return _resultobj;
8688 }
8689
8690 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
8691 wxColour* wc = new wxColour();
8692 self->GetPixel(x, y, wc);
8693 return wc;
8694 }
8695 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8696 PyObject * _resultobj;
8697 wxColour * _result;
8698 wxDC * _arg0;
8699 long _arg1;
8700 long _arg2;
8701 PyObject * _argo0 = 0;
8702 char *_kwnames[] = { "self","x","y", NULL };
8703 char _ptemp[128];
8704
8705 self = self;
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
8707 return NULL;
8708 if (_argo0) {
8709 if (_argo0 == Py_None) { _arg0 = NULL; }
8710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8712 return NULL;
8713 }
8714 }
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) return NULL;
8721 } if (_result) {
8722 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
8723 _resultobj = Py_BuildValue("s",_ptemp);
8724 } else {
8725 Py_INCREF(Py_None);
8726 _resultobj = Py_None;
8727 }
8728 return _resultobj;
8729 }
8730
8731 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8732 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
8733 PyObject * _resultobj;
8734 wxDC * _arg0;
8735 int * _arg1;
8736 int temp;
8737 int * _arg2;
8738 int temp0;
8739 PyObject * _argo0 = 0;
8740 char *_kwnames[] = { "self", NULL };
8741
8742 self = self;
8743 {
8744 _arg1 = &temp;
8745 }
8746 {
8747 _arg2 = &temp0;
8748 }
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
8750 return NULL;
8751 if (_argo0) {
8752 if (_argo0 == Py_None) { _arg0 = NULL; }
8753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8755 return NULL;
8756 }
8757 }
8758 {
8759 PyThreadState* __tstate = wxPyBeginAllowThreads();
8760 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
8761
8762 wxPyEndAllowThreads(__tstate);
8763 if (PyErr_Occurred()) return NULL;
8764 } Py_INCREF(Py_None);
8765 _resultobj = Py_None;
8766 {
8767 PyObject *o;
8768 o = PyInt_FromLong((long) (*_arg1));
8769 _resultobj = t_output_helper(_resultobj, o);
8770 }
8771 {
8772 PyObject *o;
8773 o = PyInt_FromLong((long) (*_arg2));
8774 _resultobj = t_output_helper(_resultobj, o);
8775 }
8776 return _resultobj;
8777 }
8778
8779 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8780 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8781 PyObject * _resultobj;
8782 wxSize * _result;
8783 wxDC * _arg0;
8784 PyObject * _argo0 = 0;
8785 char *_kwnames[] = { "self", NULL };
8786 char _ptemp[128];
8787
8788 self = self;
8789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
8790 return NULL;
8791 if (_argo0) {
8792 if (_argo0 == Py_None) { _arg0 = NULL; }
8793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8795 return NULL;
8796 }
8797 }
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 _result = new wxSize (wxDC_GetSize(_arg0));
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) return NULL;
8804 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8805 _resultobj = Py_BuildValue("s",_ptemp);
8806 return _resultobj;
8807 }
8808
8809 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8810 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
8811 PyObject * _resultobj;
8812 wxSize * _result;
8813 wxDC * _arg0;
8814 PyObject * _argo0 = 0;
8815 char *_kwnames[] = { "self", NULL };
8816 char _ptemp[128];
8817
8818 self = self;
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
8820 return NULL;
8821 if (_argo0) {
8822 if (_argo0 == Py_None) { _arg0 = NULL; }
8823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8825 return NULL;
8826 }
8827 }
8828 {
8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8830 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8831
8832 wxPyEndAllowThreads(__tstate);
8833 if (PyErr_Occurred()) return NULL;
8834 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8835 _resultobj = Py_BuildValue("s",_ptemp);
8836 return _resultobj;
8837 }
8838
8839 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8840 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8841 PyObject * _resultobj;
8842 wxColour * _result;
8843 wxDC * _arg0;
8844 PyObject * _argo0 = 0;
8845 char *_kwnames[] = { "self", NULL };
8846 char _ptemp[128];
8847
8848 self = self;
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8850 return NULL;
8851 if (_argo0) {
8852 if (_argo0 == Py_None) { _arg0 = NULL; }
8853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8855 return NULL;
8856 }
8857 }
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) return NULL;
8864 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8865 _resultobj = Py_BuildValue("s",_ptemp);
8866 return _resultobj;
8867 }
8868
8869 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8870 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8871 PyObject * _resultobj;
8872 wxDC * _arg0;
8873 wxString * _arg1;
8874 long * _arg2;
8875 long temp;
8876 long * _arg3;
8877 long temp0;
8878 PyObject * _argo0 = 0;
8879 PyObject * _obj1 = 0;
8880 char *_kwnames[] = { "self","string", NULL };
8881
8882 self = self;
8883 {
8884 _arg2 = &temp;
8885 }
8886 {
8887 _arg3 = &temp0;
8888 }
8889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8890 return NULL;
8891 if (_argo0) {
8892 if (_argo0 == Py_None) { _arg0 = NULL; }
8893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8895 return NULL;
8896 }
8897 }
8898 {
8899 _arg1 = wxString_in_helper(_obj1);
8900 if (_arg1 == NULL)
8901 return NULL;
8902 }
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) return NULL;
8909 } Py_INCREF(Py_None);
8910 _resultobj = Py_None;
8911 {
8912 PyObject *o;
8913 o = PyInt_FromLong((long) (*_arg2));
8914 _resultobj = t_output_helper(_resultobj, o);
8915 }
8916 {
8917 PyObject *o;
8918 o = PyInt_FromLong((long) (*_arg3));
8919 _resultobj = t_output_helper(_resultobj, o);
8920 }
8921 {
8922 if (_obj1)
8923 delete _arg1;
8924 }
8925 return _resultobj;
8926 }
8927
8928 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8929 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8930 PyObject * _resultobj;
8931 wxDC * _arg0;
8932 wxString * _arg1;
8933 long * _arg2;
8934 long temp;
8935 long * _arg3;
8936 long temp0;
8937 long * _arg4;
8938 long temp1;
8939 long * _arg5;
8940 long temp2;
8941 wxFont * _arg6 = (wxFont *) NULL;
8942 PyObject * _argo0 = 0;
8943 PyObject * _obj1 = 0;
8944 PyObject * _argo6 = 0;
8945 char *_kwnames[] = { "self","string","font", NULL };
8946
8947 self = self;
8948 {
8949 _arg2 = &temp;
8950 }
8951 {
8952 _arg3 = &temp0;
8953 }
8954 {
8955 _arg4 = &temp1;
8956 }
8957 {
8958 _arg5 = &temp2;
8959 }
8960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8961 return NULL;
8962 if (_argo0) {
8963 if (_argo0 == Py_None) { _arg0 = NULL; }
8964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8966 return NULL;
8967 }
8968 }
8969 {
8970 _arg1 = wxString_in_helper(_obj1);
8971 if (_arg1 == NULL)
8972 return NULL;
8973 }
8974 if (_argo6) {
8975 if (_argo6 == Py_None) { _arg6 = NULL; }
8976 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8977 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8978 return NULL;
8979 }
8980 }
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) return NULL;
8987 } Py_INCREF(Py_None);
8988 _resultobj = Py_None;
8989 {
8990 PyObject *o;
8991 o = PyInt_FromLong((long) (*_arg2));
8992 _resultobj = t_output_helper(_resultobj, o);
8993 }
8994 {
8995 PyObject *o;
8996 o = PyInt_FromLong((long) (*_arg3));
8997 _resultobj = t_output_helper(_resultobj, o);
8998 }
8999 {
9000 PyObject *o;
9001 o = PyInt_FromLong((long) (*_arg4));
9002 _resultobj = t_output_helper(_resultobj, o);
9003 }
9004 {
9005 PyObject *o;
9006 o = PyInt_FromLong((long) (*_arg5));
9007 _resultobj = t_output_helper(_resultobj, o);
9008 }
9009 {
9010 if (_obj1)
9011 delete _arg1;
9012 }
9013 return _resultobj;
9014 }
9015
9016 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
9017 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9018 PyObject * _resultobj;
9019 wxColour * _result;
9020 wxDC * _arg0;
9021 PyObject * _argo0 = 0;
9022 char *_kwnames[] = { "self", NULL };
9023 char _ptemp[128];
9024
9025 self = self;
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
9027 return NULL;
9028 if (_argo0) {
9029 if (_argo0 == Py_None) { _arg0 = NULL; }
9030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
9032 return NULL;
9033 }
9034 }
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 _result = new wxColour (wxDC_GetTextForeground(_arg0));
9038
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) return NULL;
9041 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
9042 _resultobj = Py_BuildValue("s",_ptemp);
9043 return _resultobj;
9044 }
9045
9046 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
9047 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject * _resultobj;
9049 wxDC * _arg0;
9050 double * _arg1;
9051 double temp;
9052 double * _arg2;
9053 double temp0;
9054 PyObject * _argo0 = 0;
9055 char *_kwnames[] = { "self", NULL };
9056
9057 self = self;
9058 {
9059 _arg1 = &temp;
9060 }
9061 {
9062 _arg2 = &temp0;
9063 }
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
9065 return NULL;
9066 if (_argo0) {
9067 if (_argo0 == Py_None) { _arg0 = NULL; }
9068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
9070 return NULL;
9071 }
9072 }
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 wxDC_GetUserScale(_arg0,_arg1,_arg2);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) return NULL;
9079 } Py_INCREF(Py_None);
9080 _resultobj = Py_None;
9081 {
9082 PyObject *o;
9083 o = PyFloat_FromDouble((double) (*_arg1));
9084 _resultobj = t_output_helper(_resultobj, o);
9085 }
9086 {
9087 PyObject *o;
9088 o = PyFloat_FromDouble((double) (*_arg2));
9089 _resultobj = t_output_helper(_resultobj, o);
9090 }
9091 return _resultobj;
9092 }
9093
9094 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
9095 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
9096 PyObject * _resultobj;
9097 long _result;
9098 wxDC * _arg0;
9099 long _arg1;
9100 PyObject * _argo0 = 0;
9101 char *_kwnames[] = { "self","x", NULL };
9102
9103 self = self;
9104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
9105 return NULL;
9106 if (_argo0) {
9107 if (_argo0 == Py_None) { _arg0 = NULL; }
9108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
9110 return NULL;
9111 }
9112 }
9113 {
9114 PyThreadState* __tstate = wxPyBeginAllowThreads();
9115 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
9116
9117 wxPyEndAllowThreads(__tstate);
9118 if (PyErr_Occurred()) return NULL;
9119 } _resultobj = Py_BuildValue("l",_result);
9120 return _resultobj;
9121 }
9122
9123 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
9124 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9125 PyObject * _resultobj;
9126 long _result;
9127 wxDC * _arg0;
9128 long _arg1;
9129 PyObject * _argo0 = 0;
9130 char *_kwnames[] = { "self","x", NULL };
9131
9132 self = self;
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
9134 return NULL;
9135 if (_argo0) {
9136 if (_argo0 == Py_None) { _arg0 = NULL; }
9137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
9139 return NULL;
9140 }
9141 }
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) return NULL;
9148 } _resultobj = Py_BuildValue("l",_result);
9149 return _resultobj;
9150 }
9151
9152 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
9153 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
9154 PyObject * _resultobj;
9155 long _result;
9156 wxDC * _arg0;
9157 long _arg1;
9158 PyObject * _argo0 = 0;
9159 char *_kwnames[] = { "self","y", NULL };
9160
9161 self = self;
9162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
9163 return NULL;
9164 if (_argo0) {
9165 if (_argo0 == Py_None) { _arg0 = NULL; }
9166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
9168 return NULL;
9169 }
9170 }
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
9174
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) return NULL;
9177 } _resultobj = Py_BuildValue("l",_result);
9178 return _resultobj;
9179 }
9180
9181 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
9182 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject * _resultobj;
9184 long _result;
9185 wxDC * _arg0;
9186 long _arg1;
9187 PyObject * _argo0 = 0;
9188 char *_kwnames[] = { "self","y", NULL };
9189
9190 self = self;
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
9192 return NULL;
9193 if (_argo0) {
9194 if (_argo0 == Py_None) { _arg0 = NULL; }
9195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
9197 return NULL;
9198 }
9199 }
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
9203
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) return NULL;
9206 } _resultobj = Py_BuildValue("l",_result);
9207 return _resultobj;
9208 }
9209
9210 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
9211 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
9212 PyObject * _resultobj;
9213 long _result;
9214 wxDC * _arg0;
9215 PyObject * _argo0 = 0;
9216 char *_kwnames[] = { "self", NULL };
9217
9218 self = self;
9219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
9220 return NULL;
9221 if (_argo0) {
9222 if (_argo0 == Py_None) { _arg0 = NULL; }
9223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
9225 return NULL;
9226 }
9227 }
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 _result = (long )wxDC_MaxX(_arg0);
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) return NULL;
9234 } _resultobj = Py_BuildValue("l",_result);
9235 return _resultobj;
9236 }
9237
9238 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9239 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
9240 PyObject * _resultobj;
9241 long _result;
9242 wxDC * _arg0;
9243 PyObject * _argo0 = 0;
9244 char *_kwnames[] = { "self", NULL };
9245
9246 self = self;
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
9248 return NULL;
9249 if (_argo0) {
9250 if (_argo0 == Py_None) { _arg0 = NULL; }
9251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9253 return NULL;
9254 }
9255 }
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 _result = (long )wxDC_MaxY(_arg0);
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) return NULL;
9262 } _resultobj = Py_BuildValue("l",_result);
9263 return _resultobj;
9264 }
9265
9266 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9267 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject * _resultobj;
9269 long _result;
9270 wxDC * _arg0;
9271 PyObject * _argo0 = 0;
9272 char *_kwnames[] = { "self", NULL };
9273
9274 self = self;
9275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
9276 return NULL;
9277 if (_argo0) {
9278 if (_argo0 == Py_None) { _arg0 = NULL; }
9279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9281 return NULL;
9282 }
9283 }
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 _result = (long )wxDC_MinX(_arg0);
9287
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) return NULL;
9290 } _resultobj = Py_BuildValue("l",_result);
9291 return _resultobj;
9292 }
9293
9294 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9295 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject * _resultobj;
9297 long _result;
9298 wxDC * _arg0;
9299 PyObject * _argo0 = 0;
9300 char *_kwnames[] = { "self", NULL };
9301
9302 self = self;
9303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
9304 return NULL;
9305 if (_argo0) {
9306 if (_argo0 == Py_None) { _arg0 = NULL; }
9307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9309 return NULL;
9310 }
9311 }
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 _result = (long )wxDC_MinY(_arg0);
9315
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) return NULL;
9318 } _resultobj = Py_BuildValue("l",_result);
9319 return _resultobj;
9320 }
9321
9322 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9323 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9324 PyObject * _resultobj;
9325 bool _result;
9326 wxDC * _arg0;
9327 PyObject * _argo0 = 0;
9328 char *_kwnames[] = { "self", NULL };
9329
9330 self = self;
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
9332 return NULL;
9333 if (_argo0) {
9334 if (_argo0 == Py_None) { _arg0 = NULL; }
9335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9337 return NULL;
9338 }
9339 }
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 _result = (bool )wxDC_Ok(_arg0);
9343
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) return NULL;
9346 } _resultobj = Py_BuildValue("i",_result);
9347 return _resultobj;
9348 }
9349
9350 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9351 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9352 PyObject * _resultobj;
9353 wxDC * _arg0;
9354 long _arg1;
9355 long _arg2;
9356 PyObject * _argo0 = 0;
9357 char *_kwnames[] = { "self","x","y", NULL };
9358
9359 self = self;
9360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9361 return NULL;
9362 if (_argo0) {
9363 if (_argo0 == Py_None) { _arg0 = NULL; }
9364 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9365 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9366 return NULL;
9367 }
9368 }
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) return NULL;
9375 } Py_INCREF(Py_None);
9376 _resultobj = Py_None;
9377 return _resultobj;
9378 }
9379
9380 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9381 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9382 PyObject * _resultobj;
9383 wxDC * _arg0;
9384 wxBrush * _arg1;
9385 PyObject * _argo0 = 0;
9386 PyObject * _argo1 = 0;
9387 char *_kwnames[] = { "self","brush", NULL };
9388
9389 self = self;
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
9391 return NULL;
9392 if (_argo0) {
9393 if (_argo0 == Py_None) { _arg0 = NULL; }
9394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9396 return NULL;
9397 }
9398 }
9399 if (_argo1) {
9400 if (_argo1 == Py_None) { _arg1 = NULL; }
9401 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9402 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9403 return NULL;
9404 }
9405 }
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 wxDC_SetBackground(_arg0,*_arg1);
9409
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) return NULL;
9412 } Py_INCREF(Py_None);
9413 _resultobj = Py_None;
9414 return _resultobj;
9415 }
9416
9417 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9418 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9419 PyObject * _resultobj;
9420 wxDC * _arg0;
9421 int _arg1;
9422 PyObject * _argo0 = 0;
9423 char *_kwnames[] = { "self","mode", NULL };
9424
9425 self = self;
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
9427 return NULL;
9428 if (_argo0) {
9429 if (_argo0 == Py_None) { _arg0 = NULL; }
9430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9432 return NULL;
9433 }
9434 }
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 wxDC_SetBackgroundMode(_arg0,_arg1);
9438
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) return NULL;
9441 } Py_INCREF(Py_None);
9442 _resultobj = Py_None;
9443 return _resultobj;
9444 }
9445
9446 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9447 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9448 PyObject * _resultobj;
9449 wxDC * _arg0;
9450 long _arg1;
9451 long _arg2;
9452 long _arg3;
9453 long _arg4;
9454 PyObject * _argo0 = 0;
9455 char *_kwnames[] = { "self","x","y","width","height", NULL };
9456
9457 self = self;
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9459 return NULL;
9460 if (_argo0) {
9461 if (_argo0 == Py_None) { _arg0 = NULL; }
9462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9464 return NULL;
9465 }
9466 }
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
9470
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) return NULL;
9473 } Py_INCREF(Py_None);
9474 _resultobj = Py_None;
9475 return _resultobj;
9476 }
9477
9478 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9479 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9480 PyObject * _resultobj;
9481 wxDC * _arg0;
9482 wxRegion * _arg1;
9483 PyObject * _argo0 = 0;
9484 PyObject * _argo1 = 0;
9485 char *_kwnames[] = { "self","region", NULL };
9486
9487 self = self;
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
9489 return NULL;
9490 if (_argo0) {
9491 if (_argo0 == Py_None) { _arg0 = NULL; }
9492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9494 return NULL;
9495 }
9496 }
9497 if (_argo1) {
9498 if (_argo1 == Py_None) { _arg1 = NULL; }
9499 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9500 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9501 return NULL;
9502 }
9503 }
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) return NULL;
9510 } Py_INCREF(Py_None);
9511 _resultobj = Py_None;
9512 return _resultobj;
9513 }
9514
9515 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9516 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
9517 PyObject * _resultobj;
9518 wxDC * _arg0;
9519 wxPalette * _arg1;
9520 PyObject * _argo0 = 0;
9521 PyObject * _argo1 = 0;
9522 char *_kwnames[] = { "self","colourMap", NULL };
9523
9524 self = self;
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
9526 return NULL;
9527 if (_argo0) {
9528 if (_argo0 == Py_None) { _arg0 = NULL; }
9529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9531 return NULL;
9532 }
9533 }
9534 if (_argo1) {
9535 if (_argo1 == Py_None) { _arg1 = NULL; }
9536 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
9537 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9538 return NULL;
9539 }
9540 }
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 wxDC_SetPalette(_arg0,*_arg1);
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) return NULL;
9547 } Py_INCREF(Py_None);
9548 _resultobj = Py_None;
9549 return _resultobj;
9550 }
9551
9552 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9553 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
9554 PyObject * _resultobj;
9555 wxDC * _arg0;
9556 wxBrush * _arg1;
9557 PyObject * _argo0 = 0;
9558 PyObject * _argo1 = 0;
9559 char *_kwnames[] = { "self","brush", NULL };
9560
9561 self = self;
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
9563 return NULL;
9564 if (_argo0) {
9565 if (_argo0 == Py_None) { _arg0 = NULL; }
9566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9568 return NULL;
9569 }
9570 }
9571 if (_argo1) {
9572 if (_argo1 == Py_None) { _arg1 = NULL; }
9573 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9574 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9575 return NULL;
9576 }
9577 }
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 wxDC_SetBrush(_arg0,*_arg1);
9581
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) return NULL;
9584 } Py_INCREF(Py_None);
9585 _resultobj = Py_None;
9586 return _resultobj;
9587 }
9588
9589 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9590 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9591 PyObject * _resultobj;
9592 wxDC * _arg0;
9593 wxFont * _arg1;
9594 PyObject * _argo0 = 0;
9595 PyObject * _argo1 = 0;
9596 char *_kwnames[] = { "self","font", NULL };
9597
9598 self = self;
9599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
9600 return NULL;
9601 if (_argo0) {
9602 if (_argo0 == Py_None) { _arg0 = NULL; }
9603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9605 return NULL;
9606 }
9607 }
9608 if (_argo1) {
9609 if (_argo1 == Py_None) { _arg1 = NULL; }
9610 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
9611 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9612 return NULL;
9613 }
9614 }
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 wxDC_SetFont(_arg0,*_arg1);
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) return NULL;
9621 } Py_INCREF(Py_None);
9622 _resultobj = Py_None;
9623 return _resultobj;
9624 }
9625
9626 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9627 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
9628 PyObject * _resultobj;
9629 wxDC * _arg0;
9630 int _arg1;
9631 PyObject * _argo0 = 0;
9632 char *_kwnames[] = { "self","function", NULL };
9633
9634 self = self;
9635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
9636 return NULL;
9637 if (_argo0) {
9638 if (_argo0 == Py_None) { _arg0 = NULL; }
9639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9641 return NULL;
9642 }
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 wxDC_SetLogicalFunction(_arg0,_arg1);
9647
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) return NULL;
9650 } Py_INCREF(Py_None);
9651 _resultobj = Py_None;
9652 return _resultobj;
9653 }
9654
9655 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9656 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9657 PyObject * _resultobj;
9658 wxDC * _arg0;
9659 double _arg1;
9660 double _arg2;
9661 PyObject * _argo0 = 0;
9662 char *_kwnames[] = { "self","x","y", NULL };
9663
9664 self = self;
9665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
9666 return NULL;
9667 if (_argo0) {
9668 if (_argo0 == Py_None) { _arg0 = NULL; }
9669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9671 return NULL;
9672 }
9673 }
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) return NULL;
9680 } Py_INCREF(Py_None);
9681 _resultobj = Py_None;
9682 return _resultobj;
9683 }
9684
9685 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9686 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject * _resultobj;
9688 wxDC * _arg0;
9689 int _arg1;
9690 PyObject * _argo0 = 0;
9691 char *_kwnames[] = { "self","mode", NULL };
9692
9693 self = self;
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
9695 return NULL;
9696 if (_argo0) {
9697 if (_argo0 == Py_None) { _arg0 = NULL; }
9698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9700 return NULL;
9701 }
9702 }
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 wxDC_SetMapMode(_arg0,_arg1);
9706
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) return NULL;
9709 } Py_INCREF(Py_None);
9710 _resultobj = Py_None;
9711 return _resultobj;
9712 }
9713
9714 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9715 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
9716 PyObject * _resultobj;
9717 wxDC * _arg0;
9718 bool _arg1;
9719 PyObject * _argo0 = 0;
9720 int tempbool1;
9721 char *_kwnames[] = { "self","optimize", NULL };
9722
9723 self = self;
9724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
9725 return NULL;
9726 if (_argo0) {
9727 if (_argo0 == Py_None) { _arg0 = NULL; }
9728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9730 return NULL;
9731 }
9732 }
9733 _arg1 = (bool ) tempbool1;
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 wxDC_SetOptimization(_arg0,_arg1);
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) return NULL;
9740 } Py_INCREF(Py_None);
9741 _resultobj = Py_None;
9742 return _resultobj;
9743 }
9744
9745 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9746 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject * _resultobj;
9748 wxDC * _arg0;
9749 wxPen * _arg1;
9750 PyObject * _argo0 = 0;
9751 PyObject * _argo1 = 0;
9752 char *_kwnames[] = { "self","pen", NULL };
9753
9754 self = self;
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
9756 return NULL;
9757 if (_argo0) {
9758 if (_argo0 == Py_None) { _arg0 = NULL; }
9759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9761 return NULL;
9762 }
9763 }
9764 if (_argo1) {
9765 if (_argo1 == Py_None) { _arg1 = NULL; }
9766 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
9767 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9768 return NULL;
9769 }
9770 }
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 wxDC_SetPen(_arg0,*_arg1);
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) return NULL;
9777 } Py_INCREF(Py_None);
9778 _resultobj = Py_None;
9779 return _resultobj;
9780 }
9781
9782 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9783 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9784 PyObject * _resultobj;
9785 wxDC * _arg0;
9786 wxColour * _arg1;
9787 PyObject * _argo0 = 0;
9788 wxColour temp;
9789 PyObject * _obj1 = 0;
9790 char *_kwnames[] = { "self","colour", NULL };
9791
9792 self = self;
9793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
9794 return NULL;
9795 if (_argo0) {
9796 if (_argo0 == Py_None) { _arg0 = NULL; }
9797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9799 return NULL;
9800 }
9801 }
9802 {
9803 _arg1 = &temp;
9804 if (! wxColour_helper(_obj1, &_arg1))
9805 return NULL;
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 wxDC_SetTextBackground(_arg0,*_arg1);
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) return NULL;
9813 } Py_INCREF(Py_None);
9814 _resultobj = Py_None;
9815 return _resultobj;
9816 }
9817
9818 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9819 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9820 PyObject * _resultobj;
9821 wxDC * _arg0;
9822 wxColour * _arg1;
9823 PyObject * _argo0 = 0;
9824 wxColour temp;
9825 PyObject * _obj1 = 0;
9826 char *_kwnames[] = { "self","colour", NULL };
9827
9828 self = self;
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9830 return NULL;
9831 if (_argo0) {
9832 if (_argo0 == Py_None) { _arg0 = NULL; }
9833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9835 return NULL;
9836 }
9837 }
9838 {
9839 _arg1 = &temp;
9840 if (! wxColour_helper(_obj1, &_arg1))
9841 return NULL;
9842 }
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 wxDC_SetTextForeground(_arg0,*_arg1);
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) return NULL;
9849 } Py_INCREF(Py_None);
9850 _resultobj = Py_None;
9851 return _resultobj;
9852 }
9853
9854 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9855 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9856 PyObject * _resultobj;
9857 wxDC * _arg0;
9858 double _arg1;
9859 double _arg2;
9860 PyObject * _argo0 = 0;
9861 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9862
9863 self = self;
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
9865 return NULL;
9866 if (_argo0) {
9867 if (_argo0 == Py_None) { _arg0 = NULL; }
9868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9870 return NULL;
9871 }
9872 }
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 wxDC_SetUserScale(_arg0,_arg1,_arg2);
9876
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) return NULL;
9879 } Py_INCREF(Py_None);
9880 _resultobj = Py_None;
9881 return _resultobj;
9882 }
9883
9884 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9885 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject * _resultobj;
9887 bool _result;
9888 wxDC * _arg0;
9889 wxString * _arg1;
9890 PyObject * _argo0 = 0;
9891 PyObject * _obj1 = 0;
9892 char *_kwnames[] = { "self","message", NULL };
9893
9894 self = self;
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9896 return NULL;
9897 if (_argo0) {
9898 if (_argo0 == Py_None) { _arg0 = NULL; }
9899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9901 return NULL;
9902 }
9903 }
9904 {
9905 _arg1 = wxString_in_helper(_obj1);
9906 if (_arg1 == NULL)
9907 return NULL;
9908 }
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9912
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) return NULL;
9915 } _resultobj = Py_BuildValue("i",_result);
9916 {
9917 if (_obj1)
9918 delete _arg1;
9919 }
9920 return _resultobj;
9921 }
9922
9923 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9924 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9925 PyObject * _resultobj;
9926 wxDC * _arg0;
9927 PyObject * _argo0 = 0;
9928 char *_kwnames[] = { "self", NULL };
9929
9930 self = self;
9931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9932 return NULL;
9933 if (_argo0) {
9934 if (_argo0 == Py_None) { _arg0 = NULL; }
9935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9937 return NULL;
9938 }
9939 }
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 wxDC_StartPage(_arg0);
9943
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) return NULL;
9946 } Py_INCREF(Py_None);
9947 _resultobj = Py_None;
9948 return _resultobj;
9949 }
9950
9951 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9952 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9953 PyObject * _resultobj;
9954 wxDC * _arg0;
9955 wxBitmap * _arg1;
9956 long _arg2;
9957 long _arg3;
9958 int _arg4 = (int ) FALSE;
9959 PyObject * _argo0 = 0;
9960 PyObject * _argo1 = 0;
9961 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9962
9963 self = self;
9964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9965 return NULL;
9966 if (_argo0) {
9967 if (_argo0 == Py_None) { _arg0 = NULL; }
9968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9970 return NULL;
9971 }
9972 }
9973 if (_argo1) {
9974 if (_argo1 == Py_None) { _arg1 = NULL; }
9975 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9976 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9977 return NULL;
9978 }
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) return NULL;
9986 } Py_INCREF(Py_None);
9987 _resultobj = Py_None;
9988 return _resultobj;
9989 }
9990
9991 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9992 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9993 PyObject * _resultobj;
9994 bool _result;
9995 wxDC * _arg0;
9996 PyObject * _argo0 = 0;
9997 char *_kwnames[] = { "self", NULL };
9998
9999 self = self;
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
10001 return NULL;
10002 if (_argo0) {
10003 if (_argo0 == Py_None) { _arg0 = NULL; }
10004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
10006 return NULL;
10007 }
10008 }
10009 {
10010 PyThreadState* __tstate = wxPyBeginAllowThreads();
10011 _result = (bool )wxDC_CanDrawBitmap(_arg0);
10012
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) return NULL;
10015 } _resultobj = Py_BuildValue("i",_result);
10016 return _resultobj;
10017 }
10018
10019 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
10020 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
10021 PyObject * _resultobj;
10022 bool _result;
10023 wxDC * _arg0;
10024 PyObject * _argo0 = 0;
10025 char *_kwnames[] = { "self", NULL };
10026
10027 self = self;
10028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
10029 return NULL;
10030 if (_argo0) {
10031 if (_argo0 == Py_None) { _arg0 = NULL; }
10032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
10034 return NULL;
10035 }
10036 }
10037 {
10038 PyThreadState* __tstate = wxPyBeginAllowThreads();
10039 _result = (bool )wxDC_CanGetTextExtent(_arg0);
10040
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) return NULL;
10043 } _resultobj = Py_BuildValue("i",_result);
10044 return _resultobj;
10045 }
10046
10047 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
10048 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
10049 PyObject * _resultobj;
10050 int _result;
10051 wxDC * _arg0;
10052 PyObject * _argo0 = 0;
10053 char *_kwnames[] = { "self", NULL };
10054
10055 self = self;
10056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
10057 return NULL;
10058 if (_argo0) {
10059 if (_argo0 == Py_None) { _arg0 = NULL; }
10060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
10062 return NULL;
10063 }
10064 }
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 _result = (int )wxDC_GetDepth(_arg0);
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) return NULL;
10071 } _resultobj = Py_BuildValue("i",_result);
10072 return _resultobj;
10073 }
10074
10075 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
10076 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
10077 PyObject * _resultobj;
10078 wxSize * _result;
10079 wxDC * _arg0;
10080 PyObject * _argo0 = 0;
10081 char *_kwnames[] = { "self", NULL };
10082 char _ptemp[128];
10083
10084 self = self;
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
10086 return NULL;
10087 if (_argo0) {
10088 if (_argo0 == Py_None) { _arg0 = NULL; }
10089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
10091 return NULL;
10092 }
10093 }
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 _result = new wxSize (wxDC_GetPPI(_arg0));
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) return NULL;
10100 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10101 _resultobj = Py_BuildValue("s",_ptemp);
10102 return _resultobj;
10103 }
10104
10105 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
10106 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10107 PyObject * _resultobj;
10108 wxDC * _arg0;
10109 int * _arg1;
10110 int temp;
10111 int * _arg2;
10112 int temp0;
10113 PyObject * _argo0 = 0;
10114 char *_kwnames[] = { "self", NULL };
10115
10116 self = self;
10117 {
10118 _arg1 = &temp;
10119 }
10120 {
10121 _arg2 = &temp0;
10122 }
10123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
10124 return NULL;
10125 if (_argo0) {
10126 if (_argo0 == Py_None) { _arg0 = NULL; }
10127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
10129 return NULL;
10130 }
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
10135
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) return NULL;
10138 } Py_INCREF(Py_None);
10139 _resultobj = Py_None;
10140 {
10141 PyObject *o;
10142 o = PyInt_FromLong((long) (*_arg1));
10143 _resultobj = t_output_helper(_resultobj, o);
10144 }
10145 {
10146 PyObject *o;
10147 o = PyInt_FromLong((long) (*_arg2));
10148 _resultobj = t_output_helper(_resultobj, o);
10149 }
10150 return _resultobj;
10151 }
10152
10153 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
10154 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10155 PyObject * _resultobj;
10156 wxDC * _arg0;
10157 int _arg1;
10158 int _arg2;
10159 PyObject * _argo0 = 0;
10160 char *_kwnames[] = { "self","x","y", NULL };
10161
10162 self = self;
10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
10164 return NULL;
10165 if (_argo0) {
10166 if (_argo0 == Py_None) { _arg0 = NULL; }
10167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
10169 return NULL;
10170 }
10171 }
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
10175
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) return NULL;
10178 } Py_INCREF(Py_None);
10179 _resultobj = Py_None;
10180 return _resultobj;
10181 }
10182
10183 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
10184 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
10185 PyObject * _resultobj;
10186 wxDC * _arg0;
10187 int * _arg1;
10188 int temp;
10189 int * _arg2;
10190 int temp0;
10191 PyObject * _argo0 = 0;
10192 char *_kwnames[] = { "self", NULL };
10193
10194 self = self;
10195 {
10196 _arg1 = &temp;
10197 }
10198 {
10199 _arg2 = &temp0;
10200 }
10201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
10202 return NULL;
10203 if (_argo0) {
10204 if (_argo0 == Py_None) { _arg0 = NULL; }
10205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
10207 return NULL;
10208 }
10209 }
10210 {
10211 PyThreadState* __tstate = wxPyBeginAllowThreads();
10212 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
10213
10214 wxPyEndAllowThreads(__tstate);
10215 if (PyErr_Occurred()) return NULL;
10216 } Py_INCREF(Py_None);
10217 _resultobj = Py_None;
10218 {
10219 PyObject *o;
10220 o = PyInt_FromLong((long) (*_arg1));
10221 _resultobj = t_output_helper(_resultobj, o);
10222 }
10223 {
10224 PyObject *o;
10225 o = PyInt_FromLong((long) (*_arg2));
10226 _resultobj = t_output_helper(_resultobj, o);
10227 }
10228 return _resultobj;
10229 }
10230
10231 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10232 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10233 PyObject * _resultobj;
10234 wxDC * _arg0;
10235 bool _arg1;
10236 bool _arg2;
10237 PyObject * _argo0 = 0;
10238 int tempbool1;
10239 int tempbool2;
10240 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
10241
10242 self = self;
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
10244 return NULL;
10245 if (_argo0) {
10246 if (_argo0 == Py_None) { _arg0 = NULL; }
10247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10249 return NULL;
10250 }
10251 }
10252 _arg1 = (bool ) tempbool1;
10253 _arg2 = (bool ) tempbool2;
10254 {
10255 PyThreadState* __tstate = wxPyBeginAllowThreads();
10256 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
10257
10258 wxPyEndAllowThreads(__tstate);
10259 if (PyErr_Occurred()) return NULL;
10260 } Py_INCREF(Py_None);
10261 _resultobj = Py_None;
10262 return _resultobj;
10263 }
10264
10265 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10266 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10267 PyObject * _resultobj;
10268 wxDC * _arg0;
10269 int _arg1;
10270 int _arg2;
10271 PyObject * _argo0 = 0;
10272 char *_kwnames[] = { "self","x","y", NULL };
10273
10274 self = self;
10275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
10276 return NULL;
10277 if (_argo0) {
10278 if (_argo0 == Py_None) { _arg0 = NULL; }
10279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10281 return NULL;
10282 }
10283 }
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) return NULL;
10290 } Py_INCREF(Py_None);
10291 _resultobj = Py_None;
10292 return _resultobj;
10293 }
10294
10295 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10296 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10297 PyObject * _resultobj;
10298 wxDC * _arg0;
10299 PyObject * _argo0 = 0;
10300 char *_kwnames[] = { "self", NULL };
10301
10302 self = self;
10303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
10304 return NULL;
10305 if (_argo0) {
10306 if (_argo0 == Py_None) { _arg0 = NULL; }
10307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10309 return NULL;
10310 }
10311 }
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 wxDC_ResetBoundingBox(_arg0);
10315
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) return NULL;
10318 } Py_INCREF(Py_None);
10319 _resultobj = Py_None;
10320 return _resultobj;
10321 }
10322
10323 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10324 PyObject * _resultobj;
10325 wxDC * _arg0;
10326 int * _arg1;
10327 int temp;
10328 int * _arg2;
10329 int temp0;
10330 int * _arg3;
10331 int temp1;
10332 int * _arg4;
10333 int temp2;
10334 PyObject * _argo0 = 0;
10335 char *_kwnames[] = { "self", NULL };
10336
10337 self = self;
10338 {
10339 _arg1 = &temp;
10340 }
10341 {
10342 _arg2 = &temp0;
10343 }
10344 {
10345 _arg3 = &temp1;
10346 }
10347 {
10348 _arg4 = &temp2;
10349 }
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
10351 return NULL;
10352 if (_argo0) {
10353 if (_argo0 == Py_None) { _arg0 = NULL; }
10354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10356 return NULL;
10357 }
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) return NULL;
10365 } Py_INCREF(Py_None);
10366 _resultobj = Py_None;
10367 {
10368 PyObject *o;
10369 o = PyInt_FromLong((long) (*_arg1));
10370 _resultobj = t_output_helper(_resultobj, o);
10371 }
10372 {
10373 PyObject *o;
10374 o = PyInt_FromLong((long) (*_arg2));
10375 _resultobj = t_output_helper(_resultobj, o);
10376 }
10377 {
10378 PyObject *o;
10379 o = PyInt_FromLong((long) (*_arg3));
10380 _resultobj = t_output_helper(_resultobj, o);
10381 }
10382 {
10383 PyObject *o;
10384 o = PyInt_FromLong((long) (*_arg4));
10385 _resultobj = t_output_helper(_resultobj, o);
10386 }
10387 return _resultobj;
10388 }
10389
10390 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10391 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10392 PyObject * _resultobj;
10393 long _result;
10394 wxDC * _arg0;
10395 PyObject * _argo0 = 0;
10396 char *_kwnames[] = { "self", NULL };
10397
10398 self = self;
10399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
10400 return NULL;
10401 if (_argo0) {
10402 if (_argo0 == Py_None) { _arg0 = NULL; }
10403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10405 return NULL;
10406 }
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 _result = (long )wxDC_GetHDC(_arg0);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) return NULL;
10414 } _resultobj = Py_BuildValue("l",_result);
10415 return _resultobj;
10416 }
10417
10418 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
10419 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
10420 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10421 int numObjs = 0;
10422 int numPens = 0;
10423 wxPen* pen;
10424 PyObject* obj;
10425 int x1, y1;
10426 int i = 0;
10427
10428 if (!PySequence_Check(pyPoints)) {
10429 goto err0;
10430 }
10431 if (!PySequence_Check(pyPens)) {
10432 goto err1;
10433 }
10434 numObjs = PySequence_Length(pyPoints);
10435 numPens = PySequence_Length(pyPens);
10436
10437 for (i = 0; i < numObjs; i++) {
10438 // Use a new pen?
10439 if (i < numPens) {
10440 if (isFastPens) {
10441 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10442 }
10443 else {
10444 obj = PySequence_GetItem(pyPens, i);
10445 }
10446 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10447 if (!isFastPens)
10448 Py_DECREF(obj);
10449 goto err1;
10450 }
10451
10452 self->SetPen(*pen);
10453 if (!isFastPens)
10454 Py_DECREF(obj);
10455 }
10456
10457 // Get the point coordinants
10458 if (isFastSeq) {
10459 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
10460 }
10461 else {
10462 obj = PySequence_GetItem(pyPoints, i);
10463 }
10464 if (! _2int_seq_helper(obj, &x1, &y1)) {
10465 if (!isFastPens)
10466 Py_DECREF(obj);
10467 goto err0;
10468 }
10469
10470 // Now draw the point
10471 self->DrawPoint(x1, y1);
10472
10473 if (!isFastSeq)
10474 Py_DECREF(obj);
10475 }
10476
10477 Py_INCREF(Py_None);
10478 return Py_None;
10479
10480 err1:
10481 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10482 return NULL;
10483 err0:
10484 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
10485 return NULL;
10486 }
10487 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
10488 PyObject * _resultobj;
10489 PyObject * _result;
10490 wxDC * _arg0;
10491 PyObject * _arg1;
10492 PyObject * _arg2;
10493 PyObject * _argo0 = 0;
10494 PyObject * _obj1 = 0;
10495 PyObject * _obj2 = 0;
10496 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
10497
10498 self = self;
10499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
10500 return NULL;
10501 if (_argo0) {
10502 if (_argo0 == Py_None) { _arg0 = NULL; }
10503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10505 return NULL;
10506 }
10507 }
10508 {
10509 _arg1 = _obj1;
10510 }
10511 {
10512 _arg2 = _obj2;
10513 }
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
10517
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) return NULL;
10520 }{
10521 _resultobj = _result;
10522 }
10523 return _resultobj;
10524 }
10525
10526 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
10527 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
10528 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10529 int numObjs = 0;
10530 int numPens = 0;
10531 wxPen* pen;
10532 PyObject* obj;
10533 int x1, y1, x2, y2;
10534 int i = 0;
10535
10536 if (!PySequence_Check(pyLines)) {
10537 goto err0;
10538 }
10539 if (!PySequence_Check(pyPens)) {
10540 goto err1;
10541 }
10542 numObjs = PySequence_Length(pyLines);
10543 numPens = PySequence_Length(pyPens);
10544
10545 for (i = 0; i < numObjs; i++) {
10546 // Use a new pen?
10547 if (i < numPens) {
10548 if (isFastPens) {
10549 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10550 }
10551 else {
10552 obj = PySequence_GetItem(pyPens, i);
10553 }
10554 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10555 if (!isFastPens)
10556 Py_DECREF(obj);
10557 goto err1;
10558 }
10559
10560 self->SetPen(*pen);
10561 if (!isFastPens)
10562 Py_DECREF(obj);
10563 }
10564
10565 // Get the line coordinants
10566 if (isFastSeq) {
10567 obj = PySequence_Fast_GET_ITEM(pyLines, i);
10568 }
10569 else {
10570 obj = PySequence_GetItem(pyLines, i);
10571 }
10572 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
10573 if (!isFastPens)
10574 Py_DECREF(obj);
10575 goto err0;
10576 }
10577
10578 // Now draw the line
10579 self->DrawLine(x1, y1, x2, y2);
10580
10581 if (!isFastSeq)
10582 Py_DECREF(obj);
10583 }
10584
10585 Py_INCREF(Py_None);
10586 return Py_None;
10587
10588 err1:
10589 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10590 return NULL;
10591 err0:
10592 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10593 return NULL;
10594 }
10595 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
10596 PyObject * _resultobj;
10597 PyObject * _result;
10598 wxDC * _arg0;
10599 PyObject * _arg1;
10600 PyObject * _arg2;
10601 PyObject * _argo0 = 0;
10602 PyObject * _obj1 = 0;
10603 PyObject * _obj2 = 0;
10604 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
10605
10606 self = self;
10607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
10608 return NULL;
10609 if (_argo0) {
10610 if (_argo0 == Py_None) { _arg0 = NULL; }
10611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10613 return NULL;
10614 }
10615 }
10616 {
10617 _arg1 = _obj1;
10618 }
10619 {
10620 _arg2 = _obj2;
10621 }
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) return NULL;
10628 }{
10629 _resultobj = _result;
10630 }
10631 return _resultobj;
10632 }
10633
10634 static void *SwigwxMemoryDCTowxDC(void *ptr) {
10635 wxMemoryDC *src;
10636 wxDC *dest;
10637 src = (wxMemoryDC *) ptr;
10638 dest = (wxDC *) src;
10639 return (void *) dest;
10640 }
10641
10642 static void *SwigwxMemoryDCTowxObject(void *ptr) {
10643 wxMemoryDC *src;
10644 wxObject *dest;
10645 src = (wxMemoryDC *) ptr;
10646 dest = (wxObject *) src;
10647 return (void *) dest;
10648 }
10649
10650 #define new_wxMemoryDC() (new wxMemoryDC())
10651 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject * _resultobj;
10653 wxMemoryDC * _result;
10654 char *_kwnames[] = { NULL };
10655 char _ptemp[128];
10656
10657 self = self;
10658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
10659 return NULL;
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 _result = (wxMemoryDC *)new_wxMemoryDC();
10663
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) return NULL;
10666 } if (_result) {
10667 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
10668 _resultobj = Py_BuildValue("s",_ptemp);
10669 } else {
10670 Py_INCREF(Py_None);
10671 _resultobj = Py_None;
10672 }
10673 return _resultobj;
10674 }
10675
10676 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10677 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
10678 PyObject * _resultobj;
10679 wxMemoryDC * _arg0;
10680 wxBitmap * _arg1;
10681 PyObject * _argo0 = 0;
10682 PyObject * _argo1 = 0;
10683 char *_kwnames[] = { "self","bitmap", NULL };
10684
10685 self = self;
10686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
10687 return NULL;
10688 if (_argo0) {
10689 if (_argo0 == Py_None) { _arg0 = NULL; }
10690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
10691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10692 return NULL;
10693 }
10694 }
10695 if (_argo1) {
10696 if (_argo1 == Py_None) { _arg1 = NULL; }
10697 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10698 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10699 return NULL;
10700 }
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 wxMemoryDC_SelectObject(_arg0,*_arg1);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) return NULL;
10708 } Py_INCREF(Py_None);
10709 _resultobj = Py_None;
10710 return _resultobj;
10711 }
10712
10713 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
10714 wxBufferedDC *src;
10715 wxMemoryDC *dest;
10716 src = (wxBufferedDC *) ptr;
10717 dest = (wxMemoryDC *) src;
10718 return (void *) dest;
10719 }
10720
10721 static void *SwigwxBufferedDCTowxDC(void *ptr) {
10722 wxBufferedDC *src;
10723 wxDC *dest;
10724 src = (wxBufferedDC *) ptr;
10725 dest = (wxDC *) src;
10726 return (void *) dest;
10727 }
10728
10729 static void *SwigwxBufferedDCTowxObject(void *ptr) {
10730 wxBufferedDC *src;
10731 wxObject *dest;
10732 src = (wxBufferedDC *) ptr;
10733 dest = (wxObject *) src;
10734 return (void *) dest;
10735 }
10736
10737 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
10738 static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject * _resultobj;
10740 wxBufferedDC * _result;
10741 wxDC * _arg0;
10742 wxBitmap * _arg1;
10743 PyObject * _argo0 = 0;
10744 PyObject * _argo1 = 0;
10745 char *_kwnames[] = { "dc","buffer", NULL };
10746 char _ptemp[128];
10747
10748 self = self;
10749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
10750 return NULL;
10751 if (_argo0) {
10752 if (_argo0 == Py_None) { _arg0 = NULL; }
10753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
10755 return NULL;
10756 }
10757 }
10758 if (_argo1) {
10759 if (_argo1 == Py_None) { _arg1 = NULL; }
10760 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10761 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
10762 return NULL;
10763 }
10764 }
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
10768
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) return NULL;
10771 } if (_result) {
10772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
10773 _resultobj = Py_BuildValue("s",_ptemp);
10774 } else {
10775 Py_INCREF(Py_None);
10776 _resultobj = Py_None;
10777 }
10778 return _resultobj;
10779 }
10780
10781 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
10782 static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10783 PyObject * _resultobj;
10784 wxBufferedDC * _result;
10785 wxDC * _arg0;
10786 wxSize * _arg1;
10787 PyObject * _argo0 = 0;
10788 wxSize temp;
10789 PyObject * _obj1 = 0;
10790 char *_kwnames[] = { "dc","area", NULL };
10791 char _ptemp[128];
10792
10793 self = self;
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
10795 return NULL;
10796 if (_argo0) {
10797 if (_argo0 == Py_None) { _arg0 = NULL; }
10798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
10800 return NULL;
10801 }
10802 }
10803 {
10804 _arg1 = &temp;
10805 if (! wxSize_helper(_obj1, &_arg1))
10806 return NULL;
10807 }
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
10811
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) return NULL;
10814 } if (_result) {
10815 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
10816 _resultobj = Py_BuildValue("s",_ptemp);
10817 } else {
10818 Py_INCREF(Py_None);
10819 _resultobj = Py_None;
10820 }
10821 return _resultobj;
10822 }
10823
10824 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
10825 wxBufferedPaintDC *src;
10826 wxBufferedDC *dest;
10827 src = (wxBufferedPaintDC *) ptr;
10828 dest = (wxBufferedDC *) src;
10829 return (void *) dest;
10830 }
10831
10832 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
10833 wxBufferedPaintDC *src;
10834 wxMemoryDC *dest;
10835 src = (wxBufferedPaintDC *) ptr;
10836 dest = (wxMemoryDC *) src;
10837 return (void *) dest;
10838 }
10839
10840 static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
10841 wxBufferedPaintDC *src;
10842 wxDC *dest;
10843 src = (wxBufferedPaintDC *) ptr;
10844 dest = (wxDC *) src;
10845 return (void *) dest;
10846 }
10847
10848 static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
10849 wxBufferedPaintDC *src;
10850 wxObject *dest;
10851 src = (wxBufferedPaintDC *) ptr;
10852 dest = (wxObject *) src;
10853 return (void *) dest;
10854 }
10855
10856 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
10857 static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10858 PyObject * _resultobj;
10859 wxBufferedPaintDC * _result;
10860 wxWindow * _arg0;
10861 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
10862 PyObject * _argo0 = 0;
10863 PyObject * _argo1 = 0;
10864 char *_kwnames[] = { "window","buffer", NULL };
10865 char _ptemp[128];
10866
10867 self = self;
10868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
10869 return NULL;
10870 if (_argo0) {
10871 if (_argo0 == Py_None) { _arg0 = NULL; }
10872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
10874 return NULL;
10875 }
10876 }
10877 if (_argo1) {
10878 if (_argo1 == Py_None) { _arg1 = NULL; }
10879 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10880 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
10881 return NULL;
10882 }
10883 }
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) return NULL;
10890 } if (_result) {
10891 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
10892 _resultobj = Py_BuildValue("s",_ptemp);
10893 } else {
10894 Py_INCREF(Py_None);
10895 _resultobj = Py_None;
10896 }
10897 return _resultobj;
10898 }
10899
10900 static void *SwigwxScreenDCTowxDC(void *ptr) {
10901 wxScreenDC *src;
10902 wxDC *dest;
10903 src = (wxScreenDC *) ptr;
10904 dest = (wxDC *) src;
10905 return (void *) dest;
10906 }
10907
10908 static void *SwigwxScreenDCTowxObject(void *ptr) {
10909 wxScreenDC *src;
10910 wxObject *dest;
10911 src = (wxScreenDC *) ptr;
10912 dest = (wxObject *) src;
10913 return (void *) dest;
10914 }
10915
10916 #define new_wxScreenDC() (new wxScreenDC())
10917 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10918 PyObject * _resultobj;
10919 wxScreenDC * _result;
10920 char *_kwnames[] = { NULL };
10921 char _ptemp[128];
10922
10923 self = self;
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
10925 return NULL;
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 _result = (wxScreenDC *)new_wxScreenDC();
10929
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) return NULL;
10932 } if (_result) {
10933 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
10934 _resultobj = Py_BuildValue("s",_ptemp);
10935 } else {
10936 Py_INCREF(Py_None);
10937 _resultobj = Py_None;
10938 }
10939 return _resultobj;
10940 }
10941
10942 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10943 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
10944 PyObject * _resultobj;
10945 bool _result;
10946 wxScreenDC * _arg0;
10947 wxWindow * _arg1;
10948 PyObject * _argo0 = 0;
10949 PyObject * _argo1 = 0;
10950 char *_kwnames[] = { "self","window", NULL };
10951
10952 self = self;
10953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
10954 return NULL;
10955 if (_argo0) {
10956 if (_argo0 == Py_None) { _arg0 = NULL; }
10957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10959 return NULL;
10960 }
10961 }
10962 if (_argo1) {
10963 if (_argo1 == Py_None) { _arg1 = NULL; }
10964 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10965 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10966 return NULL;
10967 }
10968 }
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
10972
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) return NULL;
10975 } _resultobj = Py_BuildValue("i",_result);
10976 return _resultobj;
10977 }
10978
10979 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10980 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10981 PyObject * _resultobj;
10982 bool _result;
10983 wxScreenDC * _arg0;
10984 wxRect * _arg1 = (wxRect *) NULL;
10985 PyObject * _argo0 = 0;
10986 wxRect temp;
10987 PyObject * _obj1 = 0;
10988 char *_kwnames[] = { "self","rect", NULL };
10989
10990 self = self;
10991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
10992 return NULL;
10993 if (_argo0) {
10994 if (_argo0 == Py_None) { _arg0 = NULL; }
10995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10997 return NULL;
10998 }
10999 }
11000 if (_obj1)
11001 {
11002 _arg1 = &temp;
11003 if (! wxRect_helper(_obj1, &_arg1))
11004 return NULL;
11005 }
11006 {
11007 PyThreadState* __tstate = wxPyBeginAllowThreads();
11008 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
11009
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) return NULL;
11012 } _resultobj = Py_BuildValue("i",_result);
11013 return _resultobj;
11014 }
11015
11016 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
11017 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
11018 PyObject * _resultobj;
11019 bool _result;
11020 wxScreenDC * _arg0;
11021 PyObject * _argo0 = 0;
11022 char *_kwnames[] = { "self", NULL };
11023
11024 self = self;
11025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
11026 return NULL;
11027 if (_argo0) {
11028 if (_argo0 == Py_None) { _arg0 = NULL; }
11029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
11030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
11031 return NULL;
11032 }
11033 }
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
11037
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) return NULL;
11040 } _resultobj = Py_BuildValue("i",_result);
11041 return _resultobj;
11042 }
11043
11044 static void *SwigwxClientDCTowxDC(void *ptr) {
11045 wxClientDC *src;
11046 wxDC *dest;
11047 src = (wxClientDC *) ptr;
11048 dest = (wxDC *) src;
11049 return (void *) dest;
11050 }
11051
11052 static void *SwigwxClientDCTowxObject(void *ptr) {
11053 wxClientDC *src;
11054 wxObject *dest;
11055 src = (wxClientDC *) ptr;
11056 dest = (wxObject *) src;
11057 return (void *) dest;
11058 }
11059
11060 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
11061 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11062 PyObject * _resultobj;
11063 wxClientDC * _result;
11064 wxWindow * _arg0;
11065 PyObject * _argo0 = 0;
11066 char *_kwnames[] = { "win", NULL };
11067 char _ptemp[128];
11068
11069 self = self;
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
11071 return NULL;
11072 if (_argo0) {
11073 if (_argo0 == Py_None) { _arg0 = NULL; }
11074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
11076 return NULL;
11077 }
11078 }
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 _result = (wxClientDC *)new_wxClientDC(_arg0);
11082
11083 wxPyEndAllowThreads(__tstate);
11084 if (PyErr_Occurred()) return NULL;
11085 } if (_result) {
11086 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
11087 _resultobj = Py_BuildValue("s",_ptemp);
11088 } else {
11089 Py_INCREF(Py_None);
11090 _resultobj = Py_None;
11091 }
11092 return _resultobj;
11093 }
11094
11095 static void *SwigwxPaintDCTowxDC(void *ptr) {
11096 wxPaintDC *src;
11097 wxDC *dest;
11098 src = (wxPaintDC *) ptr;
11099 dest = (wxDC *) src;
11100 return (void *) dest;
11101 }
11102
11103 static void *SwigwxPaintDCTowxObject(void *ptr) {
11104 wxPaintDC *src;
11105 wxObject *dest;
11106 src = (wxPaintDC *) ptr;
11107 dest = (wxObject *) src;
11108 return (void *) dest;
11109 }
11110
11111 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
11112 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11113 PyObject * _resultobj;
11114 wxPaintDC * _result;
11115 wxWindow * _arg0;
11116 PyObject * _argo0 = 0;
11117 char *_kwnames[] = { "win", NULL };
11118 char _ptemp[128];
11119
11120 self = self;
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
11122 return NULL;
11123 if (_argo0) {
11124 if (_argo0 == Py_None) { _arg0 = NULL; }
11125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
11127 return NULL;
11128 }
11129 }
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
11133
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) return NULL;
11136 } if (_result) {
11137 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
11138 _resultobj = Py_BuildValue("s",_ptemp);
11139 } else {
11140 Py_INCREF(Py_None);
11141 _resultobj = Py_None;
11142 }
11143 return _resultobj;
11144 }
11145
11146 static void *SwigwxWindowDCTowxDC(void *ptr) {
11147 wxWindowDC *src;
11148 wxDC *dest;
11149 src = (wxWindowDC *) ptr;
11150 dest = (wxDC *) src;
11151 return (void *) dest;
11152 }
11153
11154 static void *SwigwxWindowDCTowxObject(void *ptr) {
11155 wxWindowDC *src;
11156 wxObject *dest;
11157 src = (wxWindowDC *) ptr;
11158 dest = (wxObject *) src;
11159 return (void *) dest;
11160 }
11161
11162 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
11163 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11164 PyObject * _resultobj;
11165 wxWindowDC * _result;
11166 wxWindow * _arg0;
11167 PyObject * _argo0 = 0;
11168 char *_kwnames[] = { "win", NULL };
11169 char _ptemp[128];
11170
11171 self = self;
11172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
11173 return NULL;
11174 if (_argo0) {
11175 if (_argo0 == Py_None) { _arg0 = NULL; }
11176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
11178 return NULL;
11179 }
11180 }
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
11184
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) return NULL;
11187 } if (_result) {
11188 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
11189 _resultobj = Py_BuildValue("s",_ptemp);
11190 } else {
11191 Py_INCREF(Py_None);
11192 _resultobj = Py_None;
11193 }
11194 return _resultobj;
11195 }
11196
11197 static void *SwigwxMetaFileTowxObject(void *ptr) {
11198 wxMetaFile *src;
11199 wxObject *dest;
11200 src = (wxMetaFile *) ptr;
11201 dest = (wxObject *) src;
11202 return (void *) dest;
11203 }
11204
11205 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
11206 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11207 PyObject * _resultobj;
11208 wxMetaFile * _result;
11209 wxString * _arg0 = (wxString *) &wxPyEmptyString;
11210 PyObject * _obj0 = 0;
11211 char *_kwnames[] = { "filename", NULL };
11212 char _ptemp[128];
11213
11214 self = self;
11215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
11216 return NULL;
11217 if (_obj0)
11218 {
11219 _arg0 = wxString_in_helper(_obj0);
11220 if (_arg0 == NULL)
11221 return NULL;
11222 }
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
11226
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) return NULL;
11229 } if (_result) {
11230 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11231 _resultobj = Py_BuildValue("s",_ptemp);
11232 } else {
11233 Py_INCREF(Py_None);
11234 _resultobj = Py_None;
11235 }
11236 {
11237 if (_obj0)
11238 delete _arg0;
11239 }
11240 return _resultobj;
11241 }
11242
11243 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
11244 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11245 PyObject * _resultobj;
11246 wxMetaFile * _arg0;
11247 PyObject * _argo0 = 0;
11248 char *_kwnames[] = { "self", NULL };
11249
11250 self = self;
11251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
11252 return NULL;
11253 if (_argo0) {
11254 if (_argo0 == Py_None) { _arg0 = NULL; }
11255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11257 return NULL;
11258 }
11259 }
11260 {
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
11262 delete_wxMetaFile(_arg0);
11263
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) return NULL;
11266 } Py_INCREF(Py_None);
11267 _resultobj = Py_None;
11268 return _resultobj;
11269 }
11270
11271 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11272 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11273 PyObject * _resultobj;
11274 bool _result;
11275 wxMetaFile * _arg0;
11276 PyObject * _argo0 = 0;
11277 char *_kwnames[] = { "self", NULL };
11278
11279 self = self;
11280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
11281 return NULL;
11282 if (_argo0) {
11283 if (_argo0 == Py_None) { _arg0 = NULL; }
11284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11286 return NULL;
11287 }
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 _result = (bool )wxMetaFile_Ok(_arg0);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) return NULL;
11295 } _resultobj = Py_BuildValue("i",_result);
11296 return _resultobj;
11297 }
11298
11299 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11300 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
11301 PyObject * _resultobj;
11302 bool _result;
11303 wxMetaFile * _arg0;
11304 int _arg1 = (int ) 0;
11305 int _arg2 = (int ) 0;
11306 PyObject * _argo0 = 0;
11307 char *_kwnames[] = { "self","width","height", NULL };
11308
11309 self = self;
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
11311 return NULL;
11312 if (_argo0) {
11313 if (_argo0 == Py_None) { _arg0 = NULL; }
11314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11316 return NULL;
11317 }
11318 }
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) return NULL;
11325 } _resultobj = Py_BuildValue("i",_result);
11326 return _resultobj;
11327 }
11328
11329 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11330 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11331 PyObject * _resultobj;
11332 wxSize * _result;
11333 wxMetaFile * _arg0;
11334 PyObject * _argo0 = 0;
11335 char *_kwnames[] = { "self", NULL };
11336 char _ptemp[128];
11337
11338 self = self;
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
11340 return NULL;
11341 if (_argo0) {
11342 if (_argo0 == Py_None) { _arg0 = NULL; }
11343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11345 return NULL;
11346 }
11347 }
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 _result = new wxSize (wxMetaFile_GetSize(_arg0));
11351
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) return NULL;
11354 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
11355 _resultobj = Py_BuildValue("s",_ptemp);
11356 return _resultobj;
11357 }
11358
11359 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11360 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11361 PyObject * _resultobj;
11362 int _result;
11363 wxMetaFile * _arg0;
11364 PyObject * _argo0 = 0;
11365 char *_kwnames[] = { "self", NULL };
11366
11367 self = self;
11368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
11369 return NULL;
11370 if (_argo0) {
11371 if (_argo0 == Py_None) { _arg0 = NULL; }
11372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11374 return NULL;
11375 }
11376 }
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 _result = (int )wxMetaFile_GetWidth(_arg0);
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) return NULL;
11383 } _resultobj = Py_BuildValue("i",_result);
11384 return _resultobj;
11385 }
11386
11387 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11388 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11389 PyObject * _resultobj;
11390 int _result;
11391 wxMetaFile * _arg0;
11392 PyObject * _argo0 = 0;
11393 char *_kwnames[] = { "self", NULL };
11394
11395 self = self;
11396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
11397 return NULL;
11398 if (_argo0) {
11399 if (_argo0 == Py_None) { _arg0 = NULL; }
11400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11402 return NULL;
11403 }
11404 }
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 _result = (int )wxMetaFile_GetHeight(_arg0);
11408
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) return NULL;
11411 } _resultobj = Py_BuildValue("i",_result);
11412 return _resultobj;
11413 }
11414
11415 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11416 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
11417 PyObject * _resultobj;
11418 wxString * _result;
11419 wxMetaFile * _arg0;
11420 PyObject * _argo0 = 0;
11421 char *_kwnames[] = { "self", NULL };
11422
11423 self = self;
11424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
11425 return NULL;
11426 if (_argo0) {
11427 if (_argo0 == Py_None) { _arg0 = NULL; }
11428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11430 return NULL;
11431 }
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
11436 _result = (wxString *) &_result_ref;
11437
11438 wxPyEndAllowThreads(__tstate);
11439 if (PyErr_Occurred()) return NULL;
11440 }{
11441 #if wxUSE_UNICODE
11442 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
11443 #else
11444 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11445 #endif
11446 }
11447 return _resultobj;
11448 }
11449
11450 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
11451 wxMetaFileDC *src;
11452 wxDC *dest;
11453 src = (wxMetaFileDC *) ptr;
11454 dest = (wxDC *) src;
11455 return (void *) dest;
11456 }
11457
11458 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
11459 wxMetaFileDC *src;
11460 wxObject *dest;
11461 src = (wxMetaFileDC *) ptr;
11462 dest = (wxObject *) src;
11463 return (void *) dest;
11464 }
11465
11466 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11467 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11468 PyObject * _resultobj;
11469 wxMetaFileDC * _result;
11470 wxString * _arg0 = (wxString *) &wxPyEmptyString;
11471 int _arg1 = (int ) 0;
11472 int _arg2 = (int ) 0;
11473 wxString * _arg3 = (wxString *) &wxPyEmptyString;
11474 PyObject * _obj0 = 0;
11475 PyObject * _obj3 = 0;
11476 char *_kwnames[] = { "filename","width","height","description", NULL };
11477 char _ptemp[128];
11478
11479 self = self;
11480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
11481 return NULL;
11482 if (_obj0)
11483 {
11484 _arg0 = wxString_in_helper(_obj0);
11485 if (_arg0 == NULL)
11486 return NULL;
11487 }
11488 if (_obj3)
11489 {
11490 _arg3 = wxString_in_helper(_obj3);
11491 if (_arg3 == NULL)
11492 return NULL;
11493 }
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
11496 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) return NULL;
11500 } if (_result) {
11501 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
11502 _resultobj = Py_BuildValue("s",_ptemp);
11503 } else {
11504 Py_INCREF(Py_None);
11505 _resultobj = Py_None;
11506 }
11507 {
11508 if (_obj0)
11509 delete _arg0;
11510 }
11511 {
11512 if (_obj3)
11513 delete _arg3;
11514 }
11515 return _resultobj;
11516 }
11517
11518 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11519 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
11520 PyObject * _resultobj;
11521 wxMetaFile * _result;
11522 wxMetaFileDC * _arg0;
11523 PyObject * _argo0 = 0;
11524 char *_kwnames[] = { "self", NULL };
11525 char _ptemp[128];
11526
11527 self = self;
11528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
11529 return NULL;
11530 if (_argo0) {
11531 if (_argo0 == Py_None) { _arg0 = NULL; }
11532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
11533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11534 return NULL;
11535 }
11536 }
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) return NULL;
11543 } if (_result) {
11544 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11545 _resultobj = Py_BuildValue("s",_ptemp);
11546 } else {
11547 Py_INCREF(Py_None);
11548 _resultobj = Py_None;
11549 }
11550 return _resultobj;
11551 }
11552
11553 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
11554 wxPalette *src;
11555 wxGDIObject *dest;
11556 src = (wxPalette *) ptr;
11557 dest = (wxGDIObject *) src;
11558 return (void *) dest;
11559 }
11560
11561 static void *SwigwxPaletteTowxObject(void *ptr) {
11562 wxPalette *src;
11563 wxObject *dest;
11564 src = (wxPalette *) ptr;
11565 dest = (wxObject *) src;
11566 return (void *) dest;
11567 }
11568
11569 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11570 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11571 PyObject * _resultobj;
11572 wxPalette * _result;
11573 int _arg0;
11574 byte * _arg1;
11575 byte * _arg2;
11576 byte * _arg3;
11577 PyObject * _obj1 = 0;
11578 PyObject * _obj2 = 0;
11579 PyObject * _obj3 = 0;
11580 char *_kwnames[] = { "choices","choices","choices", NULL };
11581 char _ptemp[128];
11582
11583 self = self;
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
11585 return NULL;
11586 {
11587 _arg1 = byte_LIST_helper(_obj1);
11588 if (_arg1 == NULL) {
11589 return NULL;
11590 }
11591 }
11592 {
11593 _arg2 = byte_LIST_helper(_obj2);
11594 if (_arg2 == NULL) {
11595 return NULL;
11596 }
11597 }
11598 if (_obj3)
11599 {
11600 _arg3 = byte_LIST_helper(_obj3);
11601 if (_arg3 == NULL) {
11602 return NULL;
11603 }
11604 }
11605 {
11606 if (_obj1) {
11607 _arg0 = PyList_Size(_obj1);
11608 }
11609 else {
11610 _arg0 = 0;
11611 }
11612 }
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) return NULL;
11619 } if (_result) {
11620 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
11621 _resultobj = Py_BuildValue("s",_ptemp);
11622 } else {
11623 Py_INCREF(Py_None);
11624 _resultobj = Py_None;
11625 }
11626 {
11627 delete [] _arg1;
11628 }
11629 {
11630 delete [] _arg2;
11631 }
11632 {
11633 delete [] _arg3;
11634 }
11635 return _resultobj;
11636 }
11637
11638 #define delete_wxPalette(_swigobj) (delete _swigobj)
11639 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject * _resultobj;
11641 wxPalette * _arg0;
11642 PyObject * _argo0 = 0;
11643 char *_kwnames[] = { "self", NULL };
11644
11645 self = self;
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
11647 return NULL;
11648 if (_argo0) {
11649 if (_argo0 == Py_None) { _arg0 = NULL; }
11650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11652 return NULL;
11653 }
11654 }
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 delete_wxPalette(_arg0);
11658
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) return NULL;
11661 } Py_INCREF(Py_None);
11662 _resultobj = Py_None;
11663 return _resultobj;
11664 }
11665
11666 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11667 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11668 PyObject * _resultobj;
11669 int _result;
11670 wxPalette * _arg0;
11671 byte _arg1;
11672 byte _arg2;
11673 byte _arg3;
11674 PyObject * _argo0 = 0;
11675 char *_kwnames[] = { "self","red","green","blue", NULL };
11676
11677 self = self;
11678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
11679 return NULL;
11680 if (_argo0) {
11681 if (_argo0 == Py_None) { _arg0 = NULL; }
11682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11684 return NULL;
11685 }
11686 }
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
11690
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) return NULL;
11693 } _resultobj = Py_BuildValue("i",_result);
11694 return _resultobj;
11695 }
11696
11697 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11698 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
11699 PyObject * _resultobj;
11700 bool _result;
11701 wxPalette * _arg0;
11702 int _arg1;
11703 byte * _arg2;
11704 int temp;
11705 byte * _arg3;
11706 int temp0;
11707 byte * _arg4;
11708 int temp1;
11709 PyObject * _argo0 = 0;
11710 char *_kwnames[] = { "self","pixel", NULL };
11711
11712 self = self;
11713 {
11714 _arg2 = (byte*)&temp;
11715 }
11716 {
11717 _arg3 = (byte*)&temp0;
11718 }
11719 {
11720 _arg4 = (byte*)&temp1;
11721 }
11722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
11723 return NULL;
11724 if (_argo0) {
11725 if (_argo0 == Py_None) { _arg0 = NULL; }
11726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11728 return NULL;
11729 }
11730 }
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) return NULL;
11737 } _resultobj = Py_BuildValue("i",_result);
11738 {
11739 PyObject *o;
11740 o = PyInt_FromLong((long) (*_arg2));
11741 _resultobj = t_output_helper(_resultobj, o);
11742 }
11743 {
11744 PyObject *o;
11745 o = PyInt_FromLong((long) (*_arg3));
11746 _resultobj = t_output_helper(_resultobj, o);
11747 }
11748 {
11749 PyObject *o;
11750 o = PyInt_FromLong((long) (*_arg4));
11751 _resultobj = t_output_helper(_resultobj, o);
11752 }
11753 return _resultobj;
11754 }
11755
11756 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11757 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11758 PyObject * _resultobj;
11759 bool _result;
11760 wxPalette * _arg0;
11761 PyObject * _argo0 = 0;
11762 char *_kwnames[] = { "self", NULL };
11763
11764 self = self;
11765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
11766 return NULL;
11767 if (_argo0) {
11768 if (_argo0 == Py_None) { _arg0 = NULL; }
11769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11771 return NULL;
11772 }
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 _result = (bool )wxPalette_Ok(_arg0);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) return NULL;
11780 } _resultobj = Py_BuildValue("i",_result);
11781 return _resultobj;
11782 }
11783
11784 static void *SwigwxImageListTowxObject(void *ptr) {
11785 wxImageList *src;
11786 wxObject *dest;
11787 src = (wxImageList *) ptr;
11788 dest = (wxObject *) src;
11789 return (void *) dest;
11790 }
11791
11792 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11793 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11794 PyObject * _resultobj;
11795 wxImageList * _result;
11796 int _arg0;
11797 int _arg1;
11798 int _arg2 = (int ) TRUE;
11799 int _arg3 = (int ) 1;
11800 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
11801 char _ptemp[128];
11802
11803 self = self;
11804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11805 return NULL;
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
11809
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) return NULL;
11812 } if (_result) {
11813 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
11814 _resultobj = Py_BuildValue("s",_ptemp);
11815 } else {
11816 Py_INCREF(Py_None);
11817 _resultobj = Py_None;
11818 }
11819 return _resultobj;
11820 }
11821
11822 #define delete_wxImageList(_swigobj) (delete _swigobj)
11823 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11824 PyObject * _resultobj;
11825 wxImageList * _arg0;
11826 PyObject * _argo0 = 0;
11827 char *_kwnames[] = { "self", NULL };
11828
11829 self = self;
11830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
11831 return NULL;
11832 if (_argo0) {
11833 if (_argo0 == Py_None) { _arg0 = NULL; }
11834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11836 return NULL;
11837 }
11838 }
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 delete_wxImageList(_arg0);
11842
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) return NULL;
11845 } Py_INCREF(Py_None);
11846 _resultobj = Py_None;
11847 return _resultobj;
11848 }
11849
11850 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11851 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
11852 PyObject * _resultobj;
11853 int _result;
11854 wxImageList * _arg0;
11855 wxBitmap * _arg1;
11856 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11857 PyObject * _argo0 = 0;
11858 PyObject * _argo1 = 0;
11859 PyObject * _argo2 = 0;
11860 char *_kwnames[] = { "self","bitmap","mask", NULL };
11861
11862 self = self;
11863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
11864 return NULL;
11865 if (_argo0) {
11866 if (_argo0 == Py_None) { _arg0 = NULL; }
11867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11869 return NULL;
11870 }
11871 }
11872 if (_argo1) {
11873 if (_argo1 == Py_None) { _arg1 = NULL; }
11874 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11875 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11876 return NULL;
11877 }
11878 }
11879 if (_argo2) {
11880 if (_argo2 == Py_None) { _arg2 = NULL; }
11881 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11882 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11883 return NULL;
11884 }
11885 }
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) return NULL;
11892 } _resultobj = Py_BuildValue("i",_result);
11893 return _resultobj;
11894 }
11895
11896 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11897 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
11898 PyObject * _resultobj;
11899 int _result;
11900 wxImageList * _arg0;
11901 wxBitmap * _arg1;
11902 wxColour * _arg2;
11903 PyObject * _argo0 = 0;
11904 PyObject * _argo1 = 0;
11905 wxColour temp;
11906 PyObject * _obj2 = 0;
11907 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
11908
11909 self = self;
11910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
11911 return NULL;
11912 if (_argo0) {
11913 if (_argo0 == Py_None) { _arg0 = NULL; }
11914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11916 return NULL;
11917 }
11918 }
11919 if (_argo1) {
11920 if (_argo1 == Py_None) { _arg1 = NULL; }
11921 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11922 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11923 return NULL;
11924 }
11925 }
11926 {
11927 _arg2 = &temp;
11928 if (! wxColour_helper(_obj2, &_arg2))
11929 return NULL;
11930 }
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
11934
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) return NULL;
11937 } _resultobj = Py_BuildValue("i",_result);
11938 return _resultobj;
11939 }
11940
11941 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11942 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11943 PyObject * _resultobj;
11944 int _result;
11945 wxImageList * _arg0;
11946 wxIcon * _arg1;
11947 PyObject * _argo0 = 0;
11948 PyObject * _argo1 = 0;
11949 char *_kwnames[] = { "self","icon", NULL };
11950
11951 self = self;
11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
11953 return NULL;
11954 if (_argo0) {
11955 if (_argo0 == Py_None) { _arg0 = NULL; }
11956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11958 return NULL;
11959 }
11960 }
11961 if (_argo1) {
11962 if (_argo1 == Py_None) { _arg1 = NULL; }
11963 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
11964 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11965 return NULL;
11966 }
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) return NULL;
11974 } _resultobj = Py_BuildValue("i",_result);
11975 return _resultobj;
11976 }
11977
11978 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11979 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11980 PyObject * _resultobj;
11981 bool _result;
11982 wxImageList * _arg0;
11983 int _arg1;
11984 wxBitmap * _arg2;
11985 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
11986 PyObject * _argo0 = 0;
11987 PyObject * _argo2 = 0;
11988 PyObject * _argo3 = 0;
11989 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
11990
11991 self = self;
11992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
11993 return NULL;
11994 if (_argo0) {
11995 if (_argo0 == Py_None) { _arg0 = NULL; }
11996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11998 return NULL;
11999 }
12000 }
12001 if (_argo2) {
12002 if (_argo2 == Py_None) { _arg2 = NULL; }
12003 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
12004 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
12005 return NULL;
12006 }
12007 }
12008 if (_argo3) {
12009 if (_argo3 == Py_None) { _arg3 = NULL; }
12010 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
12011 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
12012 return NULL;
12013 }
12014 }
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
12018
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) return NULL;
12021 } _resultobj = Py_BuildValue("i",_result);
12022 return _resultobj;
12023 }
12024
12025 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
12026 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
12027 PyObject * _resultobj;
12028 bool _result;
12029 wxImageList * _arg0;
12030 int _arg1;
12031 wxDC * _arg2;
12032 int _arg3;
12033 int _arg4;
12034 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
12035 bool _arg6 = (bool ) FALSE;
12036 PyObject * _argo0 = 0;
12037 PyObject * _argo2 = 0;
12038 int tempbool6 = (int) FALSE;
12039 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
12040
12041 self = self;
12042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
12043 return NULL;
12044 if (_argo0) {
12045 if (_argo0 == Py_None) { _arg0 = NULL; }
12046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
12048 return NULL;
12049 }
12050 }
12051 if (_argo2) {
12052 if (_argo2 == Py_None) { _arg2 = NULL; }
12053 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
12054 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
12055 return NULL;
12056 }
12057 }
12058 _arg6 = (bool ) tempbool6;
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
12062
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) return NULL;
12065 } _resultobj = Py_BuildValue("i",_result);
12066 return _resultobj;
12067 }
12068
12069 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
12070 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12071 PyObject * _resultobj;
12072 int _result;
12073 wxImageList * _arg0;
12074 PyObject * _argo0 = 0;
12075 char *_kwnames[] = { "self", NULL };
12076
12077 self = self;
12078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
12079 return NULL;
12080 if (_argo0) {
12081 if (_argo0 == Py_None) { _arg0 = NULL; }
12082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
12084 return NULL;
12085 }
12086 }
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 _result = (int )wxImageList_GetImageCount(_arg0);
12090
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) return NULL;
12093 } _resultobj = Py_BuildValue("i",_result);
12094 return _resultobj;
12095 }
12096
12097 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
12098 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
12099 PyObject * _resultobj;
12100 bool _result;
12101 wxImageList * _arg0;
12102 int _arg1;
12103 PyObject * _argo0 = 0;
12104 char *_kwnames[] = { "self","index", NULL };
12105
12106 self = self;
12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
12108 return NULL;
12109 if (_argo0) {
12110 if (_argo0 == Py_None) { _arg0 = NULL; }
12111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
12113 return NULL;
12114 }
12115 }
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 _result = (bool )wxImageList_Remove(_arg0,_arg1);
12119
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) return NULL;
12122 } _resultobj = Py_BuildValue("i",_result);
12123 return _resultobj;
12124 }
12125
12126 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
12127 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
12128 PyObject * _resultobj;
12129 bool _result;
12130 wxImageList * _arg0;
12131 PyObject * _argo0 = 0;
12132 char *_kwnames[] = { "self", NULL };
12133
12134 self = self;
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
12136 return NULL;
12137 if (_argo0) {
12138 if (_argo0 == Py_None) { _arg0 = NULL; }
12139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
12141 return NULL;
12142 }
12143 }
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 _result = (bool )wxImageList_RemoveAll(_arg0);
12147
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) return NULL;
12150 } _resultobj = Py_BuildValue("i",_result);
12151 return _resultobj;
12152 }
12153
12154 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
12155 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12156 PyObject * _resultobj;
12157 wxImageList * _arg0;
12158 int _arg1;
12159 int * _arg2;
12160 int temp;
12161 int * _arg3;
12162 int temp0;
12163 PyObject * _argo0 = 0;
12164 char *_kwnames[] = { "self","index", NULL };
12165
12166 self = self;
12167 {
12168 _arg2 = &temp;
12169 }
12170 {
12171 _arg3 = &temp0;
12172 }
12173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
12174 return NULL;
12175 if (_argo0) {
12176 if (_argo0 == Py_None) { _arg0 = NULL; }
12177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
12178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
12179 return NULL;
12180 }
12181 }
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
12185
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) return NULL;
12188 } Py_INCREF(Py_None);
12189 _resultobj = Py_None;
12190 {
12191 PyObject *o;
12192 o = PyInt_FromLong((long) (*_arg2));
12193 _resultobj = t_output_helper(_resultobj, o);
12194 }
12195 {
12196 PyObject *o;
12197 o = PyInt_FromLong((long) (*_arg3));
12198 _resultobj = t_output_helper(_resultobj, o);
12199 }
12200 return _resultobj;
12201 }
12202
12203 static void *SwigwxRegionTowxGDIObject(void *ptr) {
12204 wxRegion *src;
12205 wxGDIObject *dest;
12206 src = (wxRegion *) ptr;
12207 dest = (wxGDIObject *) src;
12208 return (void *) dest;
12209 }
12210
12211 static void *SwigwxRegionTowxObject(void *ptr) {
12212 wxRegion *src;
12213 wxObject *dest;
12214 src = (wxRegion *) ptr;
12215 dest = (wxObject *) src;
12216 return (void *) dest;
12217 }
12218
12219 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12220 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12221 PyObject * _resultobj;
12222 wxRegion * _result;
12223 long _arg0 = (long ) 0;
12224 long _arg1 = (long ) 0;
12225 long _arg2 = (long ) 0;
12226 long _arg3 = (long ) 0;
12227 char *_kwnames[] = { "x","y","width","height", NULL };
12228 char _ptemp[128];
12229
12230 self = self;
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
12232 return NULL;
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
12236
12237 wxPyEndAllowThreads(__tstate);
12238 if (PyErr_Occurred()) return NULL;
12239 } if (_result) {
12240 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
12241 _resultobj = Py_BuildValue("s",_ptemp);
12242 } else {
12243 Py_INCREF(Py_None);
12244 _resultobj = Py_None;
12245 }
12246 return _resultobj;
12247 }
12248
12249 #define delete_wxRegion(_swigobj) (delete _swigobj)
12250 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12251 PyObject * _resultobj;
12252 wxRegion * _arg0;
12253 PyObject * _argo0 = 0;
12254 char *_kwnames[] = { "self", NULL };
12255
12256 self = self;
12257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
12258 return NULL;
12259 if (_argo0) {
12260 if (_argo0 == Py_None) { _arg0 = NULL; }
12261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12263 return NULL;
12264 }
12265 }
12266 {
12267 PyThreadState* __tstate = wxPyBeginAllowThreads();
12268 delete_wxRegion(_arg0);
12269
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) return NULL;
12272 } Py_INCREF(Py_None);
12273 _resultobj = Py_None;
12274 return _resultobj;
12275 }
12276
12277 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12278 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12279 PyObject * _resultobj;
12280 wxRegion * _arg0;
12281 PyObject * _argo0 = 0;
12282 char *_kwnames[] = { "self", NULL };
12283
12284 self = self;
12285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
12286 return NULL;
12287 if (_argo0) {
12288 if (_argo0 == Py_None) { _arg0 = NULL; }
12289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12291 return NULL;
12292 }
12293 }
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 wxRegion_Clear(_arg0);
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) return NULL;
12300 } Py_INCREF(Py_None);
12301 _resultobj = Py_None;
12302 return _resultobj;
12303 }
12304
12305 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12306 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
12307 PyObject * _resultobj;
12308 bool _result;
12309 wxRegion * _arg0;
12310 wxCoord _arg1;
12311 wxCoord _arg2;
12312 PyObject * _argo0 = 0;
12313 char *_kwnames[] = { "self","x","y", NULL };
12314
12315 self = self;
12316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
12317 return NULL;
12318 if (_argo0) {
12319 if (_argo0 == Py_None) { _arg0 = NULL; }
12320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12322 return NULL;
12323 }
12324 }
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) return NULL;
12331 } _resultobj = Py_BuildValue("i",_result);
12332 return _resultobj;
12333 }
12334
12335 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12336 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
12337 PyObject * _resultobj;
12338 wxRegionContain _result;
12339 wxRegion * _arg0;
12340 long _arg1;
12341 long _arg2;
12342 PyObject * _argo0 = 0;
12343 char *_kwnames[] = { "self","x","y", NULL };
12344
12345 self = self;
12346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
12347 return NULL;
12348 if (_argo0) {
12349 if (_argo0 == Py_None) { _arg0 = NULL; }
12350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12352 return NULL;
12353 }
12354 }
12355 {
12356 PyThreadState* __tstate = wxPyBeginAllowThreads();
12357 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
12358
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) return NULL;
12361 } _resultobj = Py_BuildValue("i",_result);
12362 return _resultobj;
12363 }
12364
12365 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12366 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12367 PyObject * _resultobj;
12368 wxRegionContain _result;
12369 wxRegion * _arg0;
12370 wxPoint * _arg1;
12371 PyObject * _argo0 = 0;
12372 wxPoint temp;
12373 PyObject * _obj1 = 0;
12374 char *_kwnames[] = { "self","pt", NULL };
12375
12376 self = self;
12377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
12378 return NULL;
12379 if (_argo0) {
12380 if (_argo0 == Py_None) { _arg0 = NULL; }
12381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12383 return NULL;
12384 }
12385 }
12386 {
12387 _arg1 = &temp;
12388 if (! wxPoint_helper(_obj1, &_arg1))
12389 return NULL;
12390 }
12391 {
12392 PyThreadState* __tstate = wxPyBeginAllowThreads();
12393 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
12394
12395 wxPyEndAllowThreads(__tstate);
12396 if (PyErr_Occurred()) return NULL;
12397 } _resultobj = Py_BuildValue("i",_result);
12398 return _resultobj;
12399 }
12400
12401 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12402 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12403 PyObject * _resultobj;
12404 wxRegionContain _result;
12405 wxRegion * _arg0;
12406 wxRect * _arg1;
12407 PyObject * _argo0 = 0;
12408 wxRect temp;
12409 PyObject * _obj1 = 0;
12410 char *_kwnames[] = { "self","rect", NULL };
12411
12412 self = self;
12413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
12414 return NULL;
12415 if (_argo0) {
12416 if (_argo0 == Py_None) { _arg0 = NULL; }
12417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12419 return NULL;
12420 }
12421 }
12422 {
12423 _arg1 = &temp;
12424 if (! wxRect_helper(_obj1, &_arg1))
12425 return NULL;
12426 }
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) return NULL;
12433 } _resultobj = Py_BuildValue("i",_result);
12434 return _resultobj;
12435 }
12436
12437 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12438 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
12439 PyObject * _resultobj;
12440 wxRegionContain _result;
12441 wxRegion * _arg0;
12442 long _arg1;
12443 long _arg2;
12444 long _arg3;
12445 long _arg4;
12446 PyObject * _argo0 = 0;
12447 char *_kwnames[] = { "self","x","y","w","h", NULL };
12448
12449 self = self;
12450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12451 return NULL;
12452 if (_argo0) {
12453 if (_argo0 == Py_None) { _arg0 = NULL; }
12454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12456 return NULL;
12457 }
12458 }
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
12462
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) return NULL;
12465 } _resultobj = Py_BuildValue("i",_result);
12466 return _resultobj;
12467 }
12468
12469 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12470 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12471 PyObject * _resultobj;
12472 wxRect * _result;
12473 wxRegion * _arg0;
12474 PyObject * _argo0 = 0;
12475 char *_kwnames[] = { "self", NULL };
12476 char _ptemp[128];
12477
12478 self = self;
12479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
12480 return NULL;
12481 if (_argo0) {
12482 if (_argo0 == Py_None) { _arg0 = NULL; }
12483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12485 return NULL;
12486 }
12487 }
12488 {
12489 PyThreadState* __tstate = wxPyBeginAllowThreads();
12490 _result = new wxRect (wxRegion_GetBox(_arg0));
12491
12492 wxPyEndAllowThreads(__tstate);
12493 if (PyErr_Occurred()) return NULL;
12494 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12495 _resultobj = Py_BuildValue("s",_ptemp);
12496 return _resultobj;
12497 }
12498
12499 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12500 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
12501 PyObject * _resultobj;
12502 bool _result;
12503 wxRegion * _arg0;
12504 long _arg1;
12505 long _arg2;
12506 long _arg3;
12507 long _arg4;
12508 PyObject * _argo0 = 0;
12509 char *_kwnames[] = { "self","x","y","width","height", NULL };
12510
12511 self = self;
12512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12513 return NULL;
12514 if (_argo0) {
12515 if (_argo0 == Py_None) { _arg0 = NULL; }
12516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12518 return NULL;
12519 }
12520 }
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) return NULL;
12527 } _resultobj = Py_BuildValue("i",_result);
12528 return _resultobj;
12529 }
12530
12531 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12532 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12533 PyObject * _resultobj;
12534 bool _result;
12535 wxRegion * _arg0;
12536 wxRect * _arg1;
12537 PyObject * _argo0 = 0;
12538 wxRect temp;
12539 PyObject * _obj1 = 0;
12540 char *_kwnames[] = { "self","rect", NULL };
12541
12542 self = self;
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
12544 return NULL;
12545 if (_argo0) {
12546 if (_argo0 == Py_None) { _arg0 = NULL; }
12547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12549 return NULL;
12550 }
12551 }
12552 {
12553 _arg1 = &temp;
12554 if (! wxRect_helper(_obj1, &_arg1))
12555 return NULL;
12556 }
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) return NULL;
12563 } _resultobj = Py_BuildValue("i",_result);
12564 return _resultobj;
12565 }
12566
12567 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12568 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12569 PyObject * _resultobj;
12570 bool _result;
12571 wxRegion * _arg0;
12572 wxRegion * _arg1;
12573 PyObject * _argo0 = 0;
12574 PyObject * _argo1 = 0;
12575 char *_kwnames[] = { "self","region", NULL };
12576
12577 self = self;
12578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
12579 return NULL;
12580 if (_argo0) {
12581 if (_argo0 == Py_None) { _arg0 = NULL; }
12582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12584 return NULL;
12585 }
12586 }
12587 if (_argo1) {
12588 if (_argo1 == Py_None) { _arg1 = NULL; }
12589 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12590 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12591 return NULL;
12592 }
12593 }
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
12597
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) return NULL;
12600 } _resultobj = Py_BuildValue("i",_result);
12601 return _resultobj;
12602 }
12603
12604 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12605 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
12606 PyObject * _resultobj;
12607 bool _result;
12608 wxRegion * _arg0;
12609 PyObject * _argo0 = 0;
12610 char *_kwnames[] = { "self", NULL };
12611
12612 self = self;
12613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
12614 return NULL;
12615 if (_argo0) {
12616 if (_argo0 == Py_None) { _arg0 = NULL; }
12617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12619 return NULL;
12620 }
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 _result = (bool )wxRegion_IsEmpty(_arg0);
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) return NULL;
12628 } _resultobj = Py_BuildValue("i",_result);
12629 return _resultobj;
12630 }
12631
12632 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12633 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
12634 PyObject * _resultobj;
12635 bool _result;
12636 wxRegion * _arg0;
12637 long _arg1;
12638 long _arg2;
12639 long _arg3;
12640 long _arg4;
12641 PyObject * _argo0 = 0;
12642 char *_kwnames[] = { "self","x","y","width","height", NULL };
12643
12644 self = self;
12645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12646 return NULL;
12647 if (_argo0) {
12648 if (_argo0 == Py_None) { _arg0 = NULL; }
12649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12651 return NULL;
12652 }
12653 }
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
12656 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
12657
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) return NULL;
12660 } _resultobj = Py_BuildValue("i",_result);
12661 return _resultobj;
12662 }
12663
12664 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12665 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12666 PyObject * _resultobj;
12667 bool _result;
12668 wxRegion * _arg0;
12669 wxRect * _arg1;
12670 PyObject * _argo0 = 0;
12671 wxRect temp;
12672 PyObject * _obj1 = 0;
12673 char *_kwnames[] = { "self","rect", NULL };
12674
12675 self = self;
12676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
12677 return NULL;
12678 if (_argo0) {
12679 if (_argo0 == Py_None) { _arg0 = NULL; }
12680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12682 return NULL;
12683 }
12684 }
12685 {
12686 _arg1 = &temp;
12687 if (! wxRect_helper(_obj1, &_arg1))
12688 return NULL;
12689 }
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
12693
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) return NULL;
12696 } _resultobj = Py_BuildValue("i",_result);
12697 return _resultobj;
12698 }
12699
12700 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12701 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12702 PyObject * _resultobj;
12703 bool _result;
12704 wxRegion * _arg0;
12705 wxRegion * _arg1;
12706 PyObject * _argo0 = 0;
12707 PyObject * _argo1 = 0;
12708 char *_kwnames[] = { "self","region", NULL };
12709
12710 self = self;
12711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
12712 return NULL;
12713 if (_argo0) {
12714 if (_argo0 == Py_None) { _arg0 = NULL; }
12715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12717 return NULL;
12718 }
12719 }
12720 if (_argo1) {
12721 if (_argo1 == Py_None) { _arg1 = NULL; }
12722 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12723 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12724 return NULL;
12725 }
12726 }
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) return NULL;
12733 } _resultobj = Py_BuildValue("i",_result);
12734 return _resultobj;
12735 }
12736
12737 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12738 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
12739 PyObject * _resultobj;
12740 bool _result;
12741 wxRegion * _arg0;
12742 long _arg1;
12743 long _arg2;
12744 long _arg3;
12745 long _arg4;
12746 PyObject * _argo0 = 0;
12747 char *_kwnames[] = { "self","x","y","width","height", NULL };
12748
12749 self = self;
12750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12751 return NULL;
12752 if (_argo0) {
12753 if (_argo0 == Py_None) { _arg0 = NULL; }
12754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12756 return NULL;
12757 }
12758 }
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
12762
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) return NULL;
12765 } _resultobj = Py_BuildValue("i",_result);
12766 return _resultobj;
12767 }
12768
12769 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12770 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12771 PyObject * _resultobj;
12772 bool _result;
12773 wxRegion * _arg0;
12774 wxRect * _arg1;
12775 PyObject * _argo0 = 0;
12776 wxRect temp;
12777 PyObject * _obj1 = 0;
12778 char *_kwnames[] = { "self","rect", NULL };
12779
12780 self = self;
12781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
12782 return NULL;
12783 if (_argo0) {
12784 if (_argo0 == Py_None) { _arg0 = NULL; }
12785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12787 return NULL;
12788 }
12789 }
12790 {
12791 _arg1 = &temp;
12792 if (! wxRect_helper(_obj1, &_arg1))
12793 return NULL;
12794 }
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
12798
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) return NULL;
12801 } _resultobj = Py_BuildValue("i",_result);
12802 return _resultobj;
12803 }
12804
12805 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12806 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12807 PyObject * _resultobj;
12808 bool _result;
12809 wxRegion * _arg0;
12810 wxRegion * _arg1;
12811 PyObject * _argo0 = 0;
12812 PyObject * _argo1 = 0;
12813 char *_kwnames[] = { "self","region", NULL };
12814
12815 self = self;
12816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
12817 return NULL;
12818 if (_argo0) {
12819 if (_argo0 == Py_None) { _arg0 = NULL; }
12820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12822 return NULL;
12823 }
12824 }
12825 if (_argo1) {
12826 if (_argo1 == Py_None) { _arg1 = NULL; }
12827 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12828 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12829 return NULL;
12830 }
12831 }
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
12835
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) return NULL;
12838 } _resultobj = Py_BuildValue("i",_result);
12839 return _resultobj;
12840 }
12841
12842 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12843 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
12844 PyObject * _resultobj;
12845 bool _result;
12846 wxRegion * _arg0;
12847 long _arg1;
12848 long _arg2;
12849 long _arg3;
12850 long _arg4;
12851 PyObject * _argo0 = 0;
12852 char *_kwnames[] = { "self","x","y","width","height", NULL };
12853
12854 self = self;
12855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12856 return NULL;
12857 if (_argo0) {
12858 if (_argo0 == Py_None) { _arg0 = NULL; }
12859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12861 return NULL;
12862 }
12863 }
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
12867
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) return NULL;
12870 } _resultobj = Py_BuildValue("i",_result);
12871 return _resultobj;
12872 }
12873
12874 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12875 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12876 PyObject * _resultobj;
12877 bool _result;
12878 wxRegion * _arg0;
12879 wxRect * _arg1;
12880 PyObject * _argo0 = 0;
12881 wxRect temp;
12882 PyObject * _obj1 = 0;
12883 char *_kwnames[] = { "self","rect", NULL };
12884
12885 self = self;
12886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
12887 return NULL;
12888 if (_argo0) {
12889 if (_argo0 == Py_None) { _arg0 = NULL; }
12890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12892 return NULL;
12893 }
12894 }
12895 {
12896 _arg1 = &temp;
12897 if (! wxRect_helper(_obj1, &_arg1))
12898 return NULL;
12899 }
12900 {
12901 PyThreadState* __tstate = wxPyBeginAllowThreads();
12902 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
12903
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) return NULL;
12906 } _resultobj = Py_BuildValue("i",_result);
12907 return _resultobj;
12908 }
12909
12910 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12911 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12912 PyObject * _resultobj;
12913 bool _result;
12914 wxRegion * _arg0;
12915 wxRegion * _arg1;
12916 PyObject * _argo0 = 0;
12917 PyObject * _argo1 = 0;
12918 char *_kwnames[] = { "self","region", NULL };
12919
12920 self = self;
12921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
12922 return NULL;
12923 if (_argo0) {
12924 if (_argo0 == Py_None) { _arg0 = NULL; }
12925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12927 return NULL;
12928 }
12929 }
12930 if (_argo1) {
12931 if (_argo1 == Py_None) { _arg1 = NULL; }
12932 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12933 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12934 return NULL;
12935 }
12936 }
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) return NULL;
12943 } _resultobj = Py_BuildValue("i",_result);
12944 return _resultobj;
12945 }
12946
12947 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
12948 wxRegionIterator *src;
12949 wxObject *dest;
12950 src = (wxRegionIterator *) ptr;
12951 dest = (wxObject *) src;
12952 return (void *) dest;
12953 }
12954
12955 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12956 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12957 PyObject * _resultobj;
12958 wxRegionIterator * _result;
12959 wxRegion * _arg0;
12960 PyObject * _argo0 = 0;
12961 char *_kwnames[] = { "region", NULL };
12962 char _ptemp[128];
12963
12964 self = self;
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
12966 return NULL;
12967 if (_argo0) {
12968 if (_argo0 == Py_None) { _arg0 = NULL; }
12969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12971 return NULL;
12972 }
12973 }
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
12977
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) return NULL;
12980 } if (_result) {
12981 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12982 _resultobj = Py_BuildValue("s",_ptemp);
12983 } else {
12984 Py_INCREF(Py_None);
12985 _resultobj = Py_None;
12986 }
12987 return _resultobj;
12988 }
12989
12990 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12991 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12992 PyObject * _resultobj;
12993 wxRegionIterator * _arg0;
12994 PyObject * _argo0 = 0;
12995 char *_kwnames[] = { "self", NULL };
12996
12997 self = self;
12998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12999 return NULL;
13000 if (_argo0) {
13001 if (_argo0 == Py_None) { _arg0 = NULL; }
13002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
13004 return NULL;
13005 }
13006 }
13007 {
13008 PyThreadState* __tstate = wxPyBeginAllowThreads();
13009 delete_wxRegionIterator(_arg0);
13010
13011 wxPyEndAllowThreads(__tstate);
13012 if (PyErr_Occurred()) return NULL;
13013 } Py_INCREF(Py_None);
13014 _resultobj = Py_None;
13015 return _resultobj;
13016 }
13017
13018 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
13019 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
13020 PyObject * _resultobj;
13021 long _result;
13022 wxRegionIterator * _arg0;
13023 PyObject * _argo0 = 0;
13024 char *_kwnames[] = { "self", NULL };
13025
13026 self = self;
13027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
13028 return NULL;
13029 if (_argo0) {
13030 if (_argo0 == Py_None) { _arg0 = NULL; }
13031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
13033 return NULL;
13034 }
13035 }
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 _result = (long )wxRegionIterator_GetX(_arg0);
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) return NULL;
13042 } _resultobj = Py_BuildValue("l",_result);
13043 return _resultobj;
13044 }
13045
13046 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
13047 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
13048 PyObject * _resultobj;
13049 long _result;
13050 wxRegionIterator * _arg0;
13051 PyObject * _argo0 = 0;
13052 char *_kwnames[] = { "self", NULL };
13053
13054 self = self;
13055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
13056 return NULL;
13057 if (_argo0) {
13058 if (_argo0 == Py_None) { _arg0 = NULL; }
13059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
13061 return NULL;
13062 }
13063 }
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 _result = (long )wxRegionIterator_GetY(_arg0);
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) return NULL;
13070 } _resultobj = Py_BuildValue("l",_result);
13071 return _resultobj;
13072 }
13073
13074 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
13075 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
13076 PyObject * _resultobj;
13077 long _result;
13078 wxRegionIterator * _arg0;
13079 PyObject * _argo0 = 0;
13080 char *_kwnames[] = { "self", NULL };
13081
13082 self = self;
13083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
13084 return NULL;
13085 if (_argo0) {
13086 if (_argo0 == Py_None) { _arg0 = NULL; }
13087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
13089 return NULL;
13090 }
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 _result = (long )wxRegionIterator_GetW(_arg0);
13095
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) return NULL;
13098 } _resultobj = Py_BuildValue("l",_result);
13099 return _resultobj;
13100 }
13101
13102 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
13103 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13104 PyObject * _resultobj;
13105 long _result;
13106 wxRegionIterator * _arg0;
13107 PyObject * _argo0 = 0;
13108 char *_kwnames[] = { "self", NULL };
13109
13110 self = self;
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
13112 return NULL;
13113 if (_argo0) {
13114 if (_argo0 == Py_None) { _arg0 = NULL; }
13115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
13117 return NULL;
13118 }
13119 }
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 _result = (long )wxRegionIterator_GetWidth(_arg0);
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) return NULL;
13126 } _resultobj = Py_BuildValue("l",_result);
13127 return _resultobj;
13128 }
13129
13130 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
13131 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
13132 PyObject * _resultobj;
13133 long _result;
13134 wxRegionIterator * _arg0;
13135 PyObject * _argo0 = 0;
13136 char *_kwnames[] = { "self", NULL };
13137
13138 self = self;
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
13140 return NULL;
13141 if (_argo0) {
13142 if (_argo0 == Py_None) { _arg0 = NULL; }
13143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
13145 return NULL;
13146 }
13147 }
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 _result = (long )wxRegionIterator_GetH(_arg0);
13151
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) return NULL;
13154 } _resultobj = Py_BuildValue("l",_result);
13155 return _resultobj;
13156 }
13157
13158 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
13159 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject * _resultobj;
13161 long _result;
13162 wxRegionIterator * _arg0;
13163 PyObject * _argo0 = 0;
13164 char *_kwnames[] = { "self", NULL };
13165
13166 self = self;
13167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
13168 return NULL;
13169 if (_argo0) {
13170 if (_argo0 == Py_None) { _arg0 = NULL; }
13171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
13173 return NULL;
13174 }
13175 }
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 _result = (long )wxRegionIterator_GetHeight(_arg0);
13179
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) return NULL;
13182 } _resultobj = Py_BuildValue("l",_result);
13183 return _resultobj;
13184 }
13185
13186 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
13187 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13188 PyObject * _resultobj;
13189 wxRect * _result;
13190 wxRegionIterator * _arg0;
13191 PyObject * _argo0 = 0;
13192 char *_kwnames[] = { "self", NULL };
13193 char _ptemp[128];
13194
13195 self = self;
13196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
13197 return NULL;
13198 if (_argo0) {
13199 if (_argo0 == Py_None) { _arg0 = NULL; }
13200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
13202 return NULL;
13203 }
13204 }
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
13208
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) return NULL;
13211 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
13212 _resultobj = Py_BuildValue("s",_ptemp);
13213 return _resultobj;
13214 }
13215
13216 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
13217 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
13218 PyObject * _resultobj;
13219 bool _result;
13220 wxRegionIterator * _arg0;
13221 PyObject * _argo0 = 0;
13222 char *_kwnames[] = { "self", NULL };
13223
13224 self = self;
13225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
13226 return NULL;
13227 if (_argo0) {
13228 if (_argo0 == Py_None) { _arg0 = NULL; }
13229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
13231 return NULL;
13232 }
13233 }
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 _result = (bool )wxRegionIterator_HaveRects(_arg0);
13237
13238 wxPyEndAllowThreads(__tstate);
13239 if (PyErr_Occurred()) return NULL;
13240 } _resultobj = Py_BuildValue("i",_result);
13241 return _resultobj;
13242 }
13243
13244 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
13245 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
13246 PyObject * _resultobj;
13247 wxRegionIterator * _arg0;
13248 PyObject * _argo0 = 0;
13249 char *_kwnames[] = { "self", NULL };
13250
13251 self = self;
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
13253 return NULL;
13254 if (_argo0) {
13255 if (_argo0 == Py_None) { _arg0 = NULL; }
13256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13258 return NULL;
13259 }
13260 }
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 wxRegionIterator_Reset(_arg0);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) return NULL;
13267 } Py_INCREF(Py_None);
13268 _resultobj = Py_None;
13269 return _resultobj;
13270 }
13271
13272 static void wxRegionIterator_Next(wxRegionIterator *self) {
13273 (*self) ++;
13274 }
13275 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
13276 PyObject * _resultobj;
13277 wxRegionIterator * _arg0;
13278 PyObject * _argo0 = 0;
13279 char *_kwnames[] = { "self", NULL };
13280
13281 self = self;
13282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
13283 return NULL;
13284 if (_argo0) {
13285 if (_argo0 == Py_None) { _arg0 = NULL; }
13286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13288 return NULL;
13289 }
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 wxRegionIterator_Next(_arg0);
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) return NULL;
13297 } Py_INCREF(Py_None);
13298 _resultobj = Py_None;
13299 return _resultobj;
13300 }
13301
13302 static PyMethodDef gdicMethods[] = {
13303 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
13304 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
13305 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
13306 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
13307 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
13308 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
13309 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
13310 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
13311 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
13312 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
13313 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13314 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13315 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
13316 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
13317 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
13318 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
13319 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
13320 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
13321 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
13322 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
13323 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
13324 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
13325 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
13326 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
13327 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
13328 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
13329 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
13330 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
13331 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
13332 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
13333 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
13334 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
13335 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
13336 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
13337 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
13338 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
13339 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
13340 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
13341 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
13342 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
13343 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
13344 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
13345 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
13346 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
13347 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
13348 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
13349 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
13350 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
13351 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
13352 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
13353 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
13354 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
13355 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
13356 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
13357 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
13358 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
13359 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
13360 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
13361 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13362 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13363 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
13364 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
13365 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
13366 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13367 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13368 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
13369 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
13370 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
13371 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
13372 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
13373 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
13374 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
13375 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
13376 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
13377 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
13378 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13379 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13380 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
13381 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
13382 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13383 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13384 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13385 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
13386 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
13387 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
13388 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
13389 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
13390 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
13391 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
13392 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
13393 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
13394 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
13395 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
13396 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
13397 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
13398 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13399 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13400 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
13401 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
13402 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
13403 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
13404 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
13405 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
13406 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
13407 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13408 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
13409 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
13410 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
13411 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
13412 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
13413 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
13414 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
13415 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
13416 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
13417 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
13418 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
13419 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
13420 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
13421 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
13422 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
13423 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
13424 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
13425 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
13426 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
13427 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
13428 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
13429 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13430 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13431 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
13432 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
13433 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
13434 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
13435 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
13436 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
13437 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
13438 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
13439 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
13440 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
13441 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
13442 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
13443 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
13444 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
13445 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
13446 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
13447 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
13448 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
13449 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
13450 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
13451 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
13452 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
13453 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
13454 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
13455 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
13456 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
13457 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
13458 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
13459 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
13460 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
13461 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
13462 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
13463 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
13464 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
13465 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
13466 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
13467 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
13468 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
13469 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
13470 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
13471 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
13472 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
13473 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
13474 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
13475 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
13476 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
13477 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
13478 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
13479 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
13480 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
13481 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
13482 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
13483 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
13484 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13485 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13486 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13487 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
13488 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
13489 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13490 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
13491 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
13492 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
13493 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
13494 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
13495 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
13496 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
13497 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
13498 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
13499 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
13500 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
13501 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
13502 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
13503 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
13504 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
13505 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
13506 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
13507 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
13508 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
13509 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
13510 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
13511 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
13512 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
13513 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
13514 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
13515 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
13516 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
13517 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
13518 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13519 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13520 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
13521 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
13522 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
13523 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13524 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13525 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13526 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13527 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13528 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
13529 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
13530 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
13531 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13532 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13533 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
13534 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13535 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
13536 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13537 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13538 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13539 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
13540 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
13541 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
13542 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13543 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
13544 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
13545 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
13546 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
13547 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
13548 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
13549 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
13550 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
13551 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
13552 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
13553 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
13554 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
13555 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
13556 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
13557 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13558 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13559 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
13560 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
13561 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
13562 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
13563 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
13564 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13565 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
13566 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13567 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13568 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
13569 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
13570 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13571 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13572 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
13573 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13574 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13575 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
13576 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
13577 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13578 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
13579 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13580 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
13581 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
13582 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
13583 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
13584 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
13585 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
13586 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
13587 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
13588 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
13589 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
13590 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
13591 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
13592 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
13593 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
13594 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
13595 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
13596 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
13597 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
13598 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
13599 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
13600 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
13601 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
13602 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
13603 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
13604 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
13605 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
13606 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
13607 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
13608 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
13609 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
13610 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
13611 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
13612 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
13613 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
13614 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
13615 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
13616 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
13617 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
13618 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
13619 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
13620 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
13621 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
13622 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
13623 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
13624 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
13625 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
13626 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
13627 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
13628 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
13629 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
13630 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
13631 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
13632 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
13633 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
13634 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
13635 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
13636 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13637 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13638 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
13639 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
13640 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
13641 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13642 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13643 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
13644 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
13645 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
13646 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
13647 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
13648 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
13649 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
13650 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
13651 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
13652 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
13653 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
13654 { NULL, NULL }
13655 };
13656 #ifdef __cplusplus
13657 }
13658 #endif
13659 /*
13660 * This table is used by the pointer type-checker
13661 */
13662 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
13663 { "_signed_long","_long",0},
13664 { "_wxPrintQuality","_wxCoord",0},
13665 { "_wxPrintQuality","_int",0},
13666 { "_wxPrintQuality","_signed_int",0},
13667 { "_wxPrintQuality","_unsigned_int",0},
13668 { "_wxPrintQuality","_wxWindowID",0},
13669 { "_wxPrintQuality","_uint",0},
13670 { "_wxPrintQuality","_EBool",0},
13671 { "_wxPrintQuality","_size_t",0},
13672 { "_wxPrintQuality","_time_t",0},
13673 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
13674 { "_byte","_unsigned_char",0},
13675 { "_long","_unsigned_long",0},
13676 { "_long","_signed_long",0},
13677 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
13678 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
13679 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
13680 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
13681 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
13682 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
13683 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
13684 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
13685 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
13686 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
13687 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
13688 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
13689 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
13690 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
13691 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
13692 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
13693 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
13694 { "_size_t","_wxCoord",0},
13695 { "_size_t","_wxPrintQuality",0},
13696 { "_size_t","_time_t",0},
13697 { "_size_t","_unsigned_int",0},
13698 { "_size_t","_int",0},
13699 { "_size_t","_wxWindowID",0},
13700 { "_size_t","_uint",0},
13701 { "_uint","_wxCoord",0},
13702 { "_uint","_wxPrintQuality",0},
13703 { "_uint","_time_t",0},
13704 { "_uint","_size_t",0},
13705 { "_uint","_unsigned_int",0},
13706 { "_uint","_int",0},
13707 { "_uint","_wxWindowID",0},
13708 { "_wxChar","_char",0},
13709 { "_char","_wxChar",0},
13710 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
13711 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13712 { "_EBool","_wxCoord",0},
13713 { "_EBool","_wxPrintQuality",0},
13714 { "_EBool","_signed_int",0},
13715 { "_EBool","_int",0},
13716 { "_EBool","_wxWindowID",0},
13717 { "_unsigned_long","_long",0},
13718 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13719 { "_signed_int","_wxCoord",0},
13720 { "_signed_int","_wxPrintQuality",0},
13721 { "_signed_int","_EBool",0},
13722 { "_signed_int","_wxWindowID",0},
13723 { "_signed_int","_int",0},
13724 { "_WXTYPE","_short",0},
13725 { "_WXTYPE","_signed_short",0},
13726 { "_WXTYPE","_unsigned_short",0},
13727 { "_unsigned_short","_WXTYPE",0},
13728 { "_unsigned_short","_short",0},
13729 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
13730 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
13731 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
13732 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
13733 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
13734 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
13735 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
13736 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
13737 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
13738 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
13739 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
13740 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
13741 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
13742 { "_wxObject","_wxDC",SwigwxDCTowxObject},
13743 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
13744 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
13745 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
13746 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
13747 { "_wxObject","_wxPen",SwigwxPenTowxObject},
13748 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
13749 { "_wxObject","_wxColour",SwigwxColourTowxObject},
13750 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
13751 { "_wxObject","_wxFont",SwigwxFontTowxObject},
13752 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
13753 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
13754 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
13755 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
13756 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
13757 { "_signed_short","_WXTYPE",0},
13758 { "_signed_short","_short",0},
13759 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
13760 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
13761 { "_unsigned_char","_byte",0},
13762 { "_unsigned_int","_wxCoord",0},
13763 { "_unsigned_int","_wxPrintQuality",0},
13764 { "_unsigned_int","_time_t",0},
13765 { "_unsigned_int","_size_t",0},
13766 { "_unsigned_int","_uint",0},
13767 { "_unsigned_int","_wxWindowID",0},
13768 { "_unsigned_int","_int",0},
13769 { "_short","_WXTYPE",0},
13770 { "_short","_unsigned_short",0},
13771 { "_short","_signed_short",0},
13772 { "_wxWindowID","_wxCoord",0},
13773 { "_wxWindowID","_wxPrintQuality",0},
13774 { "_wxWindowID","_time_t",0},
13775 { "_wxWindowID","_size_t",0},
13776 { "_wxWindowID","_EBool",0},
13777 { "_wxWindowID","_uint",0},
13778 { "_wxWindowID","_int",0},
13779 { "_wxWindowID","_signed_int",0},
13780 { "_wxWindowID","_unsigned_int",0},
13781 { "_int","_wxCoord",0},
13782 { "_int","_wxPrintQuality",0},
13783 { "_int","_time_t",0},
13784 { "_int","_size_t",0},
13785 { "_int","_EBool",0},
13786 { "_int","_uint",0},
13787 { "_int","_wxWindowID",0},
13788 { "_int","_unsigned_int",0},
13789 { "_int","_signed_int",0},
13790 { "_time_t","_wxCoord",0},
13791 { "_time_t","_wxPrintQuality",0},
13792 { "_time_t","_unsigned_int",0},
13793 { "_time_t","_int",0},
13794 { "_time_t","_wxWindowID",0},
13795 { "_time_t","_uint",0},
13796 { "_time_t","_size_t",0},
13797 { "_wxCoord","_int",0},
13798 { "_wxCoord","_signed_int",0},
13799 { "_wxCoord","_unsigned_int",0},
13800 { "_wxCoord","_wxWindowID",0},
13801 { "_wxCoord","_uint",0},
13802 { "_wxCoord","_EBool",0},
13803 { "_wxCoord","_size_t",0},
13804 { "_wxCoord","_time_t",0},
13805 { "_wxCoord","_wxPrintQuality",0},
13806 {0,0,0}};
13807
13808 static PyObject *SWIG_globals;
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 SWIGEXPORT(void) initgdic() {
13813 PyObject *m, *d;
13814 SWIG_globals = SWIG_newvarlink();
13815 m = Py_InitModule("gdic", gdicMethods);
13816 d = PyModule_GetDict(m);
13817 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
13818 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
13819 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
13820 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
13821 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
13822 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
13823 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
13824 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
13825 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
13826 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
13827 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
13828 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
13829 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
13830 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
13831 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
13832 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
13833 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
13834 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
13835 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
13836 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
13837 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
13838 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
13839 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
13840 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
13841 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
13842 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
13843 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
13844 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
13845 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
13846 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
13847 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
13848 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
13849 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
13850 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
13851 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
13852 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
13853 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
13854 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
13855 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
13856 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
13857 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
13858 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
13859 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
13860 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
13861 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
13862 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
13863 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
13864 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
13865 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
13866 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
13867 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
13868 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
13869 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
13870 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
13871 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
13872 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
13873 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
13874 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
13875 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
13876 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
13877 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
13878 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
13879 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
13880 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
13881 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
13882 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
13883 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
13884 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
13885 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
13886 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
13887 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
13888 PyDict_SetItemString(d,"cvar", SWIG_globals);
13889 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
13890 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
13891 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
13892 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
13893 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
13894 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
13895 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
13896 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
13897 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
13898 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
13899 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
13900 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
13901 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
13902 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
13903 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
13904 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
13905 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
13906 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
13907 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
13908 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
13909 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
13910 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
13911 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
13912 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
13913 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
13914 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
13915 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
13916 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
13917 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
13918 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
13919 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
13920 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
13921 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
13922 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
13923 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
13924 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
13925 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
13926 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
13927 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
13928 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
13929 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
13930 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
13931 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
13932 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
13933 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
13934 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
13935 {
13936 int i;
13937 for (i = 0; _swig_mapping[i].n1; i++)
13938 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13939 }
13940 }