]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Some compilation fixes
[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
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97
98 static wxString wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
100
101 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
102 return new wxBitmap(width, height, depth);
103 }
104
105 static char** ConvertListOfStrings(PyObject* listOfStrings) {
106 char** cArray = NULL;
107 int count;
108
109 if (!PyList_Check(listOfStrings)) {
110 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
111 return NULL;
112 }
113 count = PyList_Size(listOfStrings);
114 cArray = new char*[count];
115
116 for(int x=0; x<count; x++) {
117 // TODO: Need some validation and error checking here
118 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
119 }
120 return cArray;
121 }
122
123
124 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 wxBitmap* bmp;
127
128 cArray = ConvertListOfStrings(listOfStrings);
129 if (! cArray)
130 return NULL;
131 bmp = new wxBitmap(cArray);
132 delete [] cArray;
133 return bmp;
134 }
135
136
137 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
138 return new wxBitmap(icon);
139 }
140
141
142 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
143 return new wxBitmap(bits, width, height, depth);
144 }
145
146
147 // #ifdef __WXMSW__
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return NULL;
153 // }
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155 // }
156 // #endif
157
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
176 }
177 // Alternate 'constructor'
178 wxCursor* wxPyStockCursor(int id) {
179 return new wxCursor(id);
180 }
181 // Alternate 'constructor'
182 wxColour* wxNamedColour(const wxString& colorName) {
183 return new wxColour(colorName);
184 }
185
186 class wxPyPen : public wxPen {
187 public:
188 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
189 : wxPen(colour, width, style)
190 { m_dash = NULL; }
191 ~wxPyPen() {
192 if (m_dash)
193 delete [] m_dash;
194 }
195
196 void SetDashes(int nb_dashes, const wxDash *dash) {
197 if (m_dash)
198 delete [] m_dash;
199 m_dash = new wxDash[nb_dashes];
200 for (int i=0; i<nb_dashes; i++) {
201 m_dash[i] = dash[i];
202 }
203 wxPen::SetDashes(nb_dashes, m_dash);
204 }
205
206 private:
207 wxDash* m_dash;
208 };
209
210 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
211 *x1 = dc->MinX();
212 *y1 = dc->MinY();
213 *x2 = dc->MaxX();
214 *y2 = dc->MaxY();
215 }
216 // Alternate 'constructor'
217 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
218 return new wxMemoryDC(oldDC);
219 }
220
221 #include <wx/metafile.h>
222
223 #if 0
224 extern wxFont * wxNORMAL_FONT;
225 extern wxFont * wxSMALL_FONT;
226 extern wxFont * wxITALIC_FONT;
227 extern wxFont * wxSWISS_FONT;
228 extern wxPen * wxRED_PEN;
229 extern wxPen * wxCYAN_PEN;
230 extern wxPen * wxGREEN_PEN;
231 extern wxPen * wxBLACK_PEN;
232 extern wxPen * wxWHITE_PEN;
233 extern wxPen * wxTRANSPARENT_PEN;
234 extern wxPen * wxBLACK_DASHED_PEN;
235 extern wxPen * wxGREY_PEN;
236 extern wxPen * wxMEDIUM_GREY_PEN;
237 extern wxPen * wxLIGHT_GREY_PEN;
238 extern wxBrush * wxBLUE_BRUSH;
239 extern wxBrush * wxGREEN_BRUSH;
240 extern wxBrush * wxWHITE_BRUSH;
241 extern wxBrush * wxBLACK_BRUSH;
242 extern wxBrush * wxTRANSPARENT_BRUSH;
243 extern wxBrush * wxCYAN_BRUSH;
244 extern wxBrush * wxRED_BRUSH;
245 extern wxBrush * wxGREY_BRUSH;
246 extern wxBrush * wxMEDIUM_GREY_BRUSH;
247 extern wxBrush * wxLIGHT_GREY_BRUSH;
248 extern wxColour * wxBLACK;
249 extern wxColour * wxWHITE;
250 extern wxColour * wxRED;
251 extern wxColour * wxBLUE;
252 extern wxColour * wxGREEN;
253 extern wxColour * wxCYAN;
254 extern wxColour * wxLIGHT_GREY;
255 extern wxCursor * wxSTANDARD_CURSOR;
256 extern wxCursor * wxHOURGLASS_CURSOR;
257 extern wxCursor * wxCROSS_CURSOR;
258 extern wxBitmap wxNullBitmap;
259 extern wxIcon wxNullIcon;
260 extern wxCursor wxNullCursor;
261 extern wxPen wxNullPen;
262 extern wxBrush wxNullBrush;
263 extern wxPalette wxNullPalette;
264 extern wxFont wxNullFont;
265 extern wxColour wxNullColour;
266 extern wxFontList * wxTheFontList;
267 extern wxPenList * wxThePenList;
268 extern wxBrushList * wxTheBrushList;
269 extern wxColourDatabase * wxTheColourDatabase;
270
271 #endif
272 #ifdef __cplusplus
273 extern "C" {
274 #endif
275 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
276 PyObject * _resultobj;
277 wxBitmap * _result;
278 int _arg0;
279 int _arg1;
280 int _arg2 = (int ) -1;
281 char *_kwnames[] = { "width","height","depth", NULL };
282 char _ptemp[128];
283
284 self = self;
285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
286 return NULL;
287 {
288 PyThreadState* __tstate = wxPyBeginAllowThreads();
289 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
290
291 wxPyEndAllowThreads(__tstate);
292 if (PyErr_Occurred()) return NULL;
293 } if (_result) {
294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
295 _resultobj = Py_BuildValue("s",_ptemp);
296 } else {
297 Py_INCREF(Py_None);
298 _resultobj = Py_None;
299 }
300 return _resultobj;
301 }
302
303 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
304 PyObject * _resultobj;
305 wxBitmap * _result;
306 PyObject * _arg0;
307 PyObject * _obj0 = 0;
308 char *_kwnames[] = { "listOfStrings", NULL };
309 char _ptemp[128];
310
311 self = self;
312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
313 return NULL;
314 {
315 _arg0 = _obj0;
316 }
317 {
318 PyThreadState* __tstate = wxPyBeginAllowThreads();
319 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
320
321 wxPyEndAllowThreads(__tstate);
322 if (PyErr_Occurred()) return NULL;
323 } if (_result) {
324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
325 _resultobj = Py_BuildValue("s",_ptemp);
326 } else {
327 Py_INCREF(Py_None);
328 _resultobj = Py_None;
329 }
330 return _resultobj;
331 }
332
333 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxBitmap * _result;
336 wxIcon * _arg0;
337 PyObject * _argo0 = 0;
338 char *_kwnames[] = { "icon", NULL };
339 char _ptemp[128];
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
348 return NULL;
349 }
350 }
351 {
352 PyThreadState* __tstate = wxPyBeginAllowThreads();
353 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
354
355 wxPyEndAllowThreads(__tstate);
356 if (PyErr_Occurred()) return NULL;
357 } if (_result) {
358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
359 _resultobj = Py_BuildValue("s",_ptemp);
360 } else {
361 Py_INCREF(Py_None);
362 _resultobj = Py_None;
363 }
364 return _resultobj;
365 }
366
367 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
368 PyObject * _resultobj;
369 wxBitmap * _result;
370 char * _arg0;
371 int _arg1;
372 int _arg2;
373 int _arg3 = (int ) 1;
374 char *_kwnames[] = { "bits","width","height","depth", NULL };
375 char _ptemp[128];
376
377 self = self;
378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
379 return NULL;
380 {
381 PyThreadState* __tstate = wxPyBeginAllowThreads();
382 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
383
384 wxPyEndAllowThreads(__tstate);
385 if (PyErr_Occurred()) return NULL;
386 } if (_result) {
387 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
388 _resultobj = Py_BuildValue("s",_ptemp);
389 } else {
390 Py_INCREF(Py_None);
391 _resultobj = Py_None;
392 }
393 return _resultobj;
394 }
395
396 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
397 PyObject * _resultobj;
398 wxMask * _result;
399 wxBitmap * _arg0;
400 wxColour * _arg1;
401 PyObject * _argo0 = 0;
402 wxColour temp;
403 PyObject * _obj1 = 0;
404 char *_kwnames[] = { "bitmap","colour", NULL };
405 char _ptemp[128];
406
407 self = self;
408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
409 return NULL;
410 if (_argo0) {
411 if (_argo0 == Py_None) { _arg0 = NULL; }
412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
414 return NULL;
415 }
416 }
417 {
418 _arg1 = &temp;
419 if (! wxColour_helper(_obj1, &_arg1))
420 return NULL;
421 }
422 {
423 PyThreadState* __tstate = wxPyBeginAllowThreads();
424 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
425
426 wxPyEndAllowThreads(__tstate);
427 if (PyErr_Occurred()) return NULL;
428 } if (_result) {
429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
430 _resultobj = Py_BuildValue("s",_ptemp);
431 } else {
432 Py_INCREF(Py_None);
433 _resultobj = Py_None;
434 }
435 return _resultobj;
436 }
437
438 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
439 PyObject * _resultobj;
440 wxIcon * _result;
441 char *_kwnames[] = { NULL };
442 char _ptemp[128];
443
444 self = self;
445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
446 return NULL;
447 {
448 PyThreadState* __tstate = wxPyBeginAllowThreads();
449 _result = (wxIcon *)wxEmptyIcon();
450
451 wxPyEndAllowThreads(__tstate);
452 if (PyErr_Occurred()) return NULL;
453 } if (_result) {
454 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
455 _resultobj = Py_BuildValue("s",_ptemp);
456 } else {
457 Py_INCREF(Py_None);
458 _resultobj = Py_None;
459 }
460 return _resultobj;
461 }
462
463 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxIcon * _result;
466 PyObject * _arg0;
467 PyObject * _obj0 = 0;
468 char *_kwnames[] = { "listOfStrings", NULL };
469 char _ptemp[128];
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
473 return NULL;
474 {
475 _arg0 = _obj0;
476 }
477 {
478 PyThreadState* __tstate = wxPyBeginAllowThreads();
479 _result = (wxIcon *)wxIconFromXPMData(_arg0);
480
481 wxPyEndAllowThreads(__tstate);
482 if (PyErr_Occurred()) return NULL;
483 } if (_result) {
484 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
485 _resultobj = Py_BuildValue("s",_ptemp);
486 } else {
487 Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 }
490 return _resultobj;
491 }
492
493 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 wxCursor * _result;
496 int _arg0;
497 char *_kwnames[] = { "id", NULL };
498 char _ptemp[128];
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
502 return NULL;
503 {
504 PyThreadState* __tstate = wxPyBeginAllowThreads();
505 _result = (wxCursor *)wxPyStockCursor(_arg0);
506
507 wxPyEndAllowThreads(__tstate);
508 if (PyErr_Occurred()) return NULL;
509 } if (_result) {
510 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
511 _resultobj = Py_BuildValue("s",_ptemp);
512 } else {
513 Py_INCREF(Py_None);
514 _resultobj = Py_None;
515 }
516 return _resultobj;
517 }
518
519 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
520 PyObject * _resultobj;
521 wxColour * _result;
522 wxString * _arg0;
523 PyObject * _obj0 = 0;
524 char *_kwnames[] = { "colorName", NULL };
525 char _ptemp[128];
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
529 return NULL;
530 {
531 #if PYTHON_API_VERSION >= 1009
532 char* tmpPtr; int tmpSize;
533 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
534 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
535 return NULL;
536 }
537 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
538 return NULL;
539 _arg0 = new wxString(tmpPtr, tmpSize);
540 #else
541 if (!PyString_Check(_obj0)) {
542 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
543 return NULL;
544 }
545 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
546 #endif
547 }
548 {
549 PyThreadState* __tstate = wxPyBeginAllowThreads();
550 _result = (wxColour *)wxNamedColour(*_arg0);
551
552 wxPyEndAllowThreads(__tstate);
553 if (PyErr_Occurred()) return NULL;
554 } if (_result) {
555 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
556 _resultobj = Py_BuildValue("s",_ptemp);
557 } else {
558 Py_INCREF(Py_None);
559 _resultobj = Py_None;
560 }
561 {
562 if (_obj0)
563 delete _arg0;
564 }
565 return _resultobj;
566 }
567
568 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
569 PyObject * _resultobj;
570 wxMemoryDC * _result;
571 wxDC * _arg0;
572 PyObject * _argo0 = 0;
573 char *_kwnames[] = { "oldDC", NULL };
574 char _ptemp[128];
575
576 self = self;
577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
578 return NULL;
579 if (_argo0) {
580 if (_argo0 == Py_None) { _arg0 = NULL; }
581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
583 return NULL;
584 }
585 }
586 {
587 PyThreadState* __tstate = wxPyBeginAllowThreads();
588 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
589
590 wxPyEndAllowThreads(__tstate);
591 if (PyErr_Occurred()) return NULL;
592 } if (_result) {
593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
594 _resultobj = Py_BuildValue("s",_ptemp);
595 } else {
596 Py_INCREF(Py_None);
597 _resultobj = Py_None;
598 }
599 return _resultobj;
600 }
601
602 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
603
604 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
605 return 1;
606 }
607
608 static PyObject *_wrap_wxNORMAL_FONT_get() {
609 PyObject * pyobj;
610 char ptemp[128];
611
612 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
613 pyobj = PyString_FromString(ptemp);
614 return pyobj;
615 }
616
617 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
618
619 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
620 return 1;
621 }
622
623 static PyObject *_wrap_wxSMALL_FONT_get() {
624 PyObject * pyobj;
625 char ptemp[128];
626
627 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
628 pyobj = PyString_FromString(ptemp);
629 return pyobj;
630 }
631
632 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
633
634 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
635 return 1;
636 }
637
638 static PyObject *_wrap_wxITALIC_FONT_get() {
639 PyObject * pyobj;
640 char ptemp[128];
641
642 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
643 pyobj = PyString_FromString(ptemp);
644 return pyobj;
645 }
646
647 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
648
649 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
650 return 1;
651 }
652
653 static PyObject *_wrap_wxSWISS_FONT_get() {
654 PyObject * pyobj;
655 char ptemp[128];
656
657 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
658 pyobj = PyString_FromString(ptemp);
659 return pyobj;
660 }
661
662 static int _wrap_wxRED_PEN_set(PyObject *val) {
663
664 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
665 return 1;
666 }
667
668 static PyObject *_wrap_wxRED_PEN_get() {
669 PyObject * pyobj;
670 char ptemp[128];
671
672 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
673 pyobj = PyString_FromString(ptemp);
674 return pyobj;
675 }
676
677 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
678
679 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
680 return 1;
681 }
682
683 static PyObject *_wrap_wxCYAN_PEN_get() {
684 PyObject * pyobj;
685 char ptemp[128];
686
687 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
688 pyobj = PyString_FromString(ptemp);
689 return pyobj;
690 }
691
692 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
693
694 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
695 return 1;
696 }
697
698 static PyObject *_wrap_wxGREEN_PEN_get() {
699 PyObject * pyobj;
700 char ptemp[128];
701
702 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
703 pyobj = PyString_FromString(ptemp);
704 return pyobj;
705 }
706
707 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
708
709 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
710 return 1;
711 }
712
713 static PyObject *_wrap_wxBLACK_PEN_get() {
714 PyObject * pyobj;
715 char ptemp[128];
716
717 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
718 pyobj = PyString_FromString(ptemp);
719 return pyobj;
720 }
721
722 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
723
724 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
725 return 1;
726 }
727
728 static PyObject *_wrap_wxWHITE_PEN_get() {
729 PyObject * pyobj;
730 char ptemp[128];
731
732 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
733 pyobj = PyString_FromString(ptemp);
734 return pyobj;
735 }
736
737 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
738
739 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
740 return 1;
741 }
742
743 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
744 PyObject * pyobj;
745 char ptemp[128];
746
747 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
748 pyobj = PyString_FromString(ptemp);
749 return pyobj;
750 }
751
752 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
753
754 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
755 return 1;
756 }
757
758 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
759 PyObject * pyobj;
760 char ptemp[128];
761
762 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
763 pyobj = PyString_FromString(ptemp);
764 return pyobj;
765 }
766
767 static int _wrap_wxGREY_PEN_set(PyObject *val) {
768
769 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
770 return 1;
771 }
772
773 static PyObject *_wrap_wxGREY_PEN_get() {
774 PyObject * pyobj;
775 char ptemp[128];
776
777 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
778 pyobj = PyString_FromString(ptemp);
779 return pyobj;
780 }
781
782 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
783
784 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
785 return 1;
786 }
787
788 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
789 PyObject * pyobj;
790 char ptemp[128];
791
792 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
793 pyobj = PyString_FromString(ptemp);
794 return pyobj;
795 }
796
797 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
798
799 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
800 return 1;
801 }
802
803 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
804 PyObject * pyobj;
805 char ptemp[128];
806
807 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
808 pyobj = PyString_FromString(ptemp);
809 return pyobj;
810 }
811
812 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
813
814 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
815 return 1;
816 }
817
818 static PyObject *_wrap_wxBLUE_BRUSH_get() {
819 PyObject * pyobj;
820 char ptemp[128];
821
822 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
823 pyobj = PyString_FromString(ptemp);
824 return pyobj;
825 }
826
827 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
828
829 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
830 return 1;
831 }
832
833 static PyObject *_wrap_wxGREEN_BRUSH_get() {
834 PyObject * pyobj;
835 char ptemp[128];
836
837 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
838 pyobj = PyString_FromString(ptemp);
839 return pyobj;
840 }
841
842 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
843
844 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
845 return 1;
846 }
847
848 static PyObject *_wrap_wxWHITE_BRUSH_get() {
849 PyObject * pyobj;
850 char ptemp[128];
851
852 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
853 pyobj = PyString_FromString(ptemp);
854 return pyobj;
855 }
856
857 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
858
859 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
860 return 1;
861 }
862
863 static PyObject *_wrap_wxBLACK_BRUSH_get() {
864 PyObject * pyobj;
865 char ptemp[128];
866
867 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
868 pyobj = PyString_FromString(ptemp);
869 return pyobj;
870 }
871
872 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
873
874 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
875 return 1;
876 }
877
878 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
879 PyObject * pyobj;
880 char ptemp[128];
881
882 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
883 pyobj = PyString_FromString(ptemp);
884 return pyobj;
885 }
886
887 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
888
889 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
890 return 1;
891 }
892
893 static PyObject *_wrap_wxCYAN_BRUSH_get() {
894 PyObject * pyobj;
895 char ptemp[128];
896
897 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
898 pyobj = PyString_FromString(ptemp);
899 return pyobj;
900 }
901
902 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
903
904 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
905 return 1;
906 }
907
908 static PyObject *_wrap_wxRED_BRUSH_get() {
909 PyObject * pyobj;
910 char ptemp[128];
911
912 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
913 pyobj = PyString_FromString(ptemp);
914 return pyobj;
915 }
916
917 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
918
919 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
920 return 1;
921 }
922
923 static PyObject *_wrap_wxGREY_BRUSH_get() {
924 PyObject * pyobj;
925 char ptemp[128];
926
927 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
928 pyobj = PyString_FromString(ptemp);
929 return pyobj;
930 }
931
932 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
933
934 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
935 return 1;
936 }
937
938 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
939 PyObject * pyobj;
940 char ptemp[128];
941
942 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
943 pyobj = PyString_FromString(ptemp);
944 return pyobj;
945 }
946
947 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
948
949 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
950 return 1;
951 }
952
953 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
954 PyObject * pyobj;
955 char ptemp[128];
956
957 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
958 pyobj = PyString_FromString(ptemp);
959 return pyobj;
960 }
961
962 static int _wrap_wxBLACK_set(PyObject *val) {
963
964 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
965 return 1;
966 }
967
968 static PyObject *_wrap_wxBLACK_get() {
969 PyObject * pyobj;
970 char ptemp[128];
971
972 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
973 pyobj = PyString_FromString(ptemp);
974 return pyobj;
975 }
976
977 static int _wrap_wxWHITE_set(PyObject *val) {
978
979 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
980 return 1;
981 }
982
983 static PyObject *_wrap_wxWHITE_get() {
984 PyObject * pyobj;
985 char ptemp[128];
986
987 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
988 pyobj = PyString_FromString(ptemp);
989 return pyobj;
990 }
991
992 static int _wrap_wxRED_set(PyObject *val) {
993
994 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
995 return 1;
996 }
997
998 static PyObject *_wrap_wxRED_get() {
999 PyObject * pyobj;
1000 char ptemp[128];
1001
1002 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1003 pyobj = PyString_FromString(ptemp);
1004 return pyobj;
1005 }
1006
1007 static int _wrap_wxBLUE_set(PyObject *val) {
1008
1009 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1010 return 1;
1011 }
1012
1013 static PyObject *_wrap_wxBLUE_get() {
1014 PyObject * pyobj;
1015 char ptemp[128];
1016
1017 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1018 pyobj = PyString_FromString(ptemp);
1019 return pyobj;
1020 }
1021
1022 static int _wrap_wxGREEN_set(PyObject *val) {
1023
1024 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1025 return 1;
1026 }
1027
1028 static PyObject *_wrap_wxGREEN_get() {
1029 PyObject * pyobj;
1030 char ptemp[128];
1031
1032 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1033 pyobj = PyString_FromString(ptemp);
1034 return pyobj;
1035 }
1036
1037 static int _wrap_wxCYAN_set(PyObject *val) {
1038
1039 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1040 return 1;
1041 }
1042
1043 static PyObject *_wrap_wxCYAN_get() {
1044 PyObject * pyobj;
1045 char ptemp[128];
1046
1047 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1048 pyobj = PyString_FromString(ptemp);
1049 return pyobj;
1050 }
1051
1052 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1053
1054 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1055 return 1;
1056 }
1057
1058 static PyObject *_wrap_wxLIGHT_GREY_get() {
1059 PyObject * pyobj;
1060 char ptemp[128];
1061
1062 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1063 pyobj = PyString_FromString(ptemp);
1064 return pyobj;
1065 }
1066
1067 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1068
1069 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1070 return 1;
1071 }
1072
1073 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1074 PyObject * pyobj;
1075 char ptemp[128];
1076
1077 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1078 pyobj = PyString_FromString(ptemp);
1079 return pyobj;
1080 }
1081
1082 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1083
1084 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1085 return 1;
1086 }
1087
1088 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1089 PyObject * pyobj;
1090 char ptemp[128];
1091
1092 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1093 pyobj = PyString_FromString(ptemp);
1094 return pyobj;
1095 }
1096
1097 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1098
1099 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1100 return 1;
1101 }
1102
1103 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1104 PyObject * pyobj;
1105 char ptemp[128];
1106
1107 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1108 pyobj = PyString_FromString(ptemp);
1109 return pyobj;
1110 }
1111
1112 static int _wrap_wxNullBitmap_set(PyObject *val) {
1113
1114 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1115 return 1;
1116 }
1117
1118 static PyObject *_wrap_wxNullBitmap_get() {
1119 PyObject * pyobj;
1120 char ptemp[128];
1121
1122 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1123 pyobj = PyString_FromString(ptemp);
1124 return pyobj;
1125 }
1126
1127 static int _wrap_wxNullIcon_set(PyObject *val) {
1128
1129 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1130 return 1;
1131 }
1132
1133 static PyObject *_wrap_wxNullIcon_get() {
1134 PyObject * pyobj;
1135 char ptemp[128];
1136
1137 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1138 pyobj = PyString_FromString(ptemp);
1139 return pyobj;
1140 }
1141
1142 static int _wrap_wxNullCursor_set(PyObject *val) {
1143
1144 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1145 return 1;
1146 }
1147
1148 static PyObject *_wrap_wxNullCursor_get() {
1149 PyObject * pyobj;
1150 char ptemp[128];
1151
1152 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1153 pyobj = PyString_FromString(ptemp);
1154 return pyobj;
1155 }
1156
1157 static int _wrap_wxNullPen_set(PyObject *val) {
1158
1159 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1160 return 1;
1161 }
1162
1163 static PyObject *_wrap_wxNullPen_get() {
1164 PyObject * pyobj;
1165 char ptemp[128];
1166
1167 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1168 pyobj = PyString_FromString(ptemp);
1169 return pyobj;
1170 }
1171
1172 static int _wrap_wxNullBrush_set(PyObject *val) {
1173
1174 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1175 return 1;
1176 }
1177
1178 static PyObject *_wrap_wxNullBrush_get() {
1179 PyObject * pyobj;
1180 char ptemp[128];
1181
1182 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1183 pyobj = PyString_FromString(ptemp);
1184 return pyobj;
1185 }
1186
1187 static int _wrap_wxNullPalette_set(PyObject *val) {
1188
1189 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1190 return 1;
1191 }
1192
1193 static PyObject *_wrap_wxNullPalette_get() {
1194 PyObject * pyobj;
1195 char ptemp[128];
1196
1197 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1198 pyobj = PyString_FromString(ptemp);
1199 return pyobj;
1200 }
1201
1202 static int _wrap_wxNullFont_set(PyObject *val) {
1203
1204 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1205 return 1;
1206 }
1207
1208 static PyObject *_wrap_wxNullFont_get() {
1209 PyObject * pyobj;
1210 char ptemp[128];
1211
1212 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1213 pyobj = PyString_FromString(ptemp);
1214 return pyobj;
1215 }
1216
1217 static int _wrap_wxNullColour_set(PyObject *val) {
1218
1219 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1220 return 1;
1221 }
1222
1223 static PyObject *_wrap_wxNullColour_get() {
1224 PyObject * pyobj;
1225 char ptemp[128];
1226
1227 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1228 pyobj = PyString_FromString(ptemp);
1229 return pyobj;
1230 }
1231
1232 static int _wrap_wxTheFontList_set(PyObject *val) {
1233
1234 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1235 return 1;
1236 }
1237
1238 static PyObject *_wrap_wxTheFontList_get() {
1239 PyObject * pyobj;
1240 char ptemp[128];
1241
1242 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1243 pyobj = PyString_FromString(ptemp);
1244 return pyobj;
1245 }
1246
1247 static int _wrap_wxThePenList_set(PyObject *val) {
1248
1249 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1250 return 1;
1251 }
1252
1253 static PyObject *_wrap_wxThePenList_get() {
1254 PyObject * pyobj;
1255 char ptemp[128];
1256
1257 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1258 pyobj = PyString_FromString(ptemp);
1259 return pyobj;
1260 }
1261
1262 static int _wrap_wxTheBrushList_set(PyObject *val) {
1263
1264 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1265 return 1;
1266 }
1267
1268 static PyObject *_wrap_wxTheBrushList_get() {
1269 PyObject * pyobj;
1270 char ptemp[128];
1271
1272 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1273 pyobj = PyString_FromString(ptemp);
1274 return pyobj;
1275 }
1276
1277 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1278
1279 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1280 return 1;
1281 }
1282
1283 static PyObject *_wrap_wxTheColourDatabase_get() {
1284 PyObject * pyobj;
1285 char ptemp[128];
1286
1287 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1288 pyobj = PyString_FromString(ptemp);
1289 return pyobj;
1290 }
1291
1292 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1293 wxGDIObject *src;
1294 wxObject *dest;
1295 src = (wxGDIObject *) ptr;
1296 dest = (wxObject *) src;
1297 return (void *) dest;
1298 }
1299
1300 #define new_wxGDIObject() (new wxGDIObject())
1301 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject * _resultobj;
1303 wxGDIObject * _result;
1304 char *_kwnames[] = { NULL };
1305 char _ptemp[128];
1306
1307 self = self;
1308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1309 return NULL;
1310 {
1311 PyThreadState* __tstate = wxPyBeginAllowThreads();
1312 _result = (wxGDIObject *)new_wxGDIObject();
1313
1314 wxPyEndAllowThreads(__tstate);
1315 if (PyErr_Occurred()) return NULL;
1316 } if (_result) {
1317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1318 _resultobj = Py_BuildValue("s",_ptemp);
1319 } else {
1320 Py_INCREF(Py_None);
1321 _resultobj = Py_None;
1322 }
1323 return _resultobj;
1324 }
1325
1326 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1327 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1328 PyObject * _resultobj;
1329 wxGDIObject * _arg0;
1330 PyObject * _argo0 = 0;
1331 char *_kwnames[] = { "self", NULL };
1332
1333 self = self;
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1335 return NULL;
1336 if (_argo0) {
1337 if (_argo0 == Py_None) { _arg0 = NULL; }
1338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1340 return NULL;
1341 }
1342 }
1343 {
1344 PyThreadState* __tstate = wxPyBeginAllowThreads();
1345 delete_wxGDIObject(_arg0);
1346
1347 wxPyEndAllowThreads(__tstate);
1348 if (PyErr_Occurred()) return NULL;
1349 } Py_INCREF(Py_None);
1350 _resultobj = Py_None;
1351 return _resultobj;
1352 }
1353
1354 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1355 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1356 PyObject * _resultobj;
1357 bool _result;
1358 wxGDIObject * _arg0;
1359 PyObject * _argo0 = 0;
1360 char *_kwnames[] = { "self", NULL };
1361
1362 self = self;
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1364 return NULL;
1365 if (_argo0) {
1366 if (_argo0 == Py_None) { _arg0 = NULL; }
1367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1369 return NULL;
1370 }
1371 }
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
1374 _result = (bool )wxGDIObject_GetVisible(_arg0);
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) return NULL;
1378 } _resultobj = Py_BuildValue("i",_result);
1379 return _resultobj;
1380 }
1381
1382 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1383 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1384 PyObject * _resultobj;
1385 wxGDIObject * _arg0;
1386 bool _arg1;
1387 PyObject * _argo0 = 0;
1388 int tempbool1;
1389 char *_kwnames[] = { "self","visible", NULL };
1390
1391 self = self;
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1393 return NULL;
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1398 return NULL;
1399 }
1400 }
1401 _arg1 = (bool ) tempbool1;
1402 {
1403 PyThreadState* __tstate = wxPyBeginAllowThreads();
1404 wxGDIObject_SetVisible(_arg0,_arg1);
1405
1406 wxPyEndAllowThreads(__tstate);
1407 if (PyErr_Occurred()) return NULL;
1408 } Py_INCREF(Py_None);
1409 _resultobj = Py_None;
1410 return _resultobj;
1411 }
1412
1413 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1414 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject * _resultobj;
1416 bool _result;
1417 wxGDIObject * _arg0;
1418 PyObject * _argo0 = 0;
1419 char *_kwnames[] = { "self", NULL };
1420
1421 self = self;
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1423 return NULL;
1424 if (_argo0) {
1425 if (_argo0 == Py_None) { _arg0 = NULL; }
1426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1428 return NULL;
1429 }
1430 }
1431 {
1432 PyThreadState* __tstate = wxPyBeginAllowThreads();
1433 _result = (bool )wxGDIObject_IsNull(_arg0);
1434
1435 wxPyEndAllowThreads(__tstate);
1436 if (PyErr_Occurred()) return NULL;
1437 } _resultobj = Py_BuildValue("i",_result);
1438 return _resultobj;
1439 }
1440
1441 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1442 wxBitmap *src;
1443 wxGDIObject *dest;
1444 src = (wxBitmap *) ptr;
1445 dest = (wxGDIObject *) src;
1446 return (void *) dest;
1447 }
1448
1449 static void *SwigwxBitmapTowxObject(void *ptr) {
1450 wxBitmap *src;
1451 wxObject *dest;
1452 src = (wxBitmap *) ptr;
1453 dest = (wxObject *) src;
1454 return (void *) dest;
1455 }
1456
1457 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1458 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject * _resultobj;
1460 wxBitmap * _result;
1461 wxString * _arg0;
1462 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1463 PyObject * _obj0 = 0;
1464 char *_kwnames[] = { "name","type", NULL };
1465 char _ptemp[128];
1466
1467 self = self;
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1469 return NULL;
1470 {
1471 #if PYTHON_API_VERSION >= 1009
1472 char* tmpPtr; int tmpSize;
1473 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1475 return NULL;
1476 }
1477 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1478 return NULL;
1479 _arg0 = new wxString(tmpPtr, tmpSize);
1480 #else
1481 if (!PyString_Check(_obj0)) {
1482 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1483 return NULL;
1484 }
1485 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1486 #endif
1487 }
1488 {
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1491
1492 wxPyEndAllowThreads(__tstate);
1493 if (PyErr_Occurred()) return NULL;
1494 } if (_result) {
1495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1496 _resultobj = Py_BuildValue("s",_ptemp);
1497 } else {
1498 Py_INCREF(Py_None);
1499 _resultobj = Py_None;
1500 }
1501 {
1502 if (_obj0)
1503 delete _arg0;
1504 }
1505 return _resultobj;
1506 }
1507
1508 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1509 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1510 PyObject * _resultobj;
1511 wxBitmap * _arg0;
1512 PyObject * _argo0 = 0;
1513 char *_kwnames[] = { "self", NULL };
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1517 return NULL;
1518 if (_argo0) {
1519 if (_argo0 == Py_None) { _arg0 = NULL; }
1520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1522 return NULL;
1523 }
1524 }
1525 {
1526 PyThreadState* __tstate = wxPyBeginAllowThreads();
1527 delete_wxBitmap(_arg0);
1528
1529 wxPyEndAllowThreads(__tstate);
1530 if (PyErr_Occurred()) return NULL;
1531 } Py_INCREF(Py_None);
1532 _resultobj = Py_None;
1533 return _resultobj;
1534 }
1535
1536 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1537 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject * _resultobj;
1539 wxPalette * _result;
1540 wxBitmap * _arg0;
1541 PyObject * _argo0 = 0;
1542 char *_kwnames[] = { "self", NULL };
1543 char _ptemp[128];
1544
1545 self = self;
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1547 return NULL;
1548 if (_argo0) {
1549 if (_argo0 == Py_None) { _arg0 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1552 return NULL;
1553 }
1554 }
1555 {
1556 PyThreadState* __tstate = wxPyBeginAllowThreads();
1557 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1558
1559 wxPyEndAllowThreads(__tstate);
1560 if (PyErr_Occurred()) return NULL;
1561 } if (_result) {
1562 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1563 _resultobj = Py_BuildValue("s",_ptemp);
1564 } else {
1565 Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 }
1568 return _resultobj;
1569 }
1570
1571 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1572 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 wxMask * _result;
1575 wxBitmap * _arg0;
1576 PyObject * _argo0 = 0;
1577 char *_kwnames[] = { "self", NULL };
1578 char _ptemp[128];
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1582 return NULL;
1583 if (_argo0) {
1584 if (_argo0 == Py_None) { _arg0 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1587 return NULL;
1588 }
1589 }
1590 {
1591 PyThreadState* __tstate = wxPyBeginAllowThreads();
1592 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1593
1594 wxPyEndAllowThreads(__tstate);
1595 if (PyErr_Occurred()) return NULL;
1596 } if (_result) {
1597 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1598 _resultobj = Py_BuildValue("s",_ptemp);
1599 } else {
1600 Py_INCREF(Py_None);
1601 _resultobj = Py_None;
1602 }
1603 return _resultobj;
1604 }
1605
1606 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1607 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject * _resultobj;
1609 bool _result;
1610 wxBitmap * _arg0;
1611 wxString * _arg1;
1612 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1613 PyObject * _argo0 = 0;
1614 PyObject * _obj1 = 0;
1615 char *_kwnames[] = { "self","name","type", NULL };
1616
1617 self = self;
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1619 return NULL;
1620 if (_argo0) {
1621 if (_argo0 == Py_None) { _arg0 = NULL; }
1622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1624 return NULL;
1625 }
1626 }
1627 {
1628 #if PYTHON_API_VERSION >= 1009
1629 char* tmpPtr; int tmpSize;
1630 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1632 return NULL;
1633 }
1634 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1635 return NULL;
1636 _arg1 = new wxString(tmpPtr, tmpSize);
1637 #else
1638 if (!PyString_Check(_obj1)) {
1639 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1640 return NULL;
1641 }
1642 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1643 #endif
1644 }
1645 {
1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
1647 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1648
1649 wxPyEndAllowThreads(__tstate);
1650 if (PyErr_Occurred()) return NULL;
1651 } _resultobj = Py_BuildValue("i",_result);
1652 {
1653 if (_obj1)
1654 delete _arg1;
1655 }
1656 return _resultobj;
1657 }
1658
1659 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1660 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1661 PyObject * _resultobj;
1662 bool _result;
1663 wxBitmap * _arg0;
1664 wxString * _arg1;
1665 wxBitmapType _arg2;
1666 wxPalette * _arg3 = (wxPalette *) NULL;
1667 PyObject * _argo0 = 0;
1668 PyObject * _obj1 = 0;
1669 PyObject * _argo3 = 0;
1670 char *_kwnames[] = { "self","name","type","palette", NULL };
1671
1672 self = self;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1674 return NULL;
1675 if (_argo0) {
1676 if (_argo0 == Py_None) { _arg0 = NULL; }
1677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1679 return NULL;
1680 }
1681 }
1682 {
1683 #if PYTHON_API_VERSION >= 1009
1684 char* tmpPtr; int tmpSize;
1685 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1687 return NULL;
1688 }
1689 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1690 return NULL;
1691 _arg1 = new wxString(tmpPtr, tmpSize);
1692 #else
1693 if (!PyString_Check(_obj1)) {
1694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1695 return NULL;
1696 }
1697 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1698 #endif
1699 }
1700 if (_argo3) {
1701 if (_argo3 == Py_None) { _arg3 = NULL; }
1702 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1703 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1704 return NULL;
1705 }
1706 }
1707 {
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) return NULL;
1713 } _resultobj = Py_BuildValue("i",_result);
1714 {
1715 if (_obj1)
1716 delete _arg1;
1717 }
1718 return _resultobj;
1719 }
1720
1721 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1722 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject * _resultobj;
1724 wxBitmap * _arg0;
1725 wxMask * _arg1;
1726 PyObject * _argo0 = 0;
1727 PyObject * _argo1 = 0;
1728 char *_kwnames[] = { "self","mask", NULL };
1729
1730 self = self;
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1732 return NULL;
1733 if (_argo0) {
1734 if (_argo0 == Py_None) { _arg0 = NULL; }
1735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1737 return NULL;
1738 }
1739 }
1740 if (_argo1) {
1741 if (_argo1 == Py_None) { _arg1 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 PyThreadState* __tstate = wxPyBeginAllowThreads();
1749 wxBitmap_SetMask(_arg0,_arg1);
1750
1751 wxPyEndAllowThreads(__tstate);
1752 if (PyErr_Occurred()) return NULL;
1753 } Py_INCREF(Py_None);
1754 _resultobj = Py_None;
1755 return _resultobj;
1756 }
1757
1758 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1759 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 wxBitmap * _arg0;
1762 wxPalette * _arg1;
1763 PyObject * _argo0 = 0;
1764 PyObject * _argo1 = 0;
1765 char *_kwnames[] = { "self","palette", NULL };
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1774 return NULL;
1775 }
1776 }
1777 if (_argo1) {
1778 if (_argo1 == Py_None) { _arg1 = NULL; }
1779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1781 return NULL;
1782 }
1783 }
1784 {
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 wxBitmap_SetPalette(_arg0,*_arg1);
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) return NULL;
1790 } Py_INCREF(Py_None);
1791 _resultobj = Py_None;
1792 return _resultobj;
1793 }
1794
1795 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1796 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject * _resultobj;
1798 long _result;
1799 wxBitmap * _arg0;
1800 PyObject * _argo0 = 0;
1801 char *_kwnames[] = { "self", NULL };
1802
1803 self = self;
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1805 return NULL;
1806 if (_argo0) {
1807 if (_argo0 == Py_None) { _arg0 = NULL; }
1808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1810 return NULL;
1811 }
1812 }
1813 {
1814 PyThreadState* __tstate = wxPyBeginAllowThreads();
1815 _result = (long )wxBitmap_GetHandle(_arg0);
1816
1817 wxPyEndAllowThreads(__tstate);
1818 if (PyErr_Occurred()) return NULL;
1819 } _resultobj = Py_BuildValue("l",_result);
1820 return _resultobj;
1821 }
1822
1823 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1824 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject * _resultobj;
1826 wxBitmap * _arg0;
1827 long _arg1;
1828 PyObject * _argo0 = 0;
1829 char *_kwnames[] = { "self","handle", NULL };
1830
1831 self = self;
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1833 return NULL;
1834 if (_argo0) {
1835 if (_argo0 == Py_None) { _arg0 = NULL; }
1836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1838 return NULL;
1839 }
1840 }
1841 {
1842 PyThreadState* __tstate = wxPyBeginAllowThreads();
1843 wxBitmap_SetHandle(_arg0,_arg1);
1844
1845 wxPyEndAllowThreads(__tstate);
1846 if (PyErr_Occurred()) return NULL;
1847 } Py_INCREF(Py_None);
1848 _resultobj = Py_None;
1849 return _resultobj;
1850 }
1851
1852 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1853 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1854 PyObject * _resultobj;
1855 bool _result;
1856 wxBitmap * _arg0;
1857 PyObject * _argo0 = 0;
1858 char *_kwnames[] = { "self", NULL };
1859
1860 self = self;
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1862 return NULL;
1863 if (_argo0) {
1864 if (_argo0 == Py_None) { _arg0 = NULL; }
1865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1867 return NULL;
1868 }
1869 }
1870 {
1871 PyThreadState* __tstate = wxPyBeginAllowThreads();
1872 _result = (bool )wxBitmap_Ok(_arg0);
1873
1874 wxPyEndAllowThreads(__tstate);
1875 if (PyErr_Occurred()) return NULL;
1876 } _resultobj = Py_BuildValue("i",_result);
1877 return _resultobj;
1878 }
1879
1880 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1881 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject * _resultobj;
1883 int _result;
1884 wxBitmap * _arg0;
1885 PyObject * _argo0 = 0;
1886 char *_kwnames[] = { "self", NULL };
1887
1888 self = self;
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1890 return NULL;
1891 if (_argo0) {
1892 if (_argo0 == Py_None) { _arg0 = NULL; }
1893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1895 return NULL;
1896 }
1897 }
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 _result = (int )wxBitmap_GetWidth(_arg0);
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) return NULL;
1904 } _resultobj = Py_BuildValue("i",_result);
1905 return _resultobj;
1906 }
1907
1908 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1909 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject * _resultobj;
1911 int _result;
1912 wxBitmap * _arg0;
1913 PyObject * _argo0 = 0;
1914 char *_kwnames[] = { "self", NULL };
1915
1916 self = self;
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1918 return NULL;
1919 if (_argo0) {
1920 if (_argo0 == Py_None) { _arg0 = NULL; }
1921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1923 return NULL;
1924 }
1925 }
1926 {
1927 PyThreadState* __tstate = wxPyBeginAllowThreads();
1928 _result = (int )wxBitmap_GetHeight(_arg0);
1929
1930 wxPyEndAllowThreads(__tstate);
1931 if (PyErr_Occurred()) return NULL;
1932 } _resultobj = Py_BuildValue("i",_result);
1933 return _resultobj;
1934 }
1935
1936 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1937 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1938 PyObject * _resultobj;
1939 int _result;
1940 wxBitmap * _arg0;
1941 PyObject * _argo0 = 0;
1942 char *_kwnames[] = { "self", NULL };
1943
1944 self = self;
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1946 return NULL;
1947 if (_argo0) {
1948 if (_argo0 == Py_None) { _arg0 = NULL; }
1949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1951 return NULL;
1952 }
1953 }
1954 {
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
1956 _result = (int )wxBitmap_GetDepth(_arg0);
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) return NULL;
1960 } _resultobj = Py_BuildValue("i",_result);
1961 return _resultobj;
1962 }
1963
1964 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1965 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject * _resultobj;
1967 wxBitmap * _arg0;
1968 int _arg1;
1969 PyObject * _argo0 = 0;
1970 char *_kwnames[] = { "self","w", NULL };
1971
1972 self = self;
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1974 return NULL;
1975 if (_argo0) {
1976 if (_argo0 == Py_None) { _arg0 = NULL; }
1977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1979 return NULL;
1980 }
1981 }
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 wxBitmap_SetWidth(_arg0,_arg1);
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) return NULL;
1988 } Py_INCREF(Py_None);
1989 _resultobj = Py_None;
1990 return _resultobj;
1991 }
1992
1993 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1994 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxBitmap * _arg0;
1997 int _arg1;
1998 PyObject * _argo0 = 0;
1999 char *_kwnames[] = { "self","h", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2003 return NULL;
2004 if (_argo0) {
2005 if (_argo0 == Py_None) { _arg0 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 wxBitmap_SetHeight(_arg0,_arg1);
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) return NULL;
2017 } Py_INCREF(Py_None);
2018 _resultobj = Py_None;
2019 return _resultobj;
2020 }
2021
2022 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2023 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2024 PyObject * _resultobj;
2025 wxBitmap * _arg0;
2026 int _arg1;
2027 PyObject * _argo0 = 0;
2028 char *_kwnames[] = { "self","d", NULL };
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2032 return NULL;
2033 if (_argo0) {
2034 if (_argo0 == Py_None) { _arg0 = NULL; }
2035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2037 return NULL;
2038 }
2039 }
2040 {
2041 PyThreadState* __tstate = wxPyBeginAllowThreads();
2042 wxBitmap_SetDepth(_arg0,_arg1);
2043
2044 wxPyEndAllowThreads(__tstate);
2045 if (PyErr_Occurred()) return NULL;
2046 } Py_INCREF(Py_None);
2047 _resultobj = Py_None;
2048 return _resultobj;
2049 }
2050
2051 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2052 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2053 PyObject * _resultobj;
2054 wxBitmap * _arg0;
2055 wxSize * _arg1;
2056 PyObject * _argo0 = 0;
2057 wxSize temp;
2058 PyObject * _obj1 = 0;
2059 char *_kwnames[] = { "self","size", NULL };
2060
2061 self = self;
2062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2063 return NULL;
2064 if (_argo0) {
2065 if (_argo0 == Py_None) { _arg0 = NULL; }
2066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2068 return NULL;
2069 }
2070 }
2071 {
2072 _arg1 = &temp;
2073 if (! wxSize_helper(_obj1, &_arg1))
2074 return NULL;
2075 }
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 wxBitmap_SetSize(_arg0,*_arg1);
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) return NULL;
2082 } Py_INCREF(Py_None);
2083 _resultobj = Py_None;
2084 return _resultobj;
2085 }
2086
2087 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2088 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2089 PyObject * _resultobj;
2090 wxBitmap * _result;
2091 wxBitmap * _arg0;
2092 wxRect * _arg1;
2093 PyObject * _argo0 = 0;
2094 wxRect temp;
2095 PyObject * _obj1 = 0;
2096 char *_kwnames[] = { "self","rect", NULL };
2097 char _ptemp[128];
2098
2099 self = self;
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2101 return NULL;
2102 if (_argo0) {
2103 if (_argo0 == Py_None) { _arg0 = NULL; }
2104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2106 return NULL;
2107 }
2108 }
2109 {
2110 _arg1 = &temp;
2111 if (! wxRect_helper(_obj1, &_arg1))
2112 return NULL;
2113 }
2114 {
2115 PyThreadState* __tstate = wxPyBeginAllowThreads();
2116 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2117
2118 wxPyEndAllowThreads(__tstate);
2119 if (PyErr_Occurred()) return NULL;
2120 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2121 _resultobj = Py_BuildValue("s",_ptemp);
2122 return _resultobj;
2123 }
2124
2125 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2126 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject * _resultobj;
2128 bool _result;
2129 wxBitmap * _arg0;
2130 wxIcon * _arg1;
2131 PyObject * _argo0 = 0;
2132 PyObject * _argo1 = 0;
2133 char *_kwnames[] = { "self","icon", NULL };
2134
2135 self = self;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2137 return NULL;
2138 if (_argo0) {
2139 if (_argo0 == Py_None) { _arg0 = NULL; }
2140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2142 return NULL;
2143 }
2144 }
2145 if (_argo1) {
2146 if (_argo1 == Py_None) { _arg1 = NULL; }
2147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2149 return NULL;
2150 }
2151 }
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) return NULL;
2158 } _resultobj = Py_BuildValue("i",_result);
2159 return _resultobj;
2160 }
2161
2162 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2163 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2164 PyObject * _resultobj;
2165 bool _result;
2166 wxBitmap * _arg0;
2167 wxCursor * _arg1;
2168 PyObject * _argo0 = 0;
2169 PyObject * _argo1 = 0;
2170 char *_kwnames[] = { "self","cursor", NULL };
2171
2172 self = self;
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2174 return NULL;
2175 if (_argo0) {
2176 if (_argo0 == Py_None) { _arg0 = NULL; }
2177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2179 return NULL;
2180 }
2181 }
2182 if (_argo1) {
2183 if (_argo1 == Py_None) { _arg1 = NULL; }
2184 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2185 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2186 return NULL;
2187 }
2188 }
2189 {
2190 PyThreadState* __tstate = wxPyBeginAllowThreads();
2191 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2192
2193 wxPyEndAllowThreads(__tstate);
2194 if (PyErr_Occurred()) return NULL;
2195 } _resultobj = Py_BuildValue("i",_result);
2196 return _resultobj;
2197 }
2198
2199 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2200 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject * _resultobj;
2202 int _result;
2203 wxBitmap * _arg0;
2204 PyObject * _argo0 = 0;
2205 char *_kwnames[] = { "self", NULL };
2206
2207 self = self;
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2209 return NULL;
2210 if (_argo0) {
2211 if (_argo0 == Py_None) { _arg0 = NULL; }
2212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2214 return NULL;
2215 }
2216 }
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 _result = (int )wxBitmap_GetQuality(_arg0);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) return NULL;
2223 } _resultobj = Py_BuildValue("i",_result);
2224 return _resultobj;
2225 }
2226
2227 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2228 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2229 PyObject * _resultobj;
2230 wxBitmap * _arg0;
2231 int _arg1;
2232 PyObject * _argo0 = 0;
2233 char *_kwnames[] = { "self","q", NULL };
2234
2235 self = self;
2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2237 return NULL;
2238 if (_argo0) {
2239 if (_argo0 == Py_None) { _arg0 = NULL; }
2240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2242 return NULL;
2243 }
2244 }
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 wxBitmap_SetQuality(_arg0,_arg1);
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) return NULL;
2251 } Py_INCREF(Py_None);
2252 _resultobj = Py_None;
2253 return _resultobj;
2254 }
2255
2256 static void *SwigwxMaskTowxObject(void *ptr) {
2257 wxMask *src;
2258 wxObject *dest;
2259 src = (wxMask *) ptr;
2260 dest = (wxObject *) src;
2261 return (void *) dest;
2262 }
2263
2264 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2265 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject * _resultobj;
2267 wxMask * _result;
2268 wxBitmap * _arg0;
2269 PyObject * _argo0 = 0;
2270 char *_kwnames[] = { "bitmap", NULL };
2271 char _ptemp[128];
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2275 return NULL;
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2280 return NULL;
2281 }
2282 }
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 _result = (wxMask *)new_wxMask(*_arg0);
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) return NULL;
2289 } if (_result) {
2290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2291 _resultobj = Py_BuildValue("s",_ptemp);
2292 } else {
2293 Py_INCREF(Py_None);
2294 _resultobj = Py_None;
2295 }
2296 return _resultobj;
2297 }
2298
2299 static void wxMask_Destroy(wxMask *self) { delete self; }
2300 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2301 PyObject * _resultobj;
2302 wxMask * _arg0;
2303 PyObject * _argo0 = 0;
2304 char *_kwnames[] = { "self", NULL };
2305
2306 self = self;
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2308 return NULL;
2309 if (_argo0) {
2310 if (_argo0 == Py_None) { _arg0 = NULL; }
2311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2313 return NULL;
2314 }
2315 }
2316 {
2317 PyThreadState* __tstate = wxPyBeginAllowThreads();
2318 wxMask_Destroy(_arg0);
2319
2320 wxPyEndAllowThreads(__tstate);
2321 if (PyErr_Occurred()) return NULL;
2322 } Py_INCREF(Py_None);
2323 _resultobj = Py_None;
2324 return _resultobj;
2325 }
2326
2327 static void *SwigwxIconTowxGDIObject(void *ptr) {
2328 wxIcon *src;
2329 wxGDIObject *dest;
2330 src = (wxIcon *) ptr;
2331 dest = (wxGDIObject *) src;
2332 return (void *) dest;
2333 }
2334
2335 static void *SwigwxIconTowxObject(void *ptr) {
2336 wxIcon *src;
2337 wxObject *dest;
2338 src = (wxIcon *) ptr;
2339 dest = (wxObject *) src;
2340 return (void *) dest;
2341 }
2342
2343 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2344 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2345 PyObject * _resultobj;
2346 wxIcon * _result;
2347 wxString * _arg0;
2348 long _arg1;
2349 int _arg2 = (int ) -1;
2350 int _arg3 = (int ) -1;
2351 PyObject * _obj0 = 0;
2352 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2353 char _ptemp[128];
2354
2355 self = self;
2356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2357 return NULL;
2358 {
2359 #if PYTHON_API_VERSION >= 1009
2360 char* tmpPtr; int tmpSize;
2361 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2363 return NULL;
2364 }
2365 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2366 return NULL;
2367 _arg0 = new wxString(tmpPtr, tmpSize);
2368 #else
2369 if (!PyString_Check(_obj0)) {
2370 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2371 return NULL;
2372 }
2373 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2374 #endif
2375 }
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) return NULL;
2382 } if (_result) {
2383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2384 _resultobj = Py_BuildValue("s",_ptemp);
2385 } else {
2386 Py_INCREF(Py_None);
2387 _resultobj = Py_None;
2388 }
2389 {
2390 if (_obj0)
2391 delete _arg0;
2392 }
2393 return _resultobj;
2394 }
2395
2396 #define delete_wxIcon(_swigobj) (delete _swigobj)
2397 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject * _resultobj;
2399 wxIcon * _arg0;
2400 PyObject * _argo0 = 0;
2401 char *_kwnames[] = { "self", NULL };
2402
2403 self = self;
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2405 return NULL;
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2410 return NULL;
2411 }
2412 }
2413 {
2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
2415 delete_wxIcon(_arg0);
2416
2417 wxPyEndAllowThreads(__tstate);
2418 if (PyErr_Occurred()) return NULL;
2419 } Py_INCREF(Py_None);
2420 _resultobj = Py_None;
2421 return _resultobj;
2422 }
2423
2424 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2425 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2426 PyObject * _resultobj;
2427 bool _result;
2428 wxIcon * _arg0;
2429 wxString * _arg1;
2430 long _arg2;
2431 PyObject * _argo0 = 0;
2432 PyObject * _obj1 = 0;
2433 char *_kwnames[] = { "self","name","flags", NULL };
2434
2435 self = self;
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2437 return NULL;
2438 if (_argo0) {
2439 if (_argo0 == Py_None) { _arg0 = NULL; }
2440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2442 return NULL;
2443 }
2444 }
2445 {
2446 #if PYTHON_API_VERSION >= 1009
2447 char* tmpPtr; int tmpSize;
2448 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2449 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2450 return NULL;
2451 }
2452 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2453 return NULL;
2454 _arg1 = new wxString(tmpPtr, tmpSize);
2455 #else
2456 if (!PyString_Check(_obj1)) {
2457 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2458 return NULL;
2459 }
2460 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2461 #endif
2462 }
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) return NULL;
2469 } _resultobj = Py_BuildValue("i",_result);
2470 {
2471 if (_obj1)
2472 delete _arg1;
2473 }
2474 return _resultobj;
2475 }
2476
2477 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2478 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject * _resultobj;
2480 long _result;
2481 wxIcon * _arg0;
2482 PyObject * _argo0 = 0;
2483 char *_kwnames[] = { "self", NULL };
2484
2485 self = self;
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2487 return NULL;
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2492 return NULL;
2493 }
2494 }
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 _result = (long )wxIcon_GetHandle(_arg0);
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) return NULL;
2501 } _resultobj = Py_BuildValue("l",_result);
2502 return _resultobj;
2503 }
2504
2505 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2506 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject * _resultobj;
2508 wxIcon * _arg0;
2509 long _arg1;
2510 PyObject * _argo0 = 0;
2511 char *_kwnames[] = { "self","handle", NULL };
2512
2513 self = self;
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2515 return NULL;
2516 if (_argo0) {
2517 if (_argo0 == Py_None) { _arg0 = NULL; }
2518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2520 return NULL;
2521 }
2522 }
2523 {
2524 PyThreadState* __tstate = wxPyBeginAllowThreads();
2525 wxIcon_SetHandle(_arg0,_arg1);
2526
2527 wxPyEndAllowThreads(__tstate);
2528 if (PyErr_Occurred()) return NULL;
2529 } Py_INCREF(Py_None);
2530 _resultobj = Py_None;
2531 return _resultobj;
2532 }
2533
2534 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2535 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject * _resultobj;
2537 bool _result;
2538 wxIcon * _arg0;
2539 PyObject * _argo0 = 0;
2540 char *_kwnames[] = { "self", NULL };
2541
2542 self = self;
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2544 return NULL;
2545 if (_argo0) {
2546 if (_argo0 == Py_None) { _arg0 = NULL; }
2547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2549 return NULL;
2550 }
2551 }
2552 {
2553 PyThreadState* __tstate = wxPyBeginAllowThreads();
2554 _result = (bool )wxIcon_Ok(_arg0);
2555
2556 wxPyEndAllowThreads(__tstate);
2557 if (PyErr_Occurred()) return NULL;
2558 } _resultobj = Py_BuildValue("i",_result);
2559 return _resultobj;
2560 }
2561
2562 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2563 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject * _resultobj;
2565 int _result;
2566 wxIcon * _arg0;
2567 PyObject * _argo0 = 0;
2568 char *_kwnames[] = { "self", NULL };
2569
2570 self = self;
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2572 return NULL;
2573 if (_argo0) {
2574 if (_argo0 == Py_None) { _arg0 = NULL; }
2575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2577 return NULL;
2578 }
2579 }
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 _result = (int )wxIcon_GetWidth(_arg0);
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) return NULL;
2586 } _resultobj = Py_BuildValue("i",_result);
2587 return _resultobj;
2588 }
2589
2590 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2591 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject * _resultobj;
2593 int _result;
2594 wxIcon * _arg0;
2595 PyObject * _argo0 = 0;
2596 char *_kwnames[] = { "self", NULL };
2597
2598 self = self;
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2600 return NULL;
2601 if (_argo0) {
2602 if (_argo0 == Py_None) { _arg0 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 PyThreadState* __tstate = wxPyBeginAllowThreads();
2610 _result = (int )wxIcon_GetHeight(_arg0);
2611
2612 wxPyEndAllowThreads(__tstate);
2613 if (PyErr_Occurred()) return NULL;
2614 } _resultobj = Py_BuildValue("i",_result);
2615 return _resultobj;
2616 }
2617
2618 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2619 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject * _resultobj;
2621 int _result;
2622 wxIcon * _arg0;
2623 PyObject * _argo0 = 0;
2624 char *_kwnames[] = { "self", NULL };
2625
2626 self = self;
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2628 return NULL;
2629 if (_argo0) {
2630 if (_argo0 == Py_None) { _arg0 = NULL; }
2631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2633 return NULL;
2634 }
2635 }
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 _result = (int )wxIcon_GetDepth(_arg0);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) return NULL;
2642 } _resultobj = Py_BuildValue("i",_result);
2643 return _resultobj;
2644 }
2645
2646 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2647 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject * _resultobj;
2649 wxIcon * _arg0;
2650 int _arg1;
2651 PyObject * _argo0 = 0;
2652 char *_kwnames[] = { "self","w", NULL };
2653
2654 self = self;
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2656 return NULL;
2657 if (_argo0) {
2658 if (_argo0 == Py_None) { _arg0 = NULL; }
2659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2661 return NULL;
2662 }
2663 }
2664 {
2665 PyThreadState* __tstate = wxPyBeginAllowThreads();
2666 wxIcon_SetWidth(_arg0,_arg1);
2667
2668 wxPyEndAllowThreads(__tstate);
2669 if (PyErr_Occurred()) return NULL;
2670 } Py_INCREF(Py_None);
2671 _resultobj = Py_None;
2672 return _resultobj;
2673 }
2674
2675 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2676 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject * _resultobj;
2678 wxIcon * _arg0;
2679 int _arg1;
2680 PyObject * _argo0 = 0;
2681 char *_kwnames[] = { "self","h", NULL };
2682
2683 self = self;
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2685 return NULL;
2686 if (_argo0) {
2687 if (_argo0 == Py_None) { _arg0 = NULL; }
2688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2690 return NULL;
2691 }
2692 }
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 wxIcon_SetHeight(_arg0,_arg1);
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) return NULL;
2699 } Py_INCREF(Py_None);
2700 _resultobj = Py_None;
2701 return _resultobj;
2702 }
2703
2704 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2705 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 wxIcon * _arg0;
2708 int _arg1;
2709 PyObject * _argo0 = 0;
2710 char *_kwnames[] = { "self","d", NULL };
2711
2712 self = self;
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2714 return NULL;
2715 if (_argo0) {
2716 if (_argo0 == Py_None) { _arg0 = NULL; }
2717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2719 return NULL;
2720 }
2721 }
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 wxIcon_SetDepth(_arg0,_arg1);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) return NULL;
2728 } Py_INCREF(Py_None);
2729 _resultobj = Py_None;
2730 return _resultobj;
2731 }
2732
2733 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2734 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 wxIcon * _arg0;
2737 wxSize * _arg1;
2738 PyObject * _argo0 = 0;
2739 wxSize temp;
2740 PyObject * _obj1 = 0;
2741 char *_kwnames[] = { "self","size", NULL };
2742
2743 self = self;
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2745 return NULL;
2746 if (_argo0) {
2747 if (_argo0 == Py_None) { _arg0 = NULL; }
2748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2750 return NULL;
2751 }
2752 }
2753 {
2754 _arg1 = &temp;
2755 if (! wxSize_helper(_obj1, &_arg1))
2756 return NULL;
2757 }
2758 {
2759 PyThreadState* __tstate = wxPyBeginAllowThreads();
2760 wxIcon_SetSize(_arg0,*_arg1);
2761
2762 wxPyEndAllowThreads(__tstate);
2763 if (PyErr_Occurred()) return NULL;
2764 } Py_INCREF(Py_None);
2765 _resultobj = Py_None;
2766 return _resultobj;
2767 }
2768
2769 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2770 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject * _resultobj;
2772 wxIcon * _arg0;
2773 wxBitmap * _arg1;
2774 PyObject * _argo0 = 0;
2775 PyObject * _argo1 = 0;
2776 char *_kwnames[] = { "self","bmp", NULL };
2777
2778 self = self;
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2780 return NULL;
2781 if (_argo0) {
2782 if (_argo0 == Py_None) { _arg0 = NULL; }
2783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2785 return NULL;
2786 }
2787 }
2788 if (_argo1) {
2789 if (_argo1 == Py_None) { _arg1 = NULL; }
2790 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2791 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2792 return NULL;
2793 }
2794 }
2795 {
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) return NULL;
2801 } Py_INCREF(Py_None);
2802 _resultobj = Py_None;
2803 return _resultobj;
2804 }
2805
2806 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2807 wxCursor *src;
2808 wxGDIObject *dest;
2809 src = (wxCursor *) ptr;
2810 dest = (wxGDIObject *) src;
2811 return (void *) dest;
2812 }
2813
2814 static void *SwigwxCursorTowxObject(void *ptr) {
2815 wxCursor *src;
2816 wxObject *dest;
2817 src = (wxCursor *) ptr;
2818 dest = (wxObject *) src;
2819 return (void *) dest;
2820 }
2821
2822 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2823 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2824 PyObject * _resultobj;
2825 wxCursor * _result;
2826 wxString * _arg0;
2827 long _arg1;
2828 int _arg2 = (int ) 0;
2829 int _arg3 = (int ) 0;
2830 PyObject * _obj0 = 0;
2831 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2832 char _ptemp[128];
2833
2834 self = self;
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2836 return NULL;
2837 {
2838 #if PYTHON_API_VERSION >= 1009
2839 char* tmpPtr; int tmpSize;
2840 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2841 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2842 return NULL;
2843 }
2844 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2845 return NULL;
2846 _arg0 = new wxString(tmpPtr, tmpSize);
2847 #else
2848 if (!PyString_Check(_obj0)) {
2849 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2850 return NULL;
2851 }
2852 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2853 #endif
2854 }
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) return NULL;
2861 } if (_result) {
2862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2863 _resultobj = Py_BuildValue("s",_ptemp);
2864 } else {
2865 Py_INCREF(Py_None);
2866 _resultobj = Py_None;
2867 }
2868 {
2869 if (_obj0)
2870 delete _arg0;
2871 }
2872 return _resultobj;
2873 }
2874
2875 #define delete_wxCursor(_swigobj) (delete _swigobj)
2876 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject * _resultobj;
2878 wxCursor * _arg0;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2889 return NULL;
2890 }
2891 }
2892 {
2893 PyThreadState* __tstate = wxPyBeginAllowThreads();
2894 delete_wxCursor(_arg0);
2895
2896 wxPyEndAllowThreads(__tstate);
2897 if (PyErr_Occurred()) return NULL;
2898 } Py_INCREF(Py_None);
2899 _resultobj = Py_None;
2900 return _resultobj;
2901 }
2902
2903 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2904 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject * _resultobj;
2906 long _result;
2907 wxCursor * _arg0;
2908 PyObject * _argo0 = 0;
2909 char *_kwnames[] = { "self", NULL };
2910
2911 self = self;
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2913 return NULL;
2914 if (_argo0) {
2915 if (_argo0 == Py_None) { _arg0 = NULL; }
2916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2918 return NULL;
2919 }
2920 }
2921 {
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 _result = (long )wxCursor_GetHandle(_arg0);
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) return NULL;
2927 } _resultobj = Py_BuildValue("l",_result);
2928 return _resultobj;
2929 }
2930
2931 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2932 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxCursor * _arg0;
2935 long _arg1;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self","handle", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 PyThreadState* __tstate = wxPyBeginAllowThreads();
2951 wxCursor_SetHandle(_arg0,_arg1);
2952
2953 wxPyEndAllowThreads(__tstate);
2954 if (PyErr_Occurred()) return NULL;
2955 } Py_INCREF(Py_None);
2956 _resultobj = Py_None;
2957 return _resultobj;
2958 }
2959
2960 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2961 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject * _resultobj;
2963 bool _result;
2964 wxCursor * _arg0;
2965 PyObject * _argo0 = 0;
2966 char *_kwnames[] = { "self", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2970 return NULL;
2971 if (_argo0) {
2972 if (_argo0 == Py_None) { _arg0 = NULL; }
2973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2975 return NULL;
2976 }
2977 }
2978 {
2979 PyThreadState* __tstate = wxPyBeginAllowThreads();
2980 _result = (bool )wxCursor_Ok(_arg0);
2981
2982 wxPyEndAllowThreads(__tstate);
2983 if (PyErr_Occurred()) return NULL;
2984 } _resultobj = Py_BuildValue("i",_result);
2985 return _resultobj;
2986 }
2987
2988 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2989 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 int _result;
2992 wxCursor * _arg0;
2993 PyObject * _argo0 = 0;
2994 char *_kwnames[] = { "self", NULL };
2995
2996 self = self;
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2998 return NULL;
2999 if (_argo0) {
3000 if (_argo0 == Py_None) { _arg0 = NULL; }
3001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3003 return NULL;
3004 }
3005 }
3006 {
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
3008 _result = (int )wxCursor_GetWidth(_arg0);
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) return NULL;
3012 } _resultobj = Py_BuildValue("i",_result);
3013 return _resultobj;
3014 }
3015
3016 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3017 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3018 PyObject * _resultobj;
3019 int _result;
3020 wxCursor * _arg0;
3021 PyObject * _argo0 = 0;
3022 char *_kwnames[] = { "self", NULL };
3023
3024 self = self;
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3026 return NULL;
3027 if (_argo0) {
3028 if (_argo0 == Py_None) { _arg0 = NULL; }
3029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3031 return NULL;
3032 }
3033 }
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 _result = (int )wxCursor_GetHeight(_arg0);
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) return NULL;
3040 } _resultobj = Py_BuildValue("i",_result);
3041 return _resultobj;
3042 }
3043
3044 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3045 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3046 PyObject * _resultobj;
3047 int _result;
3048 wxCursor * _arg0;
3049 PyObject * _argo0 = 0;
3050 char *_kwnames[] = { "self", NULL };
3051
3052 self = self;
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3054 return NULL;
3055 if (_argo0) {
3056 if (_argo0 == Py_None) { _arg0 = NULL; }
3057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3059 return NULL;
3060 }
3061 }
3062 {
3063 PyThreadState* __tstate = wxPyBeginAllowThreads();
3064 _result = (int )wxCursor_GetDepth(_arg0);
3065
3066 wxPyEndAllowThreads(__tstate);
3067 if (PyErr_Occurred()) return NULL;
3068 } _resultobj = Py_BuildValue("i",_result);
3069 return _resultobj;
3070 }
3071
3072 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3073 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject * _resultobj;
3075 wxCursor * _arg0;
3076 int _arg1;
3077 PyObject * _argo0 = 0;
3078 char *_kwnames[] = { "self","w", NULL };
3079
3080 self = self;
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3082 return NULL;
3083 if (_argo0) {
3084 if (_argo0 == Py_None) { _arg0 = NULL; }
3085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3087 return NULL;
3088 }
3089 }
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 wxCursor_SetWidth(_arg0,_arg1);
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) return NULL;
3096 } Py_INCREF(Py_None);
3097 _resultobj = Py_None;
3098 return _resultobj;
3099 }
3100
3101 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3102 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject * _resultobj;
3104 wxCursor * _arg0;
3105 int _arg1;
3106 PyObject * _argo0 = 0;
3107 char *_kwnames[] = { "self","h", NULL };
3108
3109 self = self;
3110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3111 return NULL;
3112 if (_argo0) {
3113 if (_argo0 == Py_None) { _arg0 = NULL; }
3114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3116 return NULL;
3117 }
3118 }
3119 {
3120 PyThreadState* __tstate = wxPyBeginAllowThreads();
3121 wxCursor_SetHeight(_arg0,_arg1);
3122
3123 wxPyEndAllowThreads(__tstate);
3124 if (PyErr_Occurred()) return NULL;
3125 } Py_INCREF(Py_None);
3126 _resultobj = Py_None;
3127 return _resultobj;
3128 }
3129
3130 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3131 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject * _resultobj;
3133 wxCursor * _arg0;
3134 int _arg1;
3135 PyObject * _argo0 = 0;
3136 char *_kwnames[] = { "self","d", NULL };
3137
3138 self = self;
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3140 return NULL;
3141 if (_argo0) {
3142 if (_argo0 == Py_None) { _arg0 = NULL; }
3143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3145 return NULL;
3146 }
3147 }
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 wxCursor_SetDepth(_arg0,_arg1);
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) return NULL;
3154 } Py_INCREF(Py_None);
3155 _resultobj = Py_None;
3156 return _resultobj;
3157 }
3158
3159 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3160 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3161 PyObject * _resultobj;
3162 wxCursor * _arg0;
3163 wxSize * _arg1;
3164 PyObject * _argo0 = 0;
3165 wxSize temp;
3166 PyObject * _obj1 = 0;
3167 char *_kwnames[] = { "self","size", NULL };
3168
3169 self = self;
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3171 return NULL;
3172 if (_argo0) {
3173 if (_argo0 == Py_None) { _arg0 = NULL; }
3174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3176 return NULL;
3177 }
3178 }
3179 {
3180 _arg1 = &temp;
3181 if (! wxSize_helper(_obj1, &_arg1))
3182 return NULL;
3183 }
3184 {
3185 PyThreadState* __tstate = wxPyBeginAllowThreads();
3186 wxCursor_SetSize(_arg0,*_arg1);
3187
3188 wxPyEndAllowThreads(__tstate);
3189 if (PyErr_Occurred()) return NULL;
3190 } Py_INCREF(Py_None);
3191 _resultobj = Py_None;
3192 return _resultobj;
3193 }
3194
3195 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3196 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject * _resultobj;
3198 wxNativeFontInfo * _result;
3199 char *_kwnames[] = { NULL };
3200 char _ptemp[128];
3201
3202 self = self;
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
3204 return NULL;
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
3208
3209 wxPyEndAllowThreads(__tstate);
3210 if (PyErr_Occurred()) return NULL;
3211 } if (_result) {
3212 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3213 _resultobj = Py_BuildValue("s",_ptemp);
3214 } else {
3215 Py_INCREF(Py_None);
3216 _resultobj = Py_None;
3217 }
3218 return _resultobj;
3219 }
3220
3221 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3222 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3223 PyObject * _resultobj;
3224 wxNativeFontInfo * _arg0;
3225 PyObject * _argo0 = 0;
3226 char *_kwnames[] = { "self", NULL };
3227
3228 self = self;
3229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
3230 return NULL;
3231 if (_argo0) {
3232 if (_argo0 == Py_None) { _arg0 = NULL; }
3233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3235 return NULL;
3236 }
3237 }
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 wxNativeFontInfo_Init(_arg0);
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) return NULL;
3244 } Py_INCREF(Py_None);
3245 _resultobj = Py_None;
3246 return _resultobj;
3247 }
3248
3249 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3250 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject * _resultobj;
3252 int _result;
3253 wxNativeFontInfo * _arg0;
3254 PyObject * _argo0 = 0;
3255 char *_kwnames[] = { "self", NULL };
3256
3257 self = self;
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
3259 return NULL;
3260 if (_argo0) {
3261 if (_argo0 == Py_None) { _arg0 = NULL; }
3262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3264 return NULL;
3265 }
3266 }
3267 {
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
3270
3271 wxPyEndAllowThreads(__tstate);
3272 if (PyErr_Occurred()) return NULL;
3273 } _resultobj = Py_BuildValue("i",_result);
3274 return _resultobj;
3275 }
3276
3277 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3278 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3279 PyObject * _resultobj;
3280 wxFontStyle _result;
3281 wxNativeFontInfo * _arg0;
3282 PyObject * _argo0 = 0;
3283 char *_kwnames[] = { "self", NULL };
3284
3285 self = self;
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
3287 return NULL;
3288 if (_argo0) {
3289 if (_argo0 == Py_None) { _arg0 = NULL; }
3290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3292 return NULL;
3293 }
3294 }
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) return NULL;
3301 } _resultobj = Py_BuildValue("i",_result);
3302 return _resultobj;
3303 }
3304
3305 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3306 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject * _resultobj;
3308 wxFontWeight _result;
3309 wxNativeFontInfo * _arg0;
3310 PyObject * _argo0 = 0;
3311 char *_kwnames[] = { "self", NULL };
3312
3313 self = self;
3314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
3315 return NULL;
3316 if (_argo0) {
3317 if (_argo0 == Py_None) { _arg0 = NULL; }
3318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3320 return NULL;
3321 }
3322 }
3323 {
3324 PyThreadState* __tstate = wxPyBeginAllowThreads();
3325 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
3326
3327 wxPyEndAllowThreads(__tstate);
3328 if (PyErr_Occurred()) return NULL;
3329 } _resultobj = Py_BuildValue("i",_result);
3330 return _resultobj;
3331 }
3332
3333 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3334 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3335 PyObject * _resultobj;
3336 bool _result;
3337 wxNativeFontInfo * _arg0;
3338 PyObject * _argo0 = 0;
3339 char *_kwnames[] = { "self", NULL };
3340
3341 self = self;
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
3343 return NULL;
3344 if (_argo0) {
3345 if (_argo0 == Py_None) { _arg0 = NULL; }
3346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3348 return NULL;
3349 }
3350 }
3351 {
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
3354
3355 wxPyEndAllowThreads(__tstate);
3356 if (PyErr_Occurred()) return NULL;
3357 } _resultobj = Py_BuildValue("i",_result);
3358 return _resultobj;
3359 }
3360
3361 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3362 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3363 PyObject * _resultobj;
3364 wxString * _result;
3365 wxNativeFontInfo * _arg0;
3366 PyObject * _argo0 = 0;
3367 char *_kwnames[] = { "self", NULL };
3368
3369 self = self;
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
3371 return NULL;
3372 if (_argo0) {
3373 if (_argo0 == Py_None) { _arg0 = NULL; }
3374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3376 return NULL;
3377 }
3378 }
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) return NULL;
3385 }{
3386 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3387 }
3388 {
3389 delete _result;
3390 }
3391 return _resultobj;
3392 }
3393
3394 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3395 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3396 PyObject * _resultobj;
3397 wxFontFamily _result;
3398 wxNativeFontInfo * _arg0;
3399 PyObject * _argo0 = 0;
3400 char *_kwnames[] = { "self", NULL };
3401
3402 self = self;
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
3404 return NULL;
3405 if (_argo0) {
3406 if (_argo0 == Py_None) { _arg0 = NULL; }
3407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3409 return NULL;
3410 }
3411 }
3412 {
3413 PyThreadState* __tstate = wxPyBeginAllowThreads();
3414 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
3415
3416 wxPyEndAllowThreads(__tstate);
3417 if (PyErr_Occurred()) return NULL;
3418 } _resultobj = Py_BuildValue("i",_result);
3419 return _resultobj;
3420 }
3421
3422 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3423 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3424 PyObject * _resultobj;
3425 wxFontEncoding _result;
3426 wxNativeFontInfo * _arg0;
3427 PyObject * _argo0 = 0;
3428 char *_kwnames[] = { "self", NULL };
3429
3430 self = self;
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
3432 return NULL;
3433 if (_argo0) {
3434 if (_argo0 == Py_None) { _arg0 = NULL; }
3435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3437 return NULL;
3438 }
3439 }
3440 {
3441 PyThreadState* __tstate = wxPyBeginAllowThreads();
3442 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
3443
3444 wxPyEndAllowThreads(__tstate);
3445 if (PyErr_Occurred()) return NULL;
3446 } _resultobj = Py_BuildValue("i",_result);
3447 return _resultobj;
3448 }
3449
3450 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3451 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject * _resultobj;
3453 wxNativeFontInfo * _arg0;
3454 int _arg1;
3455 PyObject * _argo0 = 0;
3456 char *_kwnames[] = { "self","pointsize", NULL };
3457
3458 self = self;
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
3460 return NULL;
3461 if (_argo0) {
3462 if (_argo0 == Py_None) { _arg0 = NULL; }
3463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3465 return NULL;
3466 }
3467 }
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
3471
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) return NULL;
3474 } Py_INCREF(Py_None);
3475 _resultobj = Py_None;
3476 return _resultobj;
3477 }
3478
3479 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3480 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3481 PyObject * _resultobj;
3482 wxNativeFontInfo * _arg0;
3483 wxFontStyle _arg1;
3484 PyObject * _argo0 = 0;
3485 char *_kwnames[] = { "self","style", NULL };
3486
3487 self = self;
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
3489 return NULL;
3490 if (_argo0) {
3491 if (_argo0 == Py_None) { _arg0 = NULL; }
3492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3494 return NULL;
3495 }
3496 }
3497 {
3498 PyThreadState* __tstate = wxPyBeginAllowThreads();
3499 wxNativeFontInfo_SetStyle(_arg0,_arg1);
3500
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) return NULL;
3503 } Py_INCREF(Py_None);
3504 _resultobj = Py_None;
3505 return _resultobj;
3506 }
3507
3508 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3509 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3510 PyObject * _resultobj;
3511 wxNativeFontInfo * _arg0;
3512 wxFontWeight _arg1;
3513 PyObject * _argo0 = 0;
3514 char *_kwnames[] = { "self","weight", NULL };
3515
3516 self = self;
3517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
3518 return NULL;
3519 if (_argo0) {
3520 if (_argo0 == Py_None) { _arg0 = NULL; }
3521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3523 return NULL;
3524 }
3525 }
3526 {
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 wxNativeFontInfo_SetWeight(_arg0,_arg1);
3529
3530 wxPyEndAllowThreads(__tstate);
3531 if (PyErr_Occurred()) return NULL;
3532 } Py_INCREF(Py_None);
3533 _resultobj = Py_None;
3534 return _resultobj;
3535 }
3536
3537 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3538 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject * _resultobj;
3540 wxNativeFontInfo * _arg0;
3541 bool _arg1;
3542 PyObject * _argo0 = 0;
3543 int tempbool1;
3544 char *_kwnames[] = { "self","underlined", NULL };
3545
3546 self = self;
3547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3548 return NULL;
3549 if (_argo0) {
3550 if (_argo0 == Py_None) { _arg0 = NULL; }
3551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3553 return NULL;
3554 }
3555 }
3556 _arg1 = (bool ) tempbool1;
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) return NULL;
3563 } Py_INCREF(Py_None);
3564 _resultobj = Py_None;
3565 return _resultobj;
3566 }
3567
3568 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3569 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject * _resultobj;
3571 wxNativeFontInfo * _arg0;
3572 wxString * _arg1;
3573 PyObject * _argo0 = 0;
3574 PyObject * _obj1 = 0;
3575 char *_kwnames[] = { "self","facename", NULL };
3576
3577 self = self;
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
3579 return NULL;
3580 if (_argo0) {
3581 if (_argo0 == Py_None) { _arg0 = NULL; }
3582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3584 return NULL;
3585 }
3586 }
3587 {
3588 #if PYTHON_API_VERSION >= 1009
3589 char* tmpPtr; int tmpSize;
3590 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3591 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3592 return NULL;
3593 }
3594 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3595 return NULL;
3596 _arg1 = new wxString(tmpPtr, tmpSize);
3597 #else
3598 if (!PyString_Check(_obj1)) {
3599 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3600 return NULL;
3601 }
3602 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3603 #endif
3604 }
3605 {
3606 PyThreadState* __tstate = wxPyBeginAllowThreads();
3607 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
3608
3609 wxPyEndAllowThreads(__tstate);
3610 if (PyErr_Occurred()) return NULL;
3611 } Py_INCREF(Py_None);
3612 _resultobj = Py_None;
3613 {
3614 if (_obj1)
3615 delete _arg1;
3616 }
3617 return _resultobj;
3618 }
3619
3620 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3621 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3622 PyObject * _resultobj;
3623 wxNativeFontInfo * _arg0;
3624 wxFontFamily _arg1;
3625 PyObject * _argo0 = 0;
3626 char *_kwnames[] = { "self","family", NULL };
3627
3628 self = self;
3629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
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_SetFamily. Expected _wxNativeFontInfo_p.");
3635 return NULL;
3636 }
3637 }
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 wxNativeFontInfo_SetFamily(_arg0,_arg1);
3641
3642 wxPyEndAllowThreads(__tstate);
3643 if (PyErr_Occurred()) return NULL;
3644 } Py_INCREF(Py_None);
3645 _resultobj = Py_None;
3646 return _resultobj;
3647 }
3648
3649 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3650 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3651 PyObject * _resultobj;
3652 wxNativeFontInfo * _arg0;
3653 wxFontEncoding _arg1;
3654 PyObject * _argo0 = 0;
3655 char *_kwnames[] = { "self","encoding", NULL };
3656
3657 self = self;
3658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
3659 return NULL;
3660 if (_argo0) {
3661 if (_argo0 == Py_None) { _arg0 = NULL; }
3662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3664 return NULL;
3665 }
3666 }
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
3670
3671 wxPyEndAllowThreads(__tstate);
3672 if (PyErr_Occurred()) return NULL;
3673 } Py_INCREF(Py_None);
3674 _resultobj = Py_None;
3675 return _resultobj;
3676 }
3677
3678 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3679 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3680 PyObject * _resultobj;
3681 bool _result;
3682 wxNativeFontInfo * _arg0;
3683 wxString * _arg1;
3684 PyObject * _argo0 = 0;
3685 PyObject * _obj1 = 0;
3686 char *_kwnames[] = { "self","s", NULL };
3687
3688 self = self;
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3690 return NULL;
3691 if (_argo0) {
3692 if (_argo0 == Py_None) { _arg0 = NULL; }
3693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3695 return NULL;
3696 }
3697 }
3698 {
3699 #if PYTHON_API_VERSION >= 1009
3700 char* tmpPtr; int tmpSize;
3701 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3703 return NULL;
3704 }
3705 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3706 return NULL;
3707 _arg1 = new wxString(tmpPtr, tmpSize);
3708 #else
3709 if (!PyString_Check(_obj1)) {
3710 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3711 return NULL;
3712 }
3713 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3714 #endif
3715 }
3716 {
3717 PyThreadState* __tstate = wxPyBeginAllowThreads();
3718 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3719
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) return NULL;
3722 } _resultobj = Py_BuildValue("i",_result);
3723 {
3724 if (_obj1)
3725 delete _arg1;
3726 }
3727 return _resultobj;
3728 }
3729
3730 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3731 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject * _resultobj;
3733 wxString * _result;
3734 wxNativeFontInfo * _arg0;
3735 PyObject * _argo0 = 0;
3736 char *_kwnames[] = { "self", NULL };
3737
3738 self = self;
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3740 return NULL;
3741 if (_argo0) {
3742 if (_argo0 == Py_None) { _arg0 = NULL; }
3743 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3744 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3745 return NULL;
3746 }
3747 }
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3751
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) return NULL;
3754 }{
3755 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3756 }
3757 {
3758 delete _result;
3759 }
3760 return _resultobj;
3761 }
3762
3763 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3764 return self->ToString();
3765 }
3766 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3767 PyObject * _resultobj;
3768 wxString * _result;
3769 wxNativeFontInfo * _arg0;
3770 PyObject * _argo0 = 0;
3771 char *_kwnames[] = { "self", NULL };
3772
3773 self = self;
3774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3775 return NULL;
3776 if (_argo0) {
3777 if (_argo0 == Py_None) { _arg0 = NULL; }
3778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3780 return NULL;
3781 }
3782 }
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) return NULL;
3789 }{
3790 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3791 }
3792 {
3793 delete _result;
3794 }
3795 return _resultobj;
3796 }
3797
3798 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3799 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3800 PyObject * _resultobj;
3801 bool _result;
3802 wxNativeFontInfo * _arg0;
3803 wxString * _arg1;
3804 PyObject * _argo0 = 0;
3805 PyObject * _obj1 = 0;
3806 char *_kwnames[] = { "self","s", NULL };
3807
3808 self = self;
3809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3810 return NULL;
3811 if (_argo0) {
3812 if (_argo0 == Py_None) { _arg0 = NULL; }
3813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3815 return NULL;
3816 }
3817 }
3818 {
3819 #if PYTHON_API_VERSION >= 1009
3820 char* tmpPtr; int tmpSize;
3821 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3822 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3823 return NULL;
3824 }
3825 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3826 return NULL;
3827 _arg1 = new wxString(tmpPtr, tmpSize);
3828 #else
3829 if (!PyString_Check(_obj1)) {
3830 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3831 return NULL;
3832 }
3833 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3834 #endif
3835 }
3836 {
3837 PyThreadState* __tstate = wxPyBeginAllowThreads();
3838 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
3839
3840 wxPyEndAllowThreads(__tstate);
3841 if (PyErr_Occurred()) return NULL;
3842 } _resultobj = Py_BuildValue("i",_result);
3843 {
3844 if (_obj1)
3845 delete _arg1;
3846 }
3847 return _resultobj;
3848 }
3849
3850 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3851 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject * _resultobj;
3853 wxString * _result;
3854 wxNativeFontInfo * _arg0;
3855 PyObject * _argo0 = 0;
3856 char *_kwnames[] = { "self", NULL };
3857
3858 self = self;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
3860 return NULL;
3861 if (_argo0) {
3862 if (_argo0 == Py_None) { _arg0 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3865 return NULL;
3866 }
3867 }
3868 {
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3871
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) return NULL;
3874 }{
3875 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3876 }
3877 {
3878 delete _result;
3879 }
3880 return _resultobj;
3881 }
3882
3883 #define new_wxFontMapper() (new wxFontMapper())
3884 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3885 PyObject * _resultobj;
3886 wxFontMapper * _result;
3887 char *_kwnames[] = { NULL };
3888 char _ptemp[128];
3889
3890 self = self;
3891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3892 return NULL;
3893 {
3894 PyThreadState* __tstate = wxPyBeginAllowThreads();
3895 _result = (wxFontMapper *)new_wxFontMapper();
3896
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) return NULL;
3899 } if (_result) {
3900 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3901 _resultobj = Py_BuildValue("s",_ptemp);
3902 } else {
3903 Py_INCREF(Py_None);
3904 _resultobj = Py_None;
3905 }
3906 return _resultobj;
3907 }
3908
3909 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3910 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3911 PyObject * _resultobj;
3912 wxFontMapper * _arg0;
3913 PyObject * _argo0 = 0;
3914 char *_kwnames[] = { "self", NULL };
3915
3916 self = self;
3917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3918 return NULL;
3919 if (_argo0) {
3920 if (_argo0 == Py_None) { _arg0 = NULL; }
3921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3923 return NULL;
3924 }
3925 }
3926 {
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 delete_wxFontMapper(_arg0);
3929
3930 wxPyEndAllowThreads(__tstate);
3931 if (PyErr_Occurred()) return NULL;
3932 } Py_INCREF(Py_None);
3933 _resultobj = Py_None;
3934 return _resultobj;
3935 }
3936
3937 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3938 wxFontEncoding alt_enc;
3939 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3940 return PyInt_FromLong(alt_enc);
3941 else {
3942 Py_INCREF(Py_None);
3943 return Py_None;
3944 }
3945 }
3946 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3947 PyObject * _resultobj;
3948 PyObject * _result;
3949 wxFontMapper * _arg0;
3950 wxFontEncoding _arg1;
3951 wxString * _arg2 = (wxString *) &wxEmptyString;
3952 bool _arg3 = (bool ) TRUE;
3953 PyObject * _argo0 = 0;
3954 PyObject * _obj2 = 0;
3955 int tempbool3 = (int) TRUE;
3956 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3957
3958 self = self;
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3960 return NULL;
3961 if (_argo0) {
3962 if (_argo0 == Py_None) { _arg0 = NULL; }
3963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3965 return NULL;
3966 }
3967 }
3968 if (_obj2)
3969 {
3970 #if PYTHON_API_VERSION >= 1009
3971 char* tmpPtr; int tmpSize;
3972 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3973 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3974 return NULL;
3975 }
3976 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3977 return NULL;
3978 _arg2 = new wxString(tmpPtr, tmpSize);
3979 #else
3980 if (!PyString_Check(_obj2)) {
3981 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3982 return NULL;
3983 }
3984 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3985 #endif
3986 }
3987 _arg3 = (bool ) tempbool3;
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3991
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) return NULL;
3994 }{
3995 _resultobj = _result;
3996 }
3997 {
3998 if (_obj2)
3999 delete _arg2;
4000 }
4001 return _resultobj;
4002 }
4003
4004 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
4005 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
4006 PyObject * _resultobj;
4007 bool _result;
4008 wxFontMapper * _arg0;
4009 wxFontEncoding _arg1;
4010 wxString * _arg2 = (wxString *) &wxEmptyString;
4011 PyObject * _argo0 = 0;
4012 PyObject * _obj2 = 0;
4013 char *_kwnames[] = { "self","encoding","facename", NULL };
4014
4015 self = self;
4016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
4017 return NULL;
4018 if (_argo0) {
4019 if (_argo0 == Py_None) { _arg0 = NULL; }
4020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
4022 return NULL;
4023 }
4024 }
4025 if (_obj2)
4026 {
4027 #if PYTHON_API_VERSION >= 1009
4028 char* tmpPtr; int tmpSize;
4029 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4030 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4031 return NULL;
4032 }
4033 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4034 return NULL;
4035 _arg2 = new wxString(tmpPtr, tmpSize);
4036 #else
4037 if (!PyString_Check(_obj2)) {
4038 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4039 return NULL;
4040 }
4041 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4042 #endif
4043 }
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
4047
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) return NULL;
4050 } _resultobj = Py_BuildValue("i",_result);
4051 {
4052 if (_obj2)
4053 delete _arg2;
4054 }
4055 return _resultobj;
4056 }
4057
4058 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
4059 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4060 PyObject * _resultobj;
4061 wxFontEncoding _result;
4062 wxFontMapper * _arg0;
4063 wxString * _arg1;
4064 bool _arg2 = (bool ) TRUE;
4065 PyObject * _argo0 = 0;
4066 PyObject * _obj1 = 0;
4067 int tempbool2 = (int) TRUE;
4068 char *_kwnames[] = { "self","charset","interactive", NULL };
4069
4070 self = self;
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
4072 return NULL;
4073 if (_argo0) {
4074 if (_argo0 == Py_None) { _arg0 = NULL; }
4075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
4077 return NULL;
4078 }
4079 }
4080 {
4081 #if PYTHON_API_VERSION >= 1009
4082 char* tmpPtr; int tmpSize;
4083 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4084 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4085 return NULL;
4086 }
4087 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4088 return NULL;
4089 _arg1 = new wxString(tmpPtr, tmpSize);
4090 #else
4091 if (!PyString_Check(_obj1)) {
4092 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4093 return NULL;
4094 }
4095 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4096 #endif
4097 }
4098 _arg2 = (bool ) tempbool2;
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) return NULL;
4105 } _resultobj = Py_BuildValue("i",_result);
4106 {
4107 if (_obj1)
4108 delete _arg1;
4109 }
4110 return _resultobj;
4111 }
4112
4113 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject * _resultobj;
4115 wxString * _result;
4116 wxFontEncoding _arg0;
4117 char *_kwnames[] = { "encoding", NULL };
4118
4119 self = self;
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
4121 return NULL;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) return NULL;
4128 }{
4129 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4130 }
4131 {
4132 delete _result;
4133 }
4134 return _resultobj;
4135 }
4136
4137 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
4138 PyObject * _resultobj;
4139 wxString * _result;
4140 wxFontEncoding _arg0;
4141 char *_kwnames[] = { "encoding", NULL };
4142
4143 self = self;
4144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
4145 return NULL;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) return NULL;
4152 }{
4153 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4154 }
4155 {
4156 delete _result;
4157 }
4158 return _resultobj;
4159 }
4160
4161 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4162 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject * _resultobj;
4164 wxFontMapper * _arg0;
4165 wxWindow * _arg1;
4166 PyObject * _argo0 = 0;
4167 PyObject * _argo1 = 0;
4168 char *_kwnames[] = { "self","parent", NULL };
4169
4170 self = self;
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
4172 return NULL;
4173 if (_argo0) {
4174 if (_argo0 == Py_None) { _arg0 = NULL; }
4175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4177 return NULL;
4178 }
4179 }
4180 if (_argo1) {
4181 if (_argo1 == Py_None) { _arg1 = NULL; }
4182 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4183 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4184 return NULL;
4185 }
4186 }
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 wxFontMapper_SetDialogParent(_arg0,_arg1);
4190
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) return NULL;
4193 } Py_INCREF(Py_None);
4194 _resultobj = Py_None;
4195 return _resultobj;
4196 }
4197
4198 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4199 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4200 PyObject * _resultobj;
4201 wxFontMapper * _arg0;
4202 wxString * _arg1;
4203 PyObject * _argo0 = 0;
4204 PyObject * _obj1 = 0;
4205 char *_kwnames[] = { "self","title", NULL };
4206
4207 self = self;
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
4209 return NULL;
4210 if (_argo0) {
4211 if (_argo0 == Py_None) { _arg0 = NULL; }
4212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4214 return NULL;
4215 }
4216 }
4217 {
4218 #if PYTHON_API_VERSION >= 1009
4219 char* tmpPtr; int tmpSize;
4220 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4221 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4222 return NULL;
4223 }
4224 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4225 return NULL;
4226 _arg1 = new wxString(tmpPtr, tmpSize);
4227 #else
4228 if (!PyString_Check(_obj1)) {
4229 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4230 return NULL;
4231 }
4232 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4233 #endif
4234 }
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) return NULL;
4241 } Py_INCREF(Py_None);
4242 _resultobj = Py_None;
4243 {
4244 if (_obj1)
4245 delete _arg1;
4246 }
4247 return _resultobj;
4248 }
4249
4250 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4251 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
4252 PyObject * _resultobj;
4253 wxFontMapper * _arg0;
4254 wxConfigBase * _arg1;
4255 PyObject * _argo0 = 0;
4256 PyObject * _argo1 = 0;
4257 char *_kwnames[] = { "self","config", NULL };
4258
4259 self = self;
4260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
4261 return NULL;
4262 if (_argo0) {
4263 if (_argo0 == Py_None) { _arg0 = NULL; }
4264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4266 return NULL;
4267 }
4268 }
4269 if (_argo1) {
4270 if (_argo1 == Py_None) { _arg1 = NULL; }
4271 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4272 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4273 return NULL;
4274 }
4275 }
4276 {
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 wxFontMapper_SetConfig(_arg0,_arg1);
4279
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) return NULL;
4282 } Py_INCREF(Py_None);
4283 _resultobj = Py_None;
4284 return _resultobj;
4285 }
4286
4287 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4288 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4289 PyObject * _resultobj;
4290 wxFontMapper * _arg0;
4291 wxString * _arg1;
4292 PyObject * _argo0 = 0;
4293 PyObject * _obj1 = 0;
4294 char *_kwnames[] = { "self","prefix", NULL };
4295
4296 self = self;
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
4298 return NULL;
4299 if (_argo0) {
4300 if (_argo0 == Py_None) { _arg0 = NULL; }
4301 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4303 return NULL;
4304 }
4305 }
4306 {
4307 #if PYTHON_API_VERSION >= 1009
4308 char* tmpPtr; int tmpSize;
4309 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4310 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4311 return NULL;
4312 }
4313 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4314 return NULL;
4315 _arg1 = new wxString(tmpPtr, tmpSize);
4316 #else
4317 if (!PyString_Check(_obj1)) {
4318 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4319 return NULL;
4320 }
4321 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4322 #endif
4323 }
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 wxFontMapper_SetConfigPath(_arg0,*_arg1);
4327
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) return NULL;
4330 } Py_INCREF(Py_None);
4331 _resultobj = Py_None;
4332 {
4333 if (_obj1)
4334 delete _arg1;
4335 }
4336 return _resultobj;
4337 }
4338
4339 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4340 PyObject * _resultobj;
4341 wxChar * _result;
4342 char *_kwnames[] = { NULL };
4343
4344 self = self;
4345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
4346 return NULL;
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
4350
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) return NULL;
4353 } _resultobj = Py_BuildValue("s", _result);
4354 return _resultobj;
4355 }
4356
4357 static void *SwigwxFontTowxGDIObject(void *ptr) {
4358 wxFont *src;
4359 wxGDIObject *dest;
4360 src = (wxFont *) ptr;
4361 dest = (wxGDIObject *) src;
4362 return (void *) dest;
4363 }
4364
4365 static void *SwigwxFontTowxObject(void *ptr) {
4366 wxFont *src;
4367 wxObject *dest;
4368 src = (wxFont *) ptr;
4369 dest = (wxObject *) src;
4370 return (void *) dest;
4371 }
4372
4373 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4374 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject * _resultobj;
4376 wxFont * _result;
4377 int _arg0;
4378 int _arg1;
4379 int _arg2;
4380 int _arg3;
4381 int _arg4 = (int ) FALSE;
4382 char * _arg5 = (char *) "";
4383 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4384 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
4385 char _ptemp[128];
4386
4387 self = self;
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4389 return NULL;
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) return NULL;
4396 } if (_result) {
4397 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4398 _resultobj = Py_BuildValue("s",_ptemp);
4399 } else {
4400 Py_INCREF(Py_None);
4401 _resultobj = Py_None;
4402 }
4403 return _resultobj;
4404 }
4405
4406 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4407 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4408 PyObject * _resultobj;
4409 wxFont * _result;
4410 wxNativeFontInfo * _arg0;
4411 PyObject * _argo0 = 0;
4412 char *_kwnames[] = { "info", NULL };
4413 char _ptemp[128];
4414
4415 self = self;
4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
4417 return NULL;
4418 if (_argo0) {
4419 if (_argo0 == Py_None) { _arg0 = NULL; }
4420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4422 return NULL;
4423 }
4424 }
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
4428
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) return NULL;
4431 } if (_result) {
4432 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4433 _resultobj = Py_BuildValue("s",_ptemp);
4434 } else {
4435 Py_INCREF(Py_None);
4436 _resultobj = Py_None;
4437 }
4438 return _resultobj;
4439 }
4440
4441 #define delete_wxFont(_swigobj) (delete _swigobj)
4442 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4443 PyObject * _resultobj;
4444 wxFont * _arg0;
4445 PyObject * _argo0 = 0;
4446 char *_kwnames[] = { "self", NULL };
4447
4448 self = self;
4449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
4450 return NULL;
4451 if (_argo0) {
4452 if (_argo0 == Py_None) { _arg0 = NULL; }
4453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4455 return NULL;
4456 }
4457 }
4458 {
4459 PyThreadState* __tstate = wxPyBeginAllowThreads();
4460 delete_wxFont(_arg0);
4461
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) return NULL;
4464 } Py_INCREF(Py_None);
4465 _resultobj = Py_None;
4466 return _resultobj;
4467 }
4468
4469 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4470 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4471 PyObject * _resultobj;
4472 bool _result;
4473 wxFont * _arg0;
4474 PyObject * _argo0 = 0;
4475 char *_kwnames[] = { "self", NULL };
4476
4477 self = self;
4478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
4479 return NULL;
4480 if (_argo0) {
4481 if (_argo0 == Py_None) { _arg0 = NULL; }
4482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4484 return NULL;
4485 }
4486 }
4487 {
4488 PyThreadState* __tstate = wxPyBeginAllowThreads();
4489 _result = (bool )wxFont_Ok(_arg0);
4490
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) return NULL;
4493 } _resultobj = Py_BuildValue("i",_result);
4494 return _resultobj;
4495 }
4496
4497 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4498 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4499 PyObject * _resultobj;
4500 int _result;
4501 wxFont * _arg0;
4502 PyObject * _argo0 = 0;
4503 char *_kwnames[] = { "self", NULL };
4504
4505 self = self;
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
4507 return NULL;
4508 if (_argo0) {
4509 if (_argo0 == Py_None) { _arg0 = NULL; }
4510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4512 return NULL;
4513 }
4514 }
4515 {
4516 PyThreadState* __tstate = wxPyBeginAllowThreads();
4517 _result = (int )wxFont_GetPointSize(_arg0);
4518
4519 wxPyEndAllowThreads(__tstate);
4520 if (PyErr_Occurred()) return NULL;
4521 } _resultobj = Py_BuildValue("i",_result);
4522 return _resultobj;
4523 }
4524
4525 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4526 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject * _resultobj;
4528 int _result;
4529 wxFont * _arg0;
4530 PyObject * _argo0 = 0;
4531 char *_kwnames[] = { "self", NULL };
4532
4533 self = self;
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
4535 return NULL;
4536 if (_argo0) {
4537 if (_argo0 == Py_None) { _arg0 = NULL; }
4538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4540 return NULL;
4541 }
4542 }
4543 {
4544 PyThreadState* __tstate = wxPyBeginAllowThreads();
4545 _result = (int )wxFont_GetFamily(_arg0);
4546
4547 wxPyEndAllowThreads(__tstate);
4548 if (PyErr_Occurred()) return NULL;
4549 } _resultobj = Py_BuildValue("i",_result);
4550 return _resultobj;
4551 }
4552
4553 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4554 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject * _resultobj;
4556 int _result;
4557 wxFont * _arg0;
4558 PyObject * _argo0 = 0;
4559 char *_kwnames[] = { "self", NULL };
4560
4561 self = self;
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
4563 return NULL;
4564 if (_argo0) {
4565 if (_argo0 == Py_None) { _arg0 = NULL; }
4566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4568 return NULL;
4569 }
4570 }
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 _result = (int )wxFont_GetStyle(_arg0);
4574
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) return NULL;
4577 } _resultobj = Py_BuildValue("i",_result);
4578 return _resultobj;
4579 }
4580
4581 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4582 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject * _resultobj;
4584 int _result;
4585 wxFont * _arg0;
4586 PyObject * _argo0 = 0;
4587 char *_kwnames[] = { "self", NULL };
4588
4589 self = self;
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4591 return NULL;
4592 if (_argo0) {
4593 if (_argo0 == Py_None) { _arg0 = NULL; }
4594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4596 return NULL;
4597 }
4598 }
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 _result = (int )wxFont_GetWeight(_arg0);
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) return NULL;
4605 } _resultobj = Py_BuildValue("i",_result);
4606 return _resultobj;
4607 }
4608
4609 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4610 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject * _resultobj;
4612 bool _result;
4613 wxFont * _arg0;
4614 PyObject * _argo0 = 0;
4615 char *_kwnames[] = { "self", NULL };
4616
4617 self = self;
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4619 return NULL;
4620 if (_argo0) {
4621 if (_argo0 == Py_None) { _arg0 = NULL; }
4622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4624 return NULL;
4625 }
4626 }
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 _result = (bool )wxFont_GetUnderlined(_arg0);
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) return NULL;
4633 } _resultobj = Py_BuildValue("i",_result);
4634 return _resultobj;
4635 }
4636
4637 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4638 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4639 PyObject * _resultobj;
4640 wxString * _result;
4641 wxFont * _arg0;
4642 PyObject * _argo0 = 0;
4643 char *_kwnames[] = { "self", NULL };
4644
4645 self = self;
4646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4647 return NULL;
4648 if (_argo0) {
4649 if (_argo0 == Py_None) { _arg0 = NULL; }
4650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4652 return NULL;
4653 }
4654 }
4655 {
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 _result = new wxString (wxFont_GetFaceName(_arg0));
4658
4659 wxPyEndAllowThreads(__tstate);
4660 if (PyErr_Occurred()) return NULL;
4661 }{
4662 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4663 }
4664 {
4665 delete _result;
4666 }
4667 return _resultobj;
4668 }
4669
4670 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4671 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4672 PyObject * _resultobj;
4673 wxFontEncoding _result;
4674 wxFont * _arg0;
4675 PyObject * _argo0 = 0;
4676 char *_kwnames[] = { "self", NULL };
4677
4678 self = self;
4679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4680 return NULL;
4681 if (_argo0) {
4682 if (_argo0 == Py_None) { _arg0 = NULL; }
4683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4685 return NULL;
4686 }
4687 }
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) return NULL;
4694 } _resultobj = Py_BuildValue("i",_result);
4695 return _resultobj;
4696 }
4697
4698 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4699 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4700 PyObject * _resultobj;
4701 wxNativeFontInfo * _result;
4702 wxFont * _arg0;
4703 PyObject * _argo0 = 0;
4704 char *_kwnames[] = { "self", NULL };
4705 char _ptemp[128];
4706
4707 self = self;
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4709 return NULL;
4710 if (_argo0) {
4711 if (_argo0 == Py_None) { _arg0 = NULL; }
4712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4714 return NULL;
4715 }
4716 }
4717 {
4718 PyThreadState* __tstate = wxPyBeginAllowThreads();
4719 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4720
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) return NULL;
4723 } if (_result) {
4724 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4725 _resultobj = Py_BuildValue("s",_ptemp);
4726 } else {
4727 Py_INCREF(Py_None);
4728 _resultobj = Py_None;
4729 }
4730 return _resultobj;
4731 }
4732
4733 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4734 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4735 PyObject * _resultobj;
4736 wxString * _result;
4737 wxFont * _arg0;
4738 PyObject * _argo0 = 0;
4739 char *_kwnames[] = { "self", NULL };
4740
4741 self = self;
4742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4743 return NULL;
4744 if (_argo0) {
4745 if (_argo0 == Py_None) { _arg0 = NULL; }
4746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4748 return NULL;
4749 }
4750 }
4751 {
4752 PyThreadState* __tstate = wxPyBeginAllowThreads();
4753 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4754
4755 wxPyEndAllowThreads(__tstate);
4756 if (PyErr_Occurred()) return NULL;
4757 }{
4758 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4759 }
4760 {
4761 delete _result;
4762 }
4763 return _resultobj;
4764 }
4765
4766 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4767 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4768 PyObject * _resultobj;
4769 wxString * _result;
4770 wxFont * _arg0;
4771 PyObject * _argo0 = 0;
4772 char *_kwnames[] = { "self", NULL };
4773
4774 self = self;
4775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4776 return NULL;
4777 if (_argo0) {
4778 if (_argo0 == Py_None) { _arg0 = NULL; }
4779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4781 return NULL;
4782 }
4783 }
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) return NULL;
4790 }{
4791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4792 }
4793 {
4794 delete _result;
4795 }
4796 return _resultobj;
4797 }
4798
4799 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4800 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject * _resultobj;
4802 wxFont * _arg0;
4803 int _arg1;
4804 PyObject * _argo0 = 0;
4805 char *_kwnames[] = { "self","pointSize", NULL };
4806
4807 self = self;
4808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4809 return NULL;
4810 if (_argo0) {
4811 if (_argo0 == Py_None) { _arg0 = NULL; }
4812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4814 return NULL;
4815 }
4816 }
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 wxFont_SetPointSize(_arg0,_arg1);
4820
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) return NULL;
4823 } Py_INCREF(Py_None);
4824 _resultobj = Py_None;
4825 return _resultobj;
4826 }
4827
4828 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4829 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4830 PyObject * _resultobj;
4831 wxFont * _arg0;
4832 int _arg1;
4833 PyObject * _argo0 = 0;
4834 char *_kwnames[] = { "self","family", NULL };
4835
4836 self = self;
4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4838 return NULL;
4839 if (_argo0) {
4840 if (_argo0 == Py_None) { _arg0 = NULL; }
4841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4843 return NULL;
4844 }
4845 }
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 wxFont_SetFamily(_arg0,_arg1);
4849
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) return NULL;
4852 } Py_INCREF(Py_None);
4853 _resultobj = Py_None;
4854 return _resultobj;
4855 }
4856
4857 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4858 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject * _resultobj;
4860 wxFont * _arg0;
4861 int _arg1;
4862 PyObject * _argo0 = 0;
4863 char *_kwnames[] = { "self","style", NULL };
4864
4865 self = self;
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4867 return NULL;
4868 if (_argo0) {
4869 if (_argo0 == Py_None) { _arg0 = NULL; }
4870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4872 return NULL;
4873 }
4874 }
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 wxFont_SetStyle(_arg0,_arg1);
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) return NULL;
4881 } Py_INCREF(Py_None);
4882 _resultobj = Py_None;
4883 return _resultobj;
4884 }
4885
4886 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4887 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject * _resultobj;
4889 wxFont * _arg0;
4890 int _arg1;
4891 PyObject * _argo0 = 0;
4892 char *_kwnames[] = { "self","weight", NULL };
4893
4894 self = self;
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4896 return NULL;
4897 if (_argo0) {
4898 if (_argo0 == Py_None) { _arg0 = NULL; }
4899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4901 return NULL;
4902 }
4903 }
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 wxFont_SetWeight(_arg0,_arg1);
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) return NULL;
4910 } Py_INCREF(Py_None);
4911 _resultobj = Py_None;
4912 return _resultobj;
4913 }
4914
4915 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4916 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4917 PyObject * _resultobj;
4918 wxFont * _arg0;
4919 wxString * _arg1;
4920 PyObject * _argo0 = 0;
4921 PyObject * _obj1 = 0;
4922 char *_kwnames[] = { "self","faceName", NULL };
4923
4924 self = self;
4925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4926 return NULL;
4927 if (_argo0) {
4928 if (_argo0 == Py_None) { _arg0 = NULL; }
4929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4931 return NULL;
4932 }
4933 }
4934 {
4935 #if PYTHON_API_VERSION >= 1009
4936 char* tmpPtr; int tmpSize;
4937 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4938 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4939 return NULL;
4940 }
4941 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4942 return NULL;
4943 _arg1 = new wxString(tmpPtr, tmpSize);
4944 #else
4945 if (!PyString_Check(_obj1)) {
4946 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4947 return NULL;
4948 }
4949 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4950 #endif
4951 }
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 wxFont_SetFaceName(_arg0,*_arg1);
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) return NULL;
4958 } Py_INCREF(Py_None);
4959 _resultobj = Py_None;
4960 {
4961 if (_obj1)
4962 delete _arg1;
4963 }
4964 return _resultobj;
4965 }
4966
4967 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4968 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4969 PyObject * _resultobj;
4970 wxFont * _arg0;
4971 bool _arg1;
4972 PyObject * _argo0 = 0;
4973 int tempbool1;
4974 char *_kwnames[] = { "self","underlined", NULL };
4975
4976 self = self;
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4978 return NULL;
4979 if (_argo0) {
4980 if (_argo0 == Py_None) { _arg0 = NULL; }
4981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4983 return NULL;
4984 }
4985 }
4986 _arg1 = (bool ) tempbool1;
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 wxFont_SetUnderlined(_arg0,_arg1);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) return NULL;
4993 } Py_INCREF(Py_None);
4994 _resultobj = Py_None;
4995 return _resultobj;
4996 }
4997
4998 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4999 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject * _resultobj;
5001 wxFont * _arg0;
5002 wxFontEncoding _arg1;
5003 PyObject * _argo0 = 0;
5004 char *_kwnames[] = { "self","encoding", NULL };
5005
5006 self = self;
5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
5008 return NULL;
5009 if (_argo0) {
5010 if (_argo0 == Py_None) { _arg0 = NULL; }
5011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
5013 return NULL;
5014 }
5015 }
5016 {
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 wxFont_SetEncoding(_arg0,_arg1);
5019
5020 wxPyEndAllowThreads(__tstate);
5021 if (PyErr_Occurred()) return NULL;
5022 } Py_INCREF(Py_None);
5023 _resultobj = Py_None;
5024 return _resultobj;
5025 }
5026
5027 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
5028 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5029 PyObject * _resultobj;
5030 wxFont * _arg0;
5031 wxNativeFontInfo * _arg1;
5032 PyObject * _argo0 = 0;
5033 PyObject * _argo1 = 0;
5034 char *_kwnames[] = { "self","info", NULL };
5035
5036 self = self;
5037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
5038 return NULL;
5039 if (_argo0) {
5040 if (_argo0 == Py_None) { _arg0 = NULL; }
5041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
5043 return NULL;
5044 }
5045 }
5046 if (_argo1) {
5047 if (_argo1 == Py_None) { _arg1 = NULL; }
5048 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
5049 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
5050 return NULL;
5051 }
5052 }
5053 {
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 wxFont_SetNativeFontInfo(_arg0,*_arg1);
5056
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) return NULL;
5059 } Py_INCREF(Py_None);
5060 _resultobj = Py_None;
5061 return _resultobj;
5062 }
5063
5064 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
5065 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject * _resultobj;
5067 wxFont * _arg0;
5068 wxString * _arg1;
5069 PyObject * _argo0 = 0;
5070 PyObject * _obj1 = 0;
5071 char *_kwnames[] = { "self","info", NULL };
5072
5073 self = self;
5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
5075 return NULL;
5076 if (_argo0) {
5077 if (_argo0 == Py_None) { _arg0 = NULL; }
5078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
5080 return NULL;
5081 }
5082 }
5083 {
5084 #if PYTHON_API_VERSION >= 1009
5085 char* tmpPtr; int tmpSize;
5086 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5087 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5088 return NULL;
5089 }
5090 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5091 return NULL;
5092 _arg1 = new wxString(tmpPtr, tmpSize);
5093 #else
5094 if (!PyString_Check(_obj1)) {
5095 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5096 return NULL;
5097 }
5098 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5099 #endif
5100 }
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) return NULL;
5107 } Py_INCREF(Py_None);
5108 _resultobj = Py_None;
5109 {
5110 if (_obj1)
5111 delete _arg1;
5112 }
5113 return _resultobj;
5114 }
5115
5116 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5117 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject * _resultobj;
5119 wxString * _result;
5120 wxFont * _arg0;
5121 PyObject * _argo0 = 0;
5122 char *_kwnames[] = { "self", NULL };
5123
5124 self = self;
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
5126 return NULL;
5127 if (_argo0) {
5128 if (_argo0 == Py_None) { _arg0 = NULL; }
5129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5131 return NULL;
5132 }
5133 }
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 _result = new wxString (wxFont_GetFamilyString(_arg0));
5137
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) return NULL;
5140 }{
5141 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5142 }
5143 {
5144 delete _result;
5145 }
5146 return _resultobj;
5147 }
5148
5149 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5150 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
5151 PyObject * _resultobj;
5152 wxString * _result;
5153 wxFont * _arg0;
5154 PyObject * _argo0 = 0;
5155 char *_kwnames[] = { "self", NULL };
5156
5157 self = self;
5158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
5159 return NULL;
5160 if (_argo0) {
5161 if (_argo0 == Py_None) { _arg0 = NULL; }
5162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5164 return NULL;
5165 }
5166 }
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 _result = new wxString (wxFont_GetStyleString(_arg0));
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) return NULL;
5173 }{
5174 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5175 }
5176 {
5177 delete _result;
5178 }
5179 return _resultobj;
5180 }
5181
5182 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5183 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
5184 PyObject * _resultobj;
5185 wxString * _result;
5186 wxFont * _arg0;
5187 PyObject * _argo0 = 0;
5188 char *_kwnames[] = { "self", NULL };
5189
5190 self = self;
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
5192 return NULL;
5193 if (_argo0) {
5194 if (_argo0 == Py_None) { _arg0 = NULL; }
5195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5197 return NULL;
5198 }
5199 }
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 _result = new wxString (wxFont_GetWeightString(_arg0));
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) return NULL;
5206 }{
5207 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5208 }
5209 {
5210 delete _result;
5211 }
5212 return _resultobj;
5213 }
5214
5215 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject * _resultobj;
5217 wxFontEncoding _result;
5218 char *_kwnames[] = { NULL };
5219
5220 self = self;
5221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
5222 return NULL;
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
5226
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) return NULL;
5229 } _resultobj = Py_BuildValue("i",_result);
5230 return _resultobj;
5231 }
5232
5233 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5234 PyObject * _resultobj;
5235 wxFontEncoding _arg0;
5236 char *_kwnames[] = { "encoding", NULL };
5237
5238 self = self;
5239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
5240 return NULL;
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 wxFont::SetDefaultEncoding(_arg0);
5244
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) return NULL;
5247 } Py_INCREF(Py_None);
5248 _resultobj = Py_None;
5249 return _resultobj;
5250 }
5251
5252 static void *SwigwxFontListTowxObject(void *ptr) {
5253 wxFontList *src;
5254 wxObject *dest;
5255 src = (wxFontList *) ptr;
5256 dest = (wxObject *) src;
5257 return (void *) dest;
5258 }
5259
5260 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5261 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject * _resultobj;
5263 wxFontList * _arg0;
5264 wxFont * _arg1;
5265 PyObject * _argo0 = 0;
5266 PyObject * _argo1 = 0;
5267 char *_kwnames[] = { "self","font", NULL };
5268
5269 self = self;
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
5271 return NULL;
5272 if (_argo0) {
5273 if (_argo0 == Py_None) { _arg0 = NULL; }
5274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5276 return NULL;
5277 }
5278 }
5279 if (_argo1) {
5280 if (_argo1 == Py_None) { _arg1 = NULL; }
5281 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5282 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5283 return NULL;
5284 }
5285 }
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 wxFontList_AddFont(_arg0,_arg1);
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) return NULL;
5292 } Py_INCREF(Py_None);
5293 _resultobj = Py_None;
5294 return _resultobj;
5295 }
5296
5297 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5298 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject * _resultobj;
5300 wxFont * _result;
5301 wxFontList * _arg0;
5302 int _arg1;
5303 int _arg2;
5304 int _arg3;
5305 int _arg4;
5306 bool _arg5 = (bool ) FALSE;
5307 char * _arg6 = (char *) NULL;
5308 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
5309 PyObject * _argo0 = 0;
5310 int tempbool5 = (int) FALSE;
5311 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
5312 char _ptemp[128];
5313
5314 self = self;
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
5316 return NULL;
5317 if (_argo0) {
5318 if (_argo0 == Py_None) { _arg0 = NULL; }
5319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5321 return NULL;
5322 }
5323 }
5324 _arg5 = (bool ) tempbool5;
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) return NULL;
5331 } if (_result) {
5332 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5333 _resultobj = Py_BuildValue("s",_ptemp);
5334 } else {
5335 Py_INCREF(Py_None);
5336 _resultobj = Py_None;
5337 }
5338 return _resultobj;
5339 }
5340
5341 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5342 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject * _resultobj;
5344 wxFontList * _arg0;
5345 wxFont * _arg1;
5346 PyObject * _argo0 = 0;
5347 PyObject * _argo1 = 0;
5348 char *_kwnames[] = { "self","font", NULL };
5349
5350 self = self;
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
5352 return NULL;
5353 if (_argo0) {
5354 if (_argo0 == Py_None) { _arg0 = NULL; }
5355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5357 return NULL;
5358 }
5359 }
5360 if (_argo1) {
5361 if (_argo1 == Py_None) { _arg1 = NULL; }
5362 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5363 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5364 return NULL;
5365 }
5366 }
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 wxFontList_RemoveFont(_arg0,_arg1);
5370
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) return NULL;
5373 } Py_INCREF(Py_None);
5374 _resultobj = Py_None;
5375 return _resultobj;
5376 }
5377
5378 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5379 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5380 PyObject * _resultobj;
5381 int _result;
5382 wxFontList * _arg0;
5383 PyObject * _argo0 = 0;
5384 char *_kwnames[] = { "self", NULL };
5385
5386 self = self;
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
5388 return NULL;
5389 if (_argo0) {
5390 if (_argo0 == Py_None) { _arg0 = NULL; }
5391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5393 return NULL;
5394 }
5395 }
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 _result = (int )wxFontList_GetCount(_arg0);
5399
5400 wxPyEndAllowThreads(__tstate);
5401 if (PyErr_Occurred()) return NULL;
5402 } _resultobj = Py_BuildValue("i",_result);
5403 return _resultobj;
5404 }
5405
5406 static void *SwigwxColourTowxObject(void *ptr) {
5407 wxColour *src;
5408 wxObject *dest;
5409 src = (wxColour *) ptr;
5410 dest = (wxObject *) src;
5411 return (void *) dest;
5412 }
5413
5414 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5415 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5416 PyObject * _resultobj;
5417 wxColour * _result;
5418 unsigned char _arg0 = (unsigned char ) 0;
5419 unsigned char _arg1 = (unsigned char ) 0;
5420 unsigned char _arg2 = (unsigned char ) 0;
5421 char *_kwnames[] = { "red","green","blue", NULL };
5422 char _ptemp[128];
5423
5424 self = self;
5425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
5426 return NULL;
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
5430
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) return NULL;
5433 } if (_result) {
5434 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5435 _resultobj = Py_BuildValue("s",_ptemp);
5436 } else {
5437 Py_INCREF(Py_None);
5438 _resultobj = Py_None;
5439 }
5440 return _resultobj;
5441 }
5442
5443 #define delete_wxColour(_swigobj) (delete _swigobj)
5444 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5445 PyObject * _resultobj;
5446 wxColour * _arg0;
5447 wxColour temp;
5448 PyObject * _obj0 = 0;
5449 char *_kwnames[] = { "self", NULL };
5450
5451 self = self;
5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
5453 return NULL;
5454 {
5455 _arg0 = &temp;
5456 if (! wxColour_helper(_obj0, &_arg0))
5457 return NULL;
5458 }
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 delete_wxColour(_arg0);
5462
5463 wxPyEndAllowThreads(__tstate);
5464 if (PyErr_Occurred()) return NULL;
5465 } Py_INCREF(Py_None);
5466 _resultobj = Py_None;
5467 return _resultobj;
5468 }
5469
5470 #define wxColour_Red(_swigobj) (_swigobj->Red())
5471 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject * _resultobj;
5473 unsigned char _result;
5474 wxColour * _arg0;
5475 wxColour temp;
5476 PyObject * _obj0 = 0;
5477 char *_kwnames[] = { "self", NULL };
5478
5479 self = self;
5480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
5481 return NULL;
5482 {
5483 _arg0 = &temp;
5484 if (! wxColour_helper(_obj0, &_arg0))
5485 return NULL;
5486 }
5487 {
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 _result = (unsigned char )wxColour_Red(_arg0);
5490
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) return NULL;
5493 } _resultobj = Py_BuildValue("b",_result);
5494 return _resultobj;
5495 }
5496
5497 #define wxColour_Green(_swigobj) (_swigobj->Green())
5498 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
5499 PyObject * _resultobj;
5500 unsigned char _result;
5501 wxColour * _arg0;
5502 wxColour temp;
5503 PyObject * _obj0 = 0;
5504 char *_kwnames[] = { "self", NULL };
5505
5506 self = self;
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
5508 return NULL;
5509 {
5510 _arg0 = &temp;
5511 if (! wxColour_helper(_obj0, &_arg0))
5512 return NULL;
5513 }
5514 {
5515 PyThreadState* __tstate = wxPyBeginAllowThreads();
5516 _result = (unsigned char )wxColour_Green(_arg0);
5517
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) return NULL;
5520 } _resultobj = Py_BuildValue("b",_result);
5521 return _resultobj;
5522 }
5523
5524 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5525 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
5526 PyObject * _resultobj;
5527 unsigned char _result;
5528 wxColour * _arg0;
5529 wxColour temp;
5530 PyObject * _obj0 = 0;
5531 char *_kwnames[] = { "self", NULL };
5532
5533 self = self;
5534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
5535 return NULL;
5536 {
5537 _arg0 = &temp;
5538 if (! wxColour_helper(_obj0, &_arg0))
5539 return NULL;
5540 }
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 _result = (unsigned char )wxColour_Blue(_arg0);
5544
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) return NULL;
5547 } _resultobj = Py_BuildValue("b",_result);
5548 return _resultobj;
5549 }
5550
5551 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5552 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5553 PyObject * _resultobj;
5554 bool _result;
5555 wxColour * _arg0;
5556 wxColour temp;
5557 PyObject * _obj0 = 0;
5558 char *_kwnames[] = { "self", NULL };
5559
5560 self = self;
5561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
5562 return NULL;
5563 {
5564 _arg0 = &temp;
5565 if (! wxColour_helper(_obj0, &_arg0))
5566 return NULL;
5567 }
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 _result = (bool )wxColour_Ok(_arg0);
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) return NULL;
5574 } _resultobj = Py_BuildValue("i",_result);
5575 return _resultobj;
5576 }
5577
5578 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5579 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject * _resultobj;
5581 wxColour * _arg0;
5582 unsigned char _arg1;
5583 unsigned char _arg2;
5584 unsigned char _arg3;
5585 wxColour temp;
5586 PyObject * _obj0 = 0;
5587 char *_kwnames[] = { "self","red","green","blue", NULL };
5588
5589 self = self;
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
5591 return NULL;
5592 {
5593 _arg0 = &temp;
5594 if (! wxColour_helper(_obj0, &_arg0))
5595 return NULL;
5596 }
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
5600
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) return NULL;
5603 } Py_INCREF(Py_None);
5604 _resultobj = Py_None;
5605 return _resultobj;
5606 }
5607
5608 static PyObject * wxColour_Get(wxColour *self) {
5609 PyObject* rv = PyTuple_New(3);
5610 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
5611 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
5612 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
5613 return rv;
5614 }
5615 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5616 PyObject * _resultobj;
5617 PyObject * _result;
5618 wxColour * _arg0;
5619 wxColour temp;
5620 PyObject * _obj0 = 0;
5621 char *_kwnames[] = { "self", NULL };
5622
5623 self = self;
5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
5625 return NULL;
5626 {
5627 _arg0 = &temp;
5628 if (! wxColour_helper(_obj0, &_arg0))
5629 return NULL;
5630 }
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 _result = (PyObject *)wxColour_Get(_arg0);
5634
5635 wxPyEndAllowThreads(__tstate);
5636 if (PyErr_Occurred()) return NULL;
5637 }{
5638 _resultobj = _result;
5639 }
5640 return _resultobj;
5641 }
5642
5643 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
5644 wxColourDatabase *src;
5645 wxObject *dest;
5646 src = (wxColourDatabase *) ptr;
5647 dest = (wxObject *) src;
5648 return (void *) dest;
5649 }
5650
5651 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5652 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject * _resultobj;
5654 wxColour * _result;
5655 wxColourDatabase * _arg0;
5656 wxString * _arg1;
5657 PyObject * _argo0 = 0;
5658 PyObject * _obj1 = 0;
5659 char *_kwnames[] = { "self","colour", NULL };
5660 char _ptemp[128];
5661
5662 self = self;
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5664 return NULL;
5665 if (_argo0) {
5666 if (_argo0 == Py_None) { _arg0 = NULL; }
5667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5669 return NULL;
5670 }
5671 }
5672 {
5673 #if PYTHON_API_VERSION >= 1009
5674 char* tmpPtr; int tmpSize;
5675 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5676 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5677 return NULL;
5678 }
5679 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5680 return NULL;
5681 _arg1 = new wxString(tmpPtr, tmpSize);
5682 #else
5683 if (!PyString_Check(_obj1)) {
5684 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5685 return NULL;
5686 }
5687 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5688 #endif
5689 }
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) return NULL;
5696 } if (_result) {
5697 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5698 _resultobj = Py_BuildValue("s",_ptemp);
5699 } else {
5700 Py_INCREF(Py_None);
5701 _resultobj = Py_None;
5702 }
5703 {
5704 if (_obj1)
5705 delete _arg1;
5706 }
5707 return _resultobj;
5708 }
5709
5710 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5711 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5712 PyObject * _resultobj;
5713 wxString * _result;
5714 wxColourDatabase * _arg0;
5715 wxColour * _arg1;
5716 PyObject * _argo0 = 0;
5717 wxColour temp;
5718 PyObject * _obj1 = 0;
5719 char *_kwnames[] = { "self","colour", NULL };
5720
5721 self = self;
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5723 return NULL;
5724 if (_argo0) {
5725 if (_argo0 == Py_None) { _arg0 = NULL; }
5726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5728 return NULL;
5729 }
5730 }
5731 {
5732 _arg1 = &temp;
5733 if (! wxColour_helper(_obj1, &_arg1))
5734 return NULL;
5735 }
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5739
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) return NULL;
5742 }{
5743 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5744 }
5745 {
5746 delete _result;
5747 }
5748 return _resultobj;
5749 }
5750
5751 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5752 self->Append(name.c_str(), new wxColour(red, green, blue));
5753 }
5754 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5755 PyObject * _resultobj;
5756 wxColourDatabase * _arg0;
5757 wxString * _arg1;
5758 int _arg2;
5759 int _arg3;
5760 int _arg4;
5761 PyObject * _argo0 = 0;
5762 PyObject * _obj1 = 0;
5763 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5764
5765 self = self;
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5767 return NULL;
5768 if (_argo0) {
5769 if (_argo0 == Py_None) { _arg0 = NULL; }
5770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5772 return NULL;
5773 }
5774 }
5775 {
5776 #if PYTHON_API_VERSION >= 1009
5777 char* tmpPtr; int tmpSize;
5778 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5779 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5780 return NULL;
5781 }
5782 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5783 return NULL;
5784 _arg1 = new wxString(tmpPtr, tmpSize);
5785 #else
5786 if (!PyString_Check(_obj1)) {
5787 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5788 return NULL;
5789 }
5790 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5791 #endif
5792 }
5793 {
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5796
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) return NULL;
5799 } Py_INCREF(Py_None);
5800 _resultobj = Py_None;
5801 {
5802 if (_obj1)
5803 delete _arg1;
5804 }
5805 return _resultobj;
5806 }
5807
5808 static void *SwigwxPenTowxGDIObject(void *ptr) {
5809 wxPen *src;
5810 wxGDIObject *dest;
5811 src = (wxPen *) ptr;
5812 dest = (wxGDIObject *) src;
5813 return (void *) dest;
5814 }
5815
5816 static void *SwigwxPenTowxObject(void *ptr) {
5817 wxPen *src;
5818 wxObject *dest;
5819 src = (wxPen *) ptr;
5820 dest = (wxObject *) src;
5821 return (void *) dest;
5822 }
5823
5824 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5825 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5826 PyObject * _resultobj;
5827 wxPen * _result;
5828 wxColour * _arg0;
5829 int _arg1 = (int ) 1;
5830 int _arg2 = (int ) wxSOLID;
5831 wxColour temp;
5832 PyObject * _obj0 = 0;
5833 char *_kwnames[] = { "colour","width","style", NULL };
5834 char _ptemp[128];
5835
5836 self = self;
5837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5838 return NULL;
5839 {
5840 _arg0 = &temp;
5841 if (! wxColour_helper(_obj0, &_arg0))
5842 return NULL;
5843 }
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) return NULL;
5850 } if (_result) {
5851 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5852 _resultobj = Py_BuildValue("s",_ptemp);
5853 } else {
5854 Py_INCREF(Py_None);
5855 _resultobj = Py_None;
5856 }
5857 return _resultobj;
5858 }
5859
5860 #define delete_wxPen(_swigobj) (delete _swigobj)
5861 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject * _resultobj;
5863 wxPen * _arg0;
5864 PyObject * _argo0 = 0;
5865 char *_kwnames[] = { "self", NULL };
5866
5867 self = self;
5868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5869 return NULL;
5870 if (_argo0) {
5871 if (_argo0 == Py_None) { _arg0 = NULL; }
5872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5874 return NULL;
5875 }
5876 }
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 delete_wxPen(_arg0);
5880
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) return NULL;
5883 } Py_INCREF(Py_None);
5884 _resultobj = Py_None;
5885 return _resultobj;
5886 }
5887
5888 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5889 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5890 PyObject * _resultobj;
5891 int _result;
5892 wxPen * _arg0;
5893 PyObject * _argo0 = 0;
5894 char *_kwnames[] = { "self", NULL };
5895
5896 self = self;
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5898 return NULL;
5899 if (_argo0) {
5900 if (_argo0 == Py_None) { _arg0 = NULL; }
5901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5903 return NULL;
5904 }
5905 }
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 _result = (int )wxPen_GetCap(_arg0);
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) return NULL;
5912 } _resultobj = Py_BuildValue("i",_result);
5913 return _resultobj;
5914 }
5915
5916 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5917 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5918 PyObject * _resultobj;
5919 wxColour * _result;
5920 wxPen * _arg0;
5921 PyObject * _argo0 = 0;
5922 char *_kwnames[] = { "self", NULL };
5923 char _ptemp[128];
5924
5925 self = self;
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5927 return NULL;
5928 if (_argo0) {
5929 if (_argo0 == Py_None) { _arg0 = NULL; }
5930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5932 return NULL;
5933 }
5934 }
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 _result = new wxColour (wxPen_GetColour(_arg0));
5938
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) return NULL;
5941 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5942 _resultobj = Py_BuildValue("s",_ptemp);
5943 return _resultobj;
5944 }
5945
5946 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5947 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5948 PyObject * _resultobj;
5949 int _result;
5950 wxPen * _arg0;
5951 PyObject * _argo0 = 0;
5952 char *_kwnames[] = { "self", NULL };
5953
5954 self = self;
5955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5956 return NULL;
5957 if (_argo0) {
5958 if (_argo0 == Py_None) { _arg0 = NULL; }
5959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5961 return NULL;
5962 }
5963 }
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 _result = (int )wxPen_GetJoin(_arg0);
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) return NULL;
5970 } _resultobj = Py_BuildValue("i",_result);
5971 return _resultobj;
5972 }
5973
5974 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5975 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject * _resultobj;
5977 int _result;
5978 wxPen * _arg0;
5979 PyObject * _argo0 = 0;
5980 char *_kwnames[] = { "self", NULL };
5981
5982 self = self;
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5984 return NULL;
5985 if (_argo0) {
5986 if (_argo0 == Py_None) { _arg0 = NULL; }
5987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5989 return NULL;
5990 }
5991 }
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 _result = (int )wxPen_GetStyle(_arg0);
5995
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) return NULL;
5998 } _resultobj = Py_BuildValue("i",_result);
5999 return _resultobj;
6000 }
6001
6002 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
6003 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6004 PyObject * _resultobj;
6005 int _result;
6006 wxPen * _arg0;
6007 PyObject * _argo0 = 0;
6008 char *_kwnames[] = { "self", NULL };
6009
6010 self = self;
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
6012 return NULL;
6013 if (_argo0) {
6014 if (_argo0 == Py_None) { _arg0 = NULL; }
6015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
6017 return NULL;
6018 }
6019 }
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 _result = (int )wxPen_GetWidth(_arg0);
6023
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) return NULL;
6026 } _resultobj = Py_BuildValue("i",_result);
6027 return _resultobj;
6028 }
6029
6030 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
6031 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject * _resultobj;
6033 bool _result;
6034 wxPen * _arg0;
6035 PyObject * _argo0 = 0;
6036 char *_kwnames[] = { "self", NULL };
6037
6038 self = self;
6039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
6040 return NULL;
6041 if (_argo0) {
6042 if (_argo0 == Py_None) { _arg0 = NULL; }
6043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
6045 return NULL;
6046 }
6047 }
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 _result = (bool )wxPen_Ok(_arg0);
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) return NULL;
6054 } _resultobj = Py_BuildValue("i",_result);
6055 return _resultobj;
6056 }
6057
6058 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
6059 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject * _resultobj;
6061 wxPen * _arg0;
6062 int _arg1;
6063 PyObject * _argo0 = 0;
6064 char *_kwnames[] = { "self","cap_style", NULL };
6065
6066 self = self;
6067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
6068 return NULL;
6069 if (_argo0) {
6070 if (_argo0 == Py_None) { _arg0 = NULL; }
6071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
6073 return NULL;
6074 }
6075 }
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 wxPen_SetCap(_arg0,_arg1);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) return NULL;
6082 } Py_INCREF(Py_None);
6083 _resultobj = Py_None;
6084 return _resultobj;
6085 }
6086
6087 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6088 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject * _resultobj;
6090 wxPen * _arg0;
6091 wxColour * _arg1;
6092 PyObject * _argo0 = 0;
6093 wxColour temp;
6094 PyObject * _obj1 = 0;
6095 char *_kwnames[] = { "self","colour", NULL };
6096
6097 self = self;
6098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
6099 return NULL;
6100 if (_argo0) {
6101 if (_argo0 == Py_None) { _arg0 = NULL; }
6102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6104 return NULL;
6105 }
6106 }
6107 {
6108 _arg1 = &temp;
6109 if (! wxColour_helper(_obj1, &_arg1))
6110 return NULL;
6111 }
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 wxPen_SetColour(_arg0,*_arg1);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) return NULL;
6118 } Py_INCREF(Py_None);
6119 _resultobj = Py_None;
6120 return _resultobj;
6121 }
6122
6123 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6124 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6125 PyObject * _resultobj;
6126 wxPen * _arg0;
6127 int _arg1;
6128 PyObject * _argo0 = 0;
6129 char *_kwnames[] = { "self","join_style", NULL };
6130
6131 self = self;
6132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
6133 return NULL;
6134 if (_argo0) {
6135 if (_argo0 == Py_None) { _arg0 = NULL; }
6136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6138 return NULL;
6139 }
6140 }
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 wxPen_SetJoin(_arg0,_arg1);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) return NULL;
6147 } Py_INCREF(Py_None);
6148 _resultobj = Py_None;
6149 return _resultobj;
6150 }
6151
6152 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6153 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6154 PyObject * _resultobj;
6155 wxPen * _arg0;
6156 int _arg1;
6157 PyObject * _argo0 = 0;
6158 char *_kwnames[] = { "self","style", NULL };
6159
6160 self = self;
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
6162 return NULL;
6163 if (_argo0) {
6164 if (_argo0 == Py_None) { _arg0 = NULL; }
6165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6167 return NULL;
6168 }
6169 }
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 wxPen_SetStyle(_arg0,_arg1);
6173
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) return NULL;
6176 } Py_INCREF(Py_None);
6177 _resultobj = Py_None;
6178 return _resultobj;
6179 }
6180
6181 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6182 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6183 PyObject * _resultobj;
6184 wxPen * _arg0;
6185 int _arg1;
6186 PyObject * _argo0 = 0;
6187 char *_kwnames[] = { "self","width", NULL };
6188
6189 self = self;
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
6191 return NULL;
6192 if (_argo0) {
6193 if (_argo0 == Py_None) { _arg0 = NULL; }
6194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6196 return NULL;
6197 }
6198 }
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 wxPen_SetWidth(_arg0,_arg1);
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) return NULL;
6205 } Py_INCREF(Py_None);
6206 _resultobj = Py_None;
6207 return _resultobj;
6208 }
6209
6210 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6211 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6212 PyObject * _resultobj;
6213 wxPen * _arg0;
6214 int _arg1;
6215 wxDash * _arg2;
6216 PyObject * _argo0 = 0;
6217 PyObject * _obj2 = 0;
6218 char *_kwnames[] = { "self","choices", NULL };
6219
6220 self = self;
6221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
6222 return NULL;
6223 if (_argo0) {
6224 if (_argo0 == Py_None) { _arg0 = NULL; }
6225 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6226 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6227 return NULL;
6228 }
6229 }
6230 if (_obj2)
6231 {
6232 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6233 if (_arg2 == NULL) {
6234 return NULL;
6235 }
6236 }
6237 {
6238 if (_obj2) {
6239 _arg1 = PyList_Size(_obj2);
6240 }
6241 else {
6242 _arg1 = 0;
6243 }
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 wxPen_SetDashes(_arg0,_arg1,_arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) return NULL;
6251 } Py_INCREF(Py_None);
6252 _resultobj = Py_None;
6253 {
6254 delete [] _arg2;
6255 }
6256 return _resultobj;
6257 }
6258
6259 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6260 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6261 PyObject * _resultobj;
6262 wxBitmap * _result;
6263 wxPen * _arg0;
6264 PyObject * _argo0 = 0;
6265 char *_kwnames[] = { "self", NULL };
6266 char _ptemp[128];
6267
6268 self = self;
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
6270 return NULL;
6271 if (_argo0) {
6272 if (_argo0 == Py_None) { _arg0 = NULL; }
6273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6275 return NULL;
6276 }
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) return NULL;
6284 } if (_result) {
6285 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6286 _resultobj = Py_BuildValue("s",_ptemp);
6287 } else {
6288 Py_INCREF(Py_None);
6289 _resultobj = Py_None;
6290 }
6291 return _resultobj;
6292 }
6293
6294 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6295 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6296 PyObject * _resultobj;
6297 wxPen * _arg0;
6298 wxBitmap * _arg1;
6299 PyObject * _argo0 = 0;
6300 PyObject * _argo1 = 0;
6301 char *_kwnames[] = { "self","stipple", NULL };
6302
6303 self = self;
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
6305 return NULL;
6306 if (_argo0) {
6307 if (_argo0 == Py_None) { _arg0 = NULL; }
6308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6310 return NULL;
6311 }
6312 }
6313 if (_argo1) {
6314 if (_argo1 == Py_None) { _arg1 = NULL; }
6315 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6316 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6317 return NULL;
6318 }
6319 }
6320 {
6321 PyThreadState* __tstate = wxPyBeginAllowThreads();
6322 wxPen_SetStipple(_arg0,*_arg1);
6323
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) return NULL;
6326 } Py_INCREF(Py_None);
6327 _resultobj = Py_None;
6328 return _resultobj;
6329 }
6330
6331 static void *SwigwxPyPenTowxPen(void *ptr) {
6332 wxPyPen *src;
6333 wxPen *dest;
6334 src = (wxPyPen *) ptr;
6335 dest = (wxPen *) src;
6336 return (void *) dest;
6337 }
6338
6339 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
6340 wxPyPen *src;
6341 wxGDIObject *dest;
6342 src = (wxPyPen *) ptr;
6343 dest = (wxGDIObject *) src;
6344 return (void *) dest;
6345 }
6346
6347 static void *SwigwxPyPenTowxObject(void *ptr) {
6348 wxPyPen *src;
6349 wxObject *dest;
6350 src = (wxPyPen *) ptr;
6351 dest = (wxObject *) src;
6352 return (void *) dest;
6353 }
6354
6355 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6356 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6357 PyObject * _resultobj;
6358 wxPyPen * _result;
6359 wxColour * _arg0;
6360 int _arg1 = (int ) 1;
6361 int _arg2 = (int ) wxSOLID;
6362 wxColour temp;
6363 PyObject * _obj0 = 0;
6364 char *_kwnames[] = { "colour","width","style", NULL };
6365 char _ptemp[128];
6366
6367 self = self;
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
6369 return NULL;
6370 {
6371 _arg0 = &temp;
6372 if (! wxColour_helper(_obj0, &_arg0))
6373 return NULL;
6374 }
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) return NULL;
6381 } if (_result) {
6382 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
6383 _resultobj = Py_BuildValue("s",_ptemp);
6384 } else {
6385 Py_INCREF(Py_None);
6386 _resultobj = Py_None;
6387 }
6388 return _resultobj;
6389 }
6390
6391 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6392 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6393 PyObject * _resultobj;
6394 wxPyPen * _arg0;
6395 PyObject * _argo0 = 0;
6396 char *_kwnames[] = { "self", NULL };
6397
6398 self = self;
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
6400 return NULL;
6401 if (_argo0) {
6402 if (_argo0 == Py_None) { _arg0 = NULL; }
6403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6405 return NULL;
6406 }
6407 }
6408 {
6409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6410 delete_wxPyPen(_arg0);
6411
6412 wxPyEndAllowThreads(__tstate);
6413 if (PyErr_Occurred()) return NULL;
6414 } Py_INCREF(Py_None);
6415 _resultobj = Py_None;
6416 return _resultobj;
6417 }
6418
6419 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6420 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6421 PyObject * _resultobj;
6422 wxPyPen * _arg0;
6423 int _arg1;
6424 wxDash * _arg2;
6425 PyObject * _argo0 = 0;
6426 PyObject * _obj2 = 0;
6427 char *_kwnames[] = { "self","choices", NULL };
6428
6429 self = self;
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
6431 return NULL;
6432 if (_argo0) {
6433 if (_argo0 == Py_None) { _arg0 = NULL; }
6434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6436 return NULL;
6437 }
6438 }
6439 if (_obj2)
6440 {
6441 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6442 if (_arg2 == NULL) {
6443 return NULL;
6444 }
6445 }
6446 {
6447 if (_obj2) {
6448 _arg1 = PyList_Size(_obj2);
6449 }
6450 else {
6451 _arg1 = 0;
6452 }
6453 }
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) return NULL;
6460 } Py_INCREF(Py_None);
6461 _resultobj = Py_None;
6462 {
6463 delete [] _arg2;
6464 }
6465 return _resultobj;
6466 }
6467
6468 static void *SwigwxPenListTowxObject(void *ptr) {
6469 wxPenList *src;
6470 wxObject *dest;
6471 src = (wxPenList *) ptr;
6472 dest = (wxObject *) src;
6473 return (void *) dest;
6474 }
6475
6476 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6477 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject * _resultobj;
6479 wxPenList * _arg0;
6480 wxPen * _arg1;
6481 PyObject * _argo0 = 0;
6482 PyObject * _argo1 = 0;
6483 char *_kwnames[] = { "self","pen", NULL };
6484
6485 self = self;
6486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
6487 return NULL;
6488 if (_argo0) {
6489 if (_argo0 == Py_None) { _arg0 = NULL; }
6490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6492 return NULL;
6493 }
6494 }
6495 if (_argo1) {
6496 if (_argo1 == Py_None) { _arg1 = NULL; }
6497 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6498 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6499 return NULL;
6500 }
6501 }
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 wxPenList_AddPen(_arg0,_arg1);
6505
6506 wxPyEndAllowThreads(__tstate);
6507 if (PyErr_Occurred()) return NULL;
6508 } Py_INCREF(Py_None);
6509 _resultobj = Py_None;
6510 return _resultobj;
6511 }
6512
6513 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6514 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6515 PyObject * _resultobj;
6516 wxPen * _result;
6517 wxPenList * _arg0;
6518 wxColour * _arg1;
6519 int _arg2;
6520 int _arg3;
6521 PyObject * _argo0 = 0;
6522 wxColour temp;
6523 PyObject * _obj1 = 0;
6524 char *_kwnames[] = { "self","colour","width","style", NULL };
6525 char _ptemp[128];
6526
6527 self = self;
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6529 return NULL;
6530 if (_argo0) {
6531 if (_argo0 == Py_None) { _arg0 = NULL; }
6532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6534 return NULL;
6535 }
6536 }
6537 {
6538 _arg1 = &temp;
6539 if (! wxColour_helper(_obj1, &_arg1))
6540 return NULL;
6541 }
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
6545
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) return NULL;
6548 } if (_result) {
6549 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6550 _resultobj = Py_BuildValue("s",_ptemp);
6551 } else {
6552 Py_INCREF(Py_None);
6553 _resultobj = Py_None;
6554 }
6555 return _resultobj;
6556 }
6557
6558 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6559 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject * _resultobj;
6561 wxPenList * _arg0;
6562 wxPen * _arg1;
6563 PyObject * _argo0 = 0;
6564 PyObject * _argo1 = 0;
6565 char *_kwnames[] = { "self","pen", NULL };
6566
6567 self = self;
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
6569 return NULL;
6570 if (_argo0) {
6571 if (_argo0 == Py_None) { _arg0 = NULL; }
6572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6574 return NULL;
6575 }
6576 }
6577 if (_argo1) {
6578 if (_argo1 == Py_None) { _arg1 = NULL; }
6579 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6580 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6581 return NULL;
6582 }
6583 }
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 wxPenList_RemovePen(_arg0,_arg1);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) return NULL;
6590 } Py_INCREF(Py_None);
6591 _resultobj = Py_None;
6592 return _resultobj;
6593 }
6594
6595 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6596 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6597 PyObject * _resultobj;
6598 int _result;
6599 wxPenList * _arg0;
6600 PyObject * _argo0 = 0;
6601 char *_kwnames[] = { "self", NULL };
6602
6603 self = self;
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
6605 return NULL;
6606 if (_argo0) {
6607 if (_argo0 == Py_None) { _arg0 = NULL; }
6608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6610 return NULL;
6611 }
6612 }
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 _result = (int )wxPenList_GetCount(_arg0);
6616
6617 wxPyEndAllowThreads(__tstate);
6618 if (PyErr_Occurred()) return NULL;
6619 } _resultobj = Py_BuildValue("i",_result);
6620 return _resultobj;
6621 }
6622
6623 static void *SwigwxBrushTowxGDIObject(void *ptr) {
6624 wxBrush *src;
6625 wxGDIObject *dest;
6626 src = (wxBrush *) ptr;
6627 dest = (wxGDIObject *) src;
6628 return (void *) dest;
6629 }
6630
6631 static void *SwigwxBrushTowxObject(void *ptr) {
6632 wxBrush *src;
6633 wxObject *dest;
6634 src = (wxBrush *) ptr;
6635 dest = (wxObject *) src;
6636 return (void *) dest;
6637 }
6638
6639 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6640 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6641 PyObject * _resultobj;
6642 wxBrush * _result;
6643 wxColour * _arg0;
6644 int _arg1 = (int ) wxSOLID;
6645 wxColour temp;
6646 PyObject * _obj0 = 0;
6647 char *_kwnames[] = { "colour","style", NULL };
6648 char _ptemp[128];
6649
6650 self = self;
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
6652 return NULL;
6653 {
6654 _arg0 = &temp;
6655 if (! wxColour_helper(_obj0, &_arg0))
6656 return NULL;
6657 }
6658 {
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
6661
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) return NULL;
6664 } if (_result) {
6665 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6666 _resultobj = Py_BuildValue("s",_ptemp);
6667 } else {
6668 Py_INCREF(Py_None);
6669 _resultobj = Py_None;
6670 }
6671 return _resultobj;
6672 }
6673
6674 #define delete_wxBrush(_swigobj) (delete _swigobj)
6675 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6676 PyObject * _resultobj;
6677 wxBrush * _arg0;
6678 PyObject * _argo0 = 0;
6679 char *_kwnames[] = { "self", NULL };
6680
6681 self = self;
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
6683 return NULL;
6684 if (_argo0) {
6685 if (_argo0 == Py_None) { _arg0 = NULL; }
6686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6688 return NULL;
6689 }
6690 }
6691 {
6692 PyThreadState* __tstate = wxPyBeginAllowThreads();
6693 delete_wxBrush(_arg0);
6694
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) return NULL;
6697 } Py_INCREF(Py_None);
6698 _resultobj = Py_None;
6699 return _resultobj;
6700 }
6701
6702 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6703 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6704 PyObject * _resultobj;
6705 wxColour * _result;
6706 wxBrush * _arg0;
6707 PyObject * _argo0 = 0;
6708 char *_kwnames[] = { "self", NULL };
6709 char _ptemp[128];
6710
6711 self = self;
6712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6713 return NULL;
6714 if (_argo0) {
6715 if (_argo0 == Py_None) { _arg0 = NULL; }
6716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6718 return NULL;
6719 }
6720 }
6721 {
6722 PyThreadState* __tstate = wxPyBeginAllowThreads();
6723 _result = new wxColour (wxBrush_GetColour(_arg0));
6724
6725 wxPyEndAllowThreads(__tstate);
6726 if (PyErr_Occurred()) return NULL;
6727 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6728 _resultobj = Py_BuildValue("s",_ptemp);
6729 return _resultobj;
6730 }
6731
6732 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6733 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject * _resultobj;
6735 wxBitmap * _result;
6736 wxBrush * _arg0;
6737 PyObject * _argo0 = 0;
6738 char *_kwnames[] = { "self", NULL };
6739 char _ptemp[128];
6740
6741 self = self;
6742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6743 return NULL;
6744 if (_argo0) {
6745 if (_argo0 == Py_None) { _arg0 = NULL; }
6746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6748 return NULL;
6749 }
6750 }
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6754
6755 wxPyEndAllowThreads(__tstate);
6756 if (PyErr_Occurred()) return NULL;
6757 } if (_result) {
6758 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6759 _resultobj = Py_BuildValue("s",_ptemp);
6760 } else {
6761 Py_INCREF(Py_None);
6762 _resultobj = Py_None;
6763 }
6764 return _resultobj;
6765 }
6766
6767 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6768 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject * _resultobj;
6770 int _result;
6771 wxBrush * _arg0;
6772 PyObject * _argo0 = 0;
6773 char *_kwnames[] = { "self", NULL };
6774
6775 self = self;
6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6777 return NULL;
6778 if (_argo0) {
6779 if (_argo0 == Py_None) { _arg0 = NULL; }
6780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6782 return NULL;
6783 }
6784 }
6785 {
6786 PyThreadState* __tstate = wxPyBeginAllowThreads();
6787 _result = (int )wxBrush_GetStyle(_arg0);
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) return NULL;
6791 } _resultobj = Py_BuildValue("i",_result);
6792 return _resultobj;
6793 }
6794
6795 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6796 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6797 PyObject * _resultobj;
6798 bool _result;
6799 wxBrush * _arg0;
6800 PyObject * _argo0 = 0;
6801 char *_kwnames[] = { "self", NULL };
6802
6803 self = self;
6804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6805 return NULL;
6806 if (_argo0) {
6807 if (_argo0 == Py_None) { _arg0 = NULL; }
6808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6810 return NULL;
6811 }
6812 }
6813 {
6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
6815 _result = (bool )wxBrush_Ok(_arg0);
6816
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) return NULL;
6819 } _resultobj = Py_BuildValue("i",_result);
6820 return _resultobj;
6821 }
6822
6823 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6824 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6825 PyObject * _resultobj;
6826 wxBrush * _arg0;
6827 wxColour * _arg1;
6828 PyObject * _argo0 = 0;
6829 wxColour temp;
6830 PyObject * _obj1 = 0;
6831 char *_kwnames[] = { "self","colour", NULL };
6832
6833 self = self;
6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6835 return NULL;
6836 if (_argo0) {
6837 if (_argo0 == Py_None) { _arg0 = NULL; }
6838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6840 return NULL;
6841 }
6842 }
6843 {
6844 _arg1 = &temp;
6845 if (! wxColour_helper(_obj1, &_arg1))
6846 return NULL;
6847 }
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 wxBrush_SetColour(_arg0,*_arg1);
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) return NULL;
6854 } Py_INCREF(Py_None);
6855 _resultobj = Py_None;
6856 return _resultobj;
6857 }
6858
6859 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6860 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject * _resultobj;
6862 wxBrush * _arg0;
6863 wxBitmap * _arg1;
6864 PyObject * _argo0 = 0;
6865 PyObject * _argo1 = 0;
6866 char *_kwnames[] = { "self","bitmap", NULL };
6867
6868 self = self;
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6870 return NULL;
6871 if (_argo0) {
6872 if (_argo0 == Py_None) { _arg0 = NULL; }
6873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6875 return NULL;
6876 }
6877 }
6878 if (_argo1) {
6879 if (_argo1 == Py_None) { _arg1 = NULL; }
6880 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6881 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6882 return NULL;
6883 }
6884 }
6885 {
6886 PyThreadState* __tstate = wxPyBeginAllowThreads();
6887 wxBrush_SetStipple(_arg0,*_arg1);
6888
6889 wxPyEndAllowThreads(__tstate);
6890 if (PyErr_Occurred()) return NULL;
6891 } Py_INCREF(Py_None);
6892 _resultobj = Py_None;
6893 return _resultobj;
6894 }
6895
6896 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6897 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6898 PyObject * _resultobj;
6899 wxBrush * _arg0;
6900 int _arg1;
6901 PyObject * _argo0 = 0;
6902 char *_kwnames[] = { "self","style", NULL };
6903
6904 self = self;
6905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6906 return NULL;
6907 if (_argo0) {
6908 if (_argo0 == Py_None) { _arg0 = NULL; }
6909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6911 return NULL;
6912 }
6913 }
6914 {
6915 PyThreadState* __tstate = wxPyBeginAllowThreads();
6916 wxBrush_SetStyle(_arg0,_arg1);
6917
6918 wxPyEndAllowThreads(__tstate);
6919 if (PyErr_Occurred()) return NULL;
6920 } Py_INCREF(Py_None);
6921 _resultobj = Py_None;
6922 return _resultobj;
6923 }
6924
6925 static void *SwigwxBrushListTowxObject(void *ptr) {
6926 wxBrushList *src;
6927 wxObject *dest;
6928 src = (wxBrushList *) ptr;
6929 dest = (wxObject *) src;
6930 return (void *) dest;
6931 }
6932
6933 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6934 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject * _resultobj;
6936 wxBrushList * _arg0;
6937 wxBrush * _arg1;
6938 PyObject * _argo0 = 0;
6939 PyObject * _argo1 = 0;
6940 char *_kwnames[] = { "self","brush", NULL };
6941
6942 self = self;
6943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6944 return NULL;
6945 if (_argo0) {
6946 if (_argo0 == Py_None) { _arg0 = NULL; }
6947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6949 return NULL;
6950 }
6951 }
6952 if (_argo1) {
6953 if (_argo1 == Py_None) { _arg1 = NULL; }
6954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6956 return NULL;
6957 }
6958 }
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 wxBrushList_AddBrush(_arg0,_arg1);
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) return NULL;
6965 } Py_INCREF(Py_None);
6966 _resultobj = Py_None;
6967 return _resultobj;
6968 }
6969
6970 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6971 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject * _resultobj;
6973 wxBrush * _result;
6974 wxBrushList * _arg0;
6975 wxColour * _arg1;
6976 int _arg2;
6977 PyObject * _argo0 = 0;
6978 wxColour temp;
6979 PyObject * _obj1 = 0;
6980 char *_kwnames[] = { "self","colour","style", NULL };
6981 char _ptemp[128];
6982
6983 self = self;
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6985 return NULL;
6986 if (_argo0) {
6987 if (_argo0 == Py_None) { _arg0 = NULL; }
6988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6990 return NULL;
6991 }
6992 }
6993 {
6994 _arg1 = &temp;
6995 if (! wxColour_helper(_obj1, &_arg1))
6996 return NULL;
6997 }
6998 {
6999 PyThreadState* __tstate = wxPyBeginAllowThreads();
7000 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
7001
7002 wxPyEndAllowThreads(__tstate);
7003 if (PyErr_Occurred()) return NULL;
7004 } if (_result) {
7005 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7006 _resultobj = Py_BuildValue("s",_ptemp);
7007 } else {
7008 Py_INCREF(Py_None);
7009 _resultobj = Py_None;
7010 }
7011 return _resultobj;
7012 }
7013
7014 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
7015 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject * _resultobj;
7017 wxBrushList * _arg0;
7018 wxBrush * _arg1;
7019 PyObject * _argo0 = 0;
7020 PyObject * _argo1 = 0;
7021 char *_kwnames[] = { "self","brush", NULL };
7022
7023 self = self;
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
7025 return NULL;
7026 if (_argo0) {
7027 if (_argo0 == Py_None) { _arg0 = NULL; }
7028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
7030 return NULL;
7031 }
7032 }
7033 if (_argo1) {
7034 if (_argo1 == Py_None) { _arg1 = NULL; }
7035 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7036 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
7037 return NULL;
7038 }
7039 }
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 wxBrushList_RemoveBrush(_arg0,_arg1);
7043
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) return NULL;
7046 } Py_INCREF(Py_None);
7047 _resultobj = Py_None;
7048 return _resultobj;
7049 }
7050
7051 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
7052 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject * _resultobj;
7054 int _result;
7055 wxBrushList * _arg0;
7056 PyObject * _argo0 = 0;
7057 char *_kwnames[] = { "self", NULL };
7058
7059 self = self;
7060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
7061 return NULL;
7062 if (_argo0) {
7063 if (_argo0 == Py_None) { _arg0 = NULL; }
7064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
7065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
7066 return NULL;
7067 }
7068 }
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 _result = (int )wxBrushList_GetCount(_arg0);
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) return NULL;
7075 } _resultobj = Py_BuildValue("i",_result);
7076 return _resultobj;
7077 }
7078
7079 static void *SwigwxDCTowxObject(void *ptr) {
7080 wxDC *src;
7081 wxObject *dest;
7082 src = (wxDC *) ptr;
7083 dest = (wxObject *) src;
7084 return (void *) dest;
7085 }
7086
7087 #define delete_wxDC(_swigobj) (delete _swigobj)
7088 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject * _resultobj;
7090 wxDC * _arg0;
7091 PyObject * _argo0 = 0;
7092 char *_kwnames[] = { "self", NULL };
7093
7094 self = self;
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
7096 return NULL;
7097 if (_argo0) {
7098 if (_argo0 == Py_None) { _arg0 = NULL; }
7099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7101 return NULL;
7102 }
7103 }
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 delete_wxDC(_arg0);
7107
7108 wxPyEndAllowThreads(__tstate);
7109 if (PyErr_Occurred()) return NULL;
7110 } Py_INCREF(Py_None);
7111 _resultobj = Py_None;
7112 return _resultobj;
7113 }
7114
7115 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7116 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7117 PyObject * _resultobj;
7118 wxDC * _arg0;
7119 PyObject * _argo0 = 0;
7120 char *_kwnames[] = { "self", NULL };
7121
7122 self = self;
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
7124 return NULL;
7125 if (_argo0) {
7126 if (_argo0 == Py_None) { _arg0 = NULL; }
7127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7129 return NULL;
7130 }
7131 }
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 wxDC_BeginDrawing(_arg0);
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) return NULL;
7138 } Py_INCREF(Py_None);
7139 _resultobj = Py_None;
7140 return _resultobj;
7141 }
7142
7143 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7144 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
7145 PyObject * _resultobj;
7146 bool _result;
7147 wxDC * _arg0;
7148 long _arg1;
7149 long _arg2;
7150 long _arg3;
7151 long _arg4;
7152 wxDC * _arg5;
7153 long _arg6;
7154 long _arg7;
7155 int _arg8 = (int ) wxCOPY;
7156 int _arg9 = (int ) FALSE;
7157 PyObject * _argo0 = 0;
7158 PyObject * _argo5 = 0;
7159 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
7160
7161 self = self;
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
7163 return NULL;
7164 if (_argo0) {
7165 if (_argo0 == Py_None) { _arg0 = NULL; }
7166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7168 return NULL;
7169 }
7170 }
7171 if (_argo5) {
7172 if (_argo5 == Py_None) { _arg5 = NULL; }
7173 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
7174 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7175 return NULL;
7176 }
7177 }
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
7181
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) return NULL;
7184 } _resultobj = Py_BuildValue("i",_result);
7185 return _resultobj;
7186 }
7187
7188 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7189 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7190 PyObject * _resultobj;
7191 wxDC * _arg0;
7192 PyObject * _argo0 = 0;
7193 char *_kwnames[] = { "self", NULL };
7194
7195 self = self;
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
7197 return NULL;
7198 if (_argo0) {
7199 if (_argo0 == Py_None) { _arg0 = NULL; }
7200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7202 return NULL;
7203 }
7204 }
7205 {
7206 PyThreadState* __tstate = wxPyBeginAllowThreads();
7207 wxDC_Clear(_arg0);
7208
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) return NULL;
7211 } Py_INCREF(Py_None);
7212 _resultobj = Py_None;
7213 return _resultobj;
7214 }
7215
7216 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7217 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject * _resultobj;
7219 wxDC * _arg0;
7220 long _arg1;
7221 long _arg2;
7222 PyObject * _argo0 = 0;
7223 char *_kwnames[] = { "self","x","y", NULL };
7224
7225 self = self;
7226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
7227 return NULL;
7228 if (_argo0) {
7229 if (_argo0 == Py_None) { _arg0 = NULL; }
7230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7232 return NULL;
7233 }
7234 }
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 wxDC_CrossHair(_arg0,_arg1,_arg2);
7238
7239 wxPyEndAllowThreads(__tstate);
7240 if (PyErr_Occurred()) return NULL;
7241 } Py_INCREF(Py_None);
7242 _resultobj = Py_None;
7243 return _resultobj;
7244 }
7245
7246 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7247 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7248 PyObject * _resultobj;
7249 wxDC * _arg0;
7250 PyObject * _argo0 = 0;
7251 char *_kwnames[] = { "self", NULL };
7252
7253 self = self;
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
7255 return NULL;
7256 if (_argo0) {
7257 if (_argo0 == Py_None) { _arg0 = NULL; }
7258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7260 return NULL;
7261 }
7262 }
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 wxDC_DestroyClippingRegion(_arg0);
7266
7267 wxPyEndAllowThreads(__tstate);
7268 if (PyErr_Occurred()) return NULL;
7269 } Py_INCREF(Py_None);
7270 _resultobj = Py_None;
7271 return _resultobj;
7272 }
7273
7274 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7275 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
7276 PyObject * _resultobj;
7277 long _result;
7278 wxDC * _arg0;
7279 long _arg1;
7280 PyObject * _argo0 = 0;
7281 char *_kwnames[] = { "self","x", NULL };
7282
7283 self = self;
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
7285 return NULL;
7286 if (_argo0) {
7287 if (_argo0 == Py_None) { _arg0 = NULL; }
7288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7290 return NULL;
7291 }
7292 }
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) return NULL;
7299 } _resultobj = Py_BuildValue("l",_result);
7300 return _resultobj;
7301 }
7302
7303 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7304 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7305 PyObject * _resultobj;
7306 long _result;
7307 wxDC * _arg0;
7308 long _arg1;
7309 PyObject * _argo0 = 0;
7310 char *_kwnames[] = { "self","x", NULL };
7311
7312 self = self;
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
7314 return NULL;
7315 if (_argo0) {
7316 if (_argo0 == Py_None) { _arg0 = NULL; }
7317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7319 return NULL;
7320 }
7321 }
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) return NULL;
7328 } _resultobj = Py_BuildValue("l",_result);
7329 return _resultobj;
7330 }
7331
7332 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7333 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
7334 PyObject * _resultobj;
7335 long _result;
7336 wxDC * _arg0;
7337 long _arg1;
7338 PyObject * _argo0 = 0;
7339 char *_kwnames[] = { "self","y", NULL };
7340
7341 self = self;
7342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
7343 return NULL;
7344 if (_argo0) {
7345 if (_argo0 == Py_None) { _arg0 = NULL; }
7346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7348 return NULL;
7349 }
7350 }
7351 {
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
7354
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) return NULL;
7357 } _resultobj = Py_BuildValue("l",_result);
7358 return _resultobj;
7359 }
7360
7361 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7362 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject * _resultobj;
7364 long _result;
7365 wxDC * _arg0;
7366 long _arg1;
7367 PyObject * _argo0 = 0;
7368 char *_kwnames[] = { "self","y", NULL };
7369
7370 self = self;
7371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
7372 return NULL;
7373 if (_argo0) {
7374 if (_argo0 == Py_None) { _arg0 = NULL; }
7375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7377 return NULL;
7378 }
7379 }
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
7383
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) return NULL;
7386 } _resultobj = Py_BuildValue("l",_result);
7387 return _resultobj;
7388 }
7389
7390 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7391 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7392 PyObject * _resultobj;
7393 wxDC * _arg0;
7394 long _arg1;
7395 long _arg2;
7396 long _arg3;
7397 long _arg4;
7398 long _arg5;
7399 long _arg6;
7400 PyObject * _argo0 = 0;
7401 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
7402
7403 self = self;
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7405 return NULL;
7406 if (_argo0) {
7407 if (_argo0 == Py_None) { _arg0 = NULL; }
7408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7410 return NULL;
7411 }
7412 }
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) return NULL;
7419 } Py_INCREF(Py_None);
7420 _resultobj = Py_None;
7421 return _resultobj;
7422 }
7423
7424 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7425 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
7426 PyObject * _resultobj;
7427 wxDC * _arg0;
7428 long _arg1;
7429 long _arg2;
7430 long _arg3;
7431 PyObject * _argo0 = 0;
7432 char *_kwnames[] = { "self","x","y","radius", NULL };
7433
7434 self = self;
7435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7436 return NULL;
7437 if (_argo0) {
7438 if (_argo0 == Py_None) { _arg0 = NULL; }
7439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7441 return NULL;
7442 }
7443 }
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) return NULL;
7450 } Py_INCREF(Py_None);
7451 _resultobj = Py_None;
7452 return _resultobj;
7453 }
7454
7455 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7456 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject * _resultobj;
7458 wxDC * _arg0;
7459 long _arg1;
7460 long _arg2;
7461 long _arg3;
7462 long _arg4;
7463 PyObject * _argo0 = 0;
7464 char *_kwnames[] = { "self","x","y","width","height", NULL };
7465
7466 self = self;
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7468 return NULL;
7469 if (_argo0) {
7470 if (_argo0 == Py_None) { _arg0 = NULL; }
7471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7473 return NULL;
7474 }
7475 }
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) return NULL;
7482 } Py_INCREF(Py_None);
7483 _resultobj = Py_None;
7484 return _resultobj;
7485 }
7486
7487 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7488 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject * _resultobj;
7490 wxDC * _arg0;
7491 long _arg1;
7492 long _arg2;
7493 long _arg3;
7494 long _arg4;
7495 long _arg5;
7496 long _arg6;
7497 PyObject * _argo0 = 0;
7498 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
7499
7500 self = self;
7501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7502 return NULL;
7503 if (_argo0) {
7504 if (_argo0 == Py_None) { _arg0 = NULL; }
7505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7507 return NULL;
7508 }
7509 }
7510 {
7511 PyThreadState* __tstate = wxPyBeginAllowThreads();
7512 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7513
7514 wxPyEndAllowThreads(__tstate);
7515 if (PyErr_Occurred()) return NULL;
7516 } Py_INCREF(Py_None);
7517 _resultobj = Py_None;
7518 return _resultobj;
7519 }
7520
7521 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7522 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject * _resultobj;
7524 wxDC * _arg0;
7525 wxIcon * _arg1;
7526 long _arg2;
7527 long _arg3;
7528 PyObject * _argo0 = 0;
7529 PyObject * _argo1 = 0;
7530 char *_kwnames[] = { "self","icon","x","y", NULL };
7531
7532 self = self;
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7534 return NULL;
7535 if (_argo0) {
7536 if (_argo0 == Py_None) { _arg0 = NULL; }
7537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7539 return NULL;
7540 }
7541 }
7542 if (_argo1) {
7543 if (_argo1 == Py_None) { _arg1 = NULL; }
7544 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
7545 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7546 return NULL;
7547 }
7548 }
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) return NULL;
7555 } Py_INCREF(Py_None);
7556 _resultobj = Py_None;
7557 return _resultobj;
7558 }
7559
7560 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7561 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7562 PyObject * _resultobj;
7563 wxDC * _arg0;
7564 long _arg1;
7565 long _arg2;
7566 long _arg3;
7567 long _arg4;
7568 PyObject * _argo0 = 0;
7569 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
7570
7571 self = self;
7572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
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_DrawLine. Expected _wxDC_p.");
7578 return NULL;
7579 }
7580 }
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
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_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7593 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7594 PyObject * _resultobj;
7595 wxDC * _arg0;
7596 int _arg1;
7597 wxPoint * _arg2;
7598 long _arg3 = (long ) 0;
7599 long _arg4 = (long ) 0;
7600 PyObject * _argo0 = 0;
7601 int NPOINTS;
7602 PyObject * _obj2 = 0;
7603 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7604
7605 self = self;
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7607 return NULL;
7608 if (_argo0) {
7609 if (_argo0 == Py_None) { _arg0 = NULL; }
7610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7612 return NULL;
7613 }
7614 }
7615 if (_obj2)
7616 {
7617 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7618 if (_arg2 == NULL) {
7619 return NULL;
7620 }
7621 }
7622 {
7623 _arg1 = NPOINTS;
7624 }
7625 {
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7628
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) return NULL;
7631 } Py_INCREF(Py_None);
7632 _resultobj = Py_None;
7633 {
7634 delete [] _arg2;
7635 }
7636 return _resultobj;
7637 }
7638
7639 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7640 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7641 PyObject * _resultobj;
7642 wxDC * _arg0;
7643 int _arg1;
7644 wxPoint * _arg2;
7645 long _arg3 = (long ) 0;
7646 long _arg4 = (long ) 0;
7647 int _arg5 = (int ) wxODDEVEN_RULE;
7648 PyObject * _argo0 = 0;
7649 int NPOINTS;
7650 PyObject * _obj2 = 0;
7651 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7652
7653 self = self;
7654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7655 return NULL;
7656 if (_argo0) {
7657 if (_argo0 == Py_None) { _arg0 = NULL; }
7658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7660 return NULL;
7661 }
7662 }
7663 if (_obj2)
7664 {
7665 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7666 if (_arg2 == NULL) {
7667 return NULL;
7668 }
7669 }
7670 {
7671 _arg1 = NPOINTS;
7672 }
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) return NULL;
7679 } Py_INCREF(Py_None);
7680 _resultobj = Py_None;
7681 {
7682 delete [] _arg2;
7683 }
7684 return _resultobj;
7685 }
7686
7687 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7688 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7689 PyObject * _resultobj;
7690 wxDC * _arg0;
7691 long _arg1;
7692 long _arg2;
7693 PyObject * _argo0 = 0;
7694 char *_kwnames[] = { "self","x","y", NULL };
7695
7696 self = self;
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7698 return NULL;
7699 if (_argo0) {
7700 if (_argo0 == Py_None) { _arg0 = NULL; }
7701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7703 return NULL;
7704 }
7705 }
7706 {
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7709
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) return NULL;
7712 } Py_INCREF(Py_None);
7713 _resultobj = Py_None;
7714 return _resultobj;
7715 }
7716
7717 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7718 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7719 PyObject * _resultobj;
7720 wxDC * _arg0;
7721 long _arg1;
7722 long _arg2;
7723 long _arg3;
7724 long _arg4;
7725 PyObject * _argo0 = 0;
7726 char *_kwnames[] = { "self","x","y","width","height", NULL };
7727
7728 self = self;
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7730 return NULL;
7731 if (_argo0) {
7732 if (_argo0 == Py_None) { _arg0 = NULL; }
7733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7735 return NULL;
7736 }
7737 }
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) return NULL;
7744 } Py_INCREF(Py_None);
7745 _resultobj = Py_None;
7746 return _resultobj;
7747 }
7748
7749 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7750 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject * _resultobj;
7752 wxDC * _arg0;
7753 wxString * _arg1;
7754 wxCoord _arg2;
7755 wxCoord _arg3;
7756 double _arg4;
7757 PyObject * _argo0 = 0;
7758 PyObject * _obj1 = 0;
7759 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7760
7761 self = self;
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7763 return NULL;
7764 if (_argo0) {
7765 if (_argo0 == Py_None) { _arg0 = NULL; }
7766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7768 return NULL;
7769 }
7770 }
7771 {
7772 #if PYTHON_API_VERSION >= 1009
7773 char* tmpPtr; int tmpSize;
7774 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7775 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7776 return NULL;
7777 }
7778 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7779 return NULL;
7780 _arg1 = new wxString(tmpPtr, tmpSize);
7781 #else
7782 if (!PyString_Check(_obj1)) {
7783 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7784 return NULL;
7785 }
7786 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7787 #endif
7788 }
7789 {
7790 PyThreadState* __tstate = wxPyBeginAllowThreads();
7791 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7792
7793 wxPyEndAllowThreads(__tstate);
7794 if (PyErr_Occurred()) return NULL;
7795 } Py_INCREF(Py_None);
7796 _resultobj = Py_None;
7797 {
7798 if (_obj1)
7799 delete _arg1;
7800 }
7801 return _resultobj;
7802 }
7803
7804 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7805 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7806 PyObject * _resultobj;
7807 wxDC * _arg0;
7808 long _arg1;
7809 long _arg2;
7810 long _arg3;
7811 long _arg4;
7812 long _arg5 = (long ) 20;
7813 PyObject * _argo0 = 0;
7814 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7815
7816 self = self;
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7818 return NULL;
7819 if (_argo0) {
7820 if (_argo0 == Py_None) { _arg0 = NULL; }
7821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7823 return NULL;
7824 }
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) return NULL;
7832 } Py_INCREF(Py_None);
7833 _resultobj = Py_None;
7834 return _resultobj;
7835 }
7836
7837 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7838 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7839 PyObject * _resultobj;
7840 wxDC * _arg0;
7841 int _arg1;
7842 wxPoint * _arg2;
7843 PyObject * _argo0 = 0;
7844 int NPOINTS;
7845 PyObject * _obj2 = 0;
7846 char *_kwnames[] = { "self","points", NULL };
7847
7848 self = self;
7849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7850 return NULL;
7851 if (_argo0) {
7852 if (_argo0 == Py_None) { _arg0 = NULL; }
7853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7855 return NULL;
7856 }
7857 }
7858 if (_obj2)
7859 {
7860 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7861 if (_arg2 == NULL) {
7862 return NULL;
7863 }
7864 }
7865 {
7866 _arg1 = NPOINTS;
7867 }
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) return NULL;
7874 } Py_INCREF(Py_None);
7875 _resultobj = Py_None;
7876 {
7877 delete [] _arg2;
7878 }
7879 return _resultobj;
7880 }
7881
7882 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7883 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7884 PyObject * _resultobj;
7885 wxDC * _arg0;
7886 wxString * _arg1;
7887 long _arg2;
7888 long _arg3;
7889 PyObject * _argo0 = 0;
7890 PyObject * _obj1 = 0;
7891 char *_kwnames[] = { "self","text","x","y", NULL };
7892
7893 self = self;
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7895 return NULL;
7896 if (_argo0) {
7897 if (_argo0 == Py_None) { _arg0 = NULL; }
7898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7900 return NULL;
7901 }
7902 }
7903 {
7904 #if PYTHON_API_VERSION >= 1009
7905 char* tmpPtr; int tmpSize;
7906 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7907 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7908 return NULL;
7909 }
7910 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7911 return NULL;
7912 _arg1 = new wxString(tmpPtr, tmpSize);
7913 #else
7914 if (!PyString_Check(_obj1)) {
7915 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7916 return NULL;
7917 }
7918 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7919 #endif
7920 }
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7924
7925 wxPyEndAllowThreads(__tstate);
7926 if (PyErr_Occurred()) return NULL;
7927 } Py_INCREF(Py_None);
7928 _resultobj = Py_None;
7929 {
7930 if (_obj1)
7931 delete _arg1;
7932 }
7933 return _resultobj;
7934 }
7935
7936 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7937 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7938 PyObject * _resultobj;
7939 wxDC * _arg0;
7940 PyObject * _argo0 = 0;
7941 char *_kwnames[] = { "self", NULL };
7942
7943 self = self;
7944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7945 return NULL;
7946 if (_argo0) {
7947 if (_argo0 == Py_None) { _arg0 = NULL; }
7948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7950 return NULL;
7951 }
7952 }
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 wxDC_EndDoc(_arg0);
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) return NULL;
7959 } Py_INCREF(Py_None);
7960 _resultobj = Py_None;
7961 return _resultobj;
7962 }
7963
7964 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7965 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject * _resultobj;
7967 wxDC * _arg0;
7968 PyObject * _argo0 = 0;
7969 char *_kwnames[] = { "self", NULL };
7970
7971 self = self;
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7973 return NULL;
7974 if (_argo0) {
7975 if (_argo0 == Py_None) { _arg0 = NULL; }
7976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7978 return NULL;
7979 }
7980 }
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 wxDC_EndDrawing(_arg0);
7984
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) return NULL;
7987 } Py_INCREF(Py_None);
7988 _resultobj = Py_None;
7989 return _resultobj;
7990 }
7991
7992 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7993 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7994 PyObject * _resultobj;
7995 wxDC * _arg0;
7996 PyObject * _argo0 = 0;
7997 char *_kwnames[] = { "self", NULL };
7998
7999 self = self;
8000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
8001 return NULL;
8002 if (_argo0) {
8003 if (_argo0 == Py_None) { _arg0 = NULL; }
8004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8006 return NULL;
8007 }
8008 }
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 wxDC_EndPage(_arg0);
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) return NULL;
8015 } Py_INCREF(Py_None);
8016 _resultobj = Py_None;
8017 return _resultobj;
8018 }
8019
8020 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8021 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
8022 PyObject * _resultobj;
8023 wxDC * _arg0;
8024 long _arg1;
8025 long _arg2;
8026 wxColour * _arg3;
8027 int _arg4 = (int ) wxFLOOD_SURFACE;
8028 PyObject * _argo0 = 0;
8029 wxColour temp;
8030 PyObject * _obj3 = 0;
8031 char *_kwnames[] = { "self","x","y","colour","style", NULL };
8032
8033 self = self;
8034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8035 return NULL;
8036 if (_argo0) {
8037 if (_argo0 == Py_None) { _arg0 = NULL; }
8038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8040 return NULL;
8041 }
8042 }
8043 {
8044 _arg3 = &temp;
8045 if (! wxColour_helper(_obj3, &_arg3))
8046 return NULL;
8047 }
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
8051
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) return NULL;
8054 } Py_INCREF(Py_None);
8055 _resultobj = Py_None;
8056 return _resultobj;
8057 }
8058
8059 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8060 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8061 PyObject * _resultobj;
8062 wxBrush * _result;
8063 wxDC * _arg0;
8064 PyObject * _argo0 = 0;
8065 char *_kwnames[] = { "self", NULL };
8066 char _ptemp[128];
8067
8068 self = self;
8069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
8070 return NULL;
8071 if (_argo0) {
8072 if (_argo0 == Py_None) { _arg0 = NULL; }
8073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8075 return NULL;
8076 }
8077 }
8078 {
8079 PyThreadState* __tstate = wxPyBeginAllowThreads();
8080 _result = new wxBrush (wxDC_GetBackground(_arg0));
8081
8082 wxPyEndAllowThreads(__tstate);
8083 if (PyErr_Occurred()) return NULL;
8084 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8085 _resultobj = Py_BuildValue("s",_ptemp);
8086 return _resultobj;
8087 }
8088
8089 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8090 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8091 PyObject * _resultobj;
8092 wxBrush * _result;
8093 wxDC * _arg0;
8094 PyObject * _argo0 = 0;
8095 char *_kwnames[] = { "self", NULL };
8096 char _ptemp[128];
8097
8098 self = self;
8099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
8100 return NULL;
8101 if (_argo0) {
8102 if (_argo0 == Py_None) { _arg0 = NULL; }
8103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8105 return NULL;
8106 }
8107 }
8108 {
8109 PyThreadState* __tstate = wxPyBeginAllowThreads();
8110 _result = new wxBrush (wxDC_GetBrush(_arg0));
8111
8112 wxPyEndAllowThreads(__tstate);
8113 if (PyErr_Occurred()) return NULL;
8114 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8115 _resultobj = Py_BuildValue("s",_ptemp);
8116 return _resultobj;
8117 }
8118
8119 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8120 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8121 PyObject * _resultobj;
8122 long _result;
8123 wxDC * _arg0;
8124 PyObject * _argo0 = 0;
8125 char *_kwnames[] = { "self", NULL };
8126
8127 self = self;
8128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
8129 return NULL;
8130 if (_argo0) {
8131 if (_argo0 == Py_None) { _arg0 = NULL; }
8132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8134 return NULL;
8135 }
8136 }
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 _result = (long )wxDC_GetCharHeight(_arg0);
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) return NULL;
8143 } _resultobj = Py_BuildValue("l",_result);
8144 return _resultobj;
8145 }
8146
8147 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8148 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8149 PyObject * _resultobj;
8150 long _result;
8151 wxDC * _arg0;
8152 PyObject * _argo0 = 0;
8153 char *_kwnames[] = { "self", NULL };
8154
8155 self = self;
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
8157 return NULL;
8158 if (_argo0) {
8159 if (_argo0 == Py_None) { _arg0 = NULL; }
8160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8162 return NULL;
8163 }
8164 }
8165 {
8166 PyThreadState* __tstate = wxPyBeginAllowThreads();
8167 _result = (long )wxDC_GetCharWidth(_arg0);
8168
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) return NULL;
8171 } _resultobj = Py_BuildValue("l",_result);
8172 return _resultobj;
8173 }
8174
8175 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8176 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject * _resultobj;
8178 wxDC * _arg0;
8179 long * _arg1;
8180 long temp;
8181 long * _arg2;
8182 long temp0;
8183 long * _arg3;
8184 long temp1;
8185 long * _arg4;
8186 long temp2;
8187 PyObject * _argo0 = 0;
8188 char *_kwnames[] = { "self", NULL };
8189
8190 self = self;
8191 {
8192 _arg1 = &temp;
8193 }
8194 {
8195 _arg2 = &temp0;
8196 }
8197 {
8198 _arg3 = &temp1;
8199 }
8200 {
8201 _arg4 = &temp2;
8202 }
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
8204 return NULL;
8205 if (_argo0) {
8206 if (_argo0 == Py_None) { _arg0 = NULL; }
8207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8209 return NULL;
8210 }
8211 }
8212 {
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8215
8216 wxPyEndAllowThreads(__tstate);
8217 if (PyErr_Occurred()) return NULL;
8218 } Py_INCREF(Py_None);
8219 _resultobj = Py_None;
8220 {
8221 PyObject *o;
8222 o = PyInt_FromLong((long) (*_arg1));
8223 _resultobj = t_output_helper(_resultobj, o);
8224 }
8225 {
8226 PyObject *o;
8227 o = PyInt_FromLong((long) (*_arg2));
8228 _resultobj = t_output_helper(_resultobj, o);
8229 }
8230 {
8231 PyObject *o;
8232 o = PyInt_FromLong((long) (*_arg3));
8233 _resultobj = t_output_helper(_resultobj, o);
8234 }
8235 {
8236 PyObject *o;
8237 o = PyInt_FromLong((long) (*_arg4));
8238 _resultobj = t_output_helper(_resultobj, o);
8239 }
8240 return _resultobj;
8241 }
8242
8243 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8244 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject * _resultobj;
8246 wxFont * _result;
8247 wxDC * _arg0;
8248 PyObject * _argo0 = 0;
8249 char *_kwnames[] = { "self", NULL };
8250 char _ptemp[128];
8251
8252 self = self;
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
8254 return NULL;
8255 if (_argo0) {
8256 if (_argo0 == Py_None) { _arg0 = NULL; }
8257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8259 return NULL;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 _result = new wxFont (wxDC_GetFont(_arg0));
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) return NULL;
8268 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
8269 _resultobj = Py_BuildValue("s",_ptemp);
8270 return _resultobj;
8271 }
8272
8273 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8274 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8275 PyObject * _resultobj;
8276 int _result;
8277 wxDC * _arg0;
8278 PyObject * _argo0 = 0;
8279 char *_kwnames[] = { "self", NULL };
8280
8281 self = self;
8282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
8283 return NULL;
8284 if (_argo0) {
8285 if (_argo0 == Py_None) { _arg0 = NULL; }
8286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8288 return NULL;
8289 }
8290 }
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 _result = (int )wxDC_GetLogicalFunction(_arg0);
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) return NULL;
8297 } _resultobj = Py_BuildValue("i",_result);
8298 return _resultobj;
8299 }
8300
8301 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8302 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8303 PyObject * _resultobj;
8304 wxDC * _arg0;
8305 double * _arg1;
8306 double temp;
8307 double * _arg2;
8308 double temp0;
8309 PyObject * _argo0 = 0;
8310 char *_kwnames[] = { "self", NULL };
8311
8312 self = self;
8313 {
8314 _arg1 = &temp;
8315 }
8316 {
8317 _arg2 = &temp0;
8318 }
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
8320 return NULL;
8321 if (_argo0) {
8322 if (_argo0 == Py_None) { _arg0 = NULL; }
8323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8325 return NULL;
8326 }
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
8331
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) return NULL;
8334 } Py_INCREF(Py_None);
8335 _resultobj = Py_None;
8336 {
8337 PyObject *o;
8338 o = PyFloat_FromDouble((double) (*_arg1));
8339 _resultobj = t_output_helper(_resultobj, o);
8340 }
8341 {
8342 PyObject *o;
8343 o = PyFloat_FromDouble((double) (*_arg2));
8344 _resultobj = t_output_helper(_resultobj, o);
8345 }
8346 return _resultobj;
8347 }
8348
8349 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8350 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8351 PyObject * _resultobj;
8352 int _result;
8353 wxDC * _arg0;
8354 PyObject * _argo0 = 0;
8355 char *_kwnames[] = { "self", NULL };
8356
8357 self = self;
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
8359 return NULL;
8360 if (_argo0) {
8361 if (_argo0 == Py_None) { _arg0 = NULL; }
8362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8364 return NULL;
8365 }
8366 }
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 _result = (int )wxDC_GetMapMode(_arg0);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) return NULL;
8373 } _resultobj = Py_BuildValue("i",_result);
8374 return _resultobj;
8375 }
8376
8377 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8378 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8379 PyObject * _resultobj;
8380 bool _result;
8381 wxDC * _arg0;
8382 PyObject * _argo0 = 0;
8383 char *_kwnames[] = { "self", NULL };
8384
8385 self = self;
8386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
8387 return NULL;
8388 if (_argo0) {
8389 if (_argo0 == Py_None) { _arg0 = NULL; }
8390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8392 return NULL;
8393 }
8394 }
8395 {
8396 PyThreadState* __tstate = wxPyBeginAllowThreads();
8397 _result = (bool )wxDC_GetOptimization(_arg0);
8398
8399 wxPyEndAllowThreads(__tstate);
8400 if (PyErr_Occurred()) return NULL;
8401 } _resultobj = Py_BuildValue("i",_result);
8402 return _resultobj;
8403 }
8404
8405 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8406 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject * _resultobj;
8408 wxPen * _result;
8409 wxDC * _arg0;
8410 PyObject * _argo0 = 0;
8411 char *_kwnames[] = { "self", NULL };
8412 char _ptemp[128];
8413
8414 self = self;
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
8416 return NULL;
8417 if (_argo0) {
8418 if (_argo0 == Py_None) { _arg0 = NULL; }
8419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8421 return NULL;
8422 }
8423 }
8424 {
8425 PyThreadState* __tstate = wxPyBeginAllowThreads();
8426 _result = new wxPen (wxDC_GetPen(_arg0));
8427
8428 wxPyEndAllowThreads(__tstate);
8429 if (PyErr_Occurred()) return NULL;
8430 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
8431 _resultobj = Py_BuildValue("s",_ptemp);
8432 return _resultobj;
8433 }
8434
8435 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
8436 wxColour* wc = new wxColour();
8437 self->GetPixel(x, y, wc);
8438 return wc;
8439 }
8440 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8441 PyObject * _resultobj;
8442 wxColour * _result;
8443 wxDC * _arg0;
8444 long _arg1;
8445 long _arg2;
8446 PyObject * _argo0 = 0;
8447 char *_kwnames[] = { "self","x","y", NULL };
8448 char _ptemp[128];
8449
8450 self = self;
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
8452 return NULL;
8453 if (_argo0) {
8454 if (_argo0 == Py_None) { _arg0 = NULL; }
8455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8457 return NULL;
8458 }
8459 }
8460 {
8461 PyThreadState* __tstate = wxPyBeginAllowThreads();
8462 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
8463
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) return NULL;
8466 } if (_result) {
8467 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
8468 _resultobj = Py_BuildValue("s",_ptemp);
8469 } else {
8470 Py_INCREF(Py_None);
8471 _resultobj = Py_None;
8472 }
8473 return _resultobj;
8474 }
8475
8476 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8477 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
8478 PyObject * _resultobj;
8479 wxDC * _arg0;
8480 int * _arg1;
8481 int temp;
8482 int * _arg2;
8483 int temp0;
8484 PyObject * _argo0 = 0;
8485 char *_kwnames[] = { "self", NULL };
8486
8487 self = self;
8488 {
8489 _arg1 = &temp;
8490 }
8491 {
8492 _arg2 = &temp0;
8493 }
8494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
8495 return NULL;
8496 if (_argo0) {
8497 if (_argo0 == Py_None) { _arg0 = NULL; }
8498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8500 return NULL;
8501 }
8502 }
8503 {
8504 PyThreadState* __tstate = wxPyBeginAllowThreads();
8505 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
8506
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) return NULL;
8509 } Py_INCREF(Py_None);
8510 _resultobj = Py_None;
8511 {
8512 PyObject *o;
8513 o = PyInt_FromLong((long) (*_arg1));
8514 _resultobj = t_output_helper(_resultobj, o);
8515 }
8516 {
8517 PyObject *o;
8518 o = PyInt_FromLong((long) (*_arg2));
8519 _resultobj = t_output_helper(_resultobj, o);
8520 }
8521 return _resultobj;
8522 }
8523
8524 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8525 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8526 PyObject * _resultobj;
8527 wxSize * _result;
8528 wxDC * _arg0;
8529 PyObject * _argo0 = 0;
8530 char *_kwnames[] = { "self", NULL };
8531 char _ptemp[128];
8532
8533 self = self;
8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
8535 return NULL;
8536 if (_argo0) {
8537 if (_argo0 == Py_None) { _arg0 = NULL; }
8538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8540 return NULL;
8541 }
8542 }
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 _result = new wxSize (wxDC_GetSize(_arg0));
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) return NULL;
8549 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8550 _resultobj = Py_BuildValue("s",_ptemp);
8551 return _resultobj;
8552 }
8553
8554 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8555 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
8556 PyObject * _resultobj;
8557 wxSize * _result;
8558 wxDC * _arg0;
8559 PyObject * _argo0 = 0;
8560 char *_kwnames[] = { "self", NULL };
8561 char _ptemp[128];
8562
8563 self = self;
8564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
8565 return NULL;
8566 if (_argo0) {
8567 if (_argo0 == Py_None) { _arg0 = NULL; }
8568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8570 return NULL;
8571 }
8572 }
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) return NULL;
8579 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8580 _resultobj = Py_BuildValue("s",_ptemp);
8581 return _resultobj;
8582 }
8583
8584 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8585 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8586 PyObject * _resultobj;
8587 wxColour * _result;
8588 wxDC * _arg0;
8589 PyObject * _argo0 = 0;
8590 char *_kwnames[] = { "self", NULL };
8591 char _ptemp[128];
8592
8593 self = self;
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8595 return NULL;
8596 if (_argo0) {
8597 if (_argo0 == Py_None) { _arg0 = NULL; }
8598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8600 return NULL;
8601 }
8602 }
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) return NULL;
8609 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8610 _resultobj = Py_BuildValue("s",_ptemp);
8611 return _resultobj;
8612 }
8613
8614 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8615 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject * _resultobj;
8617 wxDC * _arg0;
8618 wxString * _arg1;
8619 long * _arg2;
8620 long temp;
8621 long * _arg3;
8622 long temp0;
8623 PyObject * _argo0 = 0;
8624 PyObject * _obj1 = 0;
8625 char *_kwnames[] = { "self","string", NULL };
8626
8627 self = self;
8628 {
8629 _arg2 = &temp;
8630 }
8631 {
8632 _arg3 = &temp0;
8633 }
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8635 return NULL;
8636 if (_argo0) {
8637 if (_argo0 == Py_None) { _arg0 = NULL; }
8638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8640 return NULL;
8641 }
8642 }
8643 {
8644 #if PYTHON_API_VERSION >= 1009
8645 char* tmpPtr; int tmpSize;
8646 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8647 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8648 return NULL;
8649 }
8650 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8651 return NULL;
8652 _arg1 = new wxString(tmpPtr, tmpSize);
8653 #else
8654 if (!PyString_Check(_obj1)) {
8655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8656 return NULL;
8657 }
8658 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8659 #endif
8660 }
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) return NULL;
8667 } Py_INCREF(Py_None);
8668 _resultobj = Py_None;
8669 {
8670 PyObject *o;
8671 o = PyInt_FromLong((long) (*_arg2));
8672 _resultobj = t_output_helper(_resultobj, o);
8673 }
8674 {
8675 PyObject *o;
8676 o = PyInt_FromLong((long) (*_arg3));
8677 _resultobj = t_output_helper(_resultobj, o);
8678 }
8679 {
8680 if (_obj1)
8681 delete _arg1;
8682 }
8683 return _resultobj;
8684 }
8685
8686 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8687 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8688 PyObject * _resultobj;
8689 wxDC * _arg0;
8690 wxString * _arg1;
8691 long * _arg2;
8692 long temp;
8693 long * _arg3;
8694 long temp0;
8695 long * _arg4;
8696 long temp1;
8697 long * _arg5;
8698 long temp2;
8699 wxFont * _arg6 = (wxFont *) NULL;
8700 PyObject * _argo0 = 0;
8701 PyObject * _obj1 = 0;
8702 PyObject * _argo6 = 0;
8703 char *_kwnames[] = { "self","string","font", NULL };
8704
8705 self = self;
8706 {
8707 _arg2 = &temp;
8708 }
8709 {
8710 _arg3 = &temp0;
8711 }
8712 {
8713 _arg4 = &temp1;
8714 }
8715 {
8716 _arg5 = &temp2;
8717 }
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8719 return NULL;
8720 if (_argo0) {
8721 if (_argo0 == Py_None) { _arg0 = NULL; }
8722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8724 return NULL;
8725 }
8726 }
8727 {
8728 #if PYTHON_API_VERSION >= 1009
8729 char* tmpPtr; int tmpSize;
8730 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8731 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8732 return NULL;
8733 }
8734 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8735 return NULL;
8736 _arg1 = new wxString(tmpPtr, tmpSize);
8737 #else
8738 if (!PyString_Check(_obj1)) {
8739 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8740 return NULL;
8741 }
8742 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8743 #endif
8744 }
8745 if (_argo6) {
8746 if (_argo6 == Py_None) { _arg6 = NULL; }
8747 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8748 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8749 return NULL;
8750 }
8751 }
8752 {
8753 PyThreadState* __tstate = wxPyBeginAllowThreads();
8754 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8755
8756 wxPyEndAllowThreads(__tstate);
8757 if (PyErr_Occurred()) return NULL;
8758 } Py_INCREF(Py_None);
8759 _resultobj = Py_None;
8760 {
8761 PyObject *o;
8762 o = PyInt_FromLong((long) (*_arg2));
8763 _resultobj = t_output_helper(_resultobj, o);
8764 }
8765 {
8766 PyObject *o;
8767 o = PyInt_FromLong((long) (*_arg3));
8768 _resultobj = t_output_helper(_resultobj, o);
8769 }
8770 {
8771 PyObject *o;
8772 o = PyInt_FromLong((long) (*_arg4));
8773 _resultobj = t_output_helper(_resultobj, o);
8774 }
8775 {
8776 PyObject *o;
8777 o = PyInt_FromLong((long) (*_arg5));
8778 _resultobj = t_output_helper(_resultobj, o);
8779 }
8780 {
8781 if (_obj1)
8782 delete _arg1;
8783 }
8784 return _resultobj;
8785 }
8786
8787 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8788 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8789 PyObject * _resultobj;
8790 wxColour * _result;
8791 wxDC * _arg0;
8792 PyObject * _argo0 = 0;
8793 char *_kwnames[] = { "self", NULL };
8794 char _ptemp[128];
8795
8796 self = self;
8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8798 return NULL;
8799 if (_argo0) {
8800 if (_argo0 == Py_None) { _arg0 = NULL; }
8801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8803 return NULL;
8804 }
8805 }
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) return NULL;
8812 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8813 _resultobj = Py_BuildValue("s",_ptemp);
8814 return _resultobj;
8815 }
8816
8817 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8818 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8819 PyObject * _resultobj;
8820 wxDC * _arg0;
8821 double * _arg1;
8822 double temp;
8823 double * _arg2;
8824 double temp0;
8825 PyObject * _argo0 = 0;
8826 char *_kwnames[] = { "self", NULL };
8827
8828 self = self;
8829 {
8830 _arg1 = &temp;
8831 }
8832 {
8833 _arg2 = &temp0;
8834 }
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8836 return NULL;
8837 if (_argo0) {
8838 if (_argo0 == Py_None) { _arg0 = NULL; }
8839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8841 return NULL;
8842 }
8843 }
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) return NULL;
8850 } Py_INCREF(Py_None);
8851 _resultobj = Py_None;
8852 {
8853 PyObject *o;
8854 o = PyFloat_FromDouble((double) (*_arg1));
8855 _resultobj = t_output_helper(_resultobj, o);
8856 }
8857 {
8858 PyObject *o;
8859 o = PyFloat_FromDouble((double) (*_arg2));
8860 _resultobj = t_output_helper(_resultobj, o);
8861 }
8862 return _resultobj;
8863 }
8864
8865 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8866 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8867 PyObject * _resultobj;
8868 long _result;
8869 wxDC * _arg0;
8870 long _arg1;
8871 PyObject * _argo0 = 0;
8872 char *_kwnames[] = { "self","x", NULL };
8873
8874 self = self;
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8876 return NULL;
8877 if (_argo0) {
8878 if (_argo0 == Py_None) { _arg0 = NULL; }
8879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8881 return NULL;
8882 }
8883 }
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) return NULL;
8890 } _resultobj = Py_BuildValue("l",_result);
8891 return _resultobj;
8892 }
8893
8894 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8895 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8896 PyObject * _resultobj;
8897 long _result;
8898 wxDC * _arg0;
8899 long _arg1;
8900 PyObject * _argo0 = 0;
8901 char *_kwnames[] = { "self","x", NULL };
8902
8903 self = self;
8904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8905 return NULL;
8906 if (_argo0) {
8907 if (_argo0 == Py_None) { _arg0 = NULL; }
8908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8910 return NULL;
8911 }
8912 }
8913 {
8914 PyThreadState* __tstate = wxPyBeginAllowThreads();
8915 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8916
8917 wxPyEndAllowThreads(__tstate);
8918 if (PyErr_Occurred()) return NULL;
8919 } _resultobj = Py_BuildValue("l",_result);
8920 return _resultobj;
8921 }
8922
8923 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8924 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8925 PyObject * _resultobj;
8926 long _result;
8927 wxDC * _arg0;
8928 long _arg1;
8929 PyObject * _argo0 = 0;
8930 char *_kwnames[] = { "self","y", NULL };
8931
8932 self = self;
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8934 return NULL;
8935 if (_argo0) {
8936 if (_argo0 == Py_None) { _arg0 = NULL; }
8937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8939 return NULL;
8940 }
8941 }
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) return NULL;
8948 } _resultobj = Py_BuildValue("l",_result);
8949 return _resultobj;
8950 }
8951
8952 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8953 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8954 PyObject * _resultobj;
8955 long _result;
8956 wxDC * _arg0;
8957 long _arg1;
8958 PyObject * _argo0 = 0;
8959 char *_kwnames[] = { "self","y", NULL };
8960
8961 self = self;
8962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8963 return NULL;
8964 if (_argo0) {
8965 if (_argo0 == Py_None) { _arg0 = NULL; }
8966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8968 return NULL;
8969 }
8970 }
8971 {
8972 PyThreadState* __tstate = wxPyBeginAllowThreads();
8973 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8974
8975 wxPyEndAllowThreads(__tstate);
8976 if (PyErr_Occurred()) return NULL;
8977 } _resultobj = Py_BuildValue("l",_result);
8978 return _resultobj;
8979 }
8980
8981 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8982 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject * _resultobj;
8984 long _result;
8985 wxDC * _arg0;
8986 PyObject * _argo0 = 0;
8987 char *_kwnames[] = { "self", NULL };
8988
8989 self = self;
8990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8991 return NULL;
8992 if (_argo0) {
8993 if (_argo0 == Py_None) { _arg0 = NULL; }
8994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8996 return NULL;
8997 }
8998 }
8999 {
9000 PyThreadState* __tstate = wxPyBeginAllowThreads();
9001 _result = (long )wxDC_MaxX(_arg0);
9002
9003 wxPyEndAllowThreads(__tstate);
9004 if (PyErr_Occurred()) return NULL;
9005 } _resultobj = Py_BuildValue("l",_result);
9006 return _resultobj;
9007 }
9008
9009 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
9010 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject * _resultobj;
9012 long _result;
9013 wxDC * _arg0;
9014 PyObject * _argo0 = 0;
9015 char *_kwnames[] = { "self", NULL };
9016
9017 self = self;
9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
9019 return NULL;
9020 if (_argo0) {
9021 if (_argo0 == Py_None) { _arg0 = NULL; }
9022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9024 return NULL;
9025 }
9026 }
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 _result = (long )wxDC_MaxY(_arg0);
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) return NULL;
9033 } _resultobj = Py_BuildValue("l",_result);
9034 return _resultobj;
9035 }
9036
9037 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9038 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject * _resultobj;
9040 long _result;
9041 wxDC * _arg0;
9042 PyObject * _argo0 = 0;
9043 char *_kwnames[] = { "self", NULL };
9044
9045 self = self;
9046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
9047 return NULL;
9048 if (_argo0) {
9049 if (_argo0 == Py_None) { _arg0 = NULL; }
9050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9052 return NULL;
9053 }
9054 }
9055 {
9056 PyThreadState* __tstate = wxPyBeginAllowThreads();
9057 _result = (long )wxDC_MinX(_arg0);
9058
9059 wxPyEndAllowThreads(__tstate);
9060 if (PyErr_Occurred()) return NULL;
9061 } _resultobj = Py_BuildValue("l",_result);
9062 return _resultobj;
9063 }
9064
9065 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9066 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
9067 PyObject * _resultobj;
9068 long _result;
9069 wxDC * _arg0;
9070 PyObject * _argo0 = 0;
9071 char *_kwnames[] = { "self", NULL };
9072
9073 self = self;
9074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
9075 return NULL;
9076 if (_argo0) {
9077 if (_argo0 == Py_None) { _arg0 = NULL; }
9078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9080 return NULL;
9081 }
9082 }
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 _result = (long )wxDC_MinY(_arg0);
9086
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) return NULL;
9089 } _resultobj = Py_BuildValue("l",_result);
9090 return _resultobj;
9091 }
9092
9093 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9094 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject * _resultobj;
9096 bool _result;
9097 wxDC * _arg0;
9098 PyObject * _argo0 = 0;
9099 char *_kwnames[] = { "self", NULL };
9100
9101 self = self;
9102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
9103 return NULL;
9104 if (_argo0) {
9105 if (_argo0 == Py_None) { _arg0 = NULL; }
9106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9108 return NULL;
9109 }
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 _result = (bool )wxDC_Ok(_arg0);
9114
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) return NULL;
9117 } _resultobj = Py_BuildValue("i",_result);
9118 return _resultobj;
9119 }
9120
9121 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9122 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9123 PyObject * _resultobj;
9124 wxDC * _arg0;
9125 long _arg1;
9126 long _arg2;
9127 PyObject * _argo0 = 0;
9128 char *_kwnames[] = { "self","x","y", NULL };
9129
9130 self = self;
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9132 return NULL;
9133 if (_argo0) {
9134 if (_argo0 == Py_None) { _arg0 = NULL; }
9135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9137 return NULL;
9138 }
9139 }
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
9142 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
9143
9144 wxPyEndAllowThreads(__tstate);
9145 if (PyErr_Occurred()) return NULL;
9146 } Py_INCREF(Py_None);
9147 _resultobj = Py_None;
9148 return _resultobj;
9149 }
9150
9151 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9152 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject * _resultobj;
9154 wxDC * _arg0;
9155 wxBrush * _arg1;
9156 PyObject * _argo0 = 0;
9157 PyObject * _argo1 = 0;
9158 char *_kwnames[] = { "self","brush", NULL };
9159
9160 self = self;
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
9162 return NULL;
9163 if (_argo0) {
9164 if (_argo0 == Py_None) { _arg0 = NULL; }
9165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9167 return NULL;
9168 }
9169 }
9170 if (_argo1) {
9171 if (_argo1 == Py_None) { _arg1 = NULL; }
9172 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9173 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9174 return NULL;
9175 }
9176 }
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 wxDC_SetBackground(_arg0,*_arg1);
9180
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) return NULL;
9183 } Py_INCREF(Py_None);
9184 _resultobj = Py_None;
9185 return _resultobj;
9186 }
9187
9188 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9189 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9190 PyObject * _resultobj;
9191 wxDC * _arg0;
9192 int _arg1;
9193 PyObject * _argo0 = 0;
9194 char *_kwnames[] = { "self","mode", NULL };
9195
9196 self = self;
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
9198 return NULL;
9199 if (_argo0) {
9200 if (_argo0 == Py_None) { _arg0 = NULL; }
9201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9203 return NULL;
9204 }
9205 }
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 wxDC_SetBackgroundMode(_arg0,_arg1);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) return NULL;
9212 } Py_INCREF(Py_None);
9213 _resultobj = Py_None;
9214 return _resultobj;
9215 }
9216
9217 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9218 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9219 PyObject * _resultobj;
9220 wxDC * _arg0;
9221 long _arg1;
9222 long _arg2;
9223 long _arg3;
9224 long _arg4;
9225 PyObject * _argo0 = 0;
9226 char *_kwnames[] = { "self","x","y","width","height", NULL };
9227
9228 self = self;
9229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9230 return NULL;
9231 if (_argo0) {
9232 if (_argo0 == Py_None) { _arg0 = NULL; }
9233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9235 return NULL;
9236 }
9237 }
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) return NULL;
9244 } Py_INCREF(Py_None);
9245 _resultobj = Py_None;
9246 return _resultobj;
9247 }
9248
9249 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9250 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject * _resultobj;
9252 wxDC * _arg0;
9253 wxRegion * _arg1;
9254 PyObject * _argo0 = 0;
9255 PyObject * _argo1 = 0;
9256 char *_kwnames[] = { "self","region", NULL };
9257
9258 self = self;
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
9260 return NULL;
9261 if (_argo0) {
9262 if (_argo0 == Py_None) { _arg0 = NULL; }
9263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9265 return NULL;
9266 }
9267 }
9268 if (_argo1) {
9269 if (_argo1 == Py_None) { _arg1 = NULL; }
9270 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9271 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9272 return NULL;
9273 }
9274 }
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) return NULL;
9281 } Py_INCREF(Py_None);
9282 _resultobj = Py_None;
9283 return _resultobj;
9284 }
9285
9286 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9287 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
9288 PyObject * _resultobj;
9289 wxDC * _arg0;
9290 wxPalette * _arg1;
9291 PyObject * _argo0 = 0;
9292 PyObject * _argo1 = 0;
9293 char *_kwnames[] = { "self","colourMap", NULL };
9294
9295 self = self;
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
9297 return NULL;
9298 if (_argo0) {
9299 if (_argo0 == Py_None) { _arg0 = NULL; }
9300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9302 return NULL;
9303 }
9304 }
9305 if (_argo1) {
9306 if (_argo1 == Py_None) { _arg1 = NULL; }
9307 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
9308 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9309 return NULL;
9310 }
9311 }
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 wxDC_SetPalette(_arg0,*_arg1);
9315
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) return NULL;
9318 } Py_INCREF(Py_None);
9319 _resultobj = Py_None;
9320 return _resultobj;
9321 }
9322
9323 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9324 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject * _resultobj;
9326 wxDC * _arg0;
9327 wxBrush * _arg1;
9328 PyObject * _argo0 = 0;
9329 PyObject * _argo1 = 0;
9330 char *_kwnames[] = { "self","brush", NULL };
9331
9332 self = self;
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
9334 return NULL;
9335 if (_argo0) {
9336 if (_argo0 == Py_None) { _arg0 = NULL; }
9337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9339 return NULL;
9340 }
9341 }
9342 if (_argo1) {
9343 if (_argo1 == Py_None) { _arg1 = NULL; }
9344 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9345 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9346 return NULL;
9347 }
9348 }
9349 {
9350 PyThreadState* __tstate = wxPyBeginAllowThreads();
9351 wxDC_SetBrush(_arg0,*_arg1);
9352
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) return NULL;
9355 } Py_INCREF(Py_None);
9356 _resultobj = Py_None;
9357 return _resultobj;
9358 }
9359
9360 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9361 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject * _resultobj;
9363 wxDC * _arg0;
9364 wxFont * _arg1;
9365 PyObject * _argo0 = 0;
9366 PyObject * _argo1 = 0;
9367 char *_kwnames[] = { "self","font", NULL };
9368
9369 self = self;
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
9371 return NULL;
9372 if (_argo0) {
9373 if (_argo0 == Py_None) { _arg0 = NULL; }
9374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9376 return NULL;
9377 }
9378 }
9379 if (_argo1) {
9380 if (_argo1 == Py_None) { _arg1 = NULL; }
9381 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
9382 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9383 return NULL;
9384 }
9385 }
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 wxDC_SetFont(_arg0,*_arg1);
9389
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) return NULL;
9392 } Py_INCREF(Py_None);
9393 _resultobj = Py_None;
9394 return _resultobj;
9395 }
9396
9397 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9398 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
9399 PyObject * _resultobj;
9400 wxDC * _arg0;
9401 int _arg1;
9402 PyObject * _argo0 = 0;
9403 char *_kwnames[] = { "self","function", NULL };
9404
9405 self = self;
9406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
9407 return NULL;
9408 if (_argo0) {
9409 if (_argo0 == Py_None) { _arg0 = NULL; }
9410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9412 return NULL;
9413 }
9414 }
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 wxDC_SetLogicalFunction(_arg0,_arg1);
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) return NULL;
9421 } Py_INCREF(Py_None);
9422 _resultobj = Py_None;
9423 return _resultobj;
9424 }
9425
9426 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9427 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9428 PyObject * _resultobj;
9429 wxDC * _arg0;
9430 double _arg1;
9431 double _arg2;
9432 PyObject * _argo0 = 0;
9433 char *_kwnames[] = { "self","x","y", NULL };
9434
9435 self = self;
9436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
9437 return NULL;
9438 if (_argo0) {
9439 if (_argo0 == Py_None) { _arg0 = NULL; }
9440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9442 return NULL;
9443 }
9444 }
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) return NULL;
9451 } Py_INCREF(Py_None);
9452 _resultobj = Py_None;
9453 return _resultobj;
9454 }
9455
9456 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9457 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject * _resultobj;
9459 wxDC * _arg0;
9460 int _arg1;
9461 PyObject * _argo0 = 0;
9462 char *_kwnames[] = { "self","mode", NULL };
9463
9464 self = self;
9465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
9466 return NULL;
9467 if (_argo0) {
9468 if (_argo0 == Py_None) { _arg0 = NULL; }
9469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9471 return NULL;
9472 }
9473 }
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 wxDC_SetMapMode(_arg0,_arg1);
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) return NULL;
9480 } Py_INCREF(Py_None);
9481 _resultobj = Py_None;
9482 return _resultobj;
9483 }
9484
9485 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9486 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject * _resultobj;
9488 wxDC * _arg0;
9489 bool _arg1;
9490 PyObject * _argo0 = 0;
9491 int tempbool1;
9492 char *_kwnames[] = { "self","optimize", NULL };
9493
9494 self = self;
9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
9496 return NULL;
9497 if (_argo0) {
9498 if (_argo0 == Py_None) { _arg0 = NULL; }
9499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9501 return NULL;
9502 }
9503 }
9504 _arg1 = (bool ) tempbool1;
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 wxDC_SetOptimization(_arg0,_arg1);
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) return NULL;
9511 } Py_INCREF(Py_None);
9512 _resultobj = Py_None;
9513 return _resultobj;
9514 }
9515
9516 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9517 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
9518 PyObject * _resultobj;
9519 wxDC * _arg0;
9520 wxPen * _arg1;
9521 PyObject * _argo0 = 0;
9522 PyObject * _argo1 = 0;
9523 char *_kwnames[] = { "self","pen", NULL };
9524
9525 self = self;
9526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
9527 return NULL;
9528 if (_argo0) {
9529 if (_argo0 == Py_None) { _arg0 = NULL; }
9530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9532 return NULL;
9533 }
9534 }
9535 if (_argo1) {
9536 if (_argo1 == Py_None) { _arg1 = NULL; }
9537 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
9538 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9539 return NULL;
9540 }
9541 }
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 wxDC_SetPen(_arg0,*_arg1);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) return NULL;
9548 } Py_INCREF(Py_None);
9549 _resultobj = Py_None;
9550 return _resultobj;
9551 }
9552
9553 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9554 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9555 PyObject * _resultobj;
9556 wxDC * _arg0;
9557 wxColour * _arg1;
9558 PyObject * _argo0 = 0;
9559 wxColour temp;
9560 PyObject * _obj1 = 0;
9561 char *_kwnames[] = { "self","colour", NULL };
9562
9563 self = self;
9564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
9565 return NULL;
9566 if (_argo0) {
9567 if (_argo0 == Py_None) { _arg0 = NULL; }
9568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9570 return NULL;
9571 }
9572 }
9573 {
9574 _arg1 = &temp;
9575 if (! wxColour_helper(_obj1, &_arg1))
9576 return NULL;
9577 }
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 wxDC_SetTextBackground(_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_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9590 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9591 PyObject * _resultobj;
9592 wxDC * _arg0;
9593 wxColour * _arg1;
9594 PyObject * _argo0 = 0;
9595 wxColour temp;
9596 PyObject * _obj1 = 0;
9597 char *_kwnames[] = { "self","colour", NULL };
9598
9599 self = self;
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9601 return NULL;
9602 if (_argo0) {
9603 if (_argo0 == Py_None) { _arg0 = NULL; }
9604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9606 return NULL;
9607 }
9608 }
9609 {
9610 _arg1 = &temp;
9611 if (! wxColour_helper(_obj1, &_arg1))
9612 return NULL;
9613 }
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 wxDC_SetTextForeground(_arg0,*_arg1);
9617
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) return NULL;
9620 } Py_INCREF(Py_None);
9621 _resultobj = Py_None;
9622 return _resultobj;
9623 }
9624
9625 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9626 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9627 PyObject * _resultobj;
9628 wxDC * _arg0;
9629 double _arg1;
9630 double _arg2;
9631 PyObject * _argo0 = 0;
9632 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9633
9634 self = self;
9635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
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_SetUserScale. Expected _wxDC_p.");
9641 return NULL;
9642 }
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 wxDC_SetUserScale(_arg0,_arg1,_arg2);
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_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9656 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9657 PyObject * _resultobj;
9658 bool _result;
9659 wxDC * _arg0;
9660 wxString * _arg1;
9661 PyObject * _argo0 = 0;
9662 PyObject * _obj1 = 0;
9663 char *_kwnames[] = { "self","message", NULL };
9664
9665 self = self;
9666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9667 return NULL;
9668 if (_argo0) {
9669 if (_argo0 == Py_None) { _arg0 = NULL; }
9670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9672 return NULL;
9673 }
9674 }
9675 {
9676 #if PYTHON_API_VERSION >= 1009
9677 char* tmpPtr; int tmpSize;
9678 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9679 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9680 return NULL;
9681 }
9682 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9683 return NULL;
9684 _arg1 = new wxString(tmpPtr, tmpSize);
9685 #else
9686 if (!PyString_Check(_obj1)) {
9687 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9688 return NULL;
9689 }
9690 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9691 #endif
9692 }
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) return NULL;
9699 } _resultobj = Py_BuildValue("i",_result);
9700 {
9701 if (_obj1)
9702 delete _arg1;
9703 }
9704 return _resultobj;
9705 }
9706
9707 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9708 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9709 PyObject * _resultobj;
9710 wxDC * _arg0;
9711 PyObject * _argo0 = 0;
9712 char *_kwnames[] = { "self", NULL };
9713
9714 self = self;
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9716 return NULL;
9717 if (_argo0) {
9718 if (_argo0 == Py_None) { _arg0 = NULL; }
9719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9721 return NULL;
9722 }
9723 }
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 wxDC_StartPage(_arg0);
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) return NULL;
9730 } Py_INCREF(Py_None);
9731 _resultobj = Py_None;
9732 return _resultobj;
9733 }
9734
9735 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9736 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9737 PyObject * _resultobj;
9738 wxDC * _arg0;
9739 wxBitmap * _arg1;
9740 long _arg2;
9741 long _arg3;
9742 int _arg4 = (int ) FALSE;
9743 PyObject * _argo0 = 0;
9744 PyObject * _argo1 = 0;
9745 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9746
9747 self = self;
9748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9749 return NULL;
9750 if (_argo0) {
9751 if (_argo0 == Py_None) { _arg0 = NULL; }
9752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9754 return NULL;
9755 }
9756 }
9757 if (_argo1) {
9758 if (_argo1 == Py_None) { _arg1 = NULL; }
9759 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9760 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9761 return NULL;
9762 }
9763 }
9764 {
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9767
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) return NULL;
9770 } Py_INCREF(Py_None);
9771 _resultobj = Py_None;
9772 return _resultobj;
9773 }
9774
9775 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9776 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9777 PyObject * _resultobj;
9778 bool _result;
9779 wxDC * _arg0;
9780 PyObject * _argo0 = 0;
9781 char *_kwnames[] = { "self", NULL };
9782
9783 self = self;
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9785 return NULL;
9786 if (_argo0) {
9787 if (_argo0 == Py_None) { _arg0 = NULL; }
9788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9790 return NULL;
9791 }
9792 }
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) return NULL;
9799 } _resultobj = Py_BuildValue("i",_result);
9800 return _resultobj;
9801 }
9802
9803 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9804 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9805 PyObject * _resultobj;
9806 bool _result;
9807 wxDC * _arg0;
9808 PyObject * _argo0 = 0;
9809 char *_kwnames[] = { "self", NULL };
9810
9811 self = self;
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9813 return NULL;
9814 if (_argo0) {
9815 if (_argo0 == Py_None) { _arg0 = NULL; }
9816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9818 return NULL;
9819 }
9820 }
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9824
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) return NULL;
9827 } _resultobj = Py_BuildValue("i",_result);
9828 return _resultobj;
9829 }
9830
9831 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9832 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject * _resultobj;
9834 int _result;
9835 wxDC * _arg0;
9836 PyObject * _argo0 = 0;
9837 char *_kwnames[] = { "self", NULL };
9838
9839 self = self;
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9841 return NULL;
9842 if (_argo0) {
9843 if (_argo0 == Py_None) { _arg0 = NULL; }
9844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9846 return NULL;
9847 }
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 _result = (int )wxDC_GetDepth(_arg0);
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) return NULL;
9855 } _resultobj = Py_BuildValue("i",_result);
9856 return _resultobj;
9857 }
9858
9859 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9860 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject * _resultobj;
9862 wxSize * _result;
9863 wxDC * _arg0;
9864 PyObject * _argo0 = 0;
9865 char *_kwnames[] = { "self", NULL };
9866 char _ptemp[128];
9867
9868 self = self;
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9870 return NULL;
9871 if (_argo0) {
9872 if (_argo0 == Py_None) { _arg0 = NULL; }
9873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9875 return NULL;
9876 }
9877 }
9878 {
9879 PyThreadState* __tstate = wxPyBeginAllowThreads();
9880 _result = new wxSize (wxDC_GetPPI(_arg0));
9881
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) return NULL;
9884 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9885 _resultobj = Py_BuildValue("s",_ptemp);
9886 return _resultobj;
9887 }
9888
9889 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9890 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9891 PyObject * _resultobj;
9892 wxDC * _arg0;
9893 int * _arg1;
9894 int temp;
9895 int * _arg2;
9896 int temp0;
9897 PyObject * _argo0 = 0;
9898 char *_kwnames[] = { "self", NULL };
9899
9900 self = self;
9901 {
9902 _arg1 = &temp;
9903 }
9904 {
9905 _arg2 = &temp0;
9906 }
9907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9908 return NULL;
9909 if (_argo0) {
9910 if (_argo0 == Py_None) { _arg0 = NULL; }
9911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9913 return NULL;
9914 }
9915 }
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9919
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) return NULL;
9922 } Py_INCREF(Py_None);
9923 _resultobj = Py_None;
9924 {
9925 PyObject *o;
9926 o = PyInt_FromLong((long) (*_arg1));
9927 _resultobj = t_output_helper(_resultobj, o);
9928 }
9929 {
9930 PyObject *o;
9931 o = PyInt_FromLong((long) (*_arg2));
9932 _resultobj = t_output_helper(_resultobj, o);
9933 }
9934 return _resultobj;
9935 }
9936
9937 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9938 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9939 PyObject * _resultobj;
9940 wxDC * _arg0;
9941 int _arg1;
9942 int _arg2;
9943 PyObject * _argo0 = 0;
9944 char *_kwnames[] = { "self","x","y", NULL };
9945
9946 self = self;
9947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9948 return NULL;
9949 if (_argo0) {
9950 if (_argo0 == Py_None) { _arg0 = NULL; }
9951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9953 return NULL;
9954 }
9955 }
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9959
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) return NULL;
9962 } Py_INCREF(Py_None);
9963 _resultobj = Py_None;
9964 return _resultobj;
9965 }
9966
9967 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9968 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9969 PyObject * _resultobj;
9970 wxDC * _arg0;
9971 int * _arg1;
9972 int temp;
9973 int * _arg2;
9974 int temp0;
9975 PyObject * _argo0 = 0;
9976 char *_kwnames[] = { "self", NULL };
9977
9978 self = self;
9979 {
9980 _arg1 = &temp;
9981 }
9982 {
9983 _arg2 = &temp0;
9984 }
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9986 return NULL;
9987 if (_argo0) {
9988 if (_argo0 == Py_None) { _arg0 = NULL; }
9989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9991 return NULL;
9992 }
9993 }
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9997
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) return NULL;
10000 } Py_INCREF(Py_None);
10001 _resultobj = Py_None;
10002 {
10003 PyObject *o;
10004 o = PyInt_FromLong((long) (*_arg1));
10005 _resultobj = t_output_helper(_resultobj, o);
10006 }
10007 {
10008 PyObject *o;
10009 o = PyInt_FromLong((long) (*_arg2));
10010 _resultobj = t_output_helper(_resultobj, o);
10011 }
10012 return _resultobj;
10013 }
10014
10015 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
10016 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10017 PyObject * _resultobj;
10018 wxDC * _arg0;
10019 bool _arg1;
10020 bool _arg2;
10021 PyObject * _argo0 = 0;
10022 int tempbool1;
10023 int tempbool2;
10024 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
10025
10026 self = self;
10027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
10028 return NULL;
10029 if (_argo0) {
10030 if (_argo0 == Py_None) { _arg0 = NULL; }
10031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10033 return NULL;
10034 }
10035 }
10036 _arg1 = (bool ) tempbool1;
10037 _arg2 = (bool ) tempbool2;
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
10041
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) return NULL;
10044 } Py_INCREF(Py_None);
10045 _resultobj = Py_None;
10046 return _resultobj;
10047 }
10048
10049 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10050 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10051 PyObject * _resultobj;
10052 wxDC * _arg0;
10053 int _arg1;
10054 int _arg2;
10055 PyObject * _argo0 = 0;
10056 char *_kwnames[] = { "self","x","y", NULL };
10057
10058 self = self;
10059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
10060 return NULL;
10061 if (_argo0) {
10062 if (_argo0 == Py_None) { _arg0 = NULL; }
10063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10065 return NULL;
10066 }
10067 }
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) return NULL;
10074 } Py_INCREF(Py_None);
10075 _resultobj = Py_None;
10076 return _resultobj;
10077 }
10078
10079 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10080 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10081 PyObject * _resultobj;
10082 wxDC * _arg0;
10083 PyObject * _argo0 = 0;
10084 char *_kwnames[] = { "self", NULL };
10085
10086 self = self;
10087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
10088 return NULL;
10089 if (_argo0) {
10090 if (_argo0 == Py_None) { _arg0 = NULL; }
10091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10093 return NULL;
10094 }
10095 }
10096 {
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 wxDC_ResetBoundingBox(_arg0);
10099
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) return NULL;
10102 } Py_INCREF(Py_None);
10103 _resultobj = Py_None;
10104 return _resultobj;
10105 }
10106
10107 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject * _resultobj;
10109 wxDC * _arg0;
10110 int * _arg1;
10111 int temp;
10112 int * _arg2;
10113 int temp0;
10114 int * _arg3;
10115 int temp1;
10116 int * _arg4;
10117 int temp2;
10118 PyObject * _argo0 = 0;
10119 char *_kwnames[] = { "self", NULL };
10120
10121 self = self;
10122 {
10123 _arg1 = &temp;
10124 }
10125 {
10126 _arg2 = &temp0;
10127 }
10128 {
10129 _arg3 = &temp1;
10130 }
10131 {
10132 _arg4 = &temp2;
10133 }
10134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
10135 return NULL;
10136 if (_argo0) {
10137 if (_argo0 == Py_None) { _arg0 = NULL; }
10138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10140 return NULL;
10141 }
10142 }
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) return NULL;
10149 } Py_INCREF(Py_None);
10150 _resultobj = Py_None;
10151 {
10152 PyObject *o;
10153 o = PyInt_FromLong((long) (*_arg1));
10154 _resultobj = t_output_helper(_resultobj, o);
10155 }
10156 {
10157 PyObject *o;
10158 o = PyInt_FromLong((long) (*_arg2));
10159 _resultobj = t_output_helper(_resultobj, o);
10160 }
10161 {
10162 PyObject *o;
10163 o = PyInt_FromLong((long) (*_arg3));
10164 _resultobj = t_output_helper(_resultobj, o);
10165 }
10166 {
10167 PyObject *o;
10168 o = PyInt_FromLong((long) (*_arg4));
10169 _resultobj = t_output_helper(_resultobj, o);
10170 }
10171 return _resultobj;
10172 }
10173
10174 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10175 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject * _resultobj;
10177 long _result;
10178 wxDC * _arg0;
10179 PyObject * _argo0 = 0;
10180 char *_kwnames[] = { "self", NULL };
10181
10182 self = self;
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
10184 return NULL;
10185 if (_argo0) {
10186 if (_argo0 == Py_None) { _arg0 = NULL; }
10187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10189 return NULL;
10190 }
10191 }
10192 {
10193 PyThreadState* __tstate = wxPyBeginAllowThreads();
10194 _result = (long )wxDC_GetHDC(_arg0);
10195
10196 wxPyEndAllowThreads(__tstate);
10197 if (PyErr_Occurred()) return NULL;
10198 } _resultobj = Py_BuildValue("l",_result);
10199 return _resultobj;
10200 }
10201
10202 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
10203 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
10204 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10205 int numObjs = 0;
10206 int numPens = 0;
10207 wxPen* pen;
10208 PyObject* obj;
10209 int x1, y1;
10210 int i = 0;
10211
10212 if (!PySequence_Check(pyPoints)) {
10213 goto err0;
10214 }
10215 if (!PySequence_Check(pyPens)) {
10216 goto err1;
10217 }
10218 numObjs = PySequence_Length(pyPoints);
10219 numPens = PySequence_Length(pyPens);
10220
10221 for (i = 0; i < numObjs; i++) {
10222 // Use a new pen?
10223 if (i < numPens) {
10224 if (isFastPens) {
10225 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10226 }
10227 else {
10228 obj = PySequence_GetItem(pyPens, i);
10229 }
10230 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10231 if (!isFastPens)
10232 Py_DECREF(obj);
10233 goto err1;
10234 }
10235
10236 self->SetPen(*pen);
10237 if (!isFastPens)
10238 Py_DECREF(obj);
10239 }
10240
10241 // Get the point coordinants
10242 if (isFastSeq) {
10243 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
10244 }
10245 else {
10246 obj = PySequence_GetItem(pyPoints, i);
10247 }
10248 if (! _2int_seq_helper(obj, &x1, &y1)) {
10249 if (!isFastPens)
10250 Py_DECREF(obj);
10251 goto err0;
10252 }
10253
10254 // Now draw the point
10255 self->DrawPoint(x1, y1);
10256
10257 if (!isFastSeq)
10258 Py_DECREF(obj);
10259 }
10260
10261 Py_INCREF(Py_None);
10262 return Py_None;
10263
10264 err1:
10265 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10266 return NULL;
10267 err0:
10268 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
10269 return NULL;
10270 }
10271 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
10272 PyObject * _resultobj;
10273 PyObject * _result;
10274 wxDC * _arg0;
10275 PyObject * _arg1;
10276 PyObject * _arg2;
10277 PyObject * _argo0 = 0;
10278 PyObject * _obj1 = 0;
10279 PyObject * _obj2 = 0;
10280 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
10281
10282 self = self;
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
10284 return NULL;
10285 if (_argo0) {
10286 if (_argo0 == Py_None) { _arg0 = NULL; }
10287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10289 return NULL;
10290 }
10291 }
10292 {
10293 _arg1 = _obj1;
10294 }
10295 {
10296 _arg2 = _obj2;
10297 }
10298 {
10299 PyThreadState* __tstate = wxPyBeginAllowThreads();
10300 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
10301
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) return NULL;
10304 }{
10305 _resultobj = _result;
10306 }
10307 return _resultobj;
10308 }
10309
10310 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
10311 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
10312 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10313 int numObjs = 0;
10314 int numPens = 0;
10315 wxPen* pen;
10316 PyObject* obj;
10317 int x1, y1, x2, y2;
10318 int i = 0;
10319
10320 if (!PySequence_Check(pyLines)) {
10321 goto err0;
10322 }
10323 if (!PySequence_Check(pyPens)) {
10324 goto err1;
10325 }
10326 numObjs = PySequence_Length(pyLines);
10327 numPens = PySequence_Length(pyPens);
10328
10329 for (i = 0; i < numObjs; i++) {
10330 // Use a new pen?
10331 if (i < numPens) {
10332 if (isFastPens) {
10333 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10334 }
10335 else {
10336 obj = PySequence_GetItem(pyPens, i);
10337 }
10338 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10339 if (!isFastPens)
10340 Py_DECREF(obj);
10341 goto err1;
10342 }
10343
10344 self->SetPen(*pen);
10345 if (!isFastPens)
10346 Py_DECREF(obj);
10347 }
10348
10349 // Get the line coordinants
10350 if (isFastSeq) {
10351 obj = PySequence_Fast_GET_ITEM(pyLines, i);
10352 }
10353 else {
10354 obj = PySequence_GetItem(pyLines, i);
10355 }
10356 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
10357 if (!isFastPens)
10358 Py_DECREF(obj);
10359 goto err0;
10360 }
10361
10362 // Now draw the line
10363 self->DrawLine(x1, y1, x2, y2);
10364
10365 if (!isFastSeq)
10366 Py_DECREF(obj);
10367 }
10368
10369 Py_INCREF(Py_None);
10370 return Py_None;
10371
10372 err1:
10373 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10374 return NULL;
10375 err0:
10376 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10377 return NULL;
10378 }
10379 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
10380 PyObject * _resultobj;
10381 PyObject * _result;
10382 wxDC * _arg0;
10383 PyObject * _arg1;
10384 PyObject * _arg2;
10385 PyObject * _argo0 = 0;
10386 PyObject * _obj1 = 0;
10387 PyObject * _obj2 = 0;
10388 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
10389
10390 self = self;
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
10392 return NULL;
10393 if (_argo0) {
10394 if (_argo0 == Py_None) { _arg0 = NULL; }
10395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10397 return NULL;
10398 }
10399 }
10400 {
10401 _arg1 = _obj1;
10402 }
10403 {
10404 _arg2 = _obj2;
10405 }
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
10409
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) return NULL;
10412 }{
10413 _resultobj = _result;
10414 }
10415 return _resultobj;
10416 }
10417
10418 static void *SwigwxMemoryDCTowxDC(void *ptr) {
10419 wxMemoryDC *src;
10420 wxDC *dest;
10421 src = (wxMemoryDC *) ptr;
10422 dest = (wxDC *) src;
10423 return (void *) dest;
10424 }
10425
10426 static void *SwigwxMemoryDCTowxObject(void *ptr) {
10427 wxMemoryDC *src;
10428 wxObject *dest;
10429 src = (wxMemoryDC *) ptr;
10430 dest = (wxObject *) src;
10431 return (void *) dest;
10432 }
10433
10434 #define new_wxMemoryDC() (new wxMemoryDC())
10435 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10436 PyObject * _resultobj;
10437 wxMemoryDC * _result;
10438 char *_kwnames[] = { NULL };
10439 char _ptemp[128];
10440
10441 self = self;
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
10443 return NULL;
10444 {
10445 PyThreadState* __tstate = wxPyBeginAllowThreads();
10446 _result = (wxMemoryDC *)new_wxMemoryDC();
10447
10448 wxPyEndAllowThreads(__tstate);
10449 if (PyErr_Occurred()) return NULL;
10450 } if (_result) {
10451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
10452 _resultobj = Py_BuildValue("s",_ptemp);
10453 } else {
10454 Py_INCREF(Py_None);
10455 _resultobj = Py_None;
10456 }
10457 return _resultobj;
10458 }
10459
10460 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10461 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
10462 PyObject * _resultobj;
10463 wxMemoryDC * _arg0;
10464 wxBitmap * _arg1;
10465 PyObject * _argo0 = 0;
10466 PyObject * _argo1 = 0;
10467 char *_kwnames[] = { "self","bitmap", NULL };
10468
10469 self = self;
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
10471 return NULL;
10472 if (_argo0) {
10473 if (_argo0 == Py_None) { _arg0 = NULL; }
10474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
10475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10476 return NULL;
10477 }
10478 }
10479 if (_argo1) {
10480 if (_argo1 == Py_None) { _arg1 = NULL; }
10481 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10482 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10483 return NULL;
10484 }
10485 }
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 wxMemoryDC_SelectObject(_arg0,*_arg1);
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) return NULL;
10492 } Py_INCREF(Py_None);
10493 _resultobj = Py_None;
10494 return _resultobj;
10495 }
10496
10497 static void *SwigwxScreenDCTowxDC(void *ptr) {
10498 wxScreenDC *src;
10499 wxDC *dest;
10500 src = (wxScreenDC *) ptr;
10501 dest = (wxDC *) src;
10502 return (void *) dest;
10503 }
10504
10505 static void *SwigwxScreenDCTowxObject(void *ptr) {
10506 wxScreenDC *src;
10507 wxObject *dest;
10508 src = (wxScreenDC *) ptr;
10509 dest = (wxObject *) src;
10510 return (void *) dest;
10511 }
10512
10513 #define new_wxScreenDC() (new wxScreenDC())
10514 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10515 PyObject * _resultobj;
10516 wxScreenDC * _result;
10517 char *_kwnames[] = { NULL };
10518 char _ptemp[128];
10519
10520 self = self;
10521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
10522 return NULL;
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 _result = (wxScreenDC *)new_wxScreenDC();
10526
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) return NULL;
10529 } if (_result) {
10530 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
10531 _resultobj = Py_BuildValue("s",_ptemp);
10532 } else {
10533 Py_INCREF(Py_None);
10534 _resultobj = Py_None;
10535 }
10536 return _resultobj;
10537 }
10538
10539 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10540 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
10541 PyObject * _resultobj;
10542 bool _result;
10543 wxScreenDC * _arg0;
10544 wxWindow * _arg1;
10545 PyObject * _argo0 = 0;
10546 PyObject * _argo1 = 0;
10547 char *_kwnames[] = { "self","window", NULL };
10548
10549 self = self;
10550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
10551 return NULL;
10552 if (_argo0) {
10553 if (_argo0 == Py_None) { _arg0 = NULL; }
10554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10556 return NULL;
10557 }
10558 }
10559 if (_argo1) {
10560 if (_argo1 == Py_None) { _arg1 = NULL; }
10561 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10562 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10563 return NULL;
10564 }
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) return NULL;
10572 } _resultobj = Py_BuildValue("i",_result);
10573 return _resultobj;
10574 }
10575
10576 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10577 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10578 PyObject * _resultobj;
10579 bool _result;
10580 wxScreenDC * _arg0;
10581 wxRect * _arg1 = (wxRect *) NULL;
10582 PyObject * _argo0 = 0;
10583 wxRect temp;
10584 PyObject * _obj1 = 0;
10585 char *_kwnames[] = { "self","rect", NULL };
10586
10587 self = self;
10588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
10589 return NULL;
10590 if (_argo0) {
10591 if (_argo0 == Py_None) { _arg0 = NULL; }
10592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10594 return NULL;
10595 }
10596 }
10597 if (_obj1)
10598 {
10599 _arg1 = &temp;
10600 if (! wxRect_helper(_obj1, &_arg1))
10601 return NULL;
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) return NULL;
10609 } _resultobj = Py_BuildValue("i",_result);
10610 return _resultobj;
10611 }
10612
10613 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10614 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10615 PyObject * _resultobj;
10616 bool _result;
10617 wxScreenDC * _arg0;
10618 PyObject * _argo0 = 0;
10619 char *_kwnames[] = { "self", NULL };
10620
10621 self = self;
10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
10623 return NULL;
10624 if (_argo0) {
10625 if (_argo0 == Py_None) { _arg0 = NULL; }
10626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10628 return NULL;
10629 }
10630 }
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) return NULL;
10637 } _resultobj = Py_BuildValue("i",_result);
10638 return _resultobj;
10639 }
10640
10641 static void *SwigwxClientDCTowxDC(void *ptr) {
10642 wxClientDC *src;
10643 wxDC *dest;
10644 src = (wxClientDC *) ptr;
10645 dest = (wxDC *) src;
10646 return (void *) dest;
10647 }
10648
10649 static void *SwigwxClientDCTowxObject(void *ptr) {
10650 wxClientDC *src;
10651 wxObject *dest;
10652 src = (wxClientDC *) ptr;
10653 dest = (wxObject *) src;
10654 return (void *) dest;
10655 }
10656
10657 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10658 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10659 PyObject * _resultobj;
10660 wxClientDC * _result;
10661 wxWindow * _arg0;
10662 PyObject * _argo0 = 0;
10663 char *_kwnames[] = { "win", NULL };
10664 char _ptemp[128];
10665
10666 self = self;
10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10668 return NULL;
10669 if (_argo0) {
10670 if (_argo0 == Py_None) { _arg0 = NULL; }
10671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10673 return NULL;
10674 }
10675 }
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 _result = (wxClientDC *)new_wxClientDC(_arg0);
10679
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) return NULL;
10682 } if (_result) {
10683 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10684 _resultobj = Py_BuildValue("s",_ptemp);
10685 } else {
10686 Py_INCREF(Py_None);
10687 _resultobj = Py_None;
10688 }
10689 return _resultobj;
10690 }
10691
10692 static void *SwigwxPaintDCTowxDC(void *ptr) {
10693 wxPaintDC *src;
10694 wxDC *dest;
10695 src = (wxPaintDC *) ptr;
10696 dest = (wxDC *) src;
10697 return (void *) dest;
10698 }
10699
10700 static void *SwigwxPaintDCTowxObject(void *ptr) {
10701 wxPaintDC *src;
10702 wxObject *dest;
10703 src = (wxPaintDC *) ptr;
10704 dest = (wxObject *) src;
10705 return (void *) dest;
10706 }
10707
10708 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10709 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10710 PyObject * _resultobj;
10711 wxPaintDC * _result;
10712 wxWindow * _arg0;
10713 PyObject * _argo0 = 0;
10714 char *_kwnames[] = { "win", NULL };
10715 char _ptemp[128];
10716
10717 self = self;
10718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10719 return NULL;
10720 if (_argo0) {
10721 if (_argo0 == Py_None) { _arg0 = NULL; }
10722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10724 return NULL;
10725 }
10726 }
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) return NULL;
10733 } if (_result) {
10734 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10735 _resultobj = Py_BuildValue("s",_ptemp);
10736 } else {
10737 Py_INCREF(Py_None);
10738 _resultobj = Py_None;
10739 }
10740 return _resultobj;
10741 }
10742
10743 static void *SwigwxWindowDCTowxDC(void *ptr) {
10744 wxWindowDC *src;
10745 wxDC *dest;
10746 src = (wxWindowDC *) ptr;
10747 dest = (wxDC *) src;
10748 return (void *) dest;
10749 }
10750
10751 static void *SwigwxWindowDCTowxObject(void *ptr) {
10752 wxWindowDC *src;
10753 wxObject *dest;
10754 src = (wxWindowDC *) ptr;
10755 dest = (wxObject *) src;
10756 return (void *) dest;
10757 }
10758
10759 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10760 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10761 PyObject * _resultobj;
10762 wxWindowDC * _result;
10763 wxWindow * _arg0;
10764 PyObject * _argo0 = 0;
10765 char *_kwnames[] = { "win", NULL };
10766 char _ptemp[128];
10767
10768 self = self;
10769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10770 return NULL;
10771 if (_argo0) {
10772 if (_argo0 == Py_None) { _arg0 = NULL; }
10773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10775 return NULL;
10776 }
10777 }
10778 {
10779 PyThreadState* __tstate = wxPyBeginAllowThreads();
10780 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10781
10782 wxPyEndAllowThreads(__tstate);
10783 if (PyErr_Occurred()) return NULL;
10784 } if (_result) {
10785 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10786 _resultobj = Py_BuildValue("s",_ptemp);
10787 } else {
10788 Py_INCREF(Py_None);
10789 _resultobj = Py_None;
10790 }
10791 return _resultobj;
10792 }
10793
10794 static void *SwigwxMetaFileTowxObject(void *ptr) {
10795 wxMetaFile *src;
10796 wxObject *dest;
10797 src = (wxMetaFile *) ptr;
10798 dest = (wxObject *) src;
10799 return (void *) dest;
10800 }
10801
10802 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10803 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10804 PyObject * _resultobj;
10805 wxMetaFile * _result;
10806 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
10807 PyObject * _obj0 = 0;
10808 char *_kwnames[] = { "filename", NULL };
10809 char _ptemp[128];
10810
10811 self = self;
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10813 return NULL;
10814 if (_obj0)
10815 {
10816 #if PYTHON_API_VERSION >= 1009
10817 char* tmpPtr; int tmpSize;
10818 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10819 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10820 return NULL;
10821 }
10822 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10823 return NULL;
10824 _arg0 = new wxString(tmpPtr, tmpSize);
10825 #else
10826 if (!PyString_Check(_obj0)) {
10827 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10828 return NULL;
10829 }
10830 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10831 #endif
10832 }
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) return NULL;
10839 } if (_result) {
10840 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10841 _resultobj = Py_BuildValue("s",_ptemp);
10842 } else {
10843 Py_INCREF(Py_None);
10844 _resultobj = Py_None;
10845 }
10846 {
10847 if (_obj0)
10848 delete _arg0;
10849 }
10850 return _resultobj;
10851 }
10852
10853 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10854 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10855 PyObject * _resultobj;
10856 wxMetaFile * _arg0;
10857 PyObject * _argo0 = 0;
10858 char *_kwnames[] = { "self", NULL };
10859
10860 self = self;
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
10862 return NULL;
10863 if (_argo0) {
10864 if (_argo0 == Py_None) { _arg0 = NULL; }
10865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10867 return NULL;
10868 }
10869 }
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 delete_wxMetaFile(_arg0);
10873
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) return NULL;
10876 } Py_INCREF(Py_None);
10877 _resultobj = Py_None;
10878 return _resultobj;
10879 }
10880
10881 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10882 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject * _resultobj;
10884 bool _result;
10885 wxMetaFile * _arg0;
10886 PyObject * _argo0 = 0;
10887 char *_kwnames[] = { "self", NULL };
10888
10889 self = self;
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
10891 return NULL;
10892 if (_argo0) {
10893 if (_argo0 == Py_None) { _arg0 = NULL; }
10894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10896 return NULL;
10897 }
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 _result = (bool )wxMetaFile_Ok(_arg0);
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) return NULL;
10905 } _resultobj = Py_BuildValue("i",_result);
10906 return _resultobj;
10907 }
10908
10909 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10910 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
10911 PyObject * _resultobj;
10912 bool _result;
10913 wxMetaFile * _arg0;
10914 int _arg1 = (int ) 0;
10915 int _arg2 = (int ) 0;
10916 PyObject * _argo0 = 0;
10917 char *_kwnames[] = { "self","width","height", NULL };
10918
10919 self = self;
10920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
10921 return NULL;
10922 if (_argo0) {
10923 if (_argo0 == Py_None) { _arg0 = NULL; }
10924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10926 return NULL;
10927 }
10928 }
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) return NULL;
10935 } _resultobj = Py_BuildValue("i",_result);
10936 return _resultobj;
10937 }
10938
10939 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10940 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10941 PyObject * _resultobj;
10942 wxSize * _result;
10943 wxMetaFile * _arg0;
10944 PyObject * _argo0 = 0;
10945 char *_kwnames[] = { "self", NULL };
10946 char _ptemp[128];
10947
10948 self = self;
10949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10950 return NULL;
10951 if (_argo0) {
10952 if (_argo0 == Py_None) { _arg0 = NULL; }
10953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10955 return NULL;
10956 }
10957 }
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) return NULL;
10964 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10965 _resultobj = Py_BuildValue("s",_ptemp);
10966 return _resultobj;
10967 }
10968
10969 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10970 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject * _resultobj;
10972 int _result;
10973 wxMetaFile * _arg0;
10974 PyObject * _argo0 = 0;
10975 char *_kwnames[] = { "self", NULL };
10976
10977 self = self;
10978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10979 return NULL;
10980 if (_argo0) {
10981 if (_argo0 == Py_None) { _arg0 = NULL; }
10982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10984 return NULL;
10985 }
10986 }
10987 {
10988 PyThreadState* __tstate = wxPyBeginAllowThreads();
10989 _result = (int )wxMetaFile_GetWidth(_arg0);
10990
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) return NULL;
10993 } _resultobj = Py_BuildValue("i",_result);
10994 return _resultobj;
10995 }
10996
10997 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10998 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject * _resultobj;
11000 int _result;
11001 wxMetaFile * _arg0;
11002 PyObject * _argo0 = 0;
11003 char *_kwnames[] = { "self", NULL };
11004
11005 self = self;
11006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
11007 return NULL;
11008 if (_argo0) {
11009 if (_argo0 == Py_None) { _arg0 = NULL; }
11010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11012 return NULL;
11013 }
11014 }
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 _result = (int )wxMetaFile_GetHeight(_arg0);
11018
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) return NULL;
11021 } _resultobj = Py_BuildValue("i",_result);
11022 return _resultobj;
11023 }
11024
11025 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11026 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
11027 PyObject * _resultobj;
11028 wxString * _result;
11029 wxMetaFile * _arg0;
11030 PyObject * _argo0 = 0;
11031 char *_kwnames[] = { "self", NULL };
11032
11033 self = self;
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
11035 return NULL;
11036 if (_argo0) {
11037 if (_argo0 == Py_None) { _arg0 = NULL; }
11038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11040 return NULL;
11041 }
11042 }
11043 {
11044 PyThreadState* __tstate = wxPyBeginAllowThreads();
11045 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
11046 _result = (wxString *) &_result_ref;
11047
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) return NULL;
11050 }{
11051 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11052 }
11053 return _resultobj;
11054 }
11055
11056 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
11057 wxMetaFileDC *src;
11058 wxDC *dest;
11059 src = (wxMetaFileDC *) ptr;
11060 dest = (wxDC *) src;
11061 return (void *) dest;
11062 }
11063
11064 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
11065 wxMetaFileDC *src;
11066 wxObject *dest;
11067 src = (wxMetaFileDC *) ptr;
11068 dest = (wxObject *) src;
11069 return (void *) dest;
11070 }
11071
11072 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11073 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11074 PyObject * _resultobj;
11075 wxMetaFileDC * _result;
11076 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
11077 int _arg1 = (int ) 0;
11078 int _arg2 = (int ) 0;
11079 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
11080 PyObject * _obj0 = 0;
11081 PyObject * _obj3 = 0;
11082 char *_kwnames[] = { "filename","width","height","description", NULL };
11083 char _ptemp[128];
11084
11085 self = self;
11086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
11087 return NULL;
11088 if (_obj0)
11089 {
11090 #if PYTHON_API_VERSION >= 1009
11091 char* tmpPtr; int tmpSize;
11092 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
11093 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11094 return NULL;
11095 }
11096 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
11097 return NULL;
11098 _arg0 = new wxString(tmpPtr, tmpSize);
11099 #else
11100 if (!PyString_Check(_obj0)) {
11101 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11102 return NULL;
11103 }
11104 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
11105 #endif
11106 }
11107 if (_obj3)
11108 {
11109 #if PYTHON_API_VERSION >= 1009
11110 char* tmpPtr; int tmpSize;
11111 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
11112 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11113 return NULL;
11114 }
11115 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
11116 return NULL;
11117 _arg3 = new wxString(tmpPtr, tmpSize);
11118 #else
11119 if (!PyString_Check(_obj3)) {
11120 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11121 return NULL;
11122 }
11123 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
11124 #endif
11125 }
11126 {
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
11128 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
11129
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) return NULL;
11132 } if (_result) {
11133 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
11134 _resultobj = Py_BuildValue("s",_ptemp);
11135 } else {
11136 Py_INCREF(Py_None);
11137 _resultobj = Py_None;
11138 }
11139 {
11140 if (_obj0)
11141 delete _arg0;
11142 }
11143 {
11144 if (_obj3)
11145 delete _arg3;
11146 }
11147 return _resultobj;
11148 }
11149
11150 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11151 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
11152 PyObject * _resultobj;
11153 wxMetaFile * _result;
11154 wxMetaFileDC * _arg0;
11155 PyObject * _argo0 = 0;
11156 char *_kwnames[] = { "self", NULL };
11157 char _ptemp[128];
11158
11159 self = self;
11160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
11161 return NULL;
11162 if (_argo0) {
11163 if (_argo0 == Py_None) { _arg0 = NULL; }
11164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
11165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11166 return NULL;
11167 }
11168 }
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) return NULL;
11175 } if (_result) {
11176 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11177 _resultobj = Py_BuildValue("s",_ptemp);
11178 } else {
11179 Py_INCREF(Py_None);
11180 _resultobj = Py_None;
11181 }
11182 return _resultobj;
11183 }
11184
11185 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
11186 wxPalette *src;
11187 wxGDIObject *dest;
11188 src = (wxPalette *) ptr;
11189 dest = (wxGDIObject *) src;
11190 return (void *) dest;
11191 }
11192
11193 static void *SwigwxPaletteTowxObject(void *ptr) {
11194 wxPalette *src;
11195 wxObject *dest;
11196 src = (wxPalette *) ptr;
11197 dest = (wxObject *) src;
11198 return (void *) dest;
11199 }
11200
11201 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11202 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11203 PyObject * _resultobj;
11204 wxPalette * _result;
11205 int _arg0;
11206 byte * _arg1;
11207 byte * _arg2;
11208 byte * _arg3;
11209 PyObject * _obj1 = 0;
11210 PyObject * _obj2 = 0;
11211 PyObject * _obj3 = 0;
11212 char *_kwnames[] = { "choices","choices","choices", NULL };
11213 char _ptemp[128];
11214
11215 self = self;
11216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
11217 return NULL;
11218 {
11219 _arg1 = byte_LIST_helper(_obj1);
11220 if (_arg1 == NULL) {
11221 return NULL;
11222 }
11223 }
11224 {
11225 _arg2 = byte_LIST_helper(_obj2);
11226 if (_arg2 == NULL) {
11227 return NULL;
11228 }
11229 }
11230 if (_obj3)
11231 {
11232 _arg3 = byte_LIST_helper(_obj3);
11233 if (_arg3 == NULL) {
11234 return NULL;
11235 }
11236 }
11237 {
11238 if (_obj1) {
11239 _arg0 = PyList_Size(_obj1);
11240 }
11241 else {
11242 _arg0 = 0;
11243 }
11244 }
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
11248
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) return NULL;
11251 } if (_result) {
11252 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
11253 _resultobj = Py_BuildValue("s",_ptemp);
11254 } else {
11255 Py_INCREF(Py_None);
11256 _resultobj = Py_None;
11257 }
11258 {
11259 delete [] _arg1;
11260 }
11261 {
11262 delete [] _arg2;
11263 }
11264 {
11265 delete [] _arg3;
11266 }
11267 return _resultobj;
11268 }
11269
11270 #define delete_wxPalette(_swigobj) (delete _swigobj)
11271 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject * _resultobj;
11273 wxPalette * _arg0;
11274 PyObject * _argo0 = 0;
11275 char *_kwnames[] = { "self", NULL };
11276
11277 self = self;
11278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
11279 return NULL;
11280 if (_argo0) {
11281 if (_argo0 == Py_None) { _arg0 = NULL; }
11282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11284 return NULL;
11285 }
11286 }
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 delete_wxPalette(_arg0);
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) return NULL;
11293 } Py_INCREF(Py_None);
11294 _resultobj = Py_None;
11295 return _resultobj;
11296 }
11297
11298 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11299 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11300 PyObject * _resultobj;
11301 int _result;
11302 wxPalette * _arg0;
11303 byte _arg1;
11304 byte _arg2;
11305 byte _arg3;
11306 PyObject * _argo0 = 0;
11307 char *_kwnames[] = { "self","red","green","blue", NULL };
11308
11309 self = self;
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
11311 return NULL;
11312 if (_argo0) {
11313 if (_argo0 == Py_None) { _arg0 = NULL; }
11314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11316 return NULL;
11317 }
11318 }
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) return NULL;
11325 } _resultobj = Py_BuildValue("i",_result);
11326 return _resultobj;
11327 }
11328
11329 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11330 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
11331 PyObject * _resultobj;
11332 bool _result;
11333 wxPalette * _arg0;
11334 int _arg1;
11335 byte * _arg2;
11336 byte * _arg3;
11337 byte * _arg4;
11338 PyObject * _argo0 = 0;
11339 PyObject * _argo2 = 0;
11340 PyObject * _argo3 = 0;
11341 PyObject * _argo4 = 0;
11342 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
11343
11344 self = self;
11345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
11346 return NULL;
11347 if (_argo0) {
11348 if (_argo0 == Py_None) { _arg0 = NULL; }
11349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11351 return NULL;
11352 }
11353 }
11354 if (_argo2) {
11355 if (_argo2 == Py_None) { _arg2 = NULL; }
11356 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
11357 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
11358 return NULL;
11359 }
11360 }
11361 if (_argo3) {
11362 if (_argo3 == Py_None) { _arg3 = NULL; }
11363 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
11364 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
11365 return NULL;
11366 }
11367 }
11368 if (_argo4) {
11369 if (_argo4 == Py_None) { _arg4 = NULL; }
11370 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
11371 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
11372 return NULL;
11373 }
11374 }
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
11378
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) return NULL;
11381 } _resultobj = Py_BuildValue("i",_result);
11382 return _resultobj;
11383 }
11384
11385 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11386 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject * _resultobj;
11388 bool _result;
11389 wxPalette * _arg0;
11390 PyObject * _argo0 = 0;
11391 char *_kwnames[] = { "self", NULL };
11392
11393 self = self;
11394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
11395 return NULL;
11396 if (_argo0) {
11397 if (_argo0 == Py_None) { _arg0 = NULL; }
11398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11400 return NULL;
11401 }
11402 }
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 _result = (bool )wxPalette_Ok(_arg0);
11406
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) return NULL;
11409 } _resultobj = Py_BuildValue("i",_result);
11410 return _resultobj;
11411 }
11412
11413 static void *SwigwxImageListTowxObject(void *ptr) {
11414 wxImageList *src;
11415 wxObject *dest;
11416 src = (wxImageList *) ptr;
11417 dest = (wxObject *) src;
11418 return (void *) dest;
11419 }
11420
11421 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11422 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject * _resultobj;
11424 wxImageList * _result;
11425 int _arg0;
11426 int _arg1;
11427 int _arg2 = (int ) TRUE;
11428 int _arg3 = (int ) 1;
11429 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
11430 char _ptemp[128];
11431
11432 self = self;
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11434 return NULL;
11435 {
11436 PyThreadState* __tstate = wxPyBeginAllowThreads();
11437 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
11438
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) return NULL;
11441 } if (_result) {
11442 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
11443 _resultobj = Py_BuildValue("s",_ptemp);
11444 } else {
11445 Py_INCREF(Py_None);
11446 _resultobj = Py_None;
11447 }
11448 return _resultobj;
11449 }
11450
11451 #define delete_wxImageList(_swigobj) (delete _swigobj)
11452 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11453 PyObject * _resultobj;
11454 wxImageList * _arg0;
11455 PyObject * _argo0 = 0;
11456 char *_kwnames[] = { "self", NULL };
11457
11458 self = self;
11459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
11460 return NULL;
11461 if (_argo0) {
11462 if (_argo0 == Py_None) { _arg0 = NULL; }
11463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11465 return NULL;
11466 }
11467 }
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 delete_wxImageList(_arg0);
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) return NULL;
11474 } Py_INCREF(Py_None);
11475 _resultobj = Py_None;
11476 return _resultobj;
11477 }
11478
11479 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11480 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
11481 PyObject * _resultobj;
11482 int _result;
11483 wxImageList * _arg0;
11484 wxBitmap * _arg1;
11485 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11486 PyObject * _argo0 = 0;
11487 PyObject * _argo1 = 0;
11488 PyObject * _argo2 = 0;
11489 char *_kwnames[] = { "self","bitmap","mask", NULL };
11490
11491 self = self;
11492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
11493 return NULL;
11494 if (_argo0) {
11495 if (_argo0 == Py_None) { _arg0 = NULL; }
11496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11498 return NULL;
11499 }
11500 }
11501 if (_argo1) {
11502 if (_argo1 == Py_None) { _arg1 = NULL; }
11503 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11504 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11505 return NULL;
11506 }
11507 }
11508 if (_argo2) {
11509 if (_argo2 == Py_None) { _arg2 = NULL; }
11510 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11511 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11512 return NULL;
11513 }
11514 }
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
11518
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) return NULL;
11521 } _resultobj = Py_BuildValue("i",_result);
11522 return _resultobj;
11523 }
11524
11525 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11526 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
11527 PyObject * _resultobj;
11528 int _result;
11529 wxImageList * _arg0;
11530 wxBitmap * _arg1;
11531 wxColour * _arg2;
11532 PyObject * _argo0 = 0;
11533 PyObject * _argo1 = 0;
11534 wxColour temp;
11535 PyObject * _obj2 = 0;
11536 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
11537
11538 self = self;
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
11540 return NULL;
11541 if (_argo0) {
11542 if (_argo0 == Py_None) { _arg0 = NULL; }
11543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11545 return NULL;
11546 }
11547 }
11548 if (_argo1) {
11549 if (_argo1 == Py_None) { _arg1 = NULL; }
11550 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11551 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11552 return NULL;
11553 }
11554 }
11555 {
11556 _arg2 = &temp;
11557 if (! wxColour_helper(_obj2, &_arg2))
11558 return NULL;
11559 }
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) return NULL;
11566 } _resultobj = Py_BuildValue("i",_result);
11567 return _resultobj;
11568 }
11569
11570 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11571 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11572 PyObject * _resultobj;
11573 int _result;
11574 wxImageList * _arg0;
11575 wxIcon * _arg1;
11576 PyObject * _argo0 = 0;
11577 PyObject * _argo1 = 0;
11578 char *_kwnames[] = { "self","icon", NULL };
11579
11580 self = self;
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
11582 return NULL;
11583 if (_argo0) {
11584 if (_argo0 == Py_None) { _arg0 = NULL; }
11585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11587 return NULL;
11588 }
11589 }
11590 if (_argo1) {
11591 if (_argo1 == Py_None) { _arg1 = NULL; }
11592 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
11593 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11594 return NULL;
11595 }
11596 }
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) return NULL;
11603 } _resultobj = Py_BuildValue("i",_result);
11604 return _resultobj;
11605 }
11606
11607 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11608 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11609 PyObject * _resultobj;
11610 bool _result;
11611 wxImageList * _arg0;
11612 int _arg1;
11613 wxBitmap * _arg2;
11614 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
11615 PyObject * _argo0 = 0;
11616 PyObject * _argo2 = 0;
11617 PyObject * _argo3 = 0;
11618 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
11619
11620 self = self;
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
11622 return NULL;
11623 if (_argo0) {
11624 if (_argo0 == Py_None) { _arg0 = NULL; }
11625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11627 return NULL;
11628 }
11629 }
11630 if (_argo2) {
11631 if (_argo2 == Py_None) { _arg2 = NULL; }
11632 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11633 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11634 return NULL;
11635 }
11636 }
11637 if (_argo3) {
11638 if (_argo3 == Py_None) { _arg3 = NULL; }
11639 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
11640 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11641 return NULL;
11642 }
11643 }
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
11647
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) return NULL;
11650 } _resultobj = Py_BuildValue("i",_result);
11651 return _resultobj;
11652 }
11653
11654 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11655 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject * _resultobj;
11657 bool _result;
11658 wxImageList * _arg0;
11659 int _arg1;
11660 wxDC * _arg2;
11661 int _arg3;
11662 int _arg4;
11663 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11664 bool _arg6 = (bool ) FALSE;
11665 PyObject * _argo0 = 0;
11666 PyObject * _argo2 = 0;
11667 int tempbool6 = (int) FALSE;
11668 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11669
11670 self = self;
11671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11672 return NULL;
11673 if (_argo0) {
11674 if (_argo0 == Py_None) { _arg0 = NULL; }
11675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11677 return NULL;
11678 }
11679 }
11680 if (_argo2) {
11681 if (_argo2 == Py_None) { _arg2 = NULL; }
11682 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11683 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11684 return NULL;
11685 }
11686 }
11687 _arg6 = (bool ) tempbool6;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) return NULL;
11694 } _resultobj = Py_BuildValue("i",_result);
11695 return _resultobj;
11696 }
11697
11698 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11699 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11700 PyObject * _resultobj;
11701 int _result;
11702 wxImageList * _arg0;
11703 PyObject * _argo0 = 0;
11704 char *_kwnames[] = { "self", NULL };
11705
11706 self = self;
11707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11708 return NULL;
11709 if (_argo0) {
11710 if (_argo0 == Py_None) { _arg0 = NULL; }
11711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11713 return NULL;
11714 }
11715 }
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
11718 _result = (int )wxImageList_GetImageCount(_arg0);
11719
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) return NULL;
11722 } _resultobj = Py_BuildValue("i",_result);
11723 return _resultobj;
11724 }
11725
11726 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11727 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11728 PyObject * _resultobj;
11729 bool _result;
11730 wxImageList * _arg0;
11731 int _arg1;
11732 PyObject * _argo0 = 0;
11733 char *_kwnames[] = { "self","index", NULL };
11734
11735 self = self;
11736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11737 return NULL;
11738 if (_argo0) {
11739 if (_argo0 == Py_None) { _arg0 = NULL; }
11740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11742 return NULL;
11743 }
11744 }
11745 {
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11748
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) return NULL;
11751 } _resultobj = Py_BuildValue("i",_result);
11752 return _resultobj;
11753 }
11754
11755 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11756 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject * _resultobj;
11758 bool _result;
11759 wxImageList * _arg0;
11760 PyObject * _argo0 = 0;
11761 char *_kwnames[] = { "self", NULL };
11762
11763 self = self;
11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11765 return NULL;
11766 if (_argo0) {
11767 if (_argo0 == Py_None) { _arg0 = NULL; }
11768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11770 return NULL;
11771 }
11772 }
11773 {
11774 PyThreadState* __tstate = wxPyBeginAllowThreads();
11775 _result = (bool )wxImageList_RemoveAll(_arg0);
11776
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) return NULL;
11779 } _resultobj = Py_BuildValue("i",_result);
11780 return _resultobj;
11781 }
11782
11783 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11784 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11785 PyObject * _resultobj;
11786 wxImageList * _arg0;
11787 int _arg1;
11788 int * _arg2;
11789 int temp;
11790 int * _arg3;
11791 int temp0;
11792 PyObject * _argo0 = 0;
11793 char *_kwnames[] = { "self","index", NULL };
11794
11795 self = self;
11796 {
11797 _arg2 = &temp;
11798 }
11799 {
11800 _arg3 = &temp0;
11801 }
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11803 return NULL;
11804 if (_argo0) {
11805 if (_argo0 == Py_None) { _arg0 = NULL; }
11806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11808 return NULL;
11809 }
11810 }
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
11814
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) return NULL;
11817 } Py_INCREF(Py_None);
11818 _resultobj = Py_None;
11819 {
11820 PyObject *o;
11821 o = PyInt_FromLong((long) (*_arg2));
11822 _resultobj = t_output_helper(_resultobj, o);
11823 }
11824 {
11825 PyObject *o;
11826 o = PyInt_FromLong((long) (*_arg3));
11827 _resultobj = t_output_helper(_resultobj, o);
11828 }
11829 return _resultobj;
11830 }
11831
11832 static void *SwigwxRegionTowxGDIObject(void *ptr) {
11833 wxRegion *src;
11834 wxGDIObject *dest;
11835 src = (wxRegion *) ptr;
11836 dest = (wxGDIObject *) src;
11837 return (void *) dest;
11838 }
11839
11840 static void *SwigwxRegionTowxObject(void *ptr) {
11841 wxRegion *src;
11842 wxObject *dest;
11843 src = (wxRegion *) ptr;
11844 dest = (wxObject *) src;
11845 return (void *) dest;
11846 }
11847
11848 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11849 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11850 PyObject * _resultobj;
11851 wxRegion * _result;
11852 long _arg0 = (long ) 0;
11853 long _arg1 = (long ) 0;
11854 long _arg2 = (long ) 0;
11855 long _arg3 = (long ) 0;
11856 char *_kwnames[] = { "x","y","width","height", NULL };
11857 char _ptemp[128];
11858
11859 self = self;
11860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11861 return NULL;
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
11865
11866 wxPyEndAllowThreads(__tstate);
11867 if (PyErr_Occurred()) return NULL;
11868 } if (_result) {
11869 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11870 _resultobj = Py_BuildValue("s",_ptemp);
11871 } else {
11872 Py_INCREF(Py_None);
11873 _resultobj = Py_None;
11874 }
11875 return _resultobj;
11876 }
11877
11878 #define delete_wxRegion(_swigobj) (delete _swigobj)
11879 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11880 PyObject * _resultobj;
11881 wxRegion * _arg0;
11882 PyObject * _argo0 = 0;
11883 char *_kwnames[] = { "self", NULL };
11884
11885 self = self;
11886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11887 return NULL;
11888 if (_argo0) {
11889 if (_argo0 == Py_None) { _arg0 = NULL; }
11890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11892 return NULL;
11893 }
11894 }
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 delete_wxRegion(_arg0);
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) return NULL;
11901 } Py_INCREF(Py_None);
11902 _resultobj = Py_None;
11903 return _resultobj;
11904 }
11905
11906 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11907 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11908 PyObject * _resultobj;
11909 wxRegion * _arg0;
11910 PyObject * _argo0 = 0;
11911 char *_kwnames[] = { "self", NULL };
11912
11913 self = self;
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11915 return NULL;
11916 if (_argo0) {
11917 if (_argo0 == Py_None) { _arg0 = NULL; }
11918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11920 return NULL;
11921 }
11922 }
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 wxRegion_Clear(_arg0);
11926
11927 wxPyEndAllowThreads(__tstate);
11928 if (PyErr_Occurred()) return NULL;
11929 } Py_INCREF(Py_None);
11930 _resultobj = Py_None;
11931 return _resultobj;
11932 }
11933
11934 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11935 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11936 PyObject * _resultobj;
11937 wxRegionContain _result;
11938 wxRegion * _arg0;
11939 long _arg1;
11940 long _arg2;
11941 PyObject * _argo0 = 0;
11942 char *_kwnames[] = { "self","x","y", NULL };
11943
11944 self = self;
11945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11946 return NULL;
11947 if (_argo0) {
11948 if (_argo0 == Py_None) { _arg0 = NULL; }
11949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11951 return NULL;
11952 }
11953 }
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) return NULL;
11960 } _resultobj = Py_BuildValue("i",_result);
11961 return _resultobj;
11962 }
11963
11964 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11965 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11966 PyObject * _resultobj;
11967 wxRegionContain _result;
11968 wxRegion * _arg0;
11969 wxPoint * _arg1;
11970 PyObject * _argo0 = 0;
11971 wxPoint temp;
11972 PyObject * _obj1 = 0;
11973 char *_kwnames[] = { "self","pt", NULL };
11974
11975 self = self;
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11977 return NULL;
11978 if (_argo0) {
11979 if (_argo0 == Py_None) { _arg0 = NULL; }
11980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11982 return NULL;
11983 }
11984 }
11985 {
11986 _arg1 = &temp;
11987 if (! wxPoint_helper(_obj1, &_arg1))
11988 return NULL;
11989 }
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11993
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) return NULL;
11996 } _resultobj = Py_BuildValue("i",_result);
11997 return _resultobj;
11998 }
11999
12000 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12001 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12002 PyObject * _resultobj;
12003 wxRegionContain _result;
12004 wxRegion * _arg0;
12005 wxRect * _arg1;
12006 PyObject * _argo0 = 0;
12007 wxRect temp;
12008 PyObject * _obj1 = 0;
12009 char *_kwnames[] = { "self","rect", NULL };
12010
12011 self = self;
12012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
12013 return NULL;
12014 if (_argo0) {
12015 if (_argo0 == Py_None) { _arg0 = NULL; }
12016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12018 return NULL;
12019 }
12020 }
12021 {
12022 _arg1 = &temp;
12023 if (! wxRect_helper(_obj1, &_arg1))
12024 return NULL;
12025 }
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
12029
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) return NULL;
12032 } _resultobj = Py_BuildValue("i",_result);
12033 return _resultobj;
12034 }
12035
12036 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12037 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
12038 PyObject * _resultobj;
12039 wxRegionContain _result;
12040 wxRegion * _arg0;
12041 long _arg1;
12042 long _arg2;
12043 long _arg3;
12044 long _arg4;
12045 PyObject * _argo0 = 0;
12046 char *_kwnames[] = { "self","x","y","w","h", NULL };
12047
12048 self = self;
12049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12050 return NULL;
12051 if (_argo0) {
12052 if (_argo0 == Py_None) { _arg0 = NULL; }
12053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12055 return NULL;
12056 }
12057 }
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
12061
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) return NULL;
12064 } _resultobj = Py_BuildValue("i",_result);
12065 return _resultobj;
12066 }
12067
12068 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12069 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12070 PyObject * _resultobj;
12071 wxRect * _result;
12072 wxRegion * _arg0;
12073 PyObject * _argo0 = 0;
12074 char *_kwnames[] = { "self", NULL };
12075 char _ptemp[128];
12076
12077 self = self;
12078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
12079 return NULL;
12080 if (_argo0) {
12081 if (_argo0 == Py_None) { _arg0 = NULL; }
12082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12084 return NULL;
12085 }
12086 }
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 _result = new wxRect (wxRegion_GetBox(_arg0));
12090
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) return NULL;
12093 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12094 _resultobj = Py_BuildValue("s",_ptemp);
12095 return _resultobj;
12096 }
12097
12098 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12099 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject * _resultobj;
12101 bool _result;
12102 wxRegion * _arg0;
12103 long _arg1;
12104 long _arg2;
12105 long _arg3;
12106 long _arg4;
12107 PyObject * _argo0 = 0;
12108 char *_kwnames[] = { "self","x","y","width","height", NULL };
12109
12110 self = self;
12111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12112 return NULL;
12113 if (_argo0) {
12114 if (_argo0 == Py_None) { _arg0 = NULL; }
12115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12117 return NULL;
12118 }
12119 }
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
12123
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) return NULL;
12126 } _resultobj = Py_BuildValue("i",_result);
12127 return _resultobj;
12128 }
12129
12130 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12131 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject * _resultobj;
12133 bool _result;
12134 wxRegion * _arg0;
12135 wxRect * _arg1;
12136 PyObject * _argo0 = 0;
12137 wxRect temp;
12138 PyObject * _obj1 = 0;
12139 char *_kwnames[] = { "self","rect", NULL };
12140
12141 self = self;
12142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
12143 return NULL;
12144 if (_argo0) {
12145 if (_argo0 == Py_None) { _arg0 = NULL; }
12146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12148 return NULL;
12149 }
12150 }
12151 {
12152 _arg1 = &temp;
12153 if (! wxRect_helper(_obj1, &_arg1))
12154 return NULL;
12155 }
12156 {
12157 PyThreadState* __tstate = wxPyBeginAllowThreads();
12158 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
12159
12160 wxPyEndAllowThreads(__tstate);
12161 if (PyErr_Occurred()) return NULL;
12162 } _resultobj = Py_BuildValue("i",_result);
12163 return _resultobj;
12164 }
12165
12166 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12167 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12168 PyObject * _resultobj;
12169 bool _result;
12170 wxRegion * _arg0;
12171 wxRegion * _arg1;
12172 PyObject * _argo0 = 0;
12173 PyObject * _argo1 = 0;
12174 char *_kwnames[] = { "self","region", NULL };
12175
12176 self = self;
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
12178 return NULL;
12179 if (_argo0) {
12180 if (_argo0 == Py_None) { _arg0 = NULL; }
12181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12183 return NULL;
12184 }
12185 }
12186 if (_argo1) {
12187 if (_argo1 == Py_None) { _arg1 = NULL; }
12188 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12189 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12190 return NULL;
12191 }
12192 }
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) return NULL;
12199 } _resultobj = Py_BuildValue("i",_result);
12200 return _resultobj;
12201 }
12202
12203 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12204 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
12205 PyObject * _resultobj;
12206 bool _result;
12207 wxRegion * _arg0;
12208 PyObject * _argo0 = 0;
12209 char *_kwnames[] = { "self", NULL };
12210
12211 self = self;
12212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
12213 return NULL;
12214 if (_argo0) {
12215 if (_argo0 == Py_None) { _arg0 = NULL; }
12216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12218 return NULL;
12219 }
12220 }
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 _result = (bool )wxRegion_IsEmpty(_arg0);
12224
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) return NULL;
12227 } _resultobj = Py_BuildValue("i",_result);
12228 return _resultobj;
12229 }
12230
12231 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12232 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
12233 PyObject * _resultobj;
12234 bool _result;
12235 wxRegion * _arg0;
12236 long _arg1;
12237 long _arg2;
12238 long _arg3;
12239 long _arg4;
12240 PyObject * _argo0 = 0;
12241 char *_kwnames[] = { "self","x","y","width","height", NULL };
12242
12243 self = self;
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12245 return NULL;
12246 if (_argo0) {
12247 if (_argo0 == Py_None) { _arg0 = NULL; }
12248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12250 return NULL;
12251 }
12252 }
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
12256
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) return NULL;
12259 } _resultobj = Py_BuildValue("i",_result);
12260 return _resultobj;
12261 }
12262
12263 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12264 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12265 PyObject * _resultobj;
12266 bool _result;
12267 wxRegion * _arg0;
12268 wxRect * _arg1;
12269 PyObject * _argo0 = 0;
12270 wxRect temp;
12271 PyObject * _obj1 = 0;
12272 char *_kwnames[] = { "self","rect", NULL };
12273
12274 self = self;
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
12276 return NULL;
12277 if (_argo0) {
12278 if (_argo0 == Py_None) { _arg0 = NULL; }
12279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12281 return NULL;
12282 }
12283 }
12284 {
12285 _arg1 = &temp;
12286 if (! wxRect_helper(_obj1, &_arg1))
12287 return NULL;
12288 }
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) return NULL;
12295 } _resultobj = Py_BuildValue("i",_result);
12296 return _resultobj;
12297 }
12298
12299 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12300 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12301 PyObject * _resultobj;
12302 bool _result;
12303 wxRegion * _arg0;
12304 wxRegion * _arg1;
12305 PyObject * _argo0 = 0;
12306 PyObject * _argo1 = 0;
12307 char *_kwnames[] = { "self","region", NULL };
12308
12309 self = self;
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
12311 return NULL;
12312 if (_argo0) {
12313 if (_argo0 == Py_None) { _arg0 = NULL; }
12314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12316 return NULL;
12317 }
12318 }
12319 if (_argo1) {
12320 if (_argo1 == Py_None) { _arg1 = NULL; }
12321 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12322 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12323 return NULL;
12324 }
12325 }
12326 {
12327 PyThreadState* __tstate = wxPyBeginAllowThreads();
12328 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
12329
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) return NULL;
12332 } _resultobj = Py_BuildValue("i",_result);
12333 return _resultobj;
12334 }
12335
12336 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12337 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
12338 PyObject * _resultobj;
12339 bool _result;
12340 wxRegion * _arg0;
12341 long _arg1;
12342 long _arg2;
12343 long _arg3;
12344 long _arg4;
12345 PyObject * _argo0 = 0;
12346 char *_kwnames[] = { "self","x","y","width","height", NULL };
12347
12348 self = self;
12349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12350 return NULL;
12351 if (_argo0) {
12352 if (_argo0 == Py_None) { _arg0 = NULL; }
12353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12355 return NULL;
12356 }
12357 }
12358 {
12359 PyThreadState* __tstate = wxPyBeginAllowThreads();
12360 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
12361
12362 wxPyEndAllowThreads(__tstate);
12363 if (PyErr_Occurred()) return NULL;
12364 } _resultobj = Py_BuildValue("i",_result);
12365 return _resultobj;
12366 }
12367
12368 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12369 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12370 PyObject * _resultobj;
12371 bool _result;
12372 wxRegion * _arg0;
12373 wxRect * _arg1;
12374 PyObject * _argo0 = 0;
12375 wxRect temp;
12376 PyObject * _obj1 = 0;
12377 char *_kwnames[] = { "self","rect", NULL };
12378
12379 self = self;
12380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
12381 return NULL;
12382 if (_argo0) {
12383 if (_argo0 == Py_None) { _arg0 = NULL; }
12384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12386 return NULL;
12387 }
12388 }
12389 {
12390 _arg1 = &temp;
12391 if (! wxRect_helper(_obj1, &_arg1))
12392 return NULL;
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) return NULL;
12400 } _resultobj = Py_BuildValue("i",_result);
12401 return _resultobj;
12402 }
12403
12404 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12405 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12406 PyObject * _resultobj;
12407 bool _result;
12408 wxRegion * _arg0;
12409 wxRegion * _arg1;
12410 PyObject * _argo0 = 0;
12411 PyObject * _argo1 = 0;
12412 char *_kwnames[] = { "self","region", NULL };
12413
12414 self = self;
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
12416 return NULL;
12417 if (_argo0) {
12418 if (_argo0 == Py_None) { _arg0 = NULL; }
12419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12421 return NULL;
12422 }
12423 }
12424 if (_argo1) {
12425 if (_argo1 == Py_None) { _arg1 = NULL; }
12426 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12427 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12428 return NULL;
12429 }
12430 }
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) return NULL;
12437 } _resultobj = Py_BuildValue("i",_result);
12438 return _resultobj;
12439 }
12440
12441 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12442 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
12443 PyObject * _resultobj;
12444 bool _result;
12445 wxRegion * _arg0;
12446 long _arg1;
12447 long _arg2;
12448 long _arg3;
12449 long _arg4;
12450 PyObject * _argo0 = 0;
12451 char *_kwnames[] = { "self","x","y","width","height", NULL };
12452
12453 self = self;
12454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12455 return NULL;
12456 if (_argo0) {
12457 if (_argo0 == Py_None) { _arg0 = NULL; }
12458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12460 return NULL;
12461 }
12462 }
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
12466
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) return NULL;
12469 } _resultobj = Py_BuildValue("i",_result);
12470 return _resultobj;
12471 }
12472
12473 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12474 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12475 PyObject * _resultobj;
12476 bool _result;
12477 wxRegion * _arg0;
12478 wxRect * _arg1;
12479 PyObject * _argo0 = 0;
12480 wxRect temp;
12481 PyObject * _obj1 = 0;
12482 char *_kwnames[] = { "self","rect", NULL };
12483
12484 self = self;
12485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
12486 return NULL;
12487 if (_argo0) {
12488 if (_argo0 == Py_None) { _arg0 = NULL; }
12489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12491 return NULL;
12492 }
12493 }
12494 {
12495 _arg1 = &temp;
12496 if (! wxRect_helper(_obj1, &_arg1))
12497 return NULL;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
12502
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) return NULL;
12505 } _resultobj = Py_BuildValue("i",_result);
12506 return _resultobj;
12507 }
12508
12509 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12510 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject * _resultobj;
12512 bool _result;
12513 wxRegion * _arg0;
12514 wxRegion * _arg1;
12515 PyObject * _argo0 = 0;
12516 PyObject * _argo1 = 0;
12517 char *_kwnames[] = { "self","region", NULL };
12518
12519 self = self;
12520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
12521 return NULL;
12522 if (_argo0) {
12523 if (_argo0 == Py_None) { _arg0 = NULL; }
12524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12526 return NULL;
12527 }
12528 }
12529 if (_argo1) {
12530 if (_argo1 == Py_None) { _arg1 = NULL; }
12531 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12532 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12533 return NULL;
12534 }
12535 }
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
12538 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
12539
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) return NULL;
12542 } _resultobj = Py_BuildValue("i",_result);
12543 return _resultobj;
12544 }
12545
12546 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
12547 wxRegionIterator *src;
12548 wxObject *dest;
12549 src = (wxRegionIterator *) ptr;
12550 dest = (wxObject *) src;
12551 return (void *) dest;
12552 }
12553
12554 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12555 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12556 PyObject * _resultobj;
12557 wxRegionIterator * _result;
12558 wxRegion * _arg0;
12559 PyObject * _argo0 = 0;
12560 char *_kwnames[] = { "region", NULL };
12561 char _ptemp[128];
12562
12563 self = self;
12564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
12565 return NULL;
12566 if (_argo0) {
12567 if (_argo0 == Py_None) { _arg0 = NULL; }
12568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12570 return NULL;
12571 }
12572 }
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) return NULL;
12579 } if (_result) {
12580 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12581 _resultobj = Py_BuildValue("s",_ptemp);
12582 } else {
12583 Py_INCREF(Py_None);
12584 _resultobj = Py_None;
12585 }
12586 return _resultobj;
12587 }
12588
12589 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12590 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12591 PyObject * _resultobj;
12592 wxRegionIterator * _arg0;
12593 PyObject * _argo0 = 0;
12594 char *_kwnames[] = { "self", NULL };
12595
12596 self = self;
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12598 return NULL;
12599 if (_argo0) {
12600 if (_argo0 == Py_None) { _arg0 = NULL; }
12601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12603 return NULL;
12604 }
12605 }
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 delete_wxRegionIterator(_arg0);
12609
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) return NULL;
12612 } Py_INCREF(Py_None);
12613 _resultobj = Py_None;
12614 return _resultobj;
12615 }
12616
12617 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12618 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
12619 PyObject * _resultobj;
12620 long _result;
12621 wxRegionIterator * _arg0;
12622 PyObject * _argo0 = 0;
12623 char *_kwnames[] = { "self", NULL };
12624
12625 self = self;
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
12627 return NULL;
12628 if (_argo0) {
12629 if (_argo0 == Py_None) { _arg0 = NULL; }
12630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12632 return NULL;
12633 }
12634 }
12635 {
12636 PyThreadState* __tstate = wxPyBeginAllowThreads();
12637 _result = (long )wxRegionIterator_GetX(_arg0);
12638
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) return NULL;
12641 } _resultobj = Py_BuildValue("l",_result);
12642 return _resultobj;
12643 }
12644
12645 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12646 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
12647 PyObject * _resultobj;
12648 long _result;
12649 wxRegionIterator * _arg0;
12650 PyObject * _argo0 = 0;
12651 char *_kwnames[] = { "self", NULL };
12652
12653 self = self;
12654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
12655 return NULL;
12656 if (_argo0) {
12657 if (_argo0 == Py_None) { _arg0 = NULL; }
12658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12660 return NULL;
12661 }
12662 }
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 _result = (long )wxRegionIterator_GetY(_arg0);
12666
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) return NULL;
12669 } _resultobj = Py_BuildValue("l",_result);
12670 return _resultobj;
12671 }
12672
12673 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12674 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12675 PyObject * _resultobj;
12676 long _result;
12677 wxRegionIterator * _arg0;
12678 PyObject * _argo0 = 0;
12679 char *_kwnames[] = { "self", NULL };
12680
12681 self = self;
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12683 return NULL;
12684 if (_argo0) {
12685 if (_argo0 == Py_None) { _arg0 = NULL; }
12686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12688 return NULL;
12689 }
12690 }
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 _result = (long )wxRegionIterator_GetW(_arg0);
12694
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) return NULL;
12697 } _resultobj = Py_BuildValue("l",_result);
12698 return _resultobj;
12699 }
12700
12701 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12702 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12703 PyObject * _resultobj;
12704 long _result;
12705 wxRegionIterator * _arg0;
12706 PyObject * _argo0 = 0;
12707 char *_kwnames[] = { "self", NULL };
12708
12709 self = self;
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12711 return NULL;
12712 if (_argo0) {
12713 if (_argo0 == Py_None) { _arg0 = NULL; }
12714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12716 return NULL;
12717 }
12718 }
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 _result = (long )wxRegionIterator_GetWidth(_arg0);
12722
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) return NULL;
12725 } _resultobj = Py_BuildValue("l",_result);
12726 return _resultobj;
12727 }
12728
12729 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12730 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12731 PyObject * _resultobj;
12732 long _result;
12733 wxRegionIterator * _arg0;
12734 PyObject * _argo0 = 0;
12735 char *_kwnames[] = { "self", NULL };
12736
12737 self = self;
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12739 return NULL;
12740 if (_argo0) {
12741 if (_argo0 == Py_None) { _arg0 = NULL; }
12742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12744 return NULL;
12745 }
12746 }
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 _result = (long )wxRegionIterator_GetH(_arg0);
12750
12751 wxPyEndAllowThreads(__tstate);
12752 if (PyErr_Occurred()) return NULL;
12753 } _resultobj = Py_BuildValue("l",_result);
12754 return _resultobj;
12755 }
12756
12757 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12758 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12759 PyObject * _resultobj;
12760 long _result;
12761 wxRegionIterator * _arg0;
12762 PyObject * _argo0 = 0;
12763 char *_kwnames[] = { "self", NULL };
12764
12765 self = self;
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12767 return NULL;
12768 if (_argo0) {
12769 if (_argo0 == Py_None) { _arg0 = NULL; }
12770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12772 return NULL;
12773 }
12774 }
12775 {
12776 PyThreadState* __tstate = wxPyBeginAllowThreads();
12777 _result = (long )wxRegionIterator_GetHeight(_arg0);
12778
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) return NULL;
12781 } _resultobj = Py_BuildValue("l",_result);
12782 return _resultobj;
12783 }
12784
12785 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12786 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12787 PyObject * _resultobj;
12788 wxRect * _result;
12789 wxRegionIterator * _arg0;
12790 PyObject * _argo0 = 0;
12791 char *_kwnames[] = { "self", NULL };
12792 char _ptemp[128];
12793
12794 self = self;
12795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12796 return NULL;
12797 if (_argo0) {
12798 if (_argo0 == Py_None) { _arg0 = NULL; }
12799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12801 return NULL;
12802 }
12803 }
12804 {
12805 PyThreadState* __tstate = wxPyBeginAllowThreads();
12806 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12807
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) return NULL;
12810 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12811 _resultobj = Py_BuildValue("s",_ptemp);
12812 return _resultobj;
12813 }
12814
12815 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12816 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12817 PyObject * _resultobj;
12818 bool _result;
12819 wxRegionIterator * _arg0;
12820 PyObject * _argo0 = 0;
12821 char *_kwnames[] = { "self", NULL };
12822
12823 self = self;
12824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12825 return NULL;
12826 if (_argo0) {
12827 if (_argo0 == Py_None) { _arg0 = NULL; }
12828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12830 return NULL;
12831 }
12832 }
12833 {
12834 PyThreadState* __tstate = wxPyBeginAllowThreads();
12835 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12836
12837 wxPyEndAllowThreads(__tstate);
12838 if (PyErr_Occurred()) return NULL;
12839 } _resultobj = Py_BuildValue("i",_result);
12840 return _resultobj;
12841 }
12842
12843 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12844 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12845 PyObject * _resultobj;
12846 wxRegionIterator * _arg0;
12847 PyObject * _argo0 = 0;
12848 char *_kwnames[] = { "self", NULL };
12849
12850 self = self;
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12852 return NULL;
12853 if (_argo0) {
12854 if (_argo0 == Py_None) { _arg0 = NULL; }
12855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12857 return NULL;
12858 }
12859 }
12860 {
12861 PyThreadState* __tstate = wxPyBeginAllowThreads();
12862 wxRegionIterator_Reset(_arg0);
12863
12864 wxPyEndAllowThreads(__tstate);
12865 if (PyErr_Occurred()) return NULL;
12866 } Py_INCREF(Py_None);
12867 _resultobj = Py_None;
12868 return _resultobj;
12869 }
12870
12871 static void wxRegionIterator_Next(wxRegionIterator *self) {
12872 (*self) ++;
12873 }
12874 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12875 PyObject * _resultobj;
12876 wxRegionIterator * _arg0;
12877 PyObject * _argo0 = 0;
12878 char *_kwnames[] = { "self", NULL };
12879
12880 self = self;
12881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12882 return NULL;
12883 if (_argo0) {
12884 if (_argo0 == Py_None) { _arg0 = NULL; }
12885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12887 return NULL;
12888 }
12889 }
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 wxRegionIterator_Next(_arg0);
12893
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) return NULL;
12896 } Py_INCREF(Py_None);
12897 _resultobj = Py_None;
12898 return _resultobj;
12899 }
12900
12901 static PyMethodDef gdicMethods[] = {
12902 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12903 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12904 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12905 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12906 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12907 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12908 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12909 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12910 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12911 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12912 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12913 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12914 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12915 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12916 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12917 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12918 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12919 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12920 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12921 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12922 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12923 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12924 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12925 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12926 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12927 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12928 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12929 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12930 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12931 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12932 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12933 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12934 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12935 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12936 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12937 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12938 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12939 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12940 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12941 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12942 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12943 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12944 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12945 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12946 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12947 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12948 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12949 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12950 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12951 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12952 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12953 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12954 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12955 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12956 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12957 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12958 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12959 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12960 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12961 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12962 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12963 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12964 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12965 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12966 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12967 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12968 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12969 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12970 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12971 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12972 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
12973 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12974 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12975 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12976 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12977 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12978 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12979 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12980 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12981 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12982 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12983 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12984 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12985 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12986 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12987 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12988 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12989 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12990 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12991 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12992 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12993 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12994 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12995 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12996 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12997 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12998 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12999 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
13000 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
13001 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
13002 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13003 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
13004 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
13005 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
13006 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
13007 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
13008 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
13009 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
13010 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
13011 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
13012 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
13013 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
13014 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
13015 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
13016 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
13017 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
13018 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
13019 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
13020 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
13021 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
13022 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
13023 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
13024 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13025 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13026 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
13027 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
13028 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
13029 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
13030 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
13031 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
13032 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
13033 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
13034 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
13035 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
13036 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
13037 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
13038 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
13039 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
13040 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
13041 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
13042 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
13043 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
13044 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
13045 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
13046 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
13047 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
13048 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
13049 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
13050 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
13051 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
13052 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
13053 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
13054 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
13055 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
13056 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
13057 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
13058 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
13059 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
13060 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
13061 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
13062 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
13063 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
13064 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
13065 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
13066 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
13067 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
13068 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
13069 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
13070 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
13071 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
13072 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
13073 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
13074 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
13075 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
13076 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
13077 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13078 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13079 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13080 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
13081 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
13082 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13083 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
13084 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
13085 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
13086 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
13087 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
13088 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
13089 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
13090 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
13091 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
13092 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
13093 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
13094 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
13095 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
13096 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
13097 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
13098 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
13099 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
13100 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
13101 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
13102 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
13103 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
13104 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
13105 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
13106 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
13107 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
13108 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
13109 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
13110 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
13111 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13112 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13113 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
13114 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
13115 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
13116 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13117 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13118 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13119 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13120 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13121 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
13122 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
13123 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
13124 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13125 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13126 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
13127 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13128 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13129 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13130 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13131 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
13132 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
13133 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
13134 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13135 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
13136 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
13137 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
13138 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
13139 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
13140 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
13141 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
13142 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
13143 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
13144 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
13145 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
13146 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
13147 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
13148 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
13149 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13150 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13151 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
13152 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
13153 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
13154 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
13155 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
13156 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13157 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
13158 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13159 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13160 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
13161 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
13162 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13163 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13164 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
13165 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13166 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13167 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
13168 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
13169 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13170 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
13171 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13172 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
13173 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
13174 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
13175 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
13176 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
13177 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
13178 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
13179 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
13180 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
13181 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
13182 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
13183 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
13184 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
13185 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
13186 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
13187 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
13188 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
13189 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
13190 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
13191 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
13192 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
13193 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
13194 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
13195 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
13196 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
13197 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
13198 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
13199 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
13200 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
13201 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
13202 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
13203 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
13204 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
13205 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
13206 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
13207 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
13208 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
13209 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
13210 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
13211 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
13212 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
13213 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
13214 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
13215 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
13216 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
13217 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
13218 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
13219 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
13220 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
13221 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13222 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13223 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
13224 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
13225 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
13226 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13227 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13228 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
13229 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
13230 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
13231 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
13232 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
13233 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
13234 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
13235 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
13236 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
13237 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
13238 { NULL, NULL }
13239 };
13240 #ifdef __cplusplus
13241 }
13242 #endif
13243 /*
13244 * This table is used by the pointer type-checker
13245 */
13246 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
13247 { "_signed_long","_long",0},
13248 { "_wxPrintQuality","_wxCoord",0},
13249 { "_wxPrintQuality","_int",0},
13250 { "_wxPrintQuality","_signed_int",0},
13251 { "_wxPrintQuality","_unsigned_int",0},
13252 { "_wxPrintQuality","_wxWindowID",0},
13253 { "_wxPrintQuality","_uint",0},
13254 { "_wxPrintQuality","_EBool",0},
13255 { "_wxPrintQuality","_size_t",0},
13256 { "_wxPrintQuality","_time_t",0},
13257 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
13258 { "_byte","_unsigned_char",0},
13259 { "_long","_unsigned_long",0},
13260 { "_long","_signed_long",0},
13261 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
13262 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
13263 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
13264 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
13265 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
13266 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
13267 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
13268 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
13269 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
13270 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
13271 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
13272 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
13273 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
13274 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
13275 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
13276 { "_size_t","_wxCoord",0},
13277 { "_size_t","_wxPrintQuality",0},
13278 { "_size_t","_time_t",0},
13279 { "_size_t","_unsigned_int",0},
13280 { "_size_t","_int",0},
13281 { "_size_t","_wxWindowID",0},
13282 { "_size_t","_uint",0},
13283 { "_uint","_wxCoord",0},
13284 { "_uint","_wxPrintQuality",0},
13285 { "_uint","_time_t",0},
13286 { "_uint","_size_t",0},
13287 { "_uint","_unsigned_int",0},
13288 { "_uint","_int",0},
13289 { "_uint","_wxWindowID",0},
13290 { "_wxChar","_char",0},
13291 { "_char","_wxChar",0},
13292 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13293 { "_EBool","_wxCoord",0},
13294 { "_EBool","_wxPrintQuality",0},
13295 { "_EBool","_signed_int",0},
13296 { "_EBool","_int",0},
13297 { "_EBool","_wxWindowID",0},
13298 { "_unsigned_long","_long",0},
13299 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13300 { "_signed_int","_wxCoord",0},
13301 { "_signed_int","_wxPrintQuality",0},
13302 { "_signed_int","_EBool",0},
13303 { "_signed_int","_wxWindowID",0},
13304 { "_signed_int","_int",0},
13305 { "_WXTYPE","_short",0},
13306 { "_WXTYPE","_signed_short",0},
13307 { "_WXTYPE","_unsigned_short",0},
13308 { "_unsigned_short","_WXTYPE",0},
13309 { "_unsigned_short","_short",0},
13310 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
13311 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
13312 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
13313 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
13314 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
13315 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
13316 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
13317 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
13318 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
13319 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
13320 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
13321 { "_wxObject","_wxDC",SwigwxDCTowxObject},
13322 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
13323 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
13324 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
13325 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
13326 { "_wxObject","_wxPen",SwigwxPenTowxObject},
13327 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
13328 { "_wxObject","_wxColour",SwigwxColourTowxObject},
13329 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
13330 { "_wxObject","_wxFont",SwigwxFontTowxObject},
13331 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
13332 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
13333 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
13334 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
13335 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
13336 { "_signed_short","_WXTYPE",0},
13337 { "_signed_short","_short",0},
13338 { "_unsigned_char","_byte",0},
13339 { "_unsigned_int","_wxCoord",0},
13340 { "_unsigned_int","_wxPrintQuality",0},
13341 { "_unsigned_int","_time_t",0},
13342 { "_unsigned_int","_size_t",0},
13343 { "_unsigned_int","_uint",0},
13344 { "_unsigned_int","_wxWindowID",0},
13345 { "_unsigned_int","_int",0},
13346 { "_short","_WXTYPE",0},
13347 { "_short","_unsigned_short",0},
13348 { "_short","_signed_short",0},
13349 { "_wxWindowID","_wxCoord",0},
13350 { "_wxWindowID","_wxPrintQuality",0},
13351 { "_wxWindowID","_time_t",0},
13352 { "_wxWindowID","_size_t",0},
13353 { "_wxWindowID","_EBool",0},
13354 { "_wxWindowID","_uint",0},
13355 { "_wxWindowID","_int",0},
13356 { "_wxWindowID","_signed_int",0},
13357 { "_wxWindowID","_unsigned_int",0},
13358 { "_int","_wxCoord",0},
13359 { "_int","_wxPrintQuality",0},
13360 { "_int","_time_t",0},
13361 { "_int","_size_t",0},
13362 { "_int","_EBool",0},
13363 { "_int","_uint",0},
13364 { "_int","_wxWindowID",0},
13365 { "_int","_unsigned_int",0},
13366 { "_int","_signed_int",0},
13367 { "_time_t","_wxCoord",0},
13368 { "_time_t","_wxPrintQuality",0},
13369 { "_time_t","_unsigned_int",0},
13370 { "_time_t","_int",0},
13371 { "_time_t","_wxWindowID",0},
13372 { "_time_t","_uint",0},
13373 { "_time_t","_size_t",0},
13374 { "_wxCoord","_int",0},
13375 { "_wxCoord","_signed_int",0},
13376 { "_wxCoord","_unsigned_int",0},
13377 { "_wxCoord","_wxWindowID",0},
13378 { "_wxCoord","_uint",0},
13379 { "_wxCoord","_EBool",0},
13380 { "_wxCoord","_size_t",0},
13381 { "_wxCoord","_time_t",0},
13382 { "_wxCoord","_wxPrintQuality",0},
13383 {0,0,0}};
13384
13385 static PyObject *SWIG_globals;
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 SWIGEXPORT(void) initgdic() {
13390 PyObject *m, *d;
13391 SWIG_globals = SWIG_newvarlink();
13392 m = Py_InitModule("gdic", gdicMethods);
13393 d = PyModule_GetDict(m);
13394 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
13395 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
13396 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
13397 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
13398 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
13399 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
13400 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
13401 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
13402 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
13403 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
13404 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
13405 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
13406 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
13407 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
13408 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
13409 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
13410 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
13411 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
13412 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
13413 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
13414 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
13415 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
13416 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
13417 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
13418 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
13419 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
13420 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
13421 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
13422 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
13423 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
13424 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
13425 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
13426 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
13427 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
13428 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
13429 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
13430 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
13431 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
13432 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
13433 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
13434 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
13435 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
13436 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
13437 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
13438 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
13439 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
13440 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
13441 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
13442 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
13443 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
13444 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
13445 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
13446 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
13447 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
13448 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
13449 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
13450 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
13451 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
13452 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
13453 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
13454 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
13455 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
13456 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
13457 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
13458 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
13459 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
13460 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
13461 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
13462 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
13463 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
13464 PyDict_SetItemString(d,"cvar", SWIG_globals);
13465 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
13466 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
13467 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
13468 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
13469 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
13470 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
13471 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
13472 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
13473 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
13474 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
13475 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
13476 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
13477 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
13478 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
13479 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
13480 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
13481 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
13482 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
13483 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
13484 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
13485 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
13486 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
13487 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
13488 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
13489 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
13490 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
13491 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
13492 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
13493 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
13494 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
13495 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
13496 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
13497 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
13498 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
13499 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
13500 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
13501 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
13502 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
13503 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
13504 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
13505 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
13506 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
13507 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
13508 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
13509 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
13510 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
13511 {
13512 int i;
13513 for (i = 0; _swig_mapping[i].n1; i++)
13514 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13515 }
13516 }