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