]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi.cpp
Fixed HandleMouseWheel to be __WIN32__ sensitive
[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/metafile.h>
60 #include <wx/imaglist.h>
61 #ifndef __WXMSW__
62 #include <wx/dcps.h>
63 #endif
64
65 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
66 PyObject* o2;
67 if (!target) {
68 target = o;
69 } else if (target == Py_None) {
70 Py_DECREF(Py_None);
71 target = o;
72 } else {
73 if (!PyList_Check(target)) {
74 o2 = target;
75 target = PyList_New(0);
76 PyList_Append(target, o2);
77 Py_XDECREF(o2);
78 }
79 PyList_Append(target,o);
80 Py_XDECREF(o);
81 }
82 return target;
83 }
84
85 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
86 PyObject* o2;
87 PyObject* o3;
88
89 if (!target) {
90 target = o;
91 } else if (target == Py_None) {
92 Py_DECREF(Py_None);
93 target = o;
94 } else {
95 if (!PyTuple_Check(target)) {
96 o2 = target;
97 target = PyTuple_New(1);
98 PyTuple_SetItem(target, 0, o2);
99 }
100 o3 = PyTuple_New(1);
101 PyTuple_SetItem(o3, 0, o);
102
103 o2 = target;
104 target = PySequence_Concat(o2, o3);
105 Py_DECREF(o2);
106 Py_DECREF(o3);
107 }
108 return target;
109 }
110
111 static char* wxStringErrorMsg = "string type is required for parameter";
112
113 static wxString wxPyEmptyStr("");
114 // Implementations of some alternate "constructors"
115
116 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
117 return new wxBitmap(width, height, depth);
118 }
119
120 static char** ConvertListOfStrings(PyObject* listOfStrings) {
121 char** cArray = NULL;
122 int count;
123
124 if (!PyList_Check(listOfStrings)) {
125 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
126 return NULL;
127 }
128 count = PyList_Size(listOfStrings);
129 cArray = new char*[count];
130
131 for(int x=0; x<count; x++) {
132 // TODO: Need some validation and error checking here
133 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
134 }
135 return cArray;
136 }
137
138 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
139 char** cArray = NULL;
140 wxBitmap* bmp;
141
142 cArray = ConvertListOfStrings(listOfStrings);
143 if (! cArray)
144 return NULL;
145 bmp = new wxBitmap(cArray);
146 delete [] cArray;
147 return bmp;
148 }
149
150
151 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
152 return new wxBitmap(icon);
153 }
154
155
156
157 #ifdef __WXMSW__
158 wxBitmap* wxBitmapFromData(PyObject* data, long type,
159 int width, int height, int depth = 1) {
160 if (! PyString_Check(data)) {
161 PyErr_SetString(PyExc_TypeError, "Expected string object");
162 return NULL;
163 }
164
165 return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
166 }
167 #endif
168
169 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
170 return new wxMask(bitmap, colour);
171 }
172 // Implementations of some alternate "constructors"
173 wxIcon* wxEmptyIcon() {
174 return new wxIcon();
175 }
176
177 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
178 char** cArray = NULL;
179 wxIcon* icon;
180
181 cArray = ConvertListOfStrings(listOfStrings);
182 if (! cArray)
183 return NULL;
184 icon = new wxIcon(cArray);
185 delete [] cArray;
186 return icon;
187 }
188 // Alternate 'constructor'
189 wxCursor* wxPyStockCursor(int id) {
190 return new wxCursor(id);
191 }
192
193 wxFontEncoding wxFont_GetDefaultEncoding() {
194 return wxFont::GetDefaultEncoding();
195 }
196
197 void wxFont_SetDefaultEncoding(wxFontEncoding encoding) {
198 wxFont::SetDefaultEncoding(encoding);
199 }
200 // Alternate 'constructor'
201 wxColour* wxNamedColour(const wxString& colorName) {
202 return new wxColour(colorName);
203 }
204 // Alternate 'constructor'
205 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
206 return new wxMemoryDC(oldDC);
207 }
208
209 #if 0
210 extern wxFont * wxNORMAL_FONT;
211 extern wxFont * wxSMALL_FONT;
212 extern wxFont * wxITALIC_FONT;
213 extern wxFont * wxSWISS_FONT;
214 extern wxPen * wxRED_PEN;
215 extern wxPen * wxCYAN_PEN;
216 extern wxPen * wxGREEN_PEN;
217 extern wxPen * wxBLACK_PEN;
218 extern wxPen * wxWHITE_PEN;
219 extern wxPen * wxTRANSPARENT_PEN;
220 extern wxPen * wxBLACK_DASHED_PEN;
221 extern wxPen * wxGREY_PEN;
222 extern wxPen * wxMEDIUM_GREY_PEN;
223 extern wxPen * wxLIGHT_GREY_PEN;
224 extern wxBrush * wxBLUE_BRUSH;
225 extern wxBrush * wxGREEN_BRUSH;
226 extern wxBrush * wxWHITE_BRUSH;
227 extern wxBrush * wxBLACK_BRUSH;
228 extern wxBrush * wxTRANSPARENT_BRUSH;
229 extern wxBrush * wxCYAN_BRUSH;
230 extern wxBrush * wxRED_BRUSH;
231 extern wxBrush * wxGREY_BRUSH;
232 extern wxBrush * wxMEDIUM_GREY_BRUSH;
233 extern wxBrush * wxLIGHT_GREY_BRUSH;
234 extern wxColour * wxBLACK;
235 extern wxColour * wxWHITE;
236 extern wxColour * wxRED;
237 extern wxColour * wxBLUE;
238 extern wxColour * wxGREEN;
239 extern wxColour * wxCYAN;
240 extern wxColour * wxLIGHT_GREY;
241 extern wxCursor * wxSTANDARD_CURSOR;
242 extern wxCursor * wxHOURGLASS_CURSOR;
243 extern wxCursor * wxCROSS_CURSOR;
244 extern wxBitmap wxNullBitmap;
245 extern wxIcon wxNullIcon;
246 extern wxCursor wxNullCursor;
247 extern wxPen wxNullPen;
248 extern wxBrush wxNullBrush;
249 extern wxPalette wxNullPalette;
250 extern wxFont wxNullFont;
251 extern wxColour wxNullColour;
252 extern wxFontList * wxTheFontList;
253 extern wxPenList * wxThePenList;
254 extern wxBrushlist * wxTheBrushList;
255 extern wxColourDatabase * wxTheColourDatabase;
256
257 #endif
258 #ifdef __cplusplus
259 extern "C" {
260 #endif
261 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
262 PyObject * _resultobj;
263 wxBitmap * _result;
264 int _arg0;
265 int _arg1;
266 int _arg2 = (int ) -1;
267 char *_kwnames[] = { "width","height","depth", NULL };
268 char _ptemp[128];
269
270 self = self;
271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
272 return NULL;
273 {
274 wxPy_BEGIN_ALLOW_THREADS;
275 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
276
277 wxPy_END_ALLOW_THREADS;
278 } if (_result) {
279 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
280 _resultobj = Py_BuildValue("s",_ptemp);
281 } else {
282 Py_INCREF(Py_None);
283 _resultobj = Py_None;
284 }
285 return _resultobj;
286 }
287
288 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
289 PyObject * _resultobj;
290 wxBitmap * _result;
291 PyObject * _arg0;
292 PyObject * _obj0 = 0;
293 char *_kwnames[] = { "listOfStrings", NULL };
294 char _ptemp[128];
295
296 self = self;
297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
298 return NULL;
299 {
300 _arg0 = _obj0;
301 }
302 {
303 wxPy_BEGIN_ALLOW_THREADS;
304 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
305
306 wxPy_END_ALLOW_THREADS;
307 } if (_result) {
308 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
309 _resultobj = Py_BuildValue("s",_ptemp);
310 } else {
311 Py_INCREF(Py_None);
312 _resultobj = Py_None;
313 }
314 return _resultobj;
315 }
316
317 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
318 PyObject * _resultobj;
319 wxBitmap * _result;
320 wxIcon * _arg0;
321 PyObject * _argo0 = 0;
322 char *_kwnames[] = { "icon", NULL };
323 char _ptemp[128];
324
325 self = self;
326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
327 return NULL;
328 if (_argo0) {
329 if (_argo0 == Py_None) { _arg0 = NULL; }
330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
332 return NULL;
333 }
334 }
335 {
336 wxPy_BEGIN_ALLOW_THREADS;
337 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
338
339 wxPy_END_ALLOW_THREADS;
340 } if (_result) {
341 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
342 _resultobj = Py_BuildValue("s",_ptemp);
343 } else {
344 Py_INCREF(Py_None);
345 _resultobj = Py_None;
346 }
347 return _resultobj;
348 }
349
350 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
351 PyObject * _resultobj;
352 wxMask * _result;
353 wxBitmap * _arg0;
354 wxColour * _arg1;
355 PyObject * _argo0 = 0;
356 wxColour temp;
357 PyObject * _obj1 = 0;
358 char *_kwnames[] = { "bitmap","colour", NULL };
359 char _ptemp[128];
360
361 self = self;
362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
363 return NULL;
364 if (_argo0) {
365 if (_argo0 == Py_None) { _arg0 = NULL; }
366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
368 return NULL;
369 }
370 }
371 {
372 _arg1 = &temp;
373 if (! wxColour_helper(_obj1, &_arg1))
374 return NULL;
375 }
376 {
377 wxPy_BEGIN_ALLOW_THREADS;
378 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
379
380 wxPy_END_ALLOW_THREADS;
381 } if (_result) {
382 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
383 _resultobj = Py_BuildValue("s",_ptemp);
384 } else {
385 Py_INCREF(Py_None);
386 _resultobj = Py_None;
387 }
388 return _resultobj;
389 }
390
391 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
392 PyObject * _resultobj;
393 wxIcon * _result;
394 char *_kwnames[] = { NULL };
395 char _ptemp[128];
396
397 self = self;
398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
399 return NULL;
400 {
401 wxPy_BEGIN_ALLOW_THREADS;
402 _result = (wxIcon *)wxEmptyIcon();
403
404 wxPy_END_ALLOW_THREADS;
405 } if (_result) {
406 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
407 _resultobj = Py_BuildValue("s",_ptemp);
408 } else {
409 Py_INCREF(Py_None);
410 _resultobj = Py_None;
411 }
412 return _resultobj;
413 }
414
415 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
416 PyObject * _resultobj;
417 wxIcon * _result;
418 PyObject * _arg0;
419 PyObject * _obj0 = 0;
420 char *_kwnames[] = { "listOfStrings", NULL };
421 char _ptemp[128];
422
423 self = self;
424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
425 return NULL;
426 {
427 _arg0 = _obj0;
428 }
429 {
430 wxPy_BEGIN_ALLOW_THREADS;
431 _result = (wxIcon *)wxIconFromXPMData(_arg0);
432
433 wxPy_END_ALLOW_THREADS;
434 } if (_result) {
435 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
436 _resultobj = Py_BuildValue("s",_ptemp);
437 } else {
438 Py_INCREF(Py_None);
439 _resultobj = Py_None;
440 }
441 return _resultobj;
442 }
443
444 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
445 PyObject * _resultobj;
446 wxCursor * _result;
447 int _arg0;
448 char *_kwnames[] = { "id", NULL };
449 char _ptemp[128];
450
451 self = self;
452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
453 return NULL;
454 {
455 wxPy_BEGIN_ALLOW_THREADS;
456 _result = (wxCursor *)wxPyStockCursor(_arg0);
457
458 wxPy_END_ALLOW_THREADS;
459 } if (_result) {
460 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
461 _resultobj = Py_BuildValue("s",_ptemp);
462 } else {
463 Py_INCREF(Py_None);
464 _resultobj = Py_None;
465 }
466 return _resultobj;
467 }
468
469 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
470 PyObject * _resultobj;
471 wxFontEncoding _result;
472 char *_kwnames[] = { NULL };
473
474 self = self;
475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
476 return NULL;
477 {
478 wxPy_BEGIN_ALLOW_THREADS;
479 _result = (wxFontEncoding )wxFont_GetDefaultEncoding();
480
481 wxPy_END_ALLOW_THREADS;
482 } _resultobj = Py_BuildValue("i",_result);
483 return _resultobj;
484 }
485
486 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
487 PyObject * _resultobj;
488 wxFontEncoding _arg0;
489 char *_kwnames[] = { "encoding", NULL };
490
491 self = self;
492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
493 return NULL;
494 {
495 wxPy_BEGIN_ALLOW_THREADS;
496 wxFont_SetDefaultEncoding(_arg0);
497
498 wxPy_END_ALLOW_THREADS;
499 } Py_INCREF(Py_None);
500 _resultobj = Py_None;
501 return _resultobj;
502 }
503
504 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
505 PyObject * _resultobj;
506 wxColour * _result;
507 wxString * _arg0;
508 PyObject * _obj0 = 0;
509 char *_kwnames[] = { "colorName", NULL };
510 char _ptemp[128];
511
512 self = self;
513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
514 return NULL;
515 {
516 #if PYTHON_API_VERSION >= 1009
517 char* tmpPtr; int tmpSize;
518 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
519 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
520 return NULL;
521 }
522 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
523 return NULL;
524 _arg0 = new wxString(tmpPtr, tmpSize);
525 #else
526 if (!PyString_Check(_obj0)) {
527 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
528 return NULL;
529 }
530 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
531 #endif
532 }
533 {
534 wxPy_BEGIN_ALLOW_THREADS;
535 _result = (wxColour *)wxNamedColour(*_arg0);
536
537 wxPy_END_ALLOW_THREADS;
538 } if (_result) {
539 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
540 _resultobj = Py_BuildValue("s",_ptemp);
541 } else {
542 Py_INCREF(Py_None);
543 _resultobj = Py_None;
544 }
545 {
546 if (_obj0)
547 delete _arg0;
548 }
549 return _resultobj;
550 }
551
552 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
553 PyObject * _resultobj;
554 wxMemoryDC * _result;
555 wxDC * _arg0;
556 PyObject * _argo0 = 0;
557 char *_kwnames[] = { "oldDC", NULL };
558 char _ptemp[128];
559
560 self = self;
561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
562 return NULL;
563 if (_argo0) {
564 if (_argo0 == Py_None) { _arg0 = NULL; }
565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
567 return NULL;
568 }
569 }
570 {
571 wxPy_BEGIN_ALLOW_THREADS;
572 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
573
574 wxPy_END_ALLOW_THREADS;
575 } if (_result) {
576 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
577 _resultobj = Py_BuildValue("s",_ptemp);
578 } else {
579 Py_INCREF(Py_None);
580 _resultobj = Py_None;
581 }
582 return _resultobj;
583 }
584
585 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
586
587 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
588 return 1;
589 }
590
591 static PyObject *_wrap_wxNORMAL_FONT_get() {
592 PyObject * pyobj;
593 char ptemp[128];
594
595 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
596 pyobj = PyString_FromString(ptemp);
597 return pyobj;
598 }
599
600 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
601
602 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
603 return 1;
604 }
605
606 static PyObject *_wrap_wxSMALL_FONT_get() {
607 PyObject * pyobj;
608 char ptemp[128];
609
610 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
611 pyobj = PyString_FromString(ptemp);
612 return pyobj;
613 }
614
615 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
616
617 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
618 return 1;
619 }
620
621 static PyObject *_wrap_wxITALIC_FONT_get() {
622 PyObject * pyobj;
623 char ptemp[128];
624
625 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
626 pyobj = PyString_FromString(ptemp);
627 return pyobj;
628 }
629
630 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
631
632 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
633 return 1;
634 }
635
636 static PyObject *_wrap_wxSWISS_FONT_get() {
637 PyObject * pyobj;
638 char ptemp[128];
639
640 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
641 pyobj = PyString_FromString(ptemp);
642 return pyobj;
643 }
644
645 static int _wrap_wxRED_PEN_set(PyObject *val) {
646
647 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
648 return 1;
649 }
650
651 static PyObject *_wrap_wxRED_PEN_get() {
652 PyObject * pyobj;
653 char ptemp[128];
654
655 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
656 pyobj = PyString_FromString(ptemp);
657 return pyobj;
658 }
659
660 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
661
662 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
663 return 1;
664 }
665
666 static PyObject *_wrap_wxCYAN_PEN_get() {
667 PyObject * pyobj;
668 char ptemp[128];
669
670 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
671 pyobj = PyString_FromString(ptemp);
672 return pyobj;
673 }
674
675 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
676
677 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
678 return 1;
679 }
680
681 static PyObject *_wrap_wxGREEN_PEN_get() {
682 PyObject * pyobj;
683 char ptemp[128];
684
685 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
686 pyobj = PyString_FromString(ptemp);
687 return pyobj;
688 }
689
690 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
691
692 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
693 return 1;
694 }
695
696 static PyObject *_wrap_wxBLACK_PEN_get() {
697 PyObject * pyobj;
698 char ptemp[128];
699
700 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
701 pyobj = PyString_FromString(ptemp);
702 return pyobj;
703 }
704
705 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
706
707 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
708 return 1;
709 }
710
711 static PyObject *_wrap_wxWHITE_PEN_get() {
712 PyObject * pyobj;
713 char ptemp[128];
714
715 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
716 pyobj = PyString_FromString(ptemp);
717 return pyobj;
718 }
719
720 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
721
722 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
723 return 1;
724 }
725
726 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
727 PyObject * pyobj;
728 char ptemp[128];
729
730 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
731 pyobj = PyString_FromString(ptemp);
732 return pyobj;
733 }
734
735 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
736
737 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
738 return 1;
739 }
740
741 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
742 PyObject * pyobj;
743 char ptemp[128];
744
745 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
746 pyobj = PyString_FromString(ptemp);
747 return pyobj;
748 }
749
750 static int _wrap_wxGREY_PEN_set(PyObject *val) {
751
752 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
753 return 1;
754 }
755
756 static PyObject *_wrap_wxGREY_PEN_get() {
757 PyObject * pyobj;
758 char ptemp[128];
759
760 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
761 pyobj = PyString_FromString(ptemp);
762 return pyobj;
763 }
764
765 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
766
767 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
768 return 1;
769 }
770
771 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
772 PyObject * pyobj;
773 char ptemp[128];
774
775 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
776 pyobj = PyString_FromString(ptemp);
777 return pyobj;
778 }
779
780 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
781
782 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
783 return 1;
784 }
785
786 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
787 PyObject * pyobj;
788 char ptemp[128];
789
790 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
791 pyobj = PyString_FromString(ptemp);
792 return pyobj;
793 }
794
795 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
796
797 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
798 return 1;
799 }
800
801 static PyObject *_wrap_wxBLUE_BRUSH_get() {
802 PyObject * pyobj;
803 char ptemp[128];
804
805 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
806 pyobj = PyString_FromString(ptemp);
807 return pyobj;
808 }
809
810 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
811
812 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
813 return 1;
814 }
815
816 static PyObject *_wrap_wxGREEN_BRUSH_get() {
817 PyObject * pyobj;
818 char ptemp[128];
819
820 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
821 pyobj = PyString_FromString(ptemp);
822 return pyobj;
823 }
824
825 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
826
827 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
828 return 1;
829 }
830
831 static PyObject *_wrap_wxWHITE_BRUSH_get() {
832 PyObject * pyobj;
833 char ptemp[128];
834
835 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
836 pyobj = PyString_FromString(ptemp);
837 return pyobj;
838 }
839
840 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
841
842 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
843 return 1;
844 }
845
846 static PyObject *_wrap_wxBLACK_BRUSH_get() {
847 PyObject * pyobj;
848 char ptemp[128];
849
850 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
851 pyobj = PyString_FromString(ptemp);
852 return pyobj;
853 }
854
855 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
856
857 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
858 return 1;
859 }
860
861 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
862 PyObject * pyobj;
863 char ptemp[128];
864
865 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
866 pyobj = PyString_FromString(ptemp);
867 return pyobj;
868 }
869
870 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
871
872 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
873 return 1;
874 }
875
876 static PyObject *_wrap_wxCYAN_BRUSH_get() {
877 PyObject * pyobj;
878 char ptemp[128];
879
880 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
881 pyobj = PyString_FromString(ptemp);
882 return pyobj;
883 }
884
885 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
886
887 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
888 return 1;
889 }
890
891 static PyObject *_wrap_wxRED_BRUSH_get() {
892 PyObject * pyobj;
893 char ptemp[128];
894
895 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
896 pyobj = PyString_FromString(ptemp);
897 return pyobj;
898 }
899
900 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
901
902 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
903 return 1;
904 }
905
906 static PyObject *_wrap_wxGREY_BRUSH_get() {
907 PyObject * pyobj;
908 char ptemp[128];
909
910 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
911 pyobj = PyString_FromString(ptemp);
912 return pyobj;
913 }
914
915 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
916
917 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
918 return 1;
919 }
920
921 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
922 PyObject * pyobj;
923 char ptemp[128];
924
925 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
926 pyobj = PyString_FromString(ptemp);
927 return pyobj;
928 }
929
930 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
931
932 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
933 return 1;
934 }
935
936 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
937 PyObject * pyobj;
938 char ptemp[128];
939
940 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
941 pyobj = PyString_FromString(ptemp);
942 return pyobj;
943 }
944
945 static int _wrap_wxBLACK_set(PyObject *val) {
946
947 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
948 return 1;
949 }
950
951 static PyObject *_wrap_wxBLACK_get() {
952 PyObject * pyobj;
953 char ptemp[128];
954
955 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
956 pyobj = PyString_FromString(ptemp);
957 return pyobj;
958 }
959
960 static int _wrap_wxWHITE_set(PyObject *val) {
961
962 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
963 return 1;
964 }
965
966 static PyObject *_wrap_wxWHITE_get() {
967 PyObject * pyobj;
968 char ptemp[128];
969
970 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
971 pyobj = PyString_FromString(ptemp);
972 return pyobj;
973 }
974
975 static int _wrap_wxRED_set(PyObject *val) {
976
977 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
978 return 1;
979 }
980
981 static PyObject *_wrap_wxRED_get() {
982 PyObject * pyobj;
983 char ptemp[128];
984
985 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
986 pyobj = PyString_FromString(ptemp);
987 return pyobj;
988 }
989
990 static int _wrap_wxBLUE_set(PyObject *val) {
991
992 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
993 return 1;
994 }
995
996 static PyObject *_wrap_wxBLUE_get() {
997 PyObject * pyobj;
998 char ptemp[128];
999
1000 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1001 pyobj = PyString_FromString(ptemp);
1002 return pyobj;
1003 }
1004
1005 static int _wrap_wxGREEN_set(PyObject *val) {
1006
1007 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1008 return 1;
1009 }
1010
1011 static PyObject *_wrap_wxGREEN_get() {
1012 PyObject * pyobj;
1013 char ptemp[128];
1014
1015 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1016 pyobj = PyString_FromString(ptemp);
1017 return pyobj;
1018 }
1019
1020 static int _wrap_wxCYAN_set(PyObject *val) {
1021
1022 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1023 return 1;
1024 }
1025
1026 static PyObject *_wrap_wxCYAN_get() {
1027 PyObject * pyobj;
1028 char ptemp[128];
1029
1030 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1031 pyobj = PyString_FromString(ptemp);
1032 return pyobj;
1033 }
1034
1035 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1036
1037 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1038 return 1;
1039 }
1040
1041 static PyObject *_wrap_wxLIGHT_GREY_get() {
1042 PyObject * pyobj;
1043 char ptemp[128];
1044
1045 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1046 pyobj = PyString_FromString(ptemp);
1047 return pyobj;
1048 }
1049
1050 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1051
1052 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1053 return 1;
1054 }
1055
1056 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1057 PyObject * pyobj;
1058 char ptemp[128];
1059
1060 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1061 pyobj = PyString_FromString(ptemp);
1062 return pyobj;
1063 }
1064
1065 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1066
1067 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1068 return 1;
1069 }
1070
1071 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1072 PyObject * pyobj;
1073 char ptemp[128];
1074
1075 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1076 pyobj = PyString_FromString(ptemp);
1077 return pyobj;
1078 }
1079
1080 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1081
1082 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1083 return 1;
1084 }
1085
1086 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1087 PyObject * pyobj;
1088 char ptemp[128];
1089
1090 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1091 pyobj = PyString_FromString(ptemp);
1092 return pyobj;
1093 }
1094
1095 static int _wrap_wxNullBitmap_set(PyObject *val) {
1096
1097 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1098 return 1;
1099 }
1100
1101 static PyObject *_wrap_wxNullBitmap_get() {
1102 PyObject * pyobj;
1103 char ptemp[128];
1104
1105 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1106 pyobj = PyString_FromString(ptemp);
1107 return pyobj;
1108 }
1109
1110 static int _wrap_wxNullIcon_set(PyObject *val) {
1111
1112 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1113 return 1;
1114 }
1115
1116 static PyObject *_wrap_wxNullIcon_get() {
1117 PyObject * pyobj;
1118 char ptemp[128];
1119
1120 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1121 pyobj = PyString_FromString(ptemp);
1122 return pyobj;
1123 }
1124
1125 static int _wrap_wxNullCursor_set(PyObject *val) {
1126
1127 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1128 return 1;
1129 }
1130
1131 static PyObject *_wrap_wxNullCursor_get() {
1132 PyObject * pyobj;
1133 char ptemp[128];
1134
1135 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1136 pyobj = PyString_FromString(ptemp);
1137 return pyobj;
1138 }
1139
1140 static int _wrap_wxNullPen_set(PyObject *val) {
1141
1142 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1143 return 1;
1144 }
1145
1146 static PyObject *_wrap_wxNullPen_get() {
1147 PyObject * pyobj;
1148 char ptemp[128];
1149
1150 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1151 pyobj = PyString_FromString(ptemp);
1152 return pyobj;
1153 }
1154
1155 static int _wrap_wxNullBrush_set(PyObject *val) {
1156
1157 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1158 return 1;
1159 }
1160
1161 static PyObject *_wrap_wxNullBrush_get() {
1162 PyObject * pyobj;
1163 char ptemp[128];
1164
1165 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1166 pyobj = PyString_FromString(ptemp);
1167 return pyobj;
1168 }
1169
1170 static int _wrap_wxNullPalette_set(PyObject *val) {
1171
1172 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1173 return 1;
1174 }
1175
1176 static PyObject *_wrap_wxNullPalette_get() {
1177 PyObject * pyobj;
1178 char ptemp[128];
1179
1180 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1181 pyobj = PyString_FromString(ptemp);
1182 return pyobj;
1183 }
1184
1185 static int _wrap_wxNullFont_set(PyObject *val) {
1186
1187 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1188 return 1;
1189 }
1190
1191 static PyObject *_wrap_wxNullFont_get() {
1192 PyObject * pyobj;
1193 char ptemp[128];
1194
1195 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1196 pyobj = PyString_FromString(ptemp);
1197 return pyobj;
1198 }
1199
1200 static int _wrap_wxNullColour_set(PyObject *val) {
1201
1202 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1203 return 1;
1204 }
1205
1206 static PyObject *_wrap_wxNullColour_get() {
1207 PyObject * pyobj;
1208 char ptemp[128];
1209
1210 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1211 pyobj = PyString_FromString(ptemp);
1212 return pyobj;
1213 }
1214
1215 static int _wrap_wxTheFontList_set(PyObject *val) {
1216
1217 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1218 return 1;
1219 }
1220
1221 static PyObject *_wrap_wxTheFontList_get() {
1222 PyObject * pyobj;
1223 char ptemp[128];
1224
1225 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1226 pyobj = PyString_FromString(ptemp);
1227 return pyobj;
1228 }
1229
1230 static int _wrap_wxThePenList_set(PyObject *val) {
1231
1232 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1233 return 1;
1234 }
1235
1236 static PyObject *_wrap_wxThePenList_get() {
1237 PyObject * pyobj;
1238 char ptemp[128];
1239
1240 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1241 pyobj = PyString_FromString(ptemp);
1242 return pyobj;
1243 }
1244
1245 static int _wrap_wxTheBrushList_set(PyObject *val) {
1246
1247 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1248 return 1;
1249 }
1250
1251 static PyObject *_wrap_wxTheBrushList_get() {
1252 PyObject * pyobj;
1253 char ptemp[128];
1254
1255 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p");
1256 pyobj = PyString_FromString(ptemp);
1257 return pyobj;
1258 }
1259
1260 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1261
1262 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1263 return 1;
1264 }
1265
1266 static PyObject *_wrap_wxTheColourDatabase_get() {
1267 PyObject * pyobj;
1268 char ptemp[128];
1269
1270 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1271 pyobj = PyString_FromString(ptemp);
1272 return pyobj;
1273 }
1274
1275 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1276 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1277 PyObject * _resultobj;
1278 wxBitmap * _result;
1279 wxString * _arg0;
1280 wxBitmapType _arg1;
1281 PyObject * _obj0 = 0;
1282 char *_kwnames[] = { "name","type", NULL };
1283 char _ptemp[128];
1284
1285 self = self;
1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1287 return NULL;
1288 {
1289 #if PYTHON_API_VERSION >= 1009
1290 char* tmpPtr; int tmpSize;
1291 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1292 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1293 return NULL;
1294 }
1295 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1296 return NULL;
1297 _arg0 = new wxString(tmpPtr, tmpSize);
1298 #else
1299 if (!PyString_Check(_obj0)) {
1300 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1301 return NULL;
1302 }
1303 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1304 #endif
1305 }
1306 {
1307 wxPy_BEGIN_ALLOW_THREADS;
1308 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1309
1310 wxPy_END_ALLOW_THREADS;
1311 } if (_result) {
1312 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1313 _resultobj = Py_BuildValue("s",_ptemp);
1314 } else {
1315 Py_INCREF(Py_None);
1316 _resultobj = Py_None;
1317 }
1318 {
1319 if (_obj0)
1320 delete _arg0;
1321 }
1322 return _resultobj;
1323 }
1324
1325 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1326 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject * _resultobj;
1328 wxBitmap * _arg0;
1329 PyObject * _argo0 = 0;
1330 char *_kwnames[] = { "self", NULL };
1331
1332 self = self;
1333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1334 return NULL;
1335 if (_argo0) {
1336 if (_argo0 == Py_None) { _arg0 = NULL; }
1337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1339 return NULL;
1340 }
1341 }
1342 {
1343 wxPy_BEGIN_ALLOW_THREADS;
1344 delete_wxBitmap(_arg0);
1345
1346 wxPy_END_ALLOW_THREADS;
1347 } Py_INCREF(Py_None);
1348 _resultobj = Py_None;
1349 return _resultobj;
1350 }
1351
1352 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1353 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1354 PyObject * _resultobj;
1355 wxPalette * _result;
1356 wxBitmap * _arg0;
1357 PyObject * _argo0 = 0;
1358 char *_kwnames[] = { "self", NULL };
1359 char _ptemp[128];
1360
1361 self = self;
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1363 return NULL;
1364 if (_argo0) {
1365 if (_argo0 == Py_None) { _arg0 = NULL; }
1366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1368 return NULL;
1369 }
1370 }
1371 {
1372 wxPy_BEGIN_ALLOW_THREADS;
1373 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1374
1375 wxPy_END_ALLOW_THREADS;
1376 } if (_result) {
1377 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1378 _resultobj = Py_BuildValue("s",_ptemp);
1379 } else {
1380 Py_INCREF(Py_None);
1381 _resultobj = Py_None;
1382 }
1383 return _resultobj;
1384 }
1385
1386 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1387 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1388 PyObject * _resultobj;
1389 wxMask * _result;
1390 wxBitmap * _arg0;
1391 PyObject * _argo0 = 0;
1392 char *_kwnames[] = { "self", NULL };
1393 char _ptemp[128];
1394
1395 self = self;
1396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1397 return NULL;
1398 if (_argo0) {
1399 if (_argo0 == Py_None) { _arg0 = NULL; }
1400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1402 return NULL;
1403 }
1404 }
1405 {
1406 wxPy_BEGIN_ALLOW_THREADS;
1407 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1408
1409 wxPy_END_ALLOW_THREADS;
1410 } if (_result) {
1411 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1412 _resultobj = Py_BuildValue("s",_ptemp);
1413 } else {
1414 Py_INCREF(Py_None);
1415 _resultobj = Py_None;
1416 }
1417 return _resultobj;
1418 }
1419
1420 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1421 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1422 PyObject * _resultobj;
1423 bool _result;
1424 wxBitmap * _arg0;
1425 wxString * _arg1;
1426 long _arg2;
1427 PyObject * _argo0 = 0;
1428 PyObject * _obj1 = 0;
1429 char *_kwnames[] = { "self","name","flags", NULL };
1430
1431 self = self;
1432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1433 return NULL;
1434 if (_argo0) {
1435 if (_argo0 == Py_None) { _arg0 = NULL; }
1436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1438 return NULL;
1439 }
1440 }
1441 {
1442 #if PYTHON_API_VERSION >= 1009
1443 char* tmpPtr; int tmpSize;
1444 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1445 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1446 return NULL;
1447 }
1448 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1449 return NULL;
1450 _arg1 = new wxString(tmpPtr, tmpSize);
1451 #else
1452 if (!PyString_Check(_obj1)) {
1453 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1454 return NULL;
1455 }
1456 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1457 #endif
1458 }
1459 {
1460 wxPy_BEGIN_ALLOW_THREADS;
1461 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1462
1463 wxPy_END_ALLOW_THREADS;
1464 } _resultobj = Py_BuildValue("i",_result);
1465 {
1466 if (_obj1)
1467 delete _arg1;
1468 }
1469 return _resultobj;
1470 }
1471
1472 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1473 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject * _resultobj;
1475 bool _result;
1476 wxBitmap * _arg0;
1477 wxString * _arg1;
1478 int _arg2;
1479 wxPalette * _arg3 = (wxPalette *) NULL;
1480 PyObject * _argo0 = 0;
1481 PyObject * _obj1 = 0;
1482 PyObject * _argo3 = 0;
1483 char *_kwnames[] = { "self","name","type","palette", NULL };
1484
1485 self = self;
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1487 return NULL;
1488 if (_argo0) {
1489 if (_argo0 == Py_None) { _arg0 = NULL; }
1490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1492 return NULL;
1493 }
1494 }
1495 {
1496 #if PYTHON_API_VERSION >= 1009
1497 char* tmpPtr; int tmpSize;
1498 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1499 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1500 return NULL;
1501 }
1502 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1503 return NULL;
1504 _arg1 = new wxString(tmpPtr, tmpSize);
1505 #else
1506 if (!PyString_Check(_obj1)) {
1507 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1508 return NULL;
1509 }
1510 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1511 #endif
1512 }
1513 if (_argo3) {
1514 if (_argo3 == Py_None) { _arg3 = NULL; }
1515 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1516 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1517 return NULL;
1518 }
1519 }
1520 {
1521 wxPy_BEGIN_ALLOW_THREADS;
1522 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1523
1524 wxPy_END_ALLOW_THREADS;
1525 } _resultobj = Py_BuildValue("i",_result);
1526 {
1527 if (_obj1)
1528 delete _arg1;
1529 }
1530 return _resultobj;
1531 }
1532
1533 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1534 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1535 PyObject * _resultobj;
1536 wxBitmap * _arg0;
1537 wxMask * _arg1;
1538 PyObject * _argo0 = 0;
1539 PyObject * _argo1 = 0;
1540 char *_kwnames[] = { "self","mask", NULL };
1541
1542 self = self;
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1544 return NULL;
1545 if (_argo0) {
1546 if (_argo0 == Py_None) { _arg0 = NULL; }
1547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1549 return NULL;
1550 }
1551 }
1552 if (_argo1) {
1553 if (_argo1 == Py_None) { _arg1 = NULL; }
1554 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1555 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1556 return NULL;
1557 }
1558 }
1559 {
1560 wxPy_BEGIN_ALLOW_THREADS;
1561 wxBitmap_SetMask(_arg0,_arg1);
1562
1563 wxPy_END_ALLOW_THREADS;
1564 } Py_INCREF(Py_None);
1565 _resultobj = Py_None;
1566 return _resultobj;
1567 }
1568
1569 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1570 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject * _resultobj;
1572 bool _result;
1573 wxBitmap * _arg0;
1574 PyObject * _argo0 = 0;
1575 char *_kwnames[] = { "self", NULL };
1576
1577 self = self;
1578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1579 return NULL;
1580 if (_argo0) {
1581 if (_argo0 == Py_None) { _arg0 = NULL; }
1582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1584 return NULL;
1585 }
1586 }
1587 {
1588 wxPy_BEGIN_ALLOW_THREADS;
1589 _result = (bool )wxBitmap_Ok(_arg0);
1590
1591 wxPy_END_ALLOW_THREADS;
1592 } _resultobj = Py_BuildValue("i",_result);
1593 return _resultobj;
1594 }
1595
1596 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1597 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1598 PyObject * _resultobj;
1599 int _result;
1600 wxBitmap * _arg0;
1601 PyObject * _argo0 = 0;
1602 char *_kwnames[] = { "self", NULL };
1603
1604 self = self;
1605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1606 return NULL;
1607 if (_argo0) {
1608 if (_argo0 == Py_None) { _arg0 = NULL; }
1609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1611 return NULL;
1612 }
1613 }
1614 {
1615 wxPy_BEGIN_ALLOW_THREADS;
1616 _result = (int )wxBitmap_GetWidth(_arg0);
1617
1618 wxPy_END_ALLOW_THREADS;
1619 } _resultobj = Py_BuildValue("i",_result);
1620 return _resultobj;
1621 }
1622
1623 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1624 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1625 PyObject * _resultobj;
1626 int _result;
1627 wxBitmap * _arg0;
1628 PyObject * _argo0 = 0;
1629 char *_kwnames[] = { "self", NULL };
1630
1631 self = self;
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1633 return NULL;
1634 if (_argo0) {
1635 if (_argo0 == Py_None) { _arg0 = NULL; }
1636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1638 return NULL;
1639 }
1640 }
1641 {
1642 wxPy_BEGIN_ALLOW_THREADS;
1643 _result = (int )wxBitmap_GetHeight(_arg0);
1644
1645 wxPy_END_ALLOW_THREADS;
1646 } _resultobj = Py_BuildValue("i",_result);
1647 return _resultobj;
1648 }
1649
1650 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1651 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1652 PyObject * _resultobj;
1653 int _result;
1654 wxBitmap * _arg0;
1655 PyObject * _argo0 = 0;
1656 char *_kwnames[] = { "self", NULL };
1657
1658 self = self;
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1660 return NULL;
1661 if (_argo0) {
1662 if (_argo0 == Py_None) { _arg0 = NULL; }
1663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1665 return NULL;
1666 }
1667 }
1668 {
1669 wxPy_BEGIN_ALLOW_THREADS;
1670 _result = (int )wxBitmap_GetDepth(_arg0);
1671
1672 wxPy_END_ALLOW_THREADS;
1673 } _resultobj = Py_BuildValue("i",_result);
1674 return _resultobj;
1675 }
1676
1677 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1678 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1679 PyObject * _resultobj;
1680 wxBitmap * _arg0;
1681 int _arg1;
1682 PyObject * _argo0 = 0;
1683 char *_kwnames[] = { "self","w", NULL };
1684
1685 self = self;
1686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1687 return NULL;
1688 if (_argo0) {
1689 if (_argo0 == Py_None) { _arg0 = NULL; }
1690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1692 return NULL;
1693 }
1694 }
1695 {
1696 wxPy_BEGIN_ALLOW_THREADS;
1697 wxBitmap_SetWidth(_arg0,_arg1);
1698
1699 wxPy_END_ALLOW_THREADS;
1700 } Py_INCREF(Py_None);
1701 _resultobj = Py_None;
1702 return _resultobj;
1703 }
1704
1705 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1706 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1707 PyObject * _resultobj;
1708 wxBitmap * _arg0;
1709 int _arg1;
1710 PyObject * _argo0 = 0;
1711 char *_kwnames[] = { "self","h", NULL };
1712
1713 self = self;
1714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
1715 return NULL;
1716 if (_argo0) {
1717 if (_argo0 == Py_None) { _arg0 = NULL; }
1718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1720 return NULL;
1721 }
1722 }
1723 {
1724 wxPy_BEGIN_ALLOW_THREADS;
1725 wxBitmap_SetHeight(_arg0,_arg1);
1726
1727 wxPy_END_ALLOW_THREADS;
1728 } Py_INCREF(Py_None);
1729 _resultobj = Py_None;
1730 return _resultobj;
1731 }
1732
1733 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1734 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1735 PyObject * _resultobj;
1736 wxBitmap * _arg0;
1737 int _arg1;
1738 PyObject * _argo0 = 0;
1739 char *_kwnames[] = { "self","d", NULL };
1740
1741 self = self;
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
1743 return NULL;
1744 if (_argo0) {
1745 if (_argo0 == Py_None) { _arg0 = NULL; }
1746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1748 return NULL;
1749 }
1750 }
1751 {
1752 wxPy_BEGIN_ALLOW_THREADS;
1753 wxBitmap_SetDepth(_arg0,_arg1);
1754
1755 wxPy_END_ALLOW_THREADS;
1756 } Py_INCREF(Py_None);
1757 _resultobj = Py_None;
1758 return _resultobj;
1759 }
1760
1761 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1762 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1763 PyObject * _resultobj;
1764 wxBitmap * _result;
1765 wxBitmap * _arg0;
1766 wxRect * _arg1;
1767 PyObject * _argo0 = 0;
1768 wxRect temp;
1769 PyObject * _obj1 = 0;
1770 char *_kwnames[] = { "self","rect", NULL };
1771 char _ptemp[128];
1772
1773 self = self;
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1775 return NULL;
1776 if (_argo0) {
1777 if (_argo0 == Py_None) { _arg0 = NULL; }
1778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1780 return NULL;
1781 }
1782 }
1783 {
1784 _arg1 = &temp;
1785 if (! wxRect_helper(_obj1, &_arg1))
1786 return NULL;
1787 }
1788 {
1789 wxPy_BEGIN_ALLOW_THREADS;
1790 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
1791
1792 wxPy_END_ALLOW_THREADS;
1793 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1794 _resultobj = Py_BuildValue("s",_ptemp);
1795 return _resultobj;
1796 }
1797
1798 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1799 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1800 PyObject * _resultobj;
1801 wxMask * _result;
1802 wxBitmap * _arg0;
1803 PyObject * _argo0 = 0;
1804 char *_kwnames[] = { "bitmap", NULL };
1805 char _ptemp[128];
1806
1807 self = self;
1808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
1809 return NULL;
1810 if (_argo0) {
1811 if (_argo0 == Py_None) { _arg0 = NULL; }
1812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1814 return NULL;
1815 }
1816 }
1817 {
1818 wxPy_BEGIN_ALLOW_THREADS;
1819 _result = (wxMask *)new_wxMask(*_arg0);
1820
1821 wxPy_END_ALLOW_THREADS;
1822 } if (_result) {
1823 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1824 _resultobj = Py_BuildValue("s",_ptemp);
1825 } else {
1826 Py_INCREF(Py_None);
1827 _resultobj = Py_None;
1828 }
1829 return _resultobj;
1830 }
1831
1832 static void wxMask_Destroy(wxMask *self) { delete self; }
1833 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1834 PyObject * _resultobj;
1835 wxMask * _arg0;
1836 PyObject * _argo0 = 0;
1837 char *_kwnames[] = { "self", NULL };
1838
1839 self = self;
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
1841 return NULL;
1842 if (_argo0) {
1843 if (_argo0 == Py_None) { _arg0 = NULL; }
1844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
1845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
1846 return NULL;
1847 }
1848 }
1849 {
1850 wxPy_BEGIN_ALLOW_THREADS;
1851 wxMask_Destroy(_arg0);
1852
1853 wxPy_END_ALLOW_THREADS;
1854 } Py_INCREF(Py_None);
1855 _resultobj = Py_None;
1856 return _resultobj;
1857 }
1858
1859 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1860 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1861 PyObject * _resultobj;
1862 wxIcon * _result;
1863 wxString * _arg0;
1864 long _arg1;
1865 int _arg2 = (int ) -1;
1866 int _arg3 = (int ) -1;
1867 PyObject * _obj0 = 0;
1868 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
1869 char _ptemp[128];
1870
1871 self = self;
1872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
1873 return NULL;
1874 {
1875 #if PYTHON_API_VERSION >= 1009
1876 char* tmpPtr; int tmpSize;
1877 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1878 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1879 return NULL;
1880 }
1881 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1882 return NULL;
1883 _arg0 = new wxString(tmpPtr, tmpSize);
1884 #else
1885 if (!PyString_Check(_obj0)) {
1886 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1887 return NULL;
1888 }
1889 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1890 #endif
1891 }
1892 {
1893 wxPy_BEGIN_ALLOW_THREADS;
1894 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
1895
1896 wxPy_END_ALLOW_THREADS;
1897 } if (_result) {
1898 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
1899 _resultobj = Py_BuildValue("s",_ptemp);
1900 } else {
1901 Py_INCREF(Py_None);
1902 _resultobj = Py_None;
1903 }
1904 {
1905 if (_obj0)
1906 delete _arg0;
1907 }
1908 return _resultobj;
1909 }
1910
1911 #define delete_wxIcon(_swigobj) (delete _swigobj)
1912 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject * _resultobj;
1914 wxIcon * _arg0;
1915 PyObject * _argo0 = 0;
1916 char *_kwnames[] = { "self", NULL };
1917
1918 self = self;
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
1920 return NULL;
1921 if (_argo0) {
1922 if (_argo0 == Py_None) { _arg0 = NULL; }
1923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1925 return NULL;
1926 }
1927 }
1928 {
1929 wxPy_BEGIN_ALLOW_THREADS;
1930 delete_wxIcon(_arg0);
1931
1932 wxPy_END_ALLOW_THREADS;
1933 } Py_INCREF(Py_None);
1934 _resultobj = Py_None;
1935 return _resultobj;
1936 }
1937
1938 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1939 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject * _resultobj;
1941 bool _result;
1942 wxIcon * _arg0;
1943 wxString * _arg1;
1944 long _arg2;
1945 PyObject * _argo0 = 0;
1946 PyObject * _obj1 = 0;
1947 char *_kwnames[] = { "self","name","flags", NULL };
1948
1949 self = self;
1950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1951 return NULL;
1952 if (_argo0) {
1953 if (_argo0 == Py_None) { _arg0 = NULL; }
1954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1956 return NULL;
1957 }
1958 }
1959 {
1960 #if PYTHON_API_VERSION >= 1009
1961 char* tmpPtr; int tmpSize;
1962 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1963 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1964 return NULL;
1965 }
1966 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1967 return NULL;
1968 _arg1 = new wxString(tmpPtr, tmpSize);
1969 #else
1970 if (!PyString_Check(_obj1)) {
1971 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1972 return NULL;
1973 }
1974 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1975 #endif
1976 }
1977 {
1978 wxPy_BEGIN_ALLOW_THREADS;
1979 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
1980
1981 wxPy_END_ALLOW_THREADS;
1982 } _resultobj = Py_BuildValue("i",_result);
1983 {
1984 if (_obj1)
1985 delete _arg1;
1986 }
1987 return _resultobj;
1988 }
1989
1990 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1991 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1992 PyObject * _resultobj;
1993 bool _result;
1994 wxIcon * _arg0;
1995 PyObject * _argo0 = 0;
1996 char *_kwnames[] = { "self", NULL };
1997
1998 self = self;
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2000 return NULL;
2001 if (_argo0) {
2002 if (_argo0 == Py_None) { _arg0 = NULL; }
2003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2005 return NULL;
2006 }
2007 }
2008 {
2009 wxPy_BEGIN_ALLOW_THREADS;
2010 _result = (bool )wxIcon_Ok(_arg0);
2011
2012 wxPy_END_ALLOW_THREADS;
2013 } _resultobj = Py_BuildValue("i",_result);
2014 return _resultobj;
2015 }
2016
2017 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2018 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2019 PyObject * _resultobj;
2020 int _result;
2021 wxIcon * _arg0;
2022 PyObject * _argo0 = 0;
2023 char *_kwnames[] = { "self", NULL };
2024
2025 self = self;
2026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2027 return NULL;
2028 if (_argo0) {
2029 if (_argo0 == Py_None) { _arg0 = NULL; }
2030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2032 return NULL;
2033 }
2034 }
2035 {
2036 wxPy_BEGIN_ALLOW_THREADS;
2037 _result = (int )wxIcon_GetWidth(_arg0);
2038
2039 wxPy_END_ALLOW_THREADS;
2040 } _resultobj = Py_BuildValue("i",_result);
2041 return _resultobj;
2042 }
2043
2044 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2045 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject * _resultobj;
2047 int _result;
2048 wxIcon * _arg0;
2049 PyObject * _argo0 = 0;
2050 char *_kwnames[] = { "self", NULL };
2051
2052 self = self;
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2054 return NULL;
2055 if (_argo0) {
2056 if (_argo0 == Py_None) { _arg0 = NULL; }
2057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2059 return NULL;
2060 }
2061 }
2062 {
2063 wxPy_BEGIN_ALLOW_THREADS;
2064 _result = (int )wxIcon_GetHeight(_arg0);
2065
2066 wxPy_END_ALLOW_THREADS;
2067 } _resultobj = Py_BuildValue("i",_result);
2068 return _resultobj;
2069 }
2070
2071 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2072 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject * _resultobj;
2074 int _result;
2075 wxIcon * _arg0;
2076 PyObject * _argo0 = 0;
2077 char *_kwnames[] = { "self", NULL };
2078
2079 self = self;
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2081 return NULL;
2082 if (_argo0) {
2083 if (_argo0 == Py_None) { _arg0 = NULL; }
2084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2086 return NULL;
2087 }
2088 }
2089 {
2090 wxPy_BEGIN_ALLOW_THREADS;
2091 _result = (int )wxIcon_GetDepth(_arg0);
2092
2093 wxPy_END_ALLOW_THREADS;
2094 } _resultobj = Py_BuildValue("i",_result);
2095 return _resultobj;
2096 }
2097
2098 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2099 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2100 PyObject * _resultobj;
2101 wxIcon * _arg0;
2102 int _arg1;
2103 PyObject * _argo0 = 0;
2104 char *_kwnames[] = { "self","w", NULL };
2105
2106 self = self;
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2108 return NULL;
2109 if (_argo0) {
2110 if (_argo0 == Py_None) { _arg0 = NULL; }
2111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2113 return NULL;
2114 }
2115 }
2116 {
2117 wxPy_BEGIN_ALLOW_THREADS;
2118 wxIcon_SetWidth(_arg0,_arg1);
2119
2120 wxPy_END_ALLOW_THREADS;
2121 } Py_INCREF(Py_None);
2122 _resultobj = Py_None;
2123 return _resultobj;
2124 }
2125
2126 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2127 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject * _resultobj;
2129 wxIcon * _arg0;
2130 int _arg1;
2131 PyObject * _argo0 = 0;
2132 char *_kwnames[] = { "self","h", NULL };
2133
2134 self = self;
2135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2136 return NULL;
2137 if (_argo0) {
2138 if (_argo0 == Py_None) { _arg0 = NULL; }
2139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2141 return NULL;
2142 }
2143 }
2144 {
2145 wxPy_BEGIN_ALLOW_THREADS;
2146 wxIcon_SetHeight(_arg0,_arg1);
2147
2148 wxPy_END_ALLOW_THREADS;
2149 } Py_INCREF(Py_None);
2150 _resultobj = Py_None;
2151 return _resultobj;
2152 }
2153
2154 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2155 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2156 PyObject * _resultobj;
2157 wxIcon * _arg0;
2158 int _arg1;
2159 PyObject * _argo0 = 0;
2160 char *_kwnames[] = { "self","d", NULL };
2161
2162 self = self;
2163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2164 return NULL;
2165 if (_argo0) {
2166 if (_argo0 == Py_None) { _arg0 = NULL; }
2167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2169 return NULL;
2170 }
2171 }
2172 {
2173 wxPy_BEGIN_ALLOW_THREADS;
2174 wxIcon_SetDepth(_arg0,_arg1);
2175
2176 wxPy_END_ALLOW_THREADS;
2177 } Py_INCREF(Py_None);
2178 _resultobj = Py_None;
2179 return _resultobj;
2180 }
2181
2182 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2183 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2184 PyObject * _resultobj;
2185 wxIcon * _arg0;
2186 wxBitmap * _arg1;
2187 PyObject * _argo0 = 0;
2188 PyObject * _argo1 = 0;
2189 char *_kwnames[] = { "self","bmp", NULL };
2190
2191 self = self;
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2193 return NULL;
2194 if (_argo0) {
2195 if (_argo0 == Py_None) { _arg0 = NULL; }
2196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2198 return NULL;
2199 }
2200 }
2201 if (_argo1) {
2202 if (_argo1 == Py_None) { _arg1 = NULL; }
2203 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2204 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2205 return NULL;
2206 }
2207 }
2208 {
2209 wxPy_BEGIN_ALLOW_THREADS;
2210 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2211
2212 wxPy_END_ALLOW_THREADS;
2213 } Py_INCREF(Py_None);
2214 _resultobj = Py_None;
2215 return _resultobj;
2216 }
2217
2218 #define delete_wxCursor(_swigobj) (delete _swigobj)
2219 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2220 PyObject * _resultobj;
2221 wxCursor * _arg0;
2222 PyObject * _argo0 = 0;
2223 char *_kwnames[] = { "self", NULL };
2224
2225 self = self;
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2227 return NULL;
2228 if (_argo0) {
2229 if (_argo0 == Py_None) { _arg0 = NULL; }
2230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2232 return NULL;
2233 }
2234 }
2235 {
2236 wxPy_BEGIN_ALLOW_THREADS;
2237 delete_wxCursor(_arg0);
2238
2239 wxPy_END_ALLOW_THREADS;
2240 } Py_INCREF(Py_None);
2241 _resultobj = Py_None;
2242 return _resultobj;
2243 }
2244
2245 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2246 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2247 PyObject * _resultobj;
2248 bool _result;
2249 wxCursor * _arg0;
2250 PyObject * _argo0 = 0;
2251 char *_kwnames[] = { "self", NULL };
2252
2253 self = self;
2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2255 return NULL;
2256 if (_argo0) {
2257 if (_argo0 == Py_None) { _arg0 = NULL; }
2258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2260 return NULL;
2261 }
2262 }
2263 {
2264 wxPy_BEGIN_ALLOW_THREADS;
2265 _result = (bool )wxCursor_Ok(_arg0);
2266
2267 wxPy_END_ALLOW_THREADS;
2268 } _resultobj = Py_BuildValue("i",_result);
2269 return _resultobj;
2270 }
2271
2272 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2273 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2274 PyObject * _resultobj;
2275 wxFont * _result;
2276 int _arg0;
2277 int _arg1;
2278 int _arg2;
2279 int _arg3;
2280 int _arg4 = (int ) FALSE;
2281 char * _arg5 = (char *) "";
2282 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
2283 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
2284 char _ptemp[128];
2285
2286 self = self;
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2288 return NULL;
2289 {
2290 wxPy_BEGIN_ALLOW_THREADS;
2291 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2292
2293 wxPy_END_ALLOW_THREADS;
2294 } if (_result) {
2295 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
2296 _resultobj = Py_BuildValue("s",_ptemp);
2297 } else {
2298 Py_INCREF(Py_None);
2299 _resultobj = Py_None;
2300 }
2301 return _resultobj;
2302 }
2303
2304 #define delete_wxFont(_swigobj) (delete _swigobj)
2305 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2306 PyObject * _resultobj;
2307 wxFont * _arg0;
2308 PyObject * _argo0 = 0;
2309 char *_kwnames[] = { "self", NULL };
2310
2311 self = self;
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
2313 return NULL;
2314 if (_argo0) {
2315 if (_argo0 == Py_None) { _arg0 = NULL; }
2316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2318 return NULL;
2319 }
2320 }
2321 {
2322 wxPy_BEGIN_ALLOW_THREADS;
2323 delete_wxFont(_arg0);
2324
2325 wxPy_END_ALLOW_THREADS;
2326 } Py_INCREF(Py_None);
2327 _resultobj = Py_None;
2328 return _resultobj;
2329 }
2330
2331 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2332 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject * _resultobj;
2334 bool _result;
2335 wxFont * _arg0;
2336 PyObject * _argo0 = 0;
2337 char *_kwnames[] = { "self", NULL };
2338
2339 self = self;
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
2341 return NULL;
2342 if (_argo0) {
2343 if (_argo0 == Py_None) { _arg0 = NULL; }
2344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2346 return NULL;
2347 }
2348 }
2349 {
2350 wxPy_BEGIN_ALLOW_THREADS;
2351 _result = (bool )wxFont_Ok(_arg0);
2352
2353 wxPy_END_ALLOW_THREADS;
2354 } _resultobj = Py_BuildValue("i",_result);
2355 return _resultobj;
2356 }
2357
2358 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2359 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
2360 PyObject * _resultobj;
2361 wxString * _result;
2362 wxFont * _arg0;
2363 PyObject * _argo0 = 0;
2364 char *_kwnames[] = { "self", NULL };
2365
2366 self = self;
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
2368 return NULL;
2369 if (_argo0) {
2370 if (_argo0 == Py_None) { _arg0 = NULL; }
2371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2373 return NULL;
2374 }
2375 }
2376 {
2377 wxPy_BEGIN_ALLOW_THREADS;
2378 _result = new wxString (wxFont_GetFaceName(_arg0));
2379
2380 wxPy_END_ALLOW_THREADS;
2381 }{
2382 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2383 }
2384 {
2385 delete _result;
2386 }
2387 return _resultobj;
2388 }
2389
2390 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2391 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject * _resultobj;
2393 int _result;
2394 wxFont * _arg0;
2395 PyObject * _argo0 = 0;
2396 char *_kwnames[] = { "self", NULL };
2397
2398 self = self;
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
2400 return NULL;
2401 if (_argo0) {
2402 if (_argo0 == Py_None) { _arg0 = NULL; }
2403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2405 return NULL;
2406 }
2407 }
2408 {
2409 wxPy_BEGIN_ALLOW_THREADS;
2410 _result = (int )wxFont_GetFamily(_arg0);
2411
2412 wxPy_END_ALLOW_THREADS;
2413 } _resultobj = Py_BuildValue("i",_result);
2414 return _resultobj;
2415 }
2416
2417 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2418 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject * _resultobj;
2420 int _result;
2421 wxFont * _arg0;
2422 PyObject * _argo0 = 0;
2423 char *_kwnames[] = { "self", NULL };
2424
2425 self = self;
2426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
2427 return NULL;
2428 if (_argo0) {
2429 if (_argo0 == Py_None) { _arg0 = NULL; }
2430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2432 return NULL;
2433 }
2434 }
2435 {
2436 wxPy_BEGIN_ALLOW_THREADS;
2437 _result = (int )wxFont_GetPointSize(_arg0);
2438
2439 wxPy_END_ALLOW_THREADS;
2440 } _resultobj = Py_BuildValue("i",_result);
2441 return _resultobj;
2442 }
2443
2444 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2445 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2446 PyObject * _resultobj;
2447 int _result;
2448 wxFont * _arg0;
2449 PyObject * _argo0 = 0;
2450 char *_kwnames[] = { "self", NULL };
2451
2452 self = self;
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
2454 return NULL;
2455 if (_argo0) {
2456 if (_argo0 == Py_None) { _arg0 = NULL; }
2457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2459 return NULL;
2460 }
2461 }
2462 {
2463 wxPy_BEGIN_ALLOW_THREADS;
2464 _result = (int )wxFont_GetStyle(_arg0);
2465
2466 wxPy_END_ALLOW_THREADS;
2467 } _resultobj = Py_BuildValue("i",_result);
2468 return _resultobj;
2469 }
2470
2471 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2472 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject * _resultobj;
2474 bool _result;
2475 wxFont * _arg0;
2476 PyObject * _argo0 = 0;
2477 char *_kwnames[] = { "self", NULL };
2478
2479 self = self;
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
2481 return NULL;
2482 if (_argo0) {
2483 if (_argo0 == Py_None) { _arg0 = NULL; }
2484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2486 return NULL;
2487 }
2488 }
2489 {
2490 wxPy_BEGIN_ALLOW_THREADS;
2491 _result = (bool )wxFont_GetUnderlined(_arg0);
2492
2493 wxPy_END_ALLOW_THREADS;
2494 } _resultobj = Py_BuildValue("i",_result);
2495 return _resultobj;
2496 }
2497
2498 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2499 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2500 PyObject * _resultobj;
2501 int _result;
2502 wxFont * _arg0;
2503 PyObject * _argo0 = 0;
2504 char *_kwnames[] = { "self", NULL };
2505
2506 self = self;
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
2508 return NULL;
2509 if (_argo0) {
2510 if (_argo0 == Py_None) { _arg0 = NULL; }
2511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2513 return NULL;
2514 }
2515 }
2516 {
2517 wxPy_BEGIN_ALLOW_THREADS;
2518 _result = (int )wxFont_GetWeight(_arg0);
2519
2520 wxPy_END_ALLOW_THREADS;
2521 } _resultobj = Py_BuildValue("i",_result);
2522 return _resultobj;
2523 }
2524
2525 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2526 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
2527 PyObject * _resultobj;
2528 wxFontEncoding _result;
2529 wxFont * _arg0;
2530 PyObject * _argo0 = 0;
2531 char *_kwnames[] = { "self", NULL };
2532
2533 self = self;
2534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
2535 return NULL;
2536 if (_argo0) {
2537 if (_argo0 == Py_None) { _arg0 = NULL; }
2538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2540 return NULL;
2541 }
2542 }
2543 {
2544 wxPy_BEGIN_ALLOW_THREADS;
2545 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
2546
2547 wxPy_END_ALLOW_THREADS;
2548 } _resultobj = Py_BuildValue("i",_result);
2549 return _resultobj;
2550 }
2551
2552 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2553 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject * _resultobj;
2555 wxFont * _arg0;
2556 wxString * _arg1;
2557 PyObject * _argo0 = 0;
2558 PyObject * _obj1 = 0;
2559 char *_kwnames[] = { "self","faceName", NULL };
2560
2561 self = self;
2562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
2563 return NULL;
2564 if (_argo0) {
2565 if (_argo0 == Py_None) { _arg0 = NULL; }
2566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2568 return NULL;
2569 }
2570 }
2571 {
2572 #if PYTHON_API_VERSION >= 1009
2573 char* tmpPtr; int tmpSize;
2574 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2575 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
2576 return NULL;
2577 }
2578 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2579 return NULL;
2580 _arg1 = new wxString(tmpPtr, tmpSize);
2581 #else
2582 if (!PyString_Check(_obj1)) {
2583 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2584 return NULL;
2585 }
2586 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2587 #endif
2588 }
2589 {
2590 wxPy_BEGIN_ALLOW_THREADS;
2591 wxFont_SetFaceName(_arg0,*_arg1);
2592
2593 wxPy_END_ALLOW_THREADS;
2594 } Py_INCREF(Py_None);
2595 _resultobj = Py_None;
2596 {
2597 if (_obj1)
2598 delete _arg1;
2599 }
2600 return _resultobj;
2601 }
2602
2603 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2604 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
2605 PyObject * _resultobj;
2606 wxFont * _arg0;
2607 int _arg1;
2608 PyObject * _argo0 = 0;
2609 char *_kwnames[] = { "self","family", NULL };
2610
2611 self = self;
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
2613 return NULL;
2614 if (_argo0) {
2615 if (_argo0 == Py_None) { _arg0 = NULL; }
2616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2618 return NULL;
2619 }
2620 }
2621 {
2622 wxPy_BEGIN_ALLOW_THREADS;
2623 wxFont_SetFamily(_arg0,_arg1);
2624
2625 wxPy_END_ALLOW_THREADS;
2626 } Py_INCREF(Py_None);
2627 _resultobj = Py_None;
2628 return _resultobj;
2629 }
2630
2631 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2632 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2633 PyObject * _resultobj;
2634 wxFont * _arg0;
2635 int _arg1;
2636 PyObject * _argo0 = 0;
2637 char *_kwnames[] = { "self","pointSize", NULL };
2638
2639 self = self;
2640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
2641 return NULL;
2642 if (_argo0) {
2643 if (_argo0 == Py_None) { _arg0 = NULL; }
2644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2646 return NULL;
2647 }
2648 }
2649 {
2650 wxPy_BEGIN_ALLOW_THREADS;
2651 wxFont_SetPointSize(_arg0,_arg1);
2652
2653 wxPy_END_ALLOW_THREADS;
2654 } Py_INCREF(Py_None);
2655 _resultobj = Py_None;
2656 return _resultobj;
2657 }
2658
2659 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2660 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2661 PyObject * _resultobj;
2662 wxFont * _arg0;
2663 int _arg1;
2664 PyObject * _argo0 = 0;
2665 char *_kwnames[] = { "self","style", NULL };
2666
2667 self = self;
2668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
2669 return NULL;
2670 if (_argo0) {
2671 if (_argo0 == Py_None) { _arg0 = NULL; }
2672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2674 return NULL;
2675 }
2676 }
2677 {
2678 wxPy_BEGIN_ALLOW_THREADS;
2679 wxFont_SetStyle(_arg0,_arg1);
2680
2681 wxPy_END_ALLOW_THREADS;
2682 } Py_INCREF(Py_None);
2683 _resultobj = Py_None;
2684 return _resultobj;
2685 }
2686
2687 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2688 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
2689 PyObject * _resultobj;
2690 wxFont * _arg0;
2691 bool _arg1;
2692 PyObject * _argo0 = 0;
2693 int tempbool1;
2694 char *_kwnames[] = { "self","underlined", NULL };
2695
2696 self = self;
2697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
2698 return NULL;
2699 if (_argo0) {
2700 if (_argo0 == Py_None) { _arg0 = NULL; }
2701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2703 return NULL;
2704 }
2705 }
2706 _arg1 = (bool ) tempbool1;
2707 {
2708 wxPy_BEGIN_ALLOW_THREADS;
2709 wxFont_SetUnderlined(_arg0,_arg1);
2710
2711 wxPy_END_ALLOW_THREADS;
2712 } Py_INCREF(Py_None);
2713 _resultobj = Py_None;
2714 return _resultobj;
2715 }
2716
2717 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2718 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2719 PyObject * _resultobj;
2720 wxFont * _arg0;
2721 int _arg1;
2722 PyObject * _argo0 = 0;
2723 char *_kwnames[] = { "self","weight", NULL };
2724
2725 self = self;
2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
2727 return NULL;
2728 if (_argo0) {
2729 if (_argo0 == Py_None) { _arg0 = NULL; }
2730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2732 return NULL;
2733 }
2734 }
2735 {
2736 wxPy_BEGIN_ALLOW_THREADS;
2737 wxFont_SetWeight(_arg0,_arg1);
2738
2739 wxPy_END_ALLOW_THREADS;
2740 } Py_INCREF(Py_None);
2741 _resultobj = Py_None;
2742 return _resultobj;
2743 }
2744
2745 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2746 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
2747 PyObject * _resultobj;
2748 wxFont * _arg0;
2749 wxFontEncoding _arg1;
2750 PyObject * _argo0 = 0;
2751 char *_kwnames[] = { "self","encoding", NULL };
2752
2753 self = self;
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
2755 return NULL;
2756 if (_argo0) {
2757 if (_argo0 == Py_None) { _arg0 = NULL; }
2758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
2760 return NULL;
2761 }
2762 }
2763 {
2764 wxPy_BEGIN_ALLOW_THREADS;
2765 wxFont_SetEncoding(_arg0,_arg1);
2766
2767 wxPy_END_ALLOW_THREADS;
2768 } Py_INCREF(Py_None);
2769 _resultobj = Py_None;
2770 return _resultobj;
2771 }
2772
2773 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
2774 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject * _resultobj;
2776 wxString * _result;
2777 wxFont * _arg0;
2778 PyObject * _argo0 = 0;
2779 char *_kwnames[] = { "self", NULL };
2780
2781 self = self;
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
2783 return NULL;
2784 if (_argo0) {
2785 if (_argo0 == Py_None) { _arg0 = NULL; }
2786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
2788 return NULL;
2789 }
2790 }
2791 {
2792 wxPy_BEGIN_ALLOW_THREADS;
2793 _result = new wxString (wxFont_GetFamilyString(_arg0));
2794
2795 wxPy_END_ALLOW_THREADS;
2796 }{
2797 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2798 }
2799 {
2800 delete _result;
2801 }
2802 return _resultobj;
2803 }
2804
2805 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
2806 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject * _resultobj;
2808 wxString * _result;
2809 wxFont * _arg0;
2810 PyObject * _argo0 = 0;
2811 char *_kwnames[] = { "self", NULL };
2812
2813 self = self;
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
2815 return NULL;
2816 if (_argo0) {
2817 if (_argo0 == Py_None) { _arg0 = NULL; }
2818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
2820 return NULL;
2821 }
2822 }
2823 {
2824 wxPy_BEGIN_ALLOW_THREADS;
2825 _result = new wxString (wxFont_GetStyleString(_arg0));
2826
2827 wxPy_END_ALLOW_THREADS;
2828 }{
2829 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2830 }
2831 {
2832 delete _result;
2833 }
2834 return _resultobj;
2835 }
2836
2837 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
2838 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject * _resultobj;
2840 wxString * _result;
2841 wxFont * _arg0;
2842 PyObject * _argo0 = 0;
2843 char *_kwnames[] = { "self", NULL };
2844
2845 self = self;
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
2847 return NULL;
2848 if (_argo0) {
2849 if (_argo0 == Py_None) { _arg0 = NULL; }
2850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
2852 return NULL;
2853 }
2854 }
2855 {
2856 wxPy_BEGIN_ALLOW_THREADS;
2857 _result = new wxString (wxFont_GetWeightString(_arg0));
2858
2859 wxPy_END_ALLOW_THREADS;
2860 }{
2861 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2862 }
2863 {
2864 delete _result;
2865 }
2866 return _resultobj;
2867 }
2868
2869 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
2870 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject * _resultobj;
2872 wxFontList * _arg0;
2873 wxFont * _arg1;
2874 PyObject * _argo0 = 0;
2875 PyObject * _argo1 = 0;
2876 char *_kwnames[] = { "self","font", NULL };
2877
2878 self = self;
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
2880 return NULL;
2881 if (_argo0) {
2882 if (_argo0 == Py_None) { _arg0 = NULL; }
2883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
2885 return NULL;
2886 }
2887 }
2888 if (_argo1) {
2889 if (_argo1 == Py_None) { _arg1 = NULL; }
2890 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2891 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
2892 return NULL;
2893 }
2894 }
2895 {
2896 wxPy_BEGIN_ALLOW_THREADS;
2897 wxFontList_AddFont(_arg0,_arg1);
2898
2899 wxPy_END_ALLOW_THREADS;
2900 } Py_INCREF(Py_None);
2901 _resultobj = Py_None;
2902 return _resultobj;
2903 }
2904
2905 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2906 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 wxFont * _result;
2909 wxFontList * _arg0;
2910 int _arg1;
2911 int _arg2;
2912 int _arg3;
2913 int _arg4;
2914 bool _arg5 = (bool ) FALSE;
2915 char * _arg6 = (char *) NULL;
2916 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
2917 PyObject * _argo0 = 0;
2918 int tempbool5 = (int) FALSE;
2919 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
2920 char _ptemp[128];
2921
2922 self = self;
2923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
2924 return NULL;
2925 if (_argo0) {
2926 if (_argo0 == Py_None) { _arg0 = NULL; }
2927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
2929 return NULL;
2930 }
2931 }
2932 _arg5 = (bool ) tempbool5;
2933 {
2934 wxPy_BEGIN_ALLOW_THREADS;
2935 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
2936
2937 wxPy_END_ALLOW_THREADS;
2938 } if (_result) {
2939 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
2940 _resultobj = Py_BuildValue("s",_ptemp);
2941 } else {
2942 Py_INCREF(Py_None);
2943 _resultobj = Py_None;
2944 }
2945 return _resultobj;
2946 }
2947
2948 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
2949 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2950 PyObject * _resultobj;
2951 wxFontList * _arg0;
2952 wxFont * _arg1;
2953 PyObject * _argo0 = 0;
2954 PyObject * _argo1 = 0;
2955 char *_kwnames[] = { "self","font", NULL };
2956
2957 self = self;
2958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
2959 return NULL;
2960 if (_argo0) {
2961 if (_argo0 == Py_None) { _arg0 = NULL; }
2962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
2963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
2964 return NULL;
2965 }
2966 }
2967 if (_argo1) {
2968 if (_argo1 == Py_None) { _arg1 = NULL; }
2969 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2970 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
2971 return NULL;
2972 }
2973 }
2974 {
2975 wxPy_BEGIN_ALLOW_THREADS;
2976 wxFontList_RemoveFont(_arg0,_arg1);
2977
2978 wxPy_END_ALLOW_THREADS;
2979 } Py_INCREF(Py_None);
2980 _resultobj = Py_None;
2981 return _resultobj;
2982 }
2983
2984 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2985 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2986 PyObject * _resultobj;
2987 wxColour * _result;
2988 unsigned char _arg0 = (unsigned char ) 0;
2989 unsigned char _arg1 = (unsigned char ) 0;
2990 unsigned char _arg2 = (unsigned char ) 0;
2991 char *_kwnames[] = { "red","green","blue", NULL };
2992 char _ptemp[128];
2993
2994 self = self;
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
2996 return NULL;
2997 {
2998 wxPy_BEGIN_ALLOW_THREADS;
2999 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
3000
3001 wxPy_END_ALLOW_THREADS;
3002 } if (_result) {
3003 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3004 _resultobj = Py_BuildValue("s",_ptemp);
3005 } else {
3006 Py_INCREF(Py_None);
3007 _resultobj = Py_None;
3008 }
3009 return _resultobj;
3010 }
3011
3012 #define delete_wxColour(_swigobj) (delete _swigobj)
3013 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject * _resultobj;
3015 wxColour * _arg0;
3016 wxColour temp;
3017 PyObject * _obj0 = 0;
3018 char *_kwnames[] = { "self", NULL };
3019
3020 self = self;
3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
3022 return NULL;
3023 {
3024 _arg0 = &temp;
3025 if (! wxColour_helper(_obj0, &_arg0))
3026 return NULL;
3027 }
3028 {
3029 wxPy_BEGIN_ALLOW_THREADS;
3030 delete_wxColour(_arg0);
3031
3032 wxPy_END_ALLOW_THREADS;
3033 } Py_INCREF(Py_None);
3034 _resultobj = Py_None;
3035 return _resultobj;
3036 }
3037
3038 #define wxColour_Red(_swigobj) (_swigobj->Red())
3039 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject * _resultobj;
3041 unsigned char _result;
3042 wxColour * _arg0;
3043 wxColour temp;
3044 PyObject * _obj0 = 0;
3045 char *_kwnames[] = { "self", NULL };
3046
3047 self = self;
3048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
3049 return NULL;
3050 {
3051 _arg0 = &temp;
3052 if (! wxColour_helper(_obj0, &_arg0))
3053 return NULL;
3054 }
3055 {
3056 wxPy_BEGIN_ALLOW_THREADS;
3057 _result = (unsigned char )wxColour_Red(_arg0);
3058
3059 wxPy_END_ALLOW_THREADS;
3060 } _resultobj = Py_BuildValue("b",_result);
3061 return _resultobj;
3062 }
3063
3064 #define wxColour_Green(_swigobj) (_swigobj->Green())
3065 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
3066 PyObject * _resultobj;
3067 unsigned char _result;
3068 wxColour * _arg0;
3069 wxColour temp;
3070 PyObject * _obj0 = 0;
3071 char *_kwnames[] = { "self", NULL };
3072
3073 self = self;
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
3075 return NULL;
3076 {
3077 _arg0 = &temp;
3078 if (! wxColour_helper(_obj0, &_arg0))
3079 return NULL;
3080 }
3081 {
3082 wxPy_BEGIN_ALLOW_THREADS;
3083 _result = (unsigned char )wxColour_Green(_arg0);
3084
3085 wxPy_END_ALLOW_THREADS;
3086 } _resultobj = Py_BuildValue("b",_result);
3087 return _resultobj;
3088 }
3089
3090 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3091 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject * _resultobj;
3093 unsigned char _result;
3094 wxColour * _arg0;
3095 wxColour temp;
3096 PyObject * _obj0 = 0;
3097 char *_kwnames[] = { "self", NULL };
3098
3099 self = self;
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
3101 return NULL;
3102 {
3103 _arg0 = &temp;
3104 if (! wxColour_helper(_obj0, &_arg0))
3105 return NULL;
3106 }
3107 {
3108 wxPy_BEGIN_ALLOW_THREADS;
3109 _result = (unsigned char )wxColour_Blue(_arg0);
3110
3111 wxPy_END_ALLOW_THREADS;
3112 } _resultobj = Py_BuildValue("b",_result);
3113 return _resultobj;
3114 }
3115
3116 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3117 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3118 PyObject * _resultobj;
3119 bool _result;
3120 wxColour * _arg0;
3121 wxColour temp;
3122 PyObject * _obj0 = 0;
3123 char *_kwnames[] = { "self", NULL };
3124
3125 self = self;
3126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
3127 return NULL;
3128 {
3129 _arg0 = &temp;
3130 if (! wxColour_helper(_obj0, &_arg0))
3131 return NULL;
3132 }
3133 {
3134 wxPy_BEGIN_ALLOW_THREADS;
3135 _result = (bool )wxColour_Ok(_arg0);
3136
3137 wxPy_END_ALLOW_THREADS;
3138 } _resultobj = Py_BuildValue("i",_result);
3139 return _resultobj;
3140 }
3141
3142 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3143 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3144 PyObject * _resultobj;
3145 wxColour * _arg0;
3146 unsigned char _arg1;
3147 unsigned char _arg2;
3148 unsigned char _arg3;
3149 wxColour temp;
3150 PyObject * _obj0 = 0;
3151 char *_kwnames[] = { "self","red","green","blue", NULL };
3152
3153 self = self;
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
3155 return NULL;
3156 {
3157 _arg0 = &temp;
3158 if (! wxColour_helper(_obj0, &_arg0))
3159 return NULL;
3160 }
3161 {
3162 wxPy_BEGIN_ALLOW_THREADS;
3163 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
3164
3165 wxPy_END_ALLOW_THREADS;
3166 } Py_INCREF(Py_None);
3167 _resultobj = Py_None;
3168 return _resultobj;
3169 }
3170
3171 static PyObject * wxColour_Get(wxColour *self) {
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3179 PyObject * _resultobj;
3180 PyObject * _result;
3181 wxColour * _arg0;
3182 wxColour temp;
3183 PyObject * _obj0 = 0;
3184 char *_kwnames[] = { "self", NULL };
3185
3186 self = self;
3187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
3188 return NULL;
3189 {
3190 _arg0 = &temp;
3191 if (! wxColour_helper(_obj0, &_arg0))
3192 return NULL;
3193 }
3194 {
3195 wxPy_BEGIN_ALLOW_THREADS;
3196 _result = (PyObject *)wxColour_Get(_arg0);
3197
3198 wxPy_END_ALLOW_THREADS;
3199 }{
3200 _resultobj = _result;
3201 }
3202 return _resultobj;
3203 }
3204
3205 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3206 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3207 PyObject * _resultobj;
3208 wxColour * _result;
3209 wxColourDatabase * _arg0;
3210 wxString * _arg1;
3211 PyObject * _argo0 = 0;
3212 PyObject * _obj1 = 0;
3213 char *_kwnames[] = { "self","colour", NULL };
3214 char _ptemp[128];
3215
3216 self = self;
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
3218 return NULL;
3219 if (_argo0) {
3220 if (_argo0 == Py_None) { _arg0 = NULL; }
3221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3223 return NULL;
3224 }
3225 }
3226 {
3227 #if PYTHON_API_VERSION >= 1009
3228 char* tmpPtr; int tmpSize;
3229 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3230 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
3231 return NULL;
3232 }
3233 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3234 return NULL;
3235 _arg1 = new wxString(tmpPtr, tmpSize);
3236 #else
3237 if (!PyString_Check(_obj1)) {
3238 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3239 return NULL;
3240 }
3241 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3242 #endif
3243 }
3244 {
3245 wxPy_BEGIN_ALLOW_THREADS;
3246 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
3247
3248 wxPy_END_ALLOW_THREADS;
3249 } if (_result) {
3250 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3251 _resultobj = Py_BuildValue("s",_ptemp);
3252 } else {
3253 Py_INCREF(Py_None);
3254 _resultobj = Py_None;
3255 }
3256 {
3257 if (_obj1)
3258 delete _arg1;
3259 }
3260 return _resultobj;
3261 }
3262
3263 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3264 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
3265 PyObject * _resultobj;
3266 wxString * _result;
3267 wxColourDatabase * _arg0;
3268 wxColour * _arg1;
3269 PyObject * _argo0 = 0;
3270 wxColour temp;
3271 PyObject * _obj1 = 0;
3272 char *_kwnames[] = { "self","colour", NULL };
3273
3274 self = self;
3275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
3276 return NULL;
3277 if (_argo0) {
3278 if (_argo0 == Py_None) { _arg0 = NULL; }
3279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3281 return NULL;
3282 }
3283 }
3284 {
3285 _arg1 = &temp;
3286 if (! wxColour_helper(_obj1, &_arg1))
3287 return NULL;
3288 }
3289 {
3290 wxPy_BEGIN_ALLOW_THREADS;
3291 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
3292
3293 wxPy_END_ALLOW_THREADS;
3294 }{
3295 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3296 }
3297 {
3298 delete _result;
3299 }
3300 return _resultobj;
3301 }
3302
3303 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
3304 self->Append(name.c_str(), new wxColour(red, green, blue));
3305 }
3306 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject * _resultobj;
3308 wxColourDatabase * _arg0;
3309 wxString * _arg1;
3310 int _arg2;
3311 int _arg3;
3312 int _arg4;
3313 PyObject * _argo0 = 0;
3314 PyObject * _obj1 = 0;
3315 char *_kwnames[] = { "self","name","red","green","blue", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3324 return NULL;
3325 }
3326 }
3327 {
3328 #if PYTHON_API_VERSION >= 1009
3329 char* tmpPtr; int tmpSize;
3330 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3331 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
3332 return NULL;
3333 }
3334 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3335 return NULL;
3336 _arg1 = new wxString(tmpPtr, tmpSize);
3337 #else
3338 if (!PyString_Check(_obj1)) {
3339 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3340 return NULL;
3341 }
3342 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3343 #endif
3344 }
3345 {
3346 wxPy_BEGIN_ALLOW_THREADS;
3347 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
3348
3349 wxPy_END_ALLOW_THREADS;
3350 } Py_INCREF(Py_None);
3351 _resultobj = Py_None;
3352 {
3353 if (_obj1)
3354 delete _arg1;
3355 }
3356 return _resultobj;
3357 }
3358
3359 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3360 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject * _resultobj;
3362 wxPen * _result;
3363 wxColour * _arg0;
3364 int _arg1 = (int ) 1;
3365 int _arg2 = (int ) wxSOLID;
3366 wxColour temp;
3367 PyObject * _obj0 = 0;
3368 char *_kwnames[] = { "colour","width","style", NULL };
3369 char _ptemp[128];
3370
3371 self = self;
3372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
3373 return NULL;
3374 {
3375 _arg0 = &temp;
3376 if (! wxColour_helper(_obj0, &_arg0))
3377 return NULL;
3378 }
3379 {
3380 wxPy_BEGIN_ALLOW_THREADS;
3381 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
3382
3383 wxPy_END_ALLOW_THREADS;
3384 } if (_result) {
3385 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3386 _resultobj = Py_BuildValue("s",_ptemp);
3387 } else {
3388 Py_INCREF(Py_None);
3389 _resultobj = Py_None;
3390 }
3391 return _resultobj;
3392 }
3393
3394 #define delete_wxPen(_swigobj) (delete _swigobj)
3395 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3396 PyObject * _resultobj;
3397 wxPen * _arg0;
3398 PyObject * _argo0 = 0;
3399 char *_kwnames[] = { "self", NULL };
3400
3401 self = self;
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
3403 return NULL;
3404 if (_argo0) {
3405 if (_argo0 == Py_None) { _arg0 = NULL; }
3406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3408 return NULL;
3409 }
3410 }
3411 {
3412 wxPy_BEGIN_ALLOW_THREADS;
3413 delete_wxPen(_arg0);
3414
3415 wxPy_END_ALLOW_THREADS;
3416 } Py_INCREF(Py_None);
3417 _resultobj = Py_None;
3418 return _resultobj;
3419 }
3420
3421 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3422 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject * _resultobj;
3424 int _result;
3425 wxPen * _arg0;
3426 PyObject * _argo0 = 0;
3427 char *_kwnames[] = { "self", NULL };
3428
3429 self = self;
3430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
3431 return NULL;
3432 if (_argo0) {
3433 if (_argo0 == Py_None) { _arg0 = NULL; }
3434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3436 return NULL;
3437 }
3438 }
3439 {
3440 wxPy_BEGIN_ALLOW_THREADS;
3441 _result = (int )wxPen_GetCap(_arg0);
3442
3443 wxPy_END_ALLOW_THREADS;
3444 } _resultobj = Py_BuildValue("i",_result);
3445 return _resultobj;
3446 }
3447
3448 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3449 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3450 PyObject * _resultobj;
3451 wxColour * _result;
3452 wxPen * _arg0;
3453 PyObject * _argo0 = 0;
3454 char *_kwnames[] = { "self", NULL };
3455 char _ptemp[128];
3456
3457 self = self;
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
3459 return NULL;
3460 if (_argo0) {
3461 if (_argo0 == Py_None) { _arg0 = NULL; }
3462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3464 return NULL;
3465 }
3466 }
3467 {
3468 wxPy_BEGIN_ALLOW_THREADS;
3469 wxColour & _result_ref = wxPen_GetColour(_arg0);
3470 _result = (wxColour *) &_result_ref;
3471
3472 wxPy_END_ALLOW_THREADS;
3473 } if (_result) {
3474 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3475 _resultobj = Py_BuildValue("s",_ptemp);
3476 } else {
3477 Py_INCREF(Py_None);
3478 _resultobj = Py_None;
3479 }
3480 return _resultobj;
3481 }
3482
3483 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3484 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
3485 PyObject * _resultobj;
3486 int _result;
3487 wxPen * _arg0;
3488 PyObject * _argo0 = 0;
3489 char *_kwnames[] = { "self", NULL };
3490
3491 self = self;
3492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
3493 return NULL;
3494 if (_argo0) {
3495 if (_argo0 == Py_None) { _arg0 = NULL; }
3496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3498 return NULL;
3499 }
3500 }
3501 {
3502 wxPy_BEGIN_ALLOW_THREADS;
3503 _result = (int )wxPen_GetJoin(_arg0);
3504
3505 wxPy_END_ALLOW_THREADS;
3506 } _resultobj = Py_BuildValue("i",_result);
3507 return _resultobj;
3508 }
3509
3510 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3511 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3512 PyObject * _resultobj;
3513 int _result;
3514 wxPen * _arg0;
3515 PyObject * _argo0 = 0;
3516 char *_kwnames[] = { "self", NULL };
3517
3518 self = self;
3519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
3520 return NULL;
3521 if (_argo0) {
3522 if (_argo0 == Py_None) { _arg0 = NULL; }
3523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3525 return NULL;
3526 }
3527 }
3528 {
3529 wxPy_BEGIN_ALLOW_THREADS;
3530 _result = (int )wxPen_GetStyle(_arg0);
3531
3532 wxPy_END_ALLOW_THREADS;
3533 } _resultobj = Py_BuildValue("i",_result);
3534 return _resultobj;
3535 }
3536
3537 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3538 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject * _resultobj;
3540 int _result;
3541 wxPen * _arg0;
3542 PyObject * _argo0 = 0;
3543 char *_kwnames[] = { "self", NULL };
3544
3545 self = self;
3546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
3547 return NULL;
3548 if (_argo0) {
3549 if (_argo0 == Py_None) { _arg0 = NULL; }
3550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3552 return NULL;
3553 }
3554 }
3555 {
3556 wxPy_BEGIN_ALLOW_THREADS;
3557 _result = (int )wxPen_GetWidth(_arg0);
3558
3559 wxPy_END_ALLOW_THREADS;
3560 } _resultobj = Py_BuildValue("i",_result);
3561 return _resultobj;
3562 }
3563
3564 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3565 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3566 PyObject * _resultobj;
3567 bool _result;
3568 wxPen * _arg0;
3569 PyObject * _argo0 = 0;
3570 char *_kwnames[] = { "self", NULL };
3571
3572 self = self;
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
3574 return NULL;
3575 if (_argo0) {
3576 if (_argo0 == Py_None) { _arg0 = NULL; }
3577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3579 return NULL;
3580 }
3581 }
3582 {
3583 wxPy_BEGIN_ALLOW_THREADS;
3584 _result = (bool )wxPen_Ok(_arg0);
3585
3586 wxPy_END_ALLOW_THREADS;
3587 } _resultobj = Py_BuildValue("i",_result);
3588 return _resultobj;
3589 }
3590
3591 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3592 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject * _resultobj;
3594 wxPen * _arg0;
3595 int _arg1;
3596 PyObject * _argo0 = 0;
3597 char *_kwnames[] = { "self","cap_style", NULL };
3598
3599 self = self;
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
3601 return NULL;
3602 if (_argo0) {
3603 if (_argo0 == Py_None) { _arg0 = NULL; }
3604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3606 return NULL;
3607 }
3608 }
3609 {
3610 wxPy_BEGIN_ALLOW_THREADS;
3611 wxPen_SetCap(_arg0,_arg1);
3612
3613 wxPy_END_ALLOW_THREADS;
3614 } Py_INCREF(Py_None);
3615 _resultobj = Py_None;
3616 return _resultobj;
3617 }
3618
3619 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3620 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3621 PyObject * _resultobj;
3622 wxPen * _arg0;
3623 wxColour * _arg1;
3624 PyObject * _argo0 = 0;
3625 wxColour temp;
3626 PyObject * _obj1 = 0;
3627 char *_kwnames[] = { "self","colour", NULL };
3628
3629 self = self;
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
3631 return NULL;
3632 if (_argo0) {
3633 if (_argo0 == Py_None) { _arg0 = NULL; }
3634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3636 return NULL;
3637 }
3638 }
3639 {
3640 _arg1 = &temp;
3641 if (! wxColour_helper(_obj1, &_arg1))
3642 return NULL;
3643 }
3644 {
3645 wxPy_BEGIN_ALLOW_THREADS;
3646 wxPen_SetColour(_arg0,*_arg1);
3647
3648 wxPy_END_ALLOW_THREADS;
3649 } Py_INCREF(Py_None);
3650 _resultobj = Py_None;
3651 return _resultobj;
3652 }
3653
3654 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3655 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
3656 PyObject * _resultobj;
3657 wxPen * _arg0;
3658 int _arg1;
3659 PyObject * _argo0 = 0;
3660 char *_kwnames[] = { "self","join_style", NULL };
3661
3662 self = self;
3663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
3664 return NULL;
3665 if (_argo0) {
3666 if (_argo0 == Py_None) { _arg0 = NULL; }
3667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3669 return NULL;
3670 }
3671 }
3672 {
3673 wxPy_BEGIN_ALLOW_THREADS;
3674 wxPen_SetJoin(_arg0,_arg1);
3675
3676 wxPy_END_ALLOW_THREADS;
3677 } Py_INCREF(Py_None);
3678 _resultobj = Py_None;
3679 return _resultobj;
3680 }
3681
3682 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3683 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject * _resultobj;
3685 wxPen * _arg0;
3686 int _arg1;
3687 PyObject * _argo0 = 0;
3688 char *_kwnames[] = { "self","style", NULL };
3689
3690 self = self;
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
3692 return NULL;
3693 if (_argo0) {
3694 if (_argo0 == Py_None) { _arg0 = NULL; }
3695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3697 return NULL;
3698 }
3699 }
3700 {
3701 wxPy_BEGIN_ALLOW_THREADS;
3702 wxPen_SetStyle(_arg0,_arg1);
3703
3704 wxPy_END_ALLOW_THREADS;
3705 } Py_INCREF(Py_None);
3706 _resultobj = Py_None;
3707 return _resultobj;
3708 }
3709
3710 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3711 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3712 PyObject * _resultobj;
3713 wxPen * _arg0;
3714 int _arg1;
3715 PyObject * _argo0 = 0;
3716 char *_kwnames[] = { "self","width", NULL };
3717
3718 self = self;
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
3720 return NULL;
3721 if (_argo0) {
3722 if (_argo0 == Py_None) { _arg0 = NULL; }
3723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3725 return NULL;
3726 }
3727 }
3728 {
3729 wxPy_BEGIN_ALLOW_THREADS;
3730 wxPen_SetWidth(_arg0,_arg1);
3731
3732 wxPy_END_ALLOW_THREADS;
3733 } Py_INCREF(Py_None);
3734 _resultobj = Py_None;
3735 return _resultobj;
3736 }
3737
3738 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
3739 static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
3740 PyObject * _resultobj;
3741 int _result;
3742 wxPen * _arg0;
3743 wxDash ** _arg1;
3744 PyObject * _argo0 = 0;
3745 PyObject * _argo1 = 0;
3746 char *_kwnames[] = { "self","dashes", NULL };
3747
3748 self = self;
3749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1))
3750 return NULL;
3751 if (_argo0) {
3752 if (_argo0 == Py_None) { _arg0 = NULL; }
3753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3755 return NULL;
3756 }
3757 }
3758 if (_argo1) {
3759 if (_argo1 == Py_None) { _arg1 = NULL; }
3760 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) {
3761 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
3762 return NULL;
3763 }
3764 }
3765 {
3766 wxPy_BEGIN_ALLOW_THREADS;
3767 _result = (int )wxPen_GetDashes(_arg0,_arg1);
3768
3769 wxPy_END_ALLOW_THREADS;
3770 } _resultobj = Py_BuildValue("i",_result);
3771 return _resultobj;
3772 }
3773
3774 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3775 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
3776 PyObject * _resultobj;
3777 wxPen * _arg0;
3778 int _arg1;
3779 wxDash * _arg2;
3780 PyObject * _argo0 = 0;
3781 PyObject * _obj2 = 0;
3782 char *_kwnames[] = { "self","choices", NULL };
3783
3784 self = self;
3785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
3786 return NULL;
3787 if (_argo0) {
3788 if (_argo0 == Py_None) { _arg0 = NULL; }
3789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3791 return NULL;
3792 }
3793 }
3794 if (_obj2)
3795 {
3796 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
3797 if (_arg2 == NULL) {
3798 return NULL;
3799 }
3800 }
3801 {
3802 if (_obj2) {
3803 _arg1 = PyList_Size(_obj2);
3804 }
3805 else {
3806 _arg1 = 0;
3807 }
3808 }
3809 {
3810 wxPy_BEGIN_ALLOW_THREADS;
3811 wxPen_SetDashes(_arg0,_arg1,_arg2);
3812
3813 wxPy_END_ALLOW_THREADS;
3814 } Py_INCREF(Py_None);
3815 _resultobj = Py_None;
3816 {
3817 delete [] _arg2;
3818 }
3819 return _resultobj;
3820 }
3821
3822 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3823 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3824 PyObject * _resultobj;
3825 wxPenList * _arg0;
3826 wxPen * _arg1;
3827 PyObject * _argo0 = 0;
3828 PyObject * _argo1 = 0;
3829 char *_kwnames[] = { "self","pen", NULL };
3830
3831 self = self;
3832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
3833 return NULL;
3834 if (_argo0) {
3835 if (_argo0 == Py_None) { _arg0 = NULL; }
3836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3838 return NULL;
3839 }
3840 }
3841 if (_argo1) {
3842 if (_argo1 == Py_None) { _arg1 = NULL; }
3843 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
3844 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3845 return NULL;
3846 }
3847 }
3848 {
3849 wxPy_BEGIN_ALLOW_THREADS;
3850 wxPenList_AddPen(_arg0,_arg1);
3851
3852 wxPy_END_ALLOW_THREADS;
3853 } Py_INCREF(Py_None);
3854 _resultobj = Py_None;
3855 return _resultobj;
3856 }
3857
3858 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3859 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
3860 PyObject * _resultobj;
3861 wxPen * _result;
3862 wxPenList * _arg0;
3863 wxColour * _arg1;
3864 int _arg2;
3865 int _arg3;
3866 PyObject * _argo0 = 0;
3867 wxColour temp;
3868 PyObject * _obj1 = 0;
3869 char *_kwnames[] = { "self","colour","width","style", NULL };
3870 char _ptemp[128];
3871
3872 self = self;
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
3874 return NULL;
3875 if (_argo0) {
3876 if (_argo0 == Py_None) { _arg0 = NULL; }
3877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3879 return NULL;
3880 }
3881 }
3882 {
3883 _arg1 = &temp;
3884 if (! wxColour_helper(_obj1, &_arg1))
3885 return NULL;
3886 }
3887 {
3888 wxPy_BEGIN_ALLOW_THREADS;
3889 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
3890
3891 wxPy_END_ALLOW_THREADS;
3892 } if (_result) {
3893 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3894 _resultobj = Py_BuildValue("s",_ptemp);
3895 } else {
3896 Py_INCREF(Py_None);
3897 _resultobj = Py_None;
3898 }
3899 return _resultobj;
3900 }
3901
3902 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3903 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject * _resultobj;
3905 wxPenList * _arg0;
3906 wxPen * _arg1;
3907 PyObject * _argo0 = 0;
3908 PyObject * _argo1 = 0;
3909 char *_kwnames[] = { "self","pen", NULL };
3910
3911 self = self;
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
3913 return NULL;
3914 if (_argo0) {
3915 if (_argo0 == Py_None) { _arg0 = NULL; }
3916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3918 return NULL;
3919 }
3920 }
3921 if (_argo1) {
3922 if (_argo1 == Py_None) { _arg1 = NULL; }
3923 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
3924 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3925 return NULL;
3926 }
3927 }
3928 {
3929 wxPy_BEGIN_ALLOW_THREADS;
3930 wxPenList_RemovePen(_arg0,_arg1);
3931
3932 wxPy_END_ALLOW_THREADS;
3933 } Py_INCREF(Py_None);
3934 _resultobj = Py_None;
3935 return _resultobj;
3936 }
3937
3938 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
3939 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject * _resultobj;
3941 wxBrush * _result;
3942 wxColour * _arg0;
3943 int _arg1 = (int ) wxSOLID;
3944 wxColour temp;
3945 PyObject * _obj0 = 0;
3946 char *_kwnames[] = { "colour","style", NULL };
3947 char _ptemp[128];
3948
3949 self = self;
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
3951 return NULL;
3952 {
3953 _arg0 = &temp;
3954 if (! wxColour_helper(_obj0, &_arg0))
3955 return NULL;
3956 }
3957 {
3958 wxPy_BEGIN_ALLOW_THREADS;
3959 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
3960
3961 wxPy_END_ALLOW_THREADS;
3962 } if (_result) {
3963 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
3964 _resultobj = Py_BuildValue("s",_ptemp);
3965 } else {
3966 Py_INCREF(Py_None);
3967 _resultobj = Py_None;
3968 }
3969 return _resultobj;
3970 }
3971
3972 #define delete_wxBrush(_swigobj) (delete _swigobj)
3973 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject * _resultobj;
3975 wxBrush * _arg0;
3976 PyObject * _argo0 = 0;
3977 char *_kwnames[] = { "self", NULL };
3978
3979 self = self;
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
3981 return NULL;
3982 if (_argo0) {
3983 if (_argo0 == Py_None) { _arg0 = NULL; }
3984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
3986 return NULL;
3987 }
3988 }
3989 {
3990 wxPy_BEGIN_ALLOW_THREADS;
3991 delete_wxBrush(_arg0);
3992
3993 wxPy_END_ALLOW_THREADS;
3994 } Py_INCREF(Py_None);
3995 _resultobj = Py_None;
3996 return _resultobj;
3997 }
3998
3999 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4000 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4001 PyObject * _resultobj;
4002 wxColour * _result;
4003 wxBrush * _arg0;
4004 PyObject * _argo0 = 0;
4005 char *_kwnames[] = { "self", NULL };
4006 char _ptemp[128];
4007
4008 self = self;
4009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
4010 return NULL;
4011 if (_argo0) {
4012 if (_argo0 == Py_None) { _arg0 = NULL; }
4013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4015 return NULL;
4016 }
4017 }
4018 {
4019 wxPy_BEGIN_ALLOW_THREADS;
4020 wxColour & _result_ref = wxBrush_GetColour(_arg0);
4021 _result = (wxColour *) &_result_ref;
4022
4023 wxPy_END_ALLOW_THREADS;
4024 } if (_result) {
4025 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4026 _resultobj = Py_BuildValue("s",_ptemp);
4027 } else {
4028 Py_INCREF(Py_None);
4029 _resultobj = Py_None;
4030 }
4031 return _resultobj;
4032 }
4033
4034 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4035 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4036 PyObject * _resultobj;
4037 wxBitmap * _result;
4038 wxBrush * _arg0;
4039 PyObject * _argo0 = 0;
4040 char *_kwnames[] = { "self", NULL };
4041 char _ptemp[128];
4042
4043 self = self;
4044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
4045 return NULL;
4046 if (_argo0) {
4047 if (_argo0 == Py_None) { _arg0 = NULL; }
4048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4050 return NULL;
4051 }
4052 }
4053 {
4054 wxPy_BEGIN_ALLOW_THREADS;
4055 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
4056
4057 wxPy_END_ALLOW_THREADS;
4058 } if (_result) {
4059 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4060 _resultobj = Py_BuildValue("s",_ptemp);
4061 } else {
4062 Py_INCREF(Py_None);
4063 _resultobj = Py_None;
4064 }
4065 return _resultobj;
4066 }
4067
4068 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4069 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4070 PyObject * _resultobj;
4071 int _result;
4072 wxBrush * _arg0;
4073 PyObject * _argo0 = 0;
4074 char *_kwnames[] = { "self", NULL };
4075
4076 self = self;
4077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
4078 return NULL;
4079 if (_argo0) {
4080 if (_argo0 == Py_None) { _arg0 = NULL; }
4081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4083 return NULL;
4084 }
4085 }
4086 {
4087 wxPy_BEGIN_ALLOW_THREADS;
4088 _result = (int )wxBrush_GetStyle(_arg0);
4089
4090 wxPy_END_ALLOW_THREADS;
4091 } _resultobj = Py_BuildValue("i",_result);
4092 return _resultobj;
4093 }
4094
4095 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4096 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject * _resultobj;
4098 bool _result;
4099 wxBrush * _arg0;
4100 PyObject * _argo0 = 0;
4101 char *_kwnames[] = { "self", NULL };
4102
4103 self = self;
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
4105 return NULL;
4106 if (_argo0) {
4107 if (_argo0 == Py_None) { _arg0 = NULL; }
4108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4110 return NULL;
4111 }
4112 }
4113 {
4114 wxPy_BEGIN_ALLOW_THREADS;
4115 _result = (bool )wxBrush_Ok(_arg0);
4116
4117 wxPy_END_ALLOW_THREADS;
4118 } _resultobj = Py_BuildValue("i",_result);
4119 return _resultobj;
4120 }
4121
4122 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4123 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4124 PyObject * _resultobj;
4125 wxBrush * _arg0;
4126 wxColour * _arg1;
4127 PyObject * _argo0 = 0;
4128 wxColour temp;
4129 PyObject * _obj1 = 0;
4130 char *_kwnames[] = { "self","colour", NULL };
4131
4132 self = self;
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
4134 return NULL;
4135 if (_argo0) {
4136 if (_argo0 == Py_None) { _arg0 = NULL; }
4137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4139 return NULL;
4140 }
4141 }
4142 {
4143 _arg1 = &temp;
4144 if (! wxColour_helper(_obj1, &_arg1))
4145 return NULL;
4146 }
4147 {
4148 wxPy_BEGIN_ALLOW_THREADS;
4149 wxBrush_SetColour(_arg0,*_arg1);
4150
4151 wxPy_END_ALLOW_THREADS;
4152 } Py_INCREF(Py_None);
4153 _resultobj = Py_None;
4154 return _resultobj;
4155 }
4156
4157 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4158 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject * _resultobj;
4160 wxBrush * _arg0;
4161 wxBitmap * _arg1;
4162 PyObject * _argo0 = 0;
4163 PyObject * _argo1 = 0;
4164 char *_kwnames[] = { "self","bitmap", NULL };
4165
4166 self = self;
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
4168 return NULL;
4169 if (_argo0) {
4170 if (_argo0 == Py_None) { _arg0 = NULL; }
4171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4173 return NULL;
4174 }
4175 }
4176 if (_argo1) {
4177 if (_argo1 == Py_None) { _arg1 = NULL; }
4178 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
4179 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4180 return NULL;
4181 }
4182 }
4183 {
4184 wxPy_BEGIN_ALLOW_THREADS;
4185 wxBrush_SetStipple(_arg0,*_arg1);
4186
4187 wxPy_END_ALLOW_THREADS;
4188 } Py_INCREF(Py_None);
4189 _resultobj = Py_None;
4190 return _resultobj;
4191 }
4192
4193 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4194 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4195 PyObject * _resultobj;
4196 wxBrush * _arg0;
4197 int _arg1;
4198 PyObject * _argo0 = 0;
4199 char *_kwnames[] = { "self","style", NULL };
4200
4201 self = self;
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
4203 return NULL;
4204 if (_argo0) {
4205 if (_argo0 == Py_None) { _arg0 = NULL; }
4206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4208 return NULL;
4209 }
4210 }
4211 {
4212 wxPy_BEGIN_ALLOW_THREADS;
4213 wxBrush_SetStyle(_arg0,_arg1);
4214
4215 wxPy_END_ALLOW_THREADS;
4216 } Py_INCREF(Py_None);
4217 _resultobj = Py_None;
4218 return _resultobj;
4219 }
4220
4221 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4222 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4223 PyObject * _resultobj;
4224 wxBrushList * _arg0;
4225 wxBrush * _arg1;
4226 PyObject * _argo0 = 0;
4227 PyObject * _argo1 = 0;
4228 char *_kwnames[] = { "self","brush", NULL };
4229
4230 self = self;
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
4232 return NULL;
4233 if (_argo0) {
4234 if (_argo0 == Py_None) { _arg0 = NULL; }
4235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4237 return NULL;
4238 }
4239 }
4240 if (_argo1) {
4241 if (_argo1 == Py_None) { _arg1 = NULL; }
4242 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4243 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4244 return NULL;
4245 }
4246 }
4247 {
4248 wxPy_BEGIN_ALLOW_THREADS;
4249 wxBrushList_AddBrush(_arg0,_arg1);
4250
4251 wxPy_END_ALLOW_THREADS;
4252 } Py_INCREF(Py_None);
4253 _resultobj = Py_None;
4254 return _resultobj;
4255 }
4256
4257 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4258 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4259 PyObject * _resultobj;
4260 wxBrush * _result;
4261 wxBrushList * _arg0;
4262 wxColour * _arg1;
4263 int _arg2;
4264 PyObject * _argo0 = 0;
4265 wxColour temp;
4266 PyObject * _obj1 = 0;
4267 char *_kwnames[] = { "self","colour","style", NULL };
4268 char _ptemp[128];
4269
4270 self = self;
4271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
4272 return NULL;
4273 if (_argo0) {
4274 if (_argo0 == Py_None) { _arg0 = NULL; }
4275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4277 return NULL;
4278 }
4279 }
4280 {
4281 _arg1 = &temp;
4282 if (! wxColour_helper(_obj1, &_arg1))
4283 return NULL;
4284 }
4285 {
4286 wxPy_BEGIN_ALLOW_THREADS;
4287 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
4288
4289 wxPy_END_ALLOW_THREADS;
4290 } if (_result) {
4291 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4292 _resultobj = Py_BuildValue("s",_ptemp);
4293 } else {
4294 Py_INCREF(Py_None);
4295 _resultobj = Py_None;
4296 }
4297 return _resultobj;
4298 }
4299
4300 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4301 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4302 PyObject * _resultobj;
4303 wxBrushList * _arg0;
4304 wxBrush * _arg1;
4305 PyObject * _argo0 = 0;
4306 PyObject * _argo1 = 0;
4307 char *_kwnames[] = { "self","brush", NULL };
4308
4309 self = self;
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
4311 return NULL;
4312 if (_argo0) {
4313 if (_argo0 == Py_None) { _arg0 = NULL; }
4314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4316 return NULL;
4317 }
4318 }
4319 if (_argo1) {
4320 if (_argo1 == Py_None) { _arg1 = NULL; }
4321 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4322 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4323 return NULL;
4324 }
4325 }
4326 {
4327 wxPy_BEGIN_ALLOW_THREADS;
4328 wxBrushList_RemoveBrush(_arg0,_arg1);
4329
4330 wxPy_END_ALLOW_THREADS;
4331 } Py_INCREF(Py_None);
4332 _resultobj = Py_None;
4333 return _resultobj;
4334 }
4335
4336 #define delete_wxDC(_swigobj) (delete _swigobj)
4337 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject * _resultobj;
4339 wxDC * _arg0;
4340 PyObject * _argo0 = 0;
4341 char *_kwnames[] = { "self", NULL };
4342
4343 self = self;
4344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
4345 return NULL;
4346 if (_argo0) {
4347 if (_argo0 == Py_None) { _arg0 = NULL; }
4348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4350 return NULL;
4351 }
4352 }
4353 {
4354 wxPy_BEGIN_ALLOW_THREADS;
4355 delete_wxDC(_arg0);
4356
4357 wxPy_END_ALLOW_THREADS;
4358 } Py_INCREF(Py_None);
4359 _resultobj = Py_None;
4360 return _resultobj;
4361 }
4362
4363 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4364 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
4365 PyObject * _resultobj;
4366 wxDC * _arg0;
4367 PyObject * _argo0 = 0;
4368 char *_kwnames[] = { "self", NULL };
4369
4370 self = self;
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
4372 return NULL;
4373 if (_argo0) {
4374 if (_argo0 == Py_None) { _arg0 = NULL; }
4375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4377 return NULL;
4378 }
4379 }
4380 {
4381 wxPy_BEGIN_ALLOW_THREADS;
4382 wxDC_BeginDrawing(_arg0);
4383
4384 wxPy_END_ALLOW_THREADS;
4385 } Py_INCREF(Py_None);
4386 _resultobj = Py_None;
4387 return _resultobj;
4388 }
4389
4390 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4391 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
4392 PyObject * _resultobj;
4393 bool _result;
4394 wxDC * _arg0;
4395 long _arg1;
4396 long _arg2;
4397 long _arg3;
4398 long _arg4;
4399 wxDC * _arg5;
4400 long _arg6;
4401 long _arg7;
4402 int _arg8 = (int ) wxCOPY;
4403 int _arg9 = (int ) FALSE;
4404 PyObject * _argo0 = 0;
4405 PyObject * _argo5 = 0;
4406 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
4407
4408 self = self;
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
4410 return NULL;
4411 if (_argo0) {
4412 if (_argo0 == Py_None) { _arg0 = NULL; }
4413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4415 return NULL;
4416 }
4417 }
4418 if (_argo5) {
4419 if (_argo5 == Py_None) { _arg5 = NULL; }
4420 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
4421 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4422 return NULL;
4423 }
4424 }
4425 {
4426 wxPy_BEGIN_ALLOW_THREADS;
4427 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
4428
4429 wxPy_END_ALLOW_THREADS;
4430 } _resultobj = Py_BuildValue("i",_result);
4431 return _resultobj;
4432 }
4433
4434 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4435 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject * _resultobj;
4437 wxDC * _arg0;
4438 PyObject * _argo0 = 0;
4439 char *_kwnames[] = { "self", NULL };
4440
4441 self = self;
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
4443 return NULL;
4444 if (_argo0) {
4445 if (_argo0 == Py_None) { _arg0 = NULL; }
4446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4448 return NULL;
4449 }
4450 }
4451 {
4452 wxPy_BEGIN_ALLOW_THREADS;
4453 wxDC_Clear(_arg0);
4454
4455 wxPy_END_ALLOW_THREADS;
4456 } Py_INCREF(Py_None);
4457 _resultobj = Py_None;
4458 return _resultobj;
4459 }
4460
4461 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4462 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
4463 PyObject * _resultobj;
4464 wxDC * _arg0;
4465 long _arg1;
4466 long _arg2;
4467 PyObject * _argo0 = 0;
4468 char *_kwnames[] = { "self","x","y", NULL };
4469
4470 self = self;
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
4472 return NULL;
4473 if (_argo0) {
4474 if (_argo0 == Py_None) { _arg0 = NULL; }
4475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4477 return NULL;
4478 }
4479 }
4480 {
4481 wxPy_BEGIN_ALLOW_THREADS;
4482 wxDC_CrossHair(_arg0,_arg1,_arg2);
4483
4484 wxPy_END_ALLOW_THREADS;
4485 } Py_INCREF(Py_None);
4486 _resultobj = Py_None;
4487 return _resultobj;
4488 }
4489
4490 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4491 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4492 PyObject * _resultobj;
4493 wxDC * _arg0;
4494 PyObject * _argo0 = 0;
4495 char *_kwnames[] = { "self", NULL };
4496
4497 self = self;
4498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
4499 return NULL;
4500 if (_argo0) {
4501 if (_argo0 == Py_None) { _arg0 = NULL; }
4502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4504 return NULL;
4505 }
4506 }
4507 {
4508 wxPy_BEGIN_ALLOW_THREADS;
4509 wxDC_DestroyClippingRegion(_arg0);
4510
4511 wxPy_END_ALLOW_THREADS;
4512 } Py_INCREF(Py_None);
4513 _resultobj = Py_None;
4514 return _resultobj;
4515 }
4516
4517 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4518 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
4519 PyObject * _resultobj;
4520 long _result;
4521 wxDC * _arg0;
4522 long _arg1;
4523 PyObject * _argo0 = 0;
4524 char *_kwnames[] = { "self","x", NULL };
4525
4526 self = self;
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
4528 return NULL;
4529 if (_argo0) {
4530 if (_argo0 == Py_None) { _arg0 = NULL; }
4531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4533 return NULL;
4534 }
4535 }
4536 {
4537 wxPy_BEGIN_ALLOW_THREADS;
4538 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
4539
4540 wxPy_END_ALLOW_THREADS;
4541 } _resultobj = Py_BuildValue("l",_result);
4542 return _resultobj;
4543 }
4544
4545 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4546 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
4547 PyObject * _resultobj;
4548 long _result;
4549 wxDC * _arg0;
4550 long _arg1;
4551 PyObject * _argo0 = 0;
4552 char *_kwnames[] = { "self","x", NULL };
4553
4554 self = self;
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
4556 return NULL;
4557 if (_argo0) {
4558 if (_argo0 == Py_None) { _arg0 = NULL; }
4559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4561 return NULL;
4562 }
4563 }
4564 {
4565 wxPy_BEGIN_ALLOW_THREADS;
4566 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
4567
4568 wxPy_END_ALLOW_THREADS;
4569 } _resultobj = Py_BuildValue("l",_result);
4570 return _resultobj;
4571 }
4572
4573 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4574 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
4575 PyObject * _resultobj;
4576 long _result;
4577 wxDC * _arg0;
4578 long _arg1;
4579 PyObject * _argo0 = 0;
4580 char *_kwnames[] = { "self","y", NULL };
4581
4582 self = self;
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
4584 return NULL;
4585 if (_argo0) {
4586 if (_argo0 == Py_None) { _arg0 = NULL; }
4587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4589 return NULL;
4590 }
4591 }
4592 {
4593 wxPy_BEGIN_ALLOW_THREADS;
4594 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
4595
4596 wxPy_END_ALLOW_THREADS;
4597 } _resultobj = Py_BuildValue("l",_result);
4598 return _resultobj;
4599 }
4600
4601 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4602 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
4603 PyObject * _resultobj;
4604 long _result;
4605 wxDC * _arg0;
4606 long _arg1;
4607 PyObject * _argo0 = 0;
4608 char *_kwnames[] = { "self","y", NULL };
4609
4610 self = self;
4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
4612 return NULL;
4613 if (_argo0) {
4614 if (_argo0 == Py_None) { _arg0 = NULL; }
4615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4617 return NULL;
4618 }
4619 }
4620 {
4621 wxPy_BEGIN_ALLOW_THREADS;
4622 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
4623
4624 wxPy_END_ALLOW_THREADS;
4625 } _resultobj = Py_BuildValue("l",_result);
4626 return _resultobj;
4627 }
4628
4629 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4630 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
4631 PyObject * _resultobj;
4632 wxDC * _arg0;
4633 long _arg1;
4634 long _arg2;
4635 long _arg3;
4636 long _arg4;
4637 long _arg5;
4638 long _arg6;
4639 PyObject * _argo0 = 0;
4640 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
4641
4642 self = self;
4643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4644 return NULL;
4645 if (_argo0) {
4646 if (_argo0 == Py_None) { _arg0 = NULL; }
4647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4649 return NULL;
4650 }
4651 }
4652 {
4653 wxPy_BEGIN_ALLOW_THREADS;
4654 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4655
4656 wxPy_END_ALLOW_THREADS;
4657 } Py_INCREF(Py_None);
4658 _resultobj = Py_None;
4659 return _resultobj;
4660 }
4661
4662 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4663 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
4664 PyObject * _resultobj;
4665 wxDC * _arg0;
4666 long _arg1;
4667 long _arg2;
4668 long _arg3;
4669 PyObject * _argo0 = 0;
4670 char *_kwnames[] = { "self","x","y","radius", NULL };
4671
4672 self = self;
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
4674 return NULL;
4675 if (_argo0) {
4676 if (_argo0 == Py_None) { _arg0 = NULL; }
4677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4679 return NULL;
4680 }
4681 }
4682 {
4683 wxPy_BEGIN_ALLOW_THREADS;
4684 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
4685
4686 wxPy_END_ALLOW_THREADS;
4687 } Py_INCREF(Py_None);
4688 _resultobj = Py_None;
4689 return _resultobj;
4690 }
4691
4692 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4693 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject * _resultobj;
4695 wxDC * _arg0;
4696 long _arg1;
4697 long _arg2;
4698 long _arg3;
4699 long _arg4;
4700 PyObject * _argo0 = 0;
4701 char *_kwnames[] = { "self","x","y","width","height", NULL };
4702
4703 self = self;
4704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
4705 return NULL;
4706 if (_argo0) {
4707 if (_argo0 == Py_None) { _arg0 = NULL; }
4708 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4709 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4710 return NULL;
4711 }
4712 }
4713 {
4714 wxPy_BEGIN_ALLOW_THREADS;
4715 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
4716
4717 wxPy_END_ALLOW_THREADS;
4718 } Py_INCREF(Py_None);
4719 _resultobj = Py_None;
4720 return _resultobj;
4721 }
4722
4723 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4724 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
4725 PyObject * _resultobj;
4726 wxDC * _arg0;
4727 long _arg1;
4728 long _arg2;
4729 long _arg3;
4730 long _arg4;
4731 long _arg5;
4732 long _arg6;
4733 PyObject * _argo0 = 0;
4734 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
4735
4736 self = self;
4737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4738 return NULL;
4739 if (_argo0) {
4740 if (_argo0 == Py_None) { _arg0 = NULL; }
4741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4743 return NULL;
4744 }
4745 }
4746 {
4747 wxPy_BEGIN_ALLOW_THREADS;
4748 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4749
4750 wxPy_END_ALLOW_THREADS;
4751 } Py_INCREF(Py_None);
4752 _resultobj = Py_None;
4753 return _resultobj;
4754 }
4755
4756 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4757 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4758 PyObject * _resultobj;
4759 wxDC * _arg0;
4760 wxIcon * _arg1;
4761 long _arg2;
4762 long _arg3;
4763 PyObject * _argo0 = 0;
4764 PyObject * _argo1 = 0;
4765 char *_kwnames[] = { "self","icon","x","y", NULL };
4766
4767 self = self;
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
4769 return NULL;
4770 if (_argo0) {
4771 if (_argo0 == Py_None) { _arg0 = NULL; }
4772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4774 return NULL;
4775 }
4776 }
4777 if (_argo1) {
4778 if (_argo1 == Py_None) { _arg1 = NULL; }
4779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
4780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4781 return NULL;
4782 }
4783 }
4784 {
4785 wxPy_BEGIN_ALLOW_THREADS;
4786 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
4787
4788 wxPy_END_ALLOW_THREADS;
4789 } Py_INCREF(Py_None);
4790 _resultobj = Py_None;
4791 return _resultobj;
4792 }
4793
4794 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4795 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4796 PyObject * _resultobj;
4797 wxDC * _arg0;
4798 long _arg1;
4799 long _arg2;
4800 long _arg3;
4801 long _arg4;
4802 PyObject * _argo0 = 0;
4803 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
4804
4805 self = self;
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
4807 return NULL;
4808 if (_argo0) {
4809 if (_argo0 == Py_None) { _arg0 = NULL; }
4810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
4812 return NULL;
4813 }
4814 }
4815 {
4816 wxPy_BEGIN_ALLOW_THREADS;
4817 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
4818
4819 wxPy_END_ALLOW_THREADS;
4820 } Py_INCREF(Py_None);
4821 _resultobj = Py_None;
4822 return _resultobj;
4823 }
4824
4825 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4826 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject * _resultobj;
4828 wxDC * _arg0;
4829 int _arg1;
4830 wxPoint * _arg2;
4831 long _arg3 = (long ) 0;
4832 long _arg4 = (long ) 0;
4833 PyObject * _argo0 = 0;
4834 int NPOINTS;
4835 PyObject * _obj2 = 0;
4836 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
4837
4838 self = self;
4839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
4840 return NULL;
4841 if (_argo0) {
4842 if (_argo0 == Py_None) { _arg0 = NULL; }
4843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
4845 return NULL;
4846 }
4847 }
4848 if (_obj2)
4849 {
4850 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
4851 if (_arg2 == NULL) {
4852 return NULL;
4853 }
4854 }
4855 {
4856 _arg1 = NPOINTS;
4857 }
4858 {
4859 wxPy_BEGIN_ALLOW_THREADS;
4860 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
4861
4862 wxPy_END_ALLOW_THREADS;
4863 } Py_INCREF(Py_None);
4864 _resultobj = Py_None;
4865 {
4866 delete [] _arg2;
4867 }
4868 return _resultobj;
4869 }
4870
4871 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4872 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
4873 PyObject * _resultobj;
4874 wxDC * _arg0;
4875 int _arg1;
4876 wxPoint * _arg2;
4877 long _arg3 = (long ) 0;
4878 long _arg4 = (long ) 0;
4879 int _arg5 = (int ) wxODDEVEN_RULE;
4880 PyObject * _argo0 = 0;
4881 int NPOINTS;
4882 PyObject * _obj2 = 0;
4883 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
4884
4885 self = self;
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
4887 return NULL;
4888 if (_argo0) {
4889 if (_argo0 == Py_None) { _arg0 = NULL; }
4890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
4892 return NULL;
4893 }
4894 }
4895 if (_obj2)
4896 {
4897 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
4898 if (_arg2 == NULL) {
4899 return NULL;
4900 }
4901 }
4902 {
4903 _arg1 = NPOINTS;
4904 }
4905 {
4906 wxPy_BEGIN_ALLOW_THREADS;
4907 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4908
4909 wxPy_END_ALLOW_THREADS;
4910 } Py_INCREF(Py_None);
4911 _resultobj = Py_None;
4912 {
4913 delete [] _arg2;
4914 }
4915 return _resultobj;
4916 }
4917
4918 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
4919 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4920 PyObject * _resultobj;
4921 wxDC * _arg0;
4922 long _arg1;
4923 long _arg2;
4924 PyObject * _argo0 = 0;
4925 char *_kwnames[] = { "self","x","y", NULL };
4926
4927 self = self;
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
4929 return NULL;
4930 if (_argo0) {
4931 if (_argo0 == Py_None) { _arg0 = NULL; }
4932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
4934 return NULL;
4935 }
4936 }
4937 {
4938 wxPy_BEGIN_ALLOW_THREADS;
4939 wxDC_DrawPoint(_arg0,_arg1,_arg2);
4940
4941 wxPy_END_ALLOW_THREADS;
4942 } Py_INCREF(Py_None);
4943 _resultobj = Py_None;
4944 return _resultobj;
4945 }
4946
4947 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4948 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject * _resultobj;
4950 wxDC * _arg0;
4951 long _arg1;
4952 long _arg2;
4953 long _arg3;
4954 long _arg4;
4955 PyObject * _argo0 = 0;
4956 char *_kwnames[] = { "self","x","y","width","height", NULL };
4957
4958 self = self;
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
4960 return NULL;
4961 if (_argo0) {
4962 if (_argo0 == Py_None) { _arg0 = NULL; }
4963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
4965 return NULL;
4966 }
4967 }
4968 {
4969 wxPy_BEGIN_ALLOW_THREADS;
4970 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
4971
4972 wxPy_END_ALLOW_THREADS;
4973 } Py_INCREF(Py_None);
4974 _resultobj = Py_None;
4975 return _resultobj;
4976 }
4977
4978 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4979 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
4980 PyObject * _resultobj;
4981 wxDC * _arg0;
4982 wxString * _arg1;
4983 wxCoord _arg2;
4984 wxCoord _arg3;
4985 double _arg4;
4986 PyObject * _argo0 = 0;
4987 PyObject * _obj1 = 0;
4988 char *_kwnames[] = { "self","text","x","y","angle", NULL };
4989
4990 self = self;
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
4992 return NULL;
4993 if (_argo0) {
4994 if (_argo0 == Py_None) { _arg0 = NULL; }
4995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
4997 return NULL;
4998 }
4999 }
5000 {
5001 #if PYTHON_API_VERSION >= 1009
5002 char* tmpPtr; int tmpSize;
5003 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5004 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5005 return NULL;
5006 }
5007 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5008 return NULL;
5009 _arg1 = new wxString(tmpPtr, tmpSize);
5010 #else
5011 if (!PyString_Check(_obj1)) {
5012 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5013 return NULL;
5014 }
5015 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5016 #endif
5017 }
5018 {
5019 wxPy_BEGIN_ALLOW_THREADS;
5020 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
5021
5022 wxPy_END_ALLOW_THREADS;
5023 } Py_INCREF(Py_None);
5024 _resultobj = Py_None;
5025 {
5026 if (_obj1)
5027 delete _arg1;
5028 }
5029 return _resultobj;
5030 }
5031
5032 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5033 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
5034 PyObject * _resultobj;
5035 wxDC * _arg0;
5036 long _arg1;
5037 long _arg2;
5038 long _arg3;
5039 long _arg4;
5040 long _arg5 = (long ) 20;
5041 PyObject * _argo0 = 0;
5042 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
5043
5044 self = self;
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
5046 return NULL;
5047 if (_argo0) {
5048 if (_argo0 == Py_None) { _arg0 = NULL; }
5049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5051 return NULL;
5052 }
5053 }
5054 {
5055 wxPy_BEGIN_ALLOW_THREADS;
5056 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
5057
5058 wxPy_END_ALLOW_THREADS;
5059 } Py_INCREF(Py_None);
5060 _resultobj = Py_None;
5061 return _resultobj;
5062 }
5063
5064 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5065 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject * _resultobj;
5067 wxDC * _arg0;
5068 int _arg1;
5069 wxPoint * _arg2;
5070 PyObject * _argo0 = 0;
5071 int NPOINTS;
5072 PyObject * _obj2 = 0;
5073 char *_kwnames[] = { "self","points", NULL };
5074
5075 self = self;
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
5077 return NULL;
5078 if (_argo0) {
5079 if (_argo0 == Py_None) { _arg0 = NULL; }
5080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5082 return NULL;
5083 }
5084 }
5085 if (_obj2)
5086 {
5087 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5088 if (_arg2 == NULL) {
5089 return NULL;
5090 }
5091 }
5092 {
5093 _arg1 = NPOINTS;
5094 }
5095 {
5096 wxPy_BEGIN_ALLOW_THREADS;
5097 wxDC_DrawSpline(_arg0,_arg1,_arg2);
5098
5099 wxPy_END_ALLOW_THREADS;
5100 } Py_INCREF(Py_None);
5101 _resultobj = Py_None;
5102 {
5103 delete [] _arg2;
5104 }
5105 return _resultobj;
5106 }
5107
5108 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5109 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject * _resultobj;
5111 wxDC * _arg0;
5112 wxString * _arg1;
5113 long _arg2;
5114 long _arg3;
5115 PyObject * _argo0 = 0;
5116 PyObject * _obj1 = 0;
5117 char *_kwnames[] = { "self","text","x","y", NULL };
5118
5119 self = self;
5120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5121 return NULL;
5122 if (_argo0) {
5123 if (_argo0 == Py_None) { _arg0 = NULL; }
5124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5126 return NULL;
5127 }
5128 }
5129 {
5130 #if PYTHON_API_VERSION >= 1009
5131 char* tmpPtr; int tmpSize;
5132 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5133 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5134 return NULL;
5135 }
5136 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5137 return NULL;
5138 _arg1 = new wxString(tmpPtr, tmpSize);
5139 #else
5140 if (!PyString_Check(_obj1)) {
5141 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5142 return NULL;
5143 }
5144 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5145 #endif
5146 }
5147 {
5148 wxPy_BEGIN_ALLOW_THREADS;
5149 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
5150
5151 wxPy_END_ALLOW_THREADS;
5152 } Py_INCREF(Py_None);
5153 _resultobj = Py_None;
5154 {
5155 if (_obj1)
5156 delete _arg1;
5157 }
5158 return _resultobj;
5159 }
5160
5161 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5162 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
5163 PyObject * _resultobj;
5164 wxDC * _arg0;
5165 PyObject * _argo0 = 0;
5166 char *_kwnames[] = { "self", NULL };
5167
5168 self = self;
5169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
5170 return NULL;
5171 if (_argo0) {
5172 if (_argo0 == Py_None) { _arg0 = NULL; }
5173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5175 return NULL;
5176 }
5177 }
5178 {
5179 wxPy_BEGIN_ALLOW_THREADS;
5180 wxDC_EndDoc(_arg0);
5181
5182 wxPy_END_ALLOW_THREADS;
5183 } Py_INCREF(Py_None);
5184 _resultobj = Py_None;
5185 return _resultobj;
5186 }
5187
5188 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5189 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
5190 PyObject * _resultobj;
5191 wxDC * _arg0;
5192 PyObject * _argo0 = 0;
5193 char *_kwnames[] = { "self", NULL };
5194
5195 self = self;
5196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
5197 return NULL;
5198 if (_argo0) {
5199 if (_argo0 == Py_None) { _arg0 = NULL; }
5200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5202 return NULL;
5203 }
5204 }
5205 {
5206 wxPy_BEGIN_ALLOW_THREADS;
5207 wxDC_EndDrawing(_arg0);
5208
5209 wxPy_END_ALLOW_THREADS;
5210 } Py_INCREF(Py_None);
5211 _resultobj = Py_None;
5212 return _resultobj;
5213 }
5214
5215 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5216 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject * _resultobj;
5218 wxDC * _arg0;
5219 PyObject * _argo0 = 0;
5220 char *_kwnames[] = { "self", NULL };
5221
5222 self = self;
5223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
5224 return NULL;
5225 if (_argo0) {
5226 if (_argo0 == Py_None) { _arg0 = NULL; }
5227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5229 return NULL;
5230 }
5231 }
5232 {
5233 wxPy_BEGIN_ALLOW_THREADS;
5234 wxDC_EndPage(_arg0);
5235
5236 wxPy_END_ALLOW_THREADS;
5237 } Py_INCREF(Py_None);
5238 _resultobj = Py_None;
5239 return _resultobj;
5240 }
5241
5242 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5243 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
5244 PyObject * _resultobj;
5245 wxDC * _arg0;
5246 long _arg1;
5247 long _arg2;
5248 wxColour * _arg3;
5249 int _arg4 = (int ) wxFLOOD_SURFACE;
5250 PyObject * _argo0 = 0;
5251 wxColour temp;
5252 PyObject * _obj3 = 0;
5253 char *_kwnames[] = { "self","x","y","colour","style", NULL };
5254
5255 self = self;
5256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
5257 return NULL;
5258 if (_argo0) {
5259 if (_argo0 == Py_None) { _arg0 = NULL; }
5260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5262 return NULL;
5263 }
5264 }
5265 {
5266 _arg3 = &temp;
5267 if (! wxColour_helper(_obj3, &_arg3))
5268 return NULL;
5269 }
5270 {
5271 wxPy_BEGIN_ALLOW_THREADS;
5272 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
5273
5274 wxPy_END_ALLOW_THREADS;
5275 } Py_INCREF(Py_None);
5276 _resultobj = Py_None;
5277 return _resultobj;
5278 }
5279
5280 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5281 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject * _resultobj;
5283 wxBrush * _result;
5284 wxDC * _arg0;
5285 PyObject * _argo0 = 0;
5286 char *_kwnames[] = { "self", NULL };
5287 char _ptemp[128];
5288
5289 self = self;
5290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
5291 return NULL;
5292 if (_argo0) {
5293 if (_argo0 == Py_None) { _arg0 = NULL; }
5294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5296 return NULL;
5297 }
5298 }
5299 {
5300 wxPy_BEGIN_ALLOW_THREADS;
5301 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
5302 _result = (wxBrush *) &_result_ref;
5303
5304 wxPy_END_ALLOW_THREADS;
5305 } if (_result) {
5306 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5307 _resultobj = Py_BuildValue("s",_ptemp);
5308 } else {
5309 Py_INCREF(Py_None);
5310 _resultobj = Py_None;
5311 }
5312 return _resultobj;
5313 }
5314
5315 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5316 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5317 PyObject * _resultobj;
5318 wxBrush * _result;
5319 wxDC * _arg0;
5320 PyObject * _argo0 = 0;
5321 char *_kwnames[] = { "self", NULL };
5322 char _ptemp[128];
5323
5324 self = self;
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
5326 return NULL;
5327 if (_argo0) {
5328 if (_argo0 == Py_None) { _arg0 = NULL; }
5329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5331 return NULL;
5332 }
5333 }
5334 {
5335 wxPy_BEGIN_ALLOW_THREADS;
5336 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
5337 _result = (wxBrush *) &_result_ref;
5338
5339 wxPy_END_ALLOW_THREADS;
5340 } if (_result) {
5341 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5342 _resultobj = Py_BuildValue("s",_ptemp);
5343 } else {
5344 Py_INCREF(Py_None);
5345 _resultobj = Py_None;
5346 }
5347 return _resultobj;
5348 }
5349
5350 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5351 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5352 PyObject * _resultobj;
5353 long _result;
5354 wxDC * _arg0;
5355 PyObject * _argo0 = 0;
5356 char *_kwnames[] = { "self", NULL };
5357
5358 self = self;
5359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
5360 return NULL;
5361 if (_argo0) {
5362 if (_argo0 == Py_None) { _arg0 = NULL; }
5363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5365 return NULL;
5366 }
5367 }
5368 {
5369 wxPy_BEGIN_ALLOW_THREADS;
5370 _result = (long )wxDC_GetCharHeight(_arg0);
5371
5372 wxPy_END_ALLOW_THREADS;
5373 } _resultobj = Py_BuildValue("l",_result);
5374 return _resultobj;
5375 }
5376
5377 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5378 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject * _resultobj;
5380 long _result;
5381 wxDC * _arg0;
5382 PyObject * _argo0 = 0;
5383 char *_kwnames[] = { "self", NULL };
5384
5385 self = self;
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
5387 return NULL;
5388 if (_argo0) {
5389 if (_argo0 == Py_None) { _arg0 = NULL; }
5390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5392 return NULL;
5393 }
5394 }
5395 {
5396 wxPy_BEGIN_ALLOW_THREADS;
5397 _result = (long )wxDC_GetCharWidth(_arg0);
5398
5399 wxPy_END_ALLOW_THREADS;
5400 } _resultobj = Py_BuildValue("l",_result);
5401 return _resultobj;
5402 }
5403
5404 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5405 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject * _resultobj;
5407 wxDC * _arg0;
5408 long * _arg1;
5409 long temp;
5410 long * _arg2;
5411 long temp0;
5412 long * _arg3;
5413 long temp1;
5414 long * _arg4;
5415 long temp2;
5416 PyObject * _argo0 = 0;
5417 char *_kwnames[] = { "self", NULL };
5418
5419 self = self;
5420 {
5421 _arg1 = &temp;
5422 }
5423 {
5424 _arg2 = &temp0;
5425 }
5426 {
5427 _arg3 = &temp1;
5428 }
5429 {
5430 _arg4 = &temp2;
5431 }
5432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
5433 return NULL;
5434 if (_argo0) {
5435 if (_argo0 == Py_None) { _arg0 = NULL; }
5436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5438 return NULL;
5439 }
5440 }
5441 {
5442 wxPy_BEGIN_ALLOW_THREADS;
5443 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
5444
5445 wxPy_END_ALLOW_THREADS;
5446 } Py_INCREF(Py_None);
5447 _resultobj = Py_None;
5448 {
5449 PyObject *o;
5450 o = PyInt_FromLong((long) (*_arg1));
5451 _resultobj = t_output_helper(_resultobj, o);
5452 }
5453 {
5454 PyObject *o;
5455 o = PyInt_FromLong((long) (*_arg2));
5456 _resultobj = t_output_helper(_resultobj, o);
5457 }
5458 {
5459 PyObject *o;
5460 o = PyInt_FromLong((long) (*_arg3));
5461 _resultobj = t_output_helper(_resultobj, o);
5462 }
5463 {
5464 PyObject *o;
5465 o = PyInt_FromLong((long) (*_arg4));
5466 _resultobj = t_output_helper(_resultobj, o);
5467 }
5468 return _resultobj;
5469 }
5470
5471 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5472 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5473 PyObject * _resultobj;
5474 wxFont * _result;
5475 wxDC * _arg0;
5476 PyObject * _argo0 = 0;
5477 char *_kwnames[] = { "self", NULL };
5478 char _ptemp[128];
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
5482 return NULL;
5483 if (_argo0) {
5484 if (_argo0 == Py_None) { _arg0 = NULL; }
5485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5487 return NULL;
5488 }
5489 }
5490 {
5491 wxPy_BEGIN_ALLOW_THREADS;
5492 wxFont & _result_ref = wxDC_GetFont(_arg0);
5493 _result = (wxFont *) &_result_ref;
5494
5495 wxPy_END_ALLOW_THREADS;
5496 } if (_result) {
5497 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_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 wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5507 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
5508 PyObject * _resultobj;
5509 int _result;
5510 wxDC * _arg0;
5511 PyObject * _argo0 = 0;
5512 char *_kwnames[] = { "self", NULL };
5513
5514 self = self;
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
5516 return NULL;
5517 if (_argo0) {
5518 if (_argo0 == Py_None) { _arg0 = NULL; }
5519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5521 return NULL;
5522 }
5523 }
5524 {
5525 wxPy_BEGIN_ALLOW_THREADS;
5526 _result = (int )wxDC_GetLogicalFunction(_arg0);
5527
5528 wxPy_END_ALLOW_THREADS;
5529 } _resultobj = Py_BuildValue("i",_result);
5530 return _resultobj;
5531 }
5532
5533 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5534 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject * _resultobj;
5536 wxDC * _arg0;
5537 double * _arg1;
5538 double temp;
5539 double * _arg2;
5540 double temp0;
5541 PyObject * _argo0 = 0;
5542 char *_kwnames[] = { "self", NULL };
5543
5544 self = self;
5545 {
5546 _arg1 = &temp;
5547 }
5548 {
5549 _arg2 = &temp0;
5550 }
5551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
5552 return NULL;
5553 if (_argo0) {
5554 if (_argo0 == Py_None) { _arg0 = NULL; }
5555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5557 return NULL;
5558 }
5559 }
5560 {
5561 wxPy_BEGIN_ALLOW_THREADS;
5562 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
5563
5564 wxPy_END_ALLOW_THREADS;
5565 } Py_INCREF(Py_None);
5566 _resultobj = Py_None;
5567 {
5568 PyObject *o;
5569 o = PyFloat_FromDouble((double) (*_arg1));
5570 _resultobj = t_output_helper(_resultobj, o);
5571 }
5572 {
5573 PyObject *o;
5574 o = PyFloat_FromDouble((double) (*_arg2));
5575 _resultobj = t_output_helper(_resultobj, o);
5576 }
5577 return _resultobj;
5578 }
5579
5580 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5581 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
5582 PyObject * _resultobj;
5583 int _result;
5584 wxDC * _arg0;
5585 PyObject * _argo0 = 0;
5586 char *_kwnames[] = { "self", NULL };
5587
5588 self = self;
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
5590 return NULL;
5591 if (_argo0) {
5592 if (_argo0 == Py_None) { _arg0 = NULL; }
5593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5595 return NULL;
5596 }
5597 }
5598 {
5599 wxPy_BEGIN_ALLOW_THREADS;
5600 _result = (int )wxDC_GetMapMode(_arg0);
5601
5602 wxPy_END_ALLOW_THREADS;
5603 } _resultobj = Py_BuildValue("i",_result);
5604 return _resultobj;
5605 }
5606
5607 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5608 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
5609 PyObject * _resultobj;
5610 bool _result;
5611 wxDC * _arg0;
5612 PyObject * _argo0 = 0;
5613 char *_kwnames[] = { "self", NULL };
5614
5615 self = self;
5616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
5617 return NULL;
5618 if (_argo0) {
5619 if (_argo0 == Py_None) { _arg0 = NULL; }
5620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5622 return NULL;
5623 }
5624 }
5625 {
5626 wxPy_BEGIN_ALLOW_THREADS;
5627 _result = (bool )wxDC_GetOptimization(_arg0);
5628
5629 wxPy_END_ALLOW_THREADS;
5630 } _resultobj = Py_BuildValue("i",_result);
5631 return _resultobj;
5632 }
5633
5634 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5635 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5636 PyObject * _resultobj;
5637 wxPen * _result;
5638 wxDC * _arg0;
5639 PyObject * _argo0 = 0;
5640 char *_kwnames[] = { "self", NULL };
5641 char _ptemp[128];
5642
5643 self = self;
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
5645 return NULL;
5646 if (_argo0) {
5647 if (_argo0 == Py_None) { _arg0 = NULL; }
5648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5650 return NULL;
5651 }
5652 }
5653 {
5654 wxPy_BEGIN_ALLOW_THREADS;
5655 wxPen & _result_ref = wxDC_GetPen(_arg0);
5656 _result = (wxPen *) &_result_ref;
5657
5658 wxPy_END_ALLOW_THREADS;
5659 } if (_result) {
5660 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5661 _resultobj = Py_BuildValue("s",_ptemp);
5662 } else {
5663 Py_INCREF(Py_None);
5664 _resultobj = Py_None;
5665 }
5666 return _resultobj;
5667 }
5668
5669 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
5670 wxColour* wc = new wxColour();
5671 self->GetPixel(x, y, wc);
5672 return wc;
5673 }
5674 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
5675 PyObject * _resultobj;
5676 wxColour * _result;
5677 wxDC * _arg0;
5678 long _arg1;
5679 long _arg2;
5680 PyObject * _argo0 = 0;
5681 char *_kwnames[] = { "self","x","y", NULL };
5682 char _ptemp[128];
5683
5684 self = self;
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
5686 return NULL;
5687 if (_argo0) {
5688 if (_argo0 == Py_None) { _arg0 = NULL; }
5689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5691 return NULL;
5692 }
5693 }
5694 {
5695 wxPy_BEGIN_ALLOW_THREADS;
5696 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
5697
5698 wxPy_END_ALLOW_THREADS;
5699 } if (_result) {
5700 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5701 _resultobj = Py_BuildValue("s",_ptemp);
5702 } else {
5703 Py_INCREF(Py_None);
5704 _resultobj = Py_None;
5705 }
5706 return _resultobj;
5707 }
5708
5709 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5710 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
5711 PyObject * _resultobj;
5712 wxDC * _arg0;
5713 int * _arg1;
5714 int temp;
5715 int * _arg2;
5716 int temp0;
5717 PyObject * _argo0 = 0;
5718 char *_kwnames[] = { "self", NULL };
5719
5720 self = self;
5721 {
5722 _arg1 = &temp;
5723 }
5724 {
5725 _arg2 = &temp0;
5726 }
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
5728 return NULL;
5729 if (_argo0) {
5730 if (_argo0 == Py_None) { _arg0 = NULL; }
5731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
5733 return NULL;
5734 }
5735 }
5736 {
5737 wxPy_BEGIN_ALLOW_THREADS;
5738 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
5739
5740 wxPy_END_ALLOW_THREADS;
5741 } Py_INCREF(Py_None);
5742 _resultobj = Py_None;
5743 {
5744 PyObject *o;
5745 o = PyInt_FromLong((long) (*_arg1));
5746 _resultobj = t_output_helper(_resultobj, o);
5747 }
5748 {
5749 PyObject *o;
5750 o = PyInt_FromLong((long) (*_arg2));
5751 _resultobj = t_output_helper(_resultobj, o);
5752 }
5753 return _resultobj;
5754 }
5755
5756 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5757 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5758 PyObject * _resultobj;
5759 wxSize * _result;
5760 wxDC * _arg0;
5761 PyObject * _argo0 = 0;
5762 char *_kwnames[] = { "self", NULL };
5763 char _ptemp[128];
5764
5765 self = self;
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
5767 return NULL;
5768 if (_argo0) {
5769 if (_argo0 == Py_None) { _arg0 = NULL; }
5770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5772 return NULL;
5773 }
5774 }
5775 {
5776 wxPy_BEGIN_ALLOW_THREADS;
5777 _result = new wxSize (wxDC_GetSize(_arg0));
5778
5779 wxPy_END_ALLOW_THREADS;
5780 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5781 _resultobj = Py_BuildValue("s",_ptemp);
5782 return _resultobj;
5783 }
5784
5785 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
5786 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
5787 PyObject * _resultobj;
5788 wxSize * _result;
5789 wxDC * _arg0;
5790 PyObject * _argo0 = 0;
5791 char *_kwnames[] = { "self", NULL };
5792 char _ptemp[128];
5793
5794 self = self;
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
5796 return NULL;
5797 if (_argo0) {
5798 if (_argo0 == Py_None) { _arg0 = NULL; }
5799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
5801 return NULL;
5802 }
5803 }
5804 {
5805 wxPy_BEGIN_ALLOW_THREADS;
5806 _result = new wxSize (wxDC_GetSizeMM(_arg0));
5807
5808 wxPy_END_ALLOW_THREADS;
5809 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5810 _resultobj = Py_BuildValue("s",_ptemp);
5811 return _resultobj;
5812 }
5813
5814 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
5815 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject * _resultobj;
5817 wxColour * _result;
5818 wxDC * _arg0;
5819 PyObject * _argo0 = 0;
5820 char *_kwnames[] = { "self", NULL };
5821 char _ptemp[128];
5822
5823 self = self;
5824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
5825 return NULL;
5826 if (_argo0) {
5827 if (_argo0 == Py_None) { _arg0 = NULL; }
5828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
5830 return NULL;
5831 }
5832 }
5833 {
5834 wxPy_BEGIN_ALLOW_THREADS;
5835 wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
5836 _result = (wxColour *) &_result_ref;
5837
5838 wxPy_END_ALLOW_THREADS;
5839 } if (_result) {
5840 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5841 _resultobj = Py_BuildValue("s",_ptemp);
5842 } else {
5843 Py_INCREF(Py_None);
5844 _resultobj = Py_None;
5845 }
5846 return _resultobj;
5847 }
5848
5849 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
5850 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
5851 PyObject * _resultobj;
5852 wxDC * _arg0;
5853 wxString * _arg1;
5854 long * _arg2;
5855 long temp;
5856 long * _arg3;
5857 long temp0;
5858 PyObject * _argo0 = 0;
5859 PyObject * _obj1 = 0;
5860 char *_kwnames[] = { "self","string", NULL };
5861
5862 self = self;
5863 {
5864 _arg2 = &temp;
5865 }
5866 {
5867 _arg3 = &temp0;
5868 }
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
5870 return NULL;
5871 if (_argo0) {
5872 if (_argo0 == Py_None) { _arg0 = NULL; }
5873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
5875 return NULL;
5876 }
5877 }
5878 {
5879 #if PYTHON_API_VERSION >= 1009
5880 char* tmpPtr; int tmpSize;
5881 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5882 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5883 return NULL;
5884 }
5885 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5886 return NULL;
5887 _arg1 = new wxString(tmpPtr, tmpSize);
5888 #else
5889 if (!PyString_Check(_obj1)) {
5890 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5891 return NULL;
5892 }
5893 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5894 #endif
5895 }
5896 {
5897 wxPy_BEGIN_ALLOW_THREADS;
5898 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
5899
5900 wxPy_END_ALLOW_THREADS;
5901 } Py_INCREF(Py_None);
5902 _resultobj = Py_None;
5903 {
5904 PyObject *o;
5905 o = PyInt_FromLong((long) (*_arg2));
5906 _resultobj = t_output_helper(_resultobj, o);
5907 }
5908 {
5909 PyObject *o;
5910 o = PyInt_FromLong((long) (*_arg3));
5911 _resultobj = t_output_helper(_resultobj, o);
5912 }
5913 {
5914 if (_obj1)
5915 delete _arg1;
5916 }
5917 return _resultobj;
5918 }
5919
5920 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5921 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject * _resultobj;
5923 wxDC * _arg0;
5924 wxString * _arg1;
5925 long * _arg2;
5926 long temp;
5927 long * _arg3;
5928 long temp0;
5929 long * _arg4;
5930 long temp1;
5931 long * _arg5;
5932 long temp2;
5933 wxFont * _arg6 = (wxFont *) NULL;
5934 PyObject * _argo0 = 0;
5935 PyObject * _obj1 = 0;
5936 PyObject * _argo6 = 0;
5937 char *_kwnames[] = { "self","string","font", NULL };
5938
5939 self = self;
5940 {
5941 _arg2 = &temp;
5942 }
5943 {
5944 _arg3 = &temp0;
5945 }
5946 {
5947 _arg4 = &temp1;
5948 }
5949 {
5950 _arg5 = &temp2;
5951 }
5952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
5953 return NULL;
5954 if (_argo0) {
5955 if (_argo0 == Py_None) { _arg0 = NULL; }
5956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
5958 return NULL;
5959 }
5960 }
5961 {
5962 #if PYTHON_API_VERSION >= 1009
5963 char* tmpPtr; int tmpSize;
5964 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5965 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5966 return NULL;
5967 }
5968 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5969 return NULL;
5970 _arg1 = new wxString(tmpPtr, tmpSize);
5971 #else
5972 if (!PyString_Check(_obj1)) {
5973 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5974 return NULL;
5975 }
5976 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5977 #endif
5978 }
5979 if (_argo6) {
5980 if (_argo6 == Py_None) { _arg6 = NULL; }
5981 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
5982 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
5983 return NULL;
5984 }
5985 }
5986 {
5987 wxPy_BEGIN_ALLOW_THREADS;
5988 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5989
5990 wxPy_END_ALLOW_THREADS;
5991 } Py_INCREF(Py_None);
5992 _resultobj = Py_None;
5993 {
5994 PyObject *o;
5995 o = PyInt_FromLong((long) (*_arg2));
5996 _resultobj = t_output_helper(_resultobj, o);
5997 }
5998 {
5999 PyObject *o;
6000 o = PyInt_FromLong((long) (*_arg3));
6001 _resultobj = t_output_helper(_resultobj, o);
6002 }
6003 {
6004 PyObject *o;
6005 o = PyInt_FromLong((long) (*_arg4));
6006 _resultobj = t_output_helper(_resultobj, o);
6007 }
6008 {
6009 PyObject *o;
6010 o = PyInt_FromLong((long) (*_arg5));
6011 _resultobj = t_output_helper(_resultobj, o);
6012 }
6013 {
6014 if (_obj1)
6015 delete _arg1;
6016 }
6017 return _resultobj;
6018 }
6019
6020 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6021 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
6022 PyObject * _resultobj;
6023 wxColour * _result;
6024 wxDC * _arg0;
6025 PyObject * _argo0 = 0;
6026 char *_kwnames[] = { "self", NULL };
6027 char _ptemp[128];
6028
6029 self = self;
6030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
6031 return NULL;
6032 if (_argo0) {
6033 if (_argo0 == Py_None) { _arg0 = NULL; }
6034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6036 return NULL;
6037 }
6038 }
6039 {
6040 wxPy_BEGIN_ALLOW_THREADS;
6041 wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
6042 _result = (wxColour *) &_result_ref;
6043
6044 wxPy_END_ALLOW_THREADS;
6045 } if (_result) {
6046 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6047 _resultobj = Py_BuildValue("s",_ptemp);
6048 } else {
6049 Py_INCREF(Py_None);
6050 _resultobj = Py_None;
6051 }
6052 return _resultobj;
6053 }
6054
6055 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6056 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6057 PyObject * _resultobj;
6058 wxDC * _arg0;
6059 double * _arg1;
6060 double temp;
6061 double * _arg2;
6062 double temp0;
6063 PyObject * _argo0 = 0;
6064 char *_kwnames[] = { "self", NULL };
6065
6066 self = self;
6067 {
6068 _arg1 = &temp;
6069 }
6070 {
6071 _arg2 = &temp0;
6072 }
6073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
6074 return NULL;
6075 if (_argo0) {
6076 if (_argo0 == Py_None) { _arg0 = NULL; }
6077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6079 return NULL;
6080 }
6081 }
6082 {
6083 wxPy_BEGIN_ALLOW_THREADS;
6084 wxDC_GetUserScale(_arg0,_arg1,_arg2);
6085
6086 wxPy_END_ALLOW_THREADS;
6087 } Py_INCREF(Py_None);
6088 _resultobj = Py_None;
6089 {
6090 PyObject *o;
6091 o = PyFloat_FromDouble((double) (*_arg1));
6092 _resultobj = t_output_helper(_resultobj, o);
6093 }
6094 {
6095 PyObject *o;
6096 o = PyFloat_FromDouble((double) (*_arg2));
6097 _resultobj = t_output_helper(_resultobj, o);
6098 }
6099 return _resultobj;
6100 }
6101
6102 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6103 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
6104 PyObject * _resultobj;
6105 long _result;
6106 wxDC * _arg0;
6107 long _arg1;
6108 PyObject * _argo0 = 0;
6109 char *_kwnames[] = { "self","x", NULL };
6110
6111 self = self;
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
6113 return NULL;
6114 if (_argo0) {
6115 if (_argo0 == Py_None) { _arg0 = NULL; }
6116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6118 return NULL;
6119 }
6120 }
6121 {
6122 wxPy_BEGIN_ALLOW_THREADS;
6123 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
6124
6125 wxPy_END_ALLOW_THREADS;
6126 } _resultobj = Py_BuildValue("l",_result);
6127 return _resultobj;
6128 }
6129
6130 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6131 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6132 PyObject * _resultobj;
6133 long _result;
6134 wxDC * _arg0;
6135 long _arg1;
6136 PyObject * _argo0 = 0;
6137 char *_kwnames[] = { "self","x", NULL };
6138
6139 self = self;
6140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
6141 return NULL;
6142 if (_argo0) {
6143 if (_argo0 == Py_None) { _arg0 = NULL; }
6144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6146 return NULL;
6147 }
6148 }
6149 {
6150 wxPy_BEGIN_ALLOW_THREADS;
6151 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
6152
6153 wxPy_END_ALLOW_THREADS;
6154 } _resultobj = Py_BuildValue("l",_result);
6155 return _resultobj;
6156 }
6157
6158 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6159 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
6160 PyObject * _resultobj;
6161 long _result;
6162 wxDC * _arg0;
6163 long _arg1;
6164 PyObject * _argo0 = 0;
6165 char *_kwnames[] = { "self","y", NULL };
6166
6167 self = self;
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
6169 return NULL;
6170 if (_argo0) {
6171 if (_argo0 == Py_None) { _arg0 = NULL; }
6172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6174 return NULL;
6175 }
6176 }
6177 {
6178 wxPy_BEGIN_ALLOW_THREADS;
6179 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
6180
6181 wxPy_END_ALLOW_THREADS;
6182 } _resultobj = Py_BuildValue("l",_result);
6183 return _resultobj;
6184 }
6185
6186 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6187 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6188 PyObject * _resultobj;
6189 long _result;
6190 wxDC * _arg0;
6191 long _arg1;
6192 PyObject * _argo0 = 0;
6193 char *_kwnames[] = { "self","y", NULL };
6194
6195 self = self;
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
6197 return NULL;
6198 if (_argo0) {
6199 if (_argo0 == Py_None) { _arg0 = NULL; }
6200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6202 return NULL;
6203 }
6204 }
6205 {
6206 wxPy_BEGIN_ALLOW_THREADS;
6207 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
6208
6209 wxPy_END_ALLOW_THREADS;
6210 } _resultobj = Py_BuildValue("l",_result);
6211 return _resultobj;
6212 }
6213
6214 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6215 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
6216 PyObject * _resultobj;
6217 long _result;
6218 wxDC * _arg0;
6219 PyObject * _argo0 = 0;
6220 char *_kwnames[] = { "self", NULL };
6221
6222 self = self;
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
6224 return NULL;
6225 if (_argo0) {
6226 if (_argo0 == Py_None) { _arg0 = NULL; }
6227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6229 return NULL;
6230 }
6231 }
6232 {
6233 wxPy_BEGIN_ALLOW_THREADS;
6234 _result = (long )wxDC_MaxX(_arg0);
6235
6236 wxPy_END_ALLOW_THREADS;
6237 } _resultobj = Py_BuildValue("l",_result);
6238 return _resultobj;
6239 }
6240
6241 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6242 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
6243 PyObject * _resultobj;
6244 long _result;
6245 wxDC * _arg0;
6246 PyObject * _argo0 = 0;
6247 char *_kwnames[] = { "self", NULL };
6248
6249 self = self;
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
6251 return NULL;
6252 if (_argo0) {
6253 if (_argo0 == Py_None) { _arg0 = NULL; }
6254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6256 return NULL;
6257 }
6258 }
6259 {
6260 wxPy_BEGIN_ALLOW_THREADS;
6261 _result = (long )wxDC_MaxY(_arg0);
6262
6263 wxPy_END_ALLOW_THREADS;
6264 } _resultobj = Py_BuildValue("l",_result);
6265 return _resultobj;
6266 }
6267
6268 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6269 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
6270 PyObject * _resultobj;
6271 long _result;
6272 wxDC * _arg0;
6273 PyObject * _argo0 = 0;
6274 char *_kwnames[] = { "self", NULL };
6275
6276 self = self;
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
6278 return NULL;
6279 if (_argo0) {
6280 if (_argo0 == Py_None) { _arg0 = NULL; }
6281 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6283 return NULL;
6284 }
6285 }
6286 {
6287 wxPy_BEGIN_ALLOW_THREADS;
6288 _result = (long )wxDC_MinX(_arg0);
6289
6290 wxPy_END_ALLOW_THREADS;
6291 } _resultobj = Py_BuildValue("l",_result);
6292 return _resultobj;
6293 }
6294
6295 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6296 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
6297 PyObject * _resultobj;
6298 long _result;
6299 wxDC * _arg0;
6300 PyObject * _argo0 = 0;
6301 char *_kwnames[] = { "self", NULL };
6302
6303 self = self;
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
6305 return NULL;
6306 if (_argo0) {
6307 if (_argo0 == Py_None) { _arg0 = NULL; }
6308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6310 return NULL;
6311 }
6312 }
6313 {
6314 wxPy_BEGIN_ALLOW_THREADS;
6315 _result = (long )wxDC_MinY(_arg0);
6316
6317 wxPy_END_ALLOW_THREADS;
6318 } _resultobj = Py_BuildValue("l",_result);
6319 return _resultobj;
6320 }
6321
6322 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6323 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6324 PyObject * _resultobj;
6325 bool _result;
6326 wxDC * _arg0;
6327 PyObject * _argo0 = 0;
6328 char *_kwnames[] = { "self", NULL };
6329
6330 self = self;
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
6332 return NULL;
6333 if (_argo0) {
6334 if (_argo0 == Py_None) { _arg0 = NULL; }
6335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6337 return NULL;
6338 }
6339 }
6340 {
6341 wxPy_BEGIN_ALLOW_THREADS;
6342 _result = (bool )wxDC_Ok(_arg0);
6343
6344 wxPy_END_ALLOW_THREADS;
6345 } _resultobj = Py_BuildValue("i",_result);
6346 return _resultobj;
6347 }
6348
6349 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6350 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject * _resultobj;
6352 wxDC * _arg0;
6353 long _arg1;
6354 long _arg2;
6355 PyObject * _argo0 = 0;
6356 char *_kwnames[] = { "self","x","y", NULL };
6357
6358 self = self;
6359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
6360 return NULL;
6361 if (_argo0) {
6362 if (_argo0 == Py_None) { _arg0 = NULL; }
6363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6365 return NULL;
6366 }
6367 }
6368 {
6369 wxPy_BEGIN_ALLOW_THREADS;
6370 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
6371
6372 wxPy_END_ALLOW_THREADS;
6373 } Py_INCREF(Py_None);
6374 _resultobj = Py_None;
6375 return _resultobj;
6376 }
6377
6378 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6379 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6380 PyObject * _resultobj;
6381 wxDC * _arg0;
6382 wxBrush * _arg1;
6383 PyObject * _argo0 = 0;
6384 PyObject * _argo1 = 0;
6385 char *_kwnames[] = { "self","brush", NULL };
6386
6387 self = self;
6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
6389 return NULL;
6390 if (_argo0) {
6391 if (_argo0 == Py_None) { _arg0 = NULL; }
6392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6394 return NULL;
6395 }
6396 }
6397 if (_argo1) {
6398 if (_argo1 == Py_None) { _arg1 = NULL; }
6399 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6400 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6401 return NULL;
6402 }
6403 }
6404 {
6405 wxPy_BEGIN_ALLOW_THREADS;
6406 wxDC_SetBackground(_arg0,*_arg1);
6407
6408 wxPy_END_ALLOW_THREADS;
6409 } Py_INCREF(Py_None);
6410 _resultobj = Py_None;
6411 return _resultobj;
6412 }
6413
6414 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6415 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
6416 PyObject * _resultobj;
6417 wxDC * _arg0;
6418 int _arg1;
6419 PyObject * _argo0 = 0;
6420 char *_kwnames[] = { "self","mode", NULL };
6421
6422 self = self;
6423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
6424 return NULL;
6425 if (_argo0) {
6426 if (_argo0 == Py_None) { _arg0 = NULL; }
6427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6429 return NULL;
6430 }
6431 }
6432 {
6433 wxPy_BEGIN_ALLOW_THREADS;
6434 wxDC_SetBackgroundMode(_arg0,_arg1);
6435
6436 wxPy_END_ALLOW_THREADS;
6437 } Py_INCREF(Py_None);
6438 _resultobj = Py_None;
6439 return _resultobj;
6440 }
6441
6442 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6443 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject * _resultobj;
6445 wxDC * _arg0;
6446 long _arg1;
6447 long _arg2;
6448 long _arg3;
6449 long _arg4;
6450 PyObject * _argo0 = 0;
6451 char *_kwnames[] = { "self","x","y","width","height", NULL };
6452
6453 self = self;
6454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6455 return NULL;
6456 if (_argo0) {
6457 if (_argo0 == Py_None) { _arg0 = NULL; }
6458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6460 return NULL;
6461 }
6462 }
6463 {
6464 wxPy_BEGIN_ALLOW_THREADS;
6465 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
6466
6467 wxPy_END_ALLOW_THREADS;
6468 } Py_INCREF(Py_None);
6469 _resultobj = Py_None;
6470 return _resultobj;
6471 }
6472
6473 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6474 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
6475 PyObject * _resultobj;
6476 wxDC * _arg0;
6477 wxPalette * _arg1;
6478 PyObject * _argo0 = 0;
6479 PyObject * _argo1 = 0;
6480 char *_kwnames[] = { "self","colourMap", NULL };
6481
6482 self = self;
6483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
6484 return NULL;
6485 if (_argo0) {
6486 if (_argo0 == Py_None) { _arg0 = NULL; }
6487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6489 return NULL;
6490 }
6491 }
6492 if (_argo1) {
6493 if (_argo1 == Py_None) { _arg1 = NULL; }
6494 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
6495 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6496 return NULL;
6497 }
6498 }
6499 {
6500 wxPy_BEGIN_ALLOW_THREADS;
6501 wxDC_SetPalette(_arg0,*_arg1);
6502
6503 wxPy_END_ALLOW_THREADS;
6504 } Py_INCREF(Py_None);
6505 _resultobj = Py_None;
6506 return _resultobj;
6507 }
6508
6509 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6510 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6511 PyObject * _resultobj;
6512 wxDC * _arg0;
6513 wxBrush * _arg1;
6514 PyObject * _argo0 = 0;
6515 PyObject * _argo1 = 0;
6516 char *_kwnames[] = { "self","brush", NULL };
6517
6518 self = self;
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
6520 return NULL;
6521 if (_argo0) {
6522 if (_argo0 == Py_None) { _arg0 = NULL; }
6523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6525 return NULL;
6526 }
6527 }
6528 if (_argo1) {
6529 if (_argo1 == Py_None) { _arg1 = NULL; }
6530 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6531 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6532 return NULL;
6533 }
6534 }
6535 {
6536 wxPy_BEGIN_ALLOW_THREADS;
6537 wxDC_SetBrush(_arg0,*_arg1);
6538
6539 wxPy_END_ALLOW_THREADS;
6540 } Py_INCREF(Py_None);
6541 _resultobj = Py_None;
6542 return _resultobj;
6543 }
6544
6545 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6546 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6547 PyObject * _resultobj;
6548 wxDC * _arg0;
6549 wxFont * _arg1;
6550 PyObject * _argo0 = 0;
6551 PyObject * _argo1 = 0;
6552 char *_kwnames[] = { "self","font", NULL };
6553
6554 self = self;
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
6556 return NULL;
6557 if (_argo0) {
6558 if (_argo0 == Py_None) { _arg0 = NULL; }
6559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6561 return NULL;
6562 }
6563 }
6564 if (_argo1) {
6565 if (_argo1 == Py_None) { _arg1 = NULL; }
6566 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
6567 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6568 return NULL;
6569 }
6570 }
6571 {
6572 wxPy_BEGIN_ALLOW_THREADS;
6573 wxDC_SetFont(_arg0,*_arg1);
6574
6575 wxPy_END_ALLOW_THREADS;
6576 } Py_INCREF(Py_None);
6577 _resultobj = Py_None;
6578 return _resultobj;
6579 }
6580
6581 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6582 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject * _resultobj;
6584 wxDC * _arg0;
6585 int _arg1;
6586 PyObject * _argo0 = 0;
6587 char *_kwnames[] = { "self","function", NULL };
6588
6589 self = self;
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
6591 return NULL;
6592 if (_argo0) {
6593 if (_argo0 == Py_None) { _arg0 = NULL; }
6594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6596 return NULL;
6597 }
6598 }
6599 {
6600 wxPy_BEGIN_ALLOW_THREADS;
6601 wxDC_SetLogicalFunction(_arg0,_arg1);
6602
6603 wxPy_END_ALLOW_THREADS;
6604 } Py_INCREF(Py_None);
6605 _resultobj = Py_None;
6606 return _resultobj;
6607 }
6608
6609 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6610 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6611 PyObject * _resultobj;
6612 wxDC * _arg0;
6613 double _arg1;
6614 double _arg2;
6615 PyObject * _argo0 = 0;
6616 char *_kwnames[] = { "self","x","y", NULL };
6617
6618 self = self;
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
6620 return NULL;
6621 if (_argo0) {
6622 if (_argo0 == Py_None) { _arg0 = NULL; }
6623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6625 return NULL;
6626 }
6627 }
6628 {
6629 wxPy_BEGIN_ALLOW_THREADS;
6630 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
6631
6632 wxPy_END_ALLOW_THREADS;
6633 } Py_INCREF(Py_None);
6634 _resultobj = Py_None;
6635 return _resultobj;
6636 }
6637
6638 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6639 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
6640 PyObject * _resultobj;
6641 wxDC * _arg0;
6642 int _arg1;
6643 PyObject * _argo0 = 0;
6644 char *_kwnames[] = { "self","mode", NULL };
6645
6646 self = self;
6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
6648 return NULL;
6649 if (_argo0) {
6650 if (_argo0 == Py_None) { _arg0 = NULL; }
6651 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6652 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6653 return NULL;
6654 }
6655 }
6656 {
6657 wxPy_BEGIN_ALLOW_THREADS;
6658 wxDC_SetMapMode(_arg0,_arg1);
6659
6660 wxPy_END_ALLOW_THREADS;
6661 } Py_INCREF(Py_None);
6662 _resultobj = Py_None;
6663 return _resultobj;
6664 }
6665
6666 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6667 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
6668 PyObject * _resultobj;
6669 wxDC * _arg0;
6670 bool _arg1;
6671 PyObject * _argo0 = 0;
6672 int tempbool1;
6673 char *_kwnames[] = { "self","optimize", NULL };
6674
6675 self = self;
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
6677 return NULL;
6678 if (_argo0) {
6679 if (_argo0 == Py_None) { _arg0 = NULL; }
6680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6682 return NULL;
6683 }
6684 }
6685 _arg1 = (bool ) tempbool1;
6686 {
6687 wxPy_BEGIN_ALLOW_THREADS;
6688 wxDC_SetOptimization(_arg0,_arg1);
6689
6690 wxPy_END_ALLOW_THREADS;
6691 } Py_INCREF(Py_None);
6692 _resultobj = Py_None;
6693 return _resultobj;
6694 }
6695
6696 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6697 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject * _resultobj;
6699 wxDC * _arg0;
6700 wxPen * _arg1;
6701 PyObject * _argo0 = 0;
6702 PyObject * _argo1 = 0;
6703 char *_kwnames[] = { "self","pen", NULL };
6704
6705 self = self;
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
6707 return NULL;
6708 if (_argo0) {
6709 if (_argo0 == Py_None) { _arg0 = NULL; }
6710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6712 return NULL;
6713 }
6714 }
6715 if (_argo1) {
6716 if (_argo1 == Py_None) { _arg1 = NULL; }
6717 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6718 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
6719 return NULL;
6720 }
6721 }
6722 {
6723 wxPy_BEGIN_ALLOW_THREADS;
6724 wxDC_SetPen(_arg0,*_arg1);
6725
6726 wxPy_END_ALLOW_THREADS;
6727 } Py_INCREF(Py_None);
6728 _resultobj = Py_None;
6729 return _resultobj;
6730 }
6731
6732 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
6733 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject * _resultobj;
6735 wxDC * _arg0;
6736 wxColour * _arg1;
6737 PyObject * _argo0 = 0;
6738 wxColour temp;
6739 PyObject * _obj1 = 0;
6740 char *_kwnames[] = { "self","colour", NULL };
6741
6742 self = self;
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
6744 return NULL;
6745 if (_argo0) {
6746 if (_argo0 == Py_None) { _arg0 = NULL; }
6747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
6749 return NULL;
6750 }
6751 }
6752 {
6753 _arg1 = &temp;
6754 if (! wxColour_helper(_obj1, &_arg1))
6755 return NULL;
6756 }
6757 {
6758 wxPy_BEGIN_ALLOW_THREADS;
6759 wxDC_SetTextBackground(_arg0,*_arg1);
6760
6761 wxPy_END_ALLOW_THREADS;
6762 } Py_INCREF(Py_None);
6763 _resultobj = Py_None;
6764 return _resultobj;
6765 }
6766
6767 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
6768 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject * _resultobj;
6770 wxDC * _arg0;
6771 wxColour * _arg1;
6772 PyObject * _argo0 = 0;
6773 wxColour temp;
6774 PyObject * _obj1 = 0;
6775 char *_kwnames[] = { "self","colour", NULL };
6776
6777 self = self;
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
6779 return NULL;
6780 if (_argo0) {
6781 if (_argo0 == Py_None) { _arg0 = NULL; }
6782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
6784 return NULL;
6785 }
6786 }
6787 {
6788 _arg1 = &temp;
6789 if (! wxColour_helper(_obj1, &_arg1))
6790 return NULL;
6791 }
6792 {
6793 wxPy_BEGIN_ALLOW_THREADS;
6794 wxDC_SetTextForeground(_arg0,*_arg1);
6795
6796 wxPy_END_ALLOW_THREADS;
6797 } Py_INCREF(Py_None);
6798 _resultobj = Py_None;
6799 return _resultobj;
6800 }
6801
6802 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
6803 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6804 PyObject * _resultobj;
6805 wxDC * _arg0;
6806 double _arg1;
6807 double _arg2;
6808 PyObject * _argo0 = 0;
6809 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
6810
6811 self = self;
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
6813 return NULL;
6814 if (_argo0) {
6815 if (_argo0 == Py_None) { _arg0 = NULL; }
6816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
6818 return NULL;
6819 }
6820 }
6821 {
6822 wxPy_BEGIN_ALLOW_THREADS;
6823 wxDC_SetUserScale(_arg0,_arg1,_arg2);
6824
6825 wxPy_END_ALLOW_THREADS;
6826 } Py_INCREF(Py_None);
6827 _resultobj = Py_None;
6828 return _resultobj;
6829 }
6830
6831 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
6832 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
6833 PyObject * _resultobj;
6834 bool _result;
6835 wxDC * _arg0;
6836 wxString * _arg1;
6837 PyObject * _argo0 = 0;
6838 PyObject * _obj1 = 0;
6839 char *_kwnames[] = { "self","message", NULL };
6840
6841 self = self;
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
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_StartDoc. 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, "String or Unicode type required");
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 wxPy_BEGIN_ALLOW_THREADS;
6871 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
6872
6873 wxPy_END_ALLOW_THREADS;
6874 } _resultobj = Py_BuildValue("i",_result);
6875 {
6876 if (_obj1)
6877 delete _arg1;
6878 }
6879 return _resultobj;
6880 }
6881
6882 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
6883 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6884 PyObject * _resultobj;
6885 wxDC * _arg0;
6886 PyObject * _argo0 = 0;
6887 char *_kwnames[] = { "self", NULL };
6888
6889 self = self;
6890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
6891 return NULL;
6892 if (_argo0) {
6893 if (_argo0 == Py_None) { _arg0 = NULL; }
6894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
6896 return NULL;
6897 }
6898 }
6899 {
6900 wxPy_BEGIN_ALLOW_THREADS;
6901 wxDC_StartPage(_arg0);
6902
6903 wxPy_END_ALLOW_THREADS;
6904 } Py_INCREF(Py_None);
6905 _resultobj = Py_None;
6906 return _resultobj;
6907 }
6908
6909 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6910 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject * _resultobj;
6912 wxDC * _arg0;
6913 wxBitmap * _arg1;
6914 long _arg2;
6915 long _arg3;
6916 int _arg4 = (int ) FALSE;
6917 PyObject * _argo0 = 0;
6918 PyObject * _argo1 = 0;
6919 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
6920
6921 self = self;
6922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
6923 return NULL;
6924 if (_argo0) {
6925 if (_argo0 == Py_None) { _arg0 = NULL; }
6926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
6928 return NULL;
6929 }
6930 }
6931 if (_argo1) {
6932 if (_argo1 == Py_None) { _arg1 = NULL; }
6933 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6934 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
6935 return NULL;
6936 }
6937 }
6938 {
6939 wxPy_BEGIN_ALLOW_THREADS;
6940 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
6941
6942 wxPy_END_ALLOW_THREADS;
6943 } Py_INCREF(Py_None);
6944 _resultobj = Py_None;
6945 return _resultobj;
6946 }
6947
6948 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
6949 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6950 PyObject * _resultobj;
6951 bool _result;
6952 wxDC * _arg0;
6953 PyObject * _argo0 = 0;
6954 char *_kwnames[] = { "self", NULL };
6955
6956 self = self;
6957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
6958 return NULL;
6959 if (_argo0) {
6960 if (_argo0 == Py_None) { _arg0 = NULL; }
6961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
6963 return NULL;
6964 }
6965 }
6966 {
6967 wxPy_BEGIN_ALLOW_THREADS;
6968 _result = (bool )wxDC_CanDrawBitmap(_arg0);
6969
6970 wxPy_END_ALLOW_THREADS;
6971 } _resultobj = Py_BuildValue("i",_result);
6972 return _resultobj;
6973 }
6974
6975 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
6976 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
6977 PyObject * _resultobj;
6978 bool _result;
6979 wxDC * _arg0;
6980 PyObject * _argo0 = 0;
6981 char *_kwnames[] = { "self", NULL };
6982
6983 self = self;
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
6985 return NULL;
6986 if (_argo0) {
6987 if (_argo0 == Py_None) { _arg0 = NULL; }
6988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
6990 return NULL;
6991 }
6992 }
6993 {
6994 wxPy_BEGIN_ALLOW_THREADS;
6995 _result = (bool )wxDC_CanGetTextExtent(_arg0);
6996
6997 wxPy_END_ALLOW_THREADS;
6998 } _resultobj = Py_BuildValue("i",_result);
6999 return _resultobj;
7000 }
7001
7002 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7003 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject * _resultobj;
7005 int _result;
7006 wxDC * _arg0;
7007 PyObject * _argo0 = 0;
7008 char *_kwnames[] = { "self", NULL };
7009
7010 self = self;
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
7012 return NULL;
7013 if (_argo0) {
7014 if (_argo0 == Py_None) { _arg0 = NULL; }
7015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7017 return NULL;
7018 }
7019 }
7020 {
7021 wxPy_BEGIN_ALLOW_THREADS;
7022 _result = (int )wxDC_GetDepth(_arg0);
7023
7024 wxPy_END_ALLOW_THREADS;
7025 } _resultobj = Py_BuildValue("i",_result);
7026 return _resultobj;
7027 }
7028
7029 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7030 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject * _resultobj;
7032 wxSize * _result;
7033 wxDC * _arg0;
7034 PyObject * _argo0 = 0;
7035 char *_kwnames[] = { "self", NULL };
7036 char _ptemp[128];
7037
7038 self = self;
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
7040 return NULL;
7041 if (_argo0) {
7042 if (_argo0 == Py_None) { _arg0 = NULL; }
7043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7045 return NULL;
7046 }
7047 }
7048 {
7049 wxPy_BEGIN_ALLOW_THREADS;
7050 _result = new wxSize (wxDC_GetPPI(_arg0));
7051
7052 wxPy_END_ALLOW_THREADS;
7053 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7054 _resultobj = Py_BuildValue("s",_ptemp);
7055 return _resultobj;
7056 }
7057
7058 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7059 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject * _resultobj;
7061 wxDC * _arg0;
7062 int * _arg1;
7063 int temp;
7064 int * _arg2;
7065 int temp0;
7066 PyObject * _argo0 = 0;
7067 char *_kwnames[] = { "self", NULL };
7068
7069 self = self;
7070 {
7071 _arg1 = &temp;
7072 }
7073 {
7074 _arg2 = &temp0;
7075 }
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_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_GetLogicalOrigin. Expected _wxDC_p.");
7082 return NULL;
7083 }
7084 }
7085 {
7086 wxPy_BEGIN_ALLOW_THREADS;
7087 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
7088
7089 wxPy_END_ALLOW_THREADS;
7090 } Py_INCREF(Py_None);
7091 _resultobj = Py_None;
7092 {
7093 PyObject *o;
7094 o = PyInt_FromLong((long) (*_arg1));
7095 _resultobj = t_output_helper(_resultobj, o);
7096 }
7097 {
7098 PyObject *o;
7099 o = PyInt_FromLong((long) (*_arg2));
7100 _resultobj = t_output_helper(_resultobj, o);
7101 }
7102 return _resultobj;
7103 }
7104
7105 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7106 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7107 PyObject * _resultobj;
7108 wxDC * _arg0;
7109 int _arg1;
7110 int _arg2;
7111 PyObject * _argo0 = 0;
7112 char *_kwnames[] = { "self","x","y", NULL };
7113
7114 self = self;
7115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7116 return NULL;
7117 if (_argo0) {
7118 if (_argo0 == Py_None) { _arg0 = NULL; }
7119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7121 return NULL;
7122 }
7123 }
7124 {
7125 wxPy_BEGIN_ALLOW_THREADS;
7126 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
7127
7128 wxPy_END_ALLOW_THREADS;
7129 } Py_INCREF(Py_None);
7130 _resultobj = Py_None;
7131 return _resultobj;
7132 }
7133
7134 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7135 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject * _resultobj;
7137 wxDC * _arg0;
7138 int * _arg1;
7139 int temp;
7140 int * _arg2;
7141 int temp0;
7142 PyObject * _argo0 = 0;
7143 char *_kwnames[] = { "self", NULL };
7144
7145 self = self;
7146 {
7147 _arg1 = &temp;
7148 }
7149 {
7150 _arg2 = &temp0;
7151 }
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
7153 return NULL;
7154 if (_argo0) {
7155 if (_argo0 == Py_None) { _arg0 = NULL; }
7156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7158 return NULL;
7159 }
7160 }
7161 {
7162 wxPy_BEGIN_ALLOW_THREADS;
7163 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
7164
7165 wxPy_END_ALLOW_THREADS;
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 return _resultobj;
7179 }
7180
7181 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7182 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
7183 PyObject * _resultobj;
7184 wxDC * _arg0;
7185 bool _arg1;
7186 bool _arg2;
7187 PyObject * _argo0 = 0;
7188 int tempbool1;
7189 int tempbool2;
7190 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
7191
7192 self = self;
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
7194 return NULL;
7195 if (_argo0) {
7196 if (_argo0 == Py_None) { _arg0 = NULL; }
7197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7199 return NULL;
7200 }
7201 }
7202 _arg1 = (bool ) tempbool1;
7203 _arg2 = (bool ) tempbool2;
7204 {
7205 wxPy_BEGIN_ALLOW_THREADS;
7206 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
7207
7208 wxPy_END_ALLOW_THREADS;
7209 } Py_INCREF(Py_None);
7210 _resultobj = Py_None;
7211 return _resultobj;
7212 }
7213
7214 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7215 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7216 PyObject * _resultobj;
7217 wxDC * _arg0;
7218 int _arg1;
7219 int _arg2;
7220 PyObject * _argo0 = 0;
7221 char *_kwnames[] = { "self","x","y", NULL };
7222
7223 self = self;
7224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
7225 return NULL;
7226 if (_argo0) {
7227 if (_argo0 == Py_None) { _arg0 = NULL; }
7228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7230 return NULL;
7231 }
7232 }
7233 {
7234 wxPy_BEGIN_ALLOW_THREADS;
7235 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
7236
7237 wxPy_END_ALLOW_THREADS;
7238 } Py_INCREF(Py_None);
7239 _resultobj = Py_None;
7240 return _resultobj;
7241 }
7242
7243 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7244 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject * _resultobj;
7246 wxDC * _arg0;
7247 PyObject * _argo0 = 0;
7248 char *_kwnames[] = { "self", NULL };
7249
7250 self = self;
7251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
7252 return NULL;
7253 if (_argo0) {
7254 if (_argo0 == Py_None) { _arg0 = NULL; }
7255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7257 return NULL;
7258 }
7259 }
7260 {
7261 wxPy_BEGIN_ALLOW_THREADS;
7262 wxDC_ResetBoundingBox(_arg0);
7263
7264 wxPy_END_ALLOW_THREADS;
7265 } Py_INCREF(Py_None);
7266 _resultobj = Py_None;
7267 return _resultobj;
7268 }
7269
7270 static void *SwigwxMemoryDCTowxDC(void *ptr) {
7271 wxMemoryDC *src;
7272 wxDC *dest;
7273 src = (wxMemoryDC *) ptr;
7274 dest = (wxDC *) src;
7275 return (void *) dest;
7276 }
7277
7278 #define new_wxMemoryDC() (new wxMemoryDC())
7279 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7280 PyObject * _resultobj;
7281 wxMemoryDC * _result;
7282 char *_kwnames[] = { NULL };
7283 char _ptemp[128];
7284
7285 self = self;
7286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
7287 return NULL;
7288 {
7289 wxPy_BEGIN_ALLOW_THREADS;
7290 _result = (wxMemoryDC *)new_wxMemoryDC();
7291
7292 wxPy_END_ALLOW_THREADS;
7293 } if (_result) {
7294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
7295 _resultobj = Py_BuildValue("s",_ptemp);
7296 } else {
7297 Py_INCREF(Py_None);
7298 _resultobj = Py_None;
7299 }
7300 return _resultobj;
7301 }
7302
7303 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7304 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7305 PyObject * _resultobj;
7306 wxMemoryDC * _arg0;
7307 wxBitmap * _arg1;
7308 PyObject * _argo0 = 0;
7309 PyObject * _argo1 = 0;
7310 char *_kwnames[] = { "self","bitmap", NULL };
7311
7312 self = self;
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
7314 return NULL;
7315 if (_argo0) {
7316 if (_argo0 == Py_None) { _arg0 = NULL; }
7317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
7318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7319 return NULL;
7320 }
7321 }
7322 if (_argo1) {
7323 if (_argo1 == Py_None) { _arg1 = NULL; }
7324 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7325 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7326 return NULL;
7327 }
7328 }
7329 {
7330 wxPy_BEGIN_ALLOW_THREADS;
7331 wxMemoryDC_SelectObject(_arg0,*_arg1);
7332
7333 wxPy_END_ALLOW_THREADS;
7334 } Py_INCREF(Py_None);
7335 _resultobj = Py_None;
7336 return _resultobj;
7337 }
7338
7339 static void *SwigwxScreenDCTowxDC(void *ptr) {
7340 wxScreenDC *src;
7341 wxDC *dest;
7342 src = (wxScreenDC *) ptr;
7343 dest = (wxDC *) src;
7344 return (void *) dest;
7345 }
7346
7347 #define new_wxScreenDC() (new wxScreenDC())
7348 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7349 PyObject * _resultobj;
7350 wxScreenDC * _result;
7351 char *_kwnames[] = { NULL };
7352 char _ptemp[128];
7353
7354 self = self;
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
7356 return NULL;
7357 {
7358 wxPy_BEGIN_ALLOW_THREADS;
7359 _result = (wxScreenDC *)new_wxScreenDC();
7360
7361 wxPy_END_ALLOW_THREADS;
7362 } if (_result) {
7363 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
7364 _resultobj = Py_BuildValue("s",_ptemp);
7365 } else {
7366 Py_INCREF(Py_None);
7367 _resultobj = Py_None;
7368 }
7369 return _resultobj;
7370 }
7371
7372 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7373 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject * _resultobj;
7375 bool _result;
7376 wxScreenDC * _arg0;
7377 wxWindow * _arg1;
7378 PyObject * _argo0 = 0;
7379 PyObject * _argo1 = 0;
7380 char *_kwnames[] = { "self","window", NULL };
7381
7382 self = self;
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
7384 return NULL;
7385 if (_argo0) {
7386 if (_argo0 == Py_None) { _arg0 = NULL; }
7387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7389 return NULL;
7390 }
7391 }
7392 if (_argo1) {
7393 if (_argo1 == Py_None) { _arg1 = NULL; }
7394 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7395 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7396 return NULL;
7397 }
7398 }
7399 {
7400 wxPy_BEGIN_ALLOW_THREADS;
7401 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
7402
7403 wxPy_END_ALLOW_THREADS;
7404 } _resultobj = Py_BuildValue("i",_result);
7405 return _resultobj;
7406 }
7407
7408 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7409 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7410 PyObject * _resultobj;
7411 bool _result;
7412 wxScreenDC * _arg0;
7413 wxRect * _arg1 = (wxRect *) NULL;
7414 PyObject * _argo0 = 0;
7415 wxRect temp;
7416 PyObject * _obj1 = 0;
7417 char *_kwnames[] = { "self","rect", NULL };
7418
7419 self = self;
7420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
7421 return NULL;
7422 if (_argo0) {
7423 if (_argo0 == Py_None) { _arg0 = NULL; }
7424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7426 return NULL;
7427 }
7428 }
7429 if (_obj1)
7430 {
7431 _arg1 = &temp;
7432 if (! wxRect_helper(_obj1, &_arg1))
7433 return NULL;
7434 }
7435 {
7436 wxPy_BEGIN_ALLOW_THREADS;
7437 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
7438
7439 wxPy_END_ALLOW_THREADS;
7440 } _resultobj = Py_BuildValue("i",_result);
7441 return _resultobj;
7442 }
7443
7444 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7445 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7446 PyObject * _resultobj;
7447 bool _result;
7448 wxScreenDC * _arg0;
7449 PyObject * _argo0 = 0;
7450 char *_kwnames[] = { "self", NULL };
7451
7452 self = self;
7453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
7454 return NULL;
7455 if (_argo0) {
7456 if (_argo0 == Py_None) { _arg0 = NULL; }
7457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7459 return NULL;
7460 }
7461 }
7462 {
7463 wxPy_BEGIN_ALLOW_THREADS;
7464 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
7465
7466 wxPy_END_ALLOW_THREADS;
7467 } _resultobj = Py_BuildValue("i",_result);
7468 return _resultobj;
7469 }
7470
7471 static void *SwigwxClientDCTowxDC(void *ptr) {
7472 wxClientDC *src;
7473 wxDC *dest;
7474 src = (wxClientDC *) ptr;
7475 dest = (wxDC *) src;
7476 return (void *) dest;
7477 }
7478
7479 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7480 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7481 PyObject * _resultobj;
7482 wxClientDC * _result;
7483 wxWindow * _arg0;
7484 PyObject * _argo0 = 0;
7485 char *_kwnames[] = { "win", NULL };
7486 char _ptemp[128];
7487
7488 self = self;
7489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
7490 return NULL;
7491 if (_argo0) {
7492 if (_argo0 == Py_None) { _arg0 = NULL; }
7493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7495 return NULL;
7496 }
7497 }
7498 {
7499 wxPy_BEGIN_ALLOW_THREADS;
7500 _result = (wxClientDC *)new_wxClientDC(_arg0);
7501
7502 wxPy_END_ALLOW_THREADS;
7503 } if (_result) {
7504 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
7505 _resultobj = Py_BuildValue("s",_ptemp);
7506 } else {
7507 Py_INCREF(Py_None);
7508 _resultobj = Py_None;
7509 }
7510 return _resultobj;
7511 }
7512
7513 static void *SwigwxPaintDCTowxDC(void *ptr) {
7514 wxPaintDC *src;
7515 wxDC *dest;
7516 src = (wxPaintDC *) ptr;
7517 dest = (wxDC *) src;
7518 return (void *) dest;
7519 }
7520
7521 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
7522 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject * _resultobj;
7524 wxPaintDC * _result;
7525 wxWindow * _arg0;
7526 PyObject * _argo0 = 0;
7527 char *_kwnames[] = { "win", NULL };
7528 char _ptemp[128];
7529
7530 self = self;
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
7532 return NULL;
7533 if (_argo0) {
7534 if (_argo0 == Py_None) { _arg0 = NULL; }
7535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
7537 return NULL;
7538 }
7539 }
7540 {
7541 wxPy_BEGIN_ALLOW_THREADS;
7542 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
7543
7544 wxPy_END_ALLOW_THREADS;
7545 } if (_result) {
7546 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
7547 _resultobj = Py_BuildValue("s",_ptemp);
7548 } else {
7549 Py_INCREF(Py_None);
7550 _resultobj = Py_None;
7551 }
7552 return _resultobj;
7553 }
7554
7555 static void *SwigwxWindowDCTowxDC(void *ptr) {
7556 wxWindowDC *src;
7557 wxDC *dest;
7558 src = (wxWindowDC *) ptr;
7559 dest = (wxDC *) src;
7560 return (void *) dest;
7561 }
7562
7563 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
7564 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7565 PyObject * _resultobj;
7566 wxWindowDC * _result;
7567 wxWindow * _arg0;
7568 PyObject * _argo0 = 0;
7569 char *_kwnames[] = { "win", NULL };
7570 char _ptemp[128];
7571
7572 self = self;
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
7574 return NULL;
7575 if (_argo0) {
7576 if (_argo0 == Py_None) { _arg0 = NULL; }
7577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
7579 return NULL;
7580 }
7581 }
7582 {
7583 wxPy_BEGIN_ALLOW_THREADS;
7584 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
7585
7586 wxPy_END_ALLOW_THREADS;
7587 } if (_result) {
7588 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
7589 _resultobj = Py_BuildValue("s",_ptemp);
7590 } else {
7591 Py_INCREF(Py_None);
7592 _resultobj = Py_None;
7593 }
7594 return _resultobj;
7595 }
7596
7597 static void *SwigwxPostScriptDCTowxDC(void *ptr) {
7598 wxPostScriptDC *src;
7599 wxDC *dest;
7600 src = (wxPostScriptDC *) ptr;
7601 dest = (wxDC *) src;
7602 return (void *) dest;
7603 }
7604
7605 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
7606 static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject * _resultobj;
7608 wxPostScriptDC * _result;
7609 wxString * _arg0;
7610 bool _arg1 = (bool ) TRUE;
7611 wxWindow * _arg2 = (wxWindow *) NULL;
7612 PyObject * _obj0 = 0;
7613 int tempbool1 = (int) TRUE;
7614 PyObject * _argo2 = 0;
7615 char *_kwnames[] = { "output","interactive","win", NULL };
7616 char _ptemp[128];
7617
7618 self = self;
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2))
7620 return NULL;
7621 {
7622 #if PYTHON_API_VERSION >= 1009
7623 char* tmpPtr; int tmpSize;
7624 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7625 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
7626 return NULL;
7627 }
7628 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
7629 return NULL;
7630 _arg0 = new wxString(tmpPtr, tmpSize);
7631 #else
7632 if (!PyString_Check(_obj0)) {
7633 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7634 return NULL;
7635 }
7636 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
7637 #endif
7638 }
7639 _arg1 = (bool ) tempbool1;
7640 if (_argo2) {
7641 if (_argo2 == Py_None) { _arg2 = NULL; }
7642 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
7643 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
7644 return NULL;
7645 }
7646 }
7647 {
7648 wxPy_BEGIN_ALLOW_THREADS;
7649 _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2);
7650
7651 wxPy_END_ALLOW_THREADS;
7652 } if (_result) {
7653 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
7654 _resultobj = Py_BuildValue("s",_ptemp);
7655 } else {
7656 Py_INCREF(Py_None);
7657 _resultobj = Py_None;
7658 }
7659 {
7660 if (_obj0)
7661 delete _arg0;
7662 }
7663 return _resultobj;
7664 }
7665
7666 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7667 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
7668 PyObject * _resultobj;
7669 wxPalette * _result;
7670 int _arg0;
7671 byte * _arg1;
7672 byte * _arg2;
7673 byte * _arg3;
7674 PyObject * _obj1 = 0;
7675 PyObject * _obj2 = 0;
7676 PyObject * _obj3 = 0;
7677 char *_kwnames[] = { "choices","choices","choices", NULL };
7678 char _ptemp[128];
7679
7680 self = self;
7681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
7682 return NULL;
7683 {
7684 _arg1 = byte_LIST_helper(_obj1);
7685 if (_arg1 == NULL) {
7686 return NULL;
7687 }
7688 }
7689 {
7690 _arg2 = byte_LIST_helper(_obj2);
7691 if (_arg2 == NULL) {
7692 return NULL;
7693 }
7694 }
7695 if (_obj3)
7696 {
7697 _arg3 = byte_LIST_helper(_obj3);
7698 if (_arg3 == NULL) {
7699 return NULL;
7700 }
7701 }
7702 {
7703 if (_obj1) {
7704 _arg0 = PyList_Size(_obj1);
7705 }
7706 else {
7707 _arg0 = 0;
7708 }
7709 }
7710 {
7711 wxPy_BEGIN_ALLOW_THREADS;
7712 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
7713
7714 wxPy_END_ALLOW_THREADS;
7715 } if (_result) {
7716 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
7717 _resultobj = Py_BuildValue("s",_ptemp);
7718 } else {
7719 Py_INCREF(Py_None);
7720 _resultobj = Py_None;
7721 }
7722 {
7723 delete [] _arg1;
7724 }
7725 {
7726 delete [] _arg2;
7727 }
7728 {
7729 delete [] _arg3;
7730 }
7731 return _resultobj;
7732 }
7733
7734 #define delete_wxPalette(_swigobj) (delete _swigobj)
7735 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
7736 PyObject * _resultobj;
7737 wxPalette * _arg0;
7738 PyObject * _argo0 = 0;
7739 char *_kwnames[] = { "self", NULL };
7740
7741 self = self;
7742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
7743 return NULL;
7744 if (_argo0) {
7745 if (_argo0 == Py_None) { _arg0 = NULL; }
7746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
7747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
7748 return NULL;
7749 }
7750 }
7751 {
7752 wxPy_BEGIN_ALLOW_THREADS;
7753 delete_wxPalette(_arg0);
7754
7755 wxPy_END_ALLOW_THREADS;
7756 } Py_INCREF(Py_None);
7757 _resultobj = Py_None;
7758 return _resultobj;
7759 }
7760
7761 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
7762 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7763 PyObject * _resultobj;
7764 int _result;
7765 wxPalette * _arg0;
7766 byte _arg1;
7767 byte _arg2;
7768 byte _arg3;
7769 PyObject * _argo0 = 0;
7770 char *_kwnames[] = { "self","red","green","blue", NULL };
7771
7772 self = self;
7773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7774 return NULL;
7775 if (_argo0) {
7776 if (_argo0 == Py_None) { _arg0 = NULL; }
7777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
7778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
7779 return NULL;
7780 }
7781 }
7782 {
7783 wxPy_BEGIN_ALLOW_THREADS;
7784 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
7785
7786 wxPy_END_ALLOW_THREADS;
7787 } _resultobj = Py_BuildValue("i",_result);
7788 return _resultobj;
7789 }
7790
7791 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7792 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
7793 PyObject * _resultobj;
7794 bool _result;
7795 wxPalette * _arg0;
7796 int _arg1;
7797 byte * _arg2;
7798 byte * _arg3;
7799 byte * _arg4;
7800 PyObject * _argo0 = 0;
7801 PyObject * _argo2 = 0;
7802 PyObject * _argo3 = 0;
7803 PyObject * _argo4 = 0;
7804 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
7805
7806 self = self;
7807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
7808 return NULL;
7809 if (_argo0) {
7810 if (_argo0 == Py_None) { _arg0 = NULL; }
7811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
7812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
7813 return NULL;
7814 }
7815 }
7816 if (_argo2) {
7817 if (_argo2 == Py_None) { _arg2 = NULL; }
7818 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
7819 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
7820 return NULL;
7821 }
7822 }
7823 if (_argo3) {
7824 if (_argo3 == Py_None) { _arg3 = NULL; }
7825 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
7826 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
7827 return NULL;
7828 }
7829 }
7830 if (_argo4) {
7831 if (_argo4 == Py_None) { _arg4 = NULL; }
7832 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
7833 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
7834 return NULL;
7835 }
7836 }
7837 {
7838 wxPy_BEGIN_ALLOW_THREADS;
7839 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
7840
7841 wxPy_END_ALLOW_THREADS;
7842 } _resultobj = Py_BuildValue("i",_result);
7843 return _resultobj;
7844 }
7845
7846 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
7847 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7848 PyObject * _resultobj;
7849 bool _result;
7850 wxPalette * _arg0;
7851 PyObject * _argo0 = 0;
7852 char *_kwnames[] = { "self", NULL };
7853
7854 self = self;
7855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
7856 return NULL;
7857 if (_argo0) {
7858 if (_argo0 == Py_None) { _arg0 = NULL; }
7859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
7860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
7861 return NULL;
7862 }
7863 }
7864 {
7865 wxPy_BEGIN_ALLOW_THREADS;
7866 _result = (bool )wxPalette_Ok(_arg0);
7867
7868 wxPy_END_ALLOW_THREADS;
7869 } _resultobj = Py_BuildValue("i",_result);
7870 return _resultobj;
7871 }
7872
7873 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7874 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
7875 PyObject * _resultobj;
7876 wxImageList * _result;
7877 int _arg0;
7878 int _arg1;
7879 int _arg2 = (int ) TRUE;
7880 int _arg3 = (int ) 1;
7881 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
7882 char _ptemp[128];
7883
7884 self = self;
7885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
7886 return NULL;
7887 {
7888 wxPy_BEGIN_ALLOW_THREADS;
7889 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
7890
7891 wxPy_END_ALLOW_THREADS;
7892 } if (_result) {
7893 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
7894 _resultobj = Py_BuildValue("s",_ptemp);
7895 } else {
7896 Py_INCREF(Py_None);
7897 _resultobj = Py_None;
7898 }
7899 return _resultobj;
7900 }
7901
7902 #define delete_wxImageList(_swigobj) (delete _swigobj)
7903 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject * _resultobj;
7905 wxImageList * _arg0;
7906 PyObject * _argo0 = 0;
7907 char *_kwnames[] = { "self", NULL };
7908
7909 self = self;
7910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
7911 return NULL;
7912 if (_argo0) {
7913 if (_argo0 == Py_None) { _arg0 = NULL; }
7914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
7915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
7916 return NULL;
7917 }
7918 }
7919 {
7920 wxPy_BEGIN_ALLOW_THREADS;
7921 delete_wxImageList(_arg0);
7922
7923 wxPy_END_ALLOW_THREADS;
7924 } Py_INCREF(Py_None);
7925 _resultobj = Py_None;
7926 return _resultobj;
7927 }
7928
7929 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7930 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
7931 PyObject * _resultobj;
7932 int _result;
7933 wxImageList * _arg0;
7934 wxBitmap * _arg1;
7935 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
7936 PyObject * _argo0 = 0;
7937 PyObject * _argo1 = 0;
7938 PyObject * _argo2 = 0;
7939 char *_kwnames[] = { "self","bitmap","mask", NULL };
7940
7941 self = self;
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
7943 return NULL;
7944 if (_argo0) {
7945 if (_argo0 == Py_None) { _arg0 = NULL; }
7946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
7947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
7948 return NULL;
7949 }
7950 }
7951 if (_argo1) {
7952 if (_argo1 == Py_None) { _arg1 = NULL; }
7953 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7954 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
7955 return NULL;
7956 }
7957 }
7958 if (_argo2) {
7959 if (_argo2 == Py_None) { _arg2 = NULL; }
7960 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7961 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
7962 return NULL;
7963 }
7964 }
7965 {
7966 wxPy_BEGIN_ALLOW_THREADS;
7967 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
7968
7969 wxPy_END_ALLOW_THREADS;
7970 } _resultobj = Py_BuildValue("i",_result);
7971 return _resultobj;
7972 }
7973
7974 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7975 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7976 PyObject * _resultobj;
7977 int _result;
7978 wxImageList * _arg0;
7979 wxBitmap * _arg1;
7980 wxColour * _arg2;
7981 PyObject * _argo0 = 0;
7982 PyObject * _argo1 = 0;
7983 wxColour temp;
7984 PyObject * _obj2 = 0;
7985 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
7986
7987 self = self;
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
7989 return NULL;
7990 if (_argo0) {
7991 if (_argo0 == Py_None) { _arg0 = NULL; }
7992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
7993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
7994 return NULL;
7995 }
7996 }
7997 if (_argo1) {
7998 if (_argo1 == Py_None) { _arg1 = NULL; }
7999 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8000 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8001 return NULL;
8002 }
8003 }
8004 {
8005 _arg2 = &temp;
8006 if (! wxColour_helper(_obj2, &_arg2))
8007 return NULL;
8008 }
8009 {
8010 wxPy_BEGIN_ALLOW_THREADS;
8011 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
8012
8013 wxPy_END_ALLOW_THREADS;
8014 } _resultobj = Py_BuildValue("i",_result);
8015 return _resultobj;
8016 }
8017
8018 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8019 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8020 PyObject * _resultobj;
8021 int _result;
8022 wxImageList * _arg0;
8023 wxIcon * _arg1;
8024 PyObject * _argo0 = 0;
8025 PyObject * _argo1 = 0;
8026 char *_kwnames[] = { "self","icon", NULL };
8027
8028 self = self;
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
8030 return NULL;
8031 if (_argo0) {
8032 if (_argo0 == Py_None) { _arg0 = NULL; }
8033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8035 return NULL;
8036 }
8037 }
8038 if (_argo1) {
8039 if (_argo1 == Py_None) { _arg1 = NULL; }
8040 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8041 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8042 return NULL;
8043 }
8044 }
8045 {
8046 wxPy_BEGIN_ALLOW_THREADS;
8047 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
8048
8049 wxPy_END_ALLOW_THREADS;
8050 } _resultobj = Py_BuildValue("i",_result);
8051 return _resultobj;
8052 }
8053
8054 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8055 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8056 PyObject * _resultobj;
8057 bool _result;
8058 wxImageList * _arg0;
8059 int _arg1;
8060 wxBitmap * _arg2;
8061 PyObject * _argo0 = 0;
8062 PyObject * _argo2 = 0;
8063 char *_kwnames[] = { "self","index","bitmap", NULL };
8064
8065 self = self;
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
8067 return NULL;
8068 if (_argo0) {
8069 if (_argo0 == Py_None) { _arg0 = NULL; }
8070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8072 return NULL;
8073 }
8074 }
8075 if (_argo2) {
8076 if (_argo2 == Py_None) { _arg2 = NULL; }
8077 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8078 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8079 return NULL;
8080 }
8081 }
8082 {
8083 wxPy_BEGIN_ALLOW_THREADS;
8084 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
8085
8086 wxPy_END_ALLOW_THREADS;
8087 } _resultobj = Py_BuildValue("i",_result);
8088 return _resultobj;
8089 }
8090
8091 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8092 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
8093 PyObject * _resultobj;
8094 bool _result;
8095 wxImageList * _arg0;
8096 int _arg1;
8097 wxDC * _arg2;
8098 int _arg3;
8099 int _arg4;
8100 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
8101 bool _arg6 = (bool ) FALSE;
8102 PyObject * _argo0 = 0;
8103 PyObject * _argo2 = 0;
8104 int tempbool6 = (int) FALSE;
8105 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
8106
8107 self = self;
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
8109 return NULL;
8110 if (_argo0) {
8111 if (_argo0 == Py_None) { _arg0 = NULL; }
8112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8114 return NULL;
8115 }
8116 }
8117 if (_argo2) {
8118 if (_argo2 == Py_None) { _arg2 = NULL; }
8119 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
8120 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8121 return NULL;
8122 }
8123 }
8124 _arg6 = (bool ) tempbool6;
8125 {
8126 wxPy_BEGIN_ALLOW_THREADS;
8127 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
8128
8129 wxPy_END_ALLOW_THREADS;
8130 } _resultobj = Py_BuildValue("i",_result);
8131 return _resultobj;
8132 }
8133
8134 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8135 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8136 PyObject * _resultobj;
8137 int _result;
8138 wxImageList * _arg0;
8139 PyObject * _argo0 = 0;
8140 char *_kwnames[] = { "self", NULL };
8141
8142 self = self;
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
8144 return NULL;
8145 if (_argo0) {
8146 if (_argo0 == Py_None) { _arg0 = NULL; }
8147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8149 return NULL;
8150 }
8151 }
8152 {
8153 wxPy_BEGIN_ALLOW_THREADS;
8154 _result = (int )wxImageList_GetImageCount(_arg0);
8155
8156 wxPy_END_ALLOW_THREADS;
8157 } _resultobj = Py_BuildValue("i",_result);
8158 return _resultobj;
8159 }
8160
8161 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8162 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject * _resultobj;
8164 bool _result;
8165 wxImageList * _arg0;
8166 int _arg1;
8167 PyObject * _argo0 = 0;
8168 char *_kwnames[] = { "self","index", NULL };
8169
8170 self = self;
8171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
8172 return NULL;
8173 if (_argo0) {
8174 if (_argo0 == Py_None) { _arg0 = NULL; }
8175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8177 return NULL;
8178 }
8179 }
8180 {
8181 wxPy_BEGIN_ALLOW_THREADS;
8182 _result = (bool )wxImageList_Remove(_arg0,_arg1);
8183
8184 wxPy_END_ALLOW_THREADS;
8185 } _resultobj = Py_BuildValue("i",_result);
8186 return _resultobj;
8187 }
8188
8189 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8190 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8191 PyObject * _resultobj;
8192 bool _result;
8193 wxImageList * _arg0;
8194 PyObject * _argo0 = 0;
8195 char *_kwnames[] = { "self", NULL };
8196
8197 self = self;
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
8199 return NULL;
8200 if (_argo0) {
8201 if (_argo0 == Py_None) { _arg0 = NULL; }
8202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8204 return NULL;
8205 }
8206 }
8207 {
8208 wxPy_BEGIN_ALLOW_THREADS;
8209 _result = (bool )wxImageList_RemoveAll(_arg0);
8210
8211 wxPy_END_ALLOW_THREADS;
8212 } _resultobj = Py_BuildValue("i",_result);
8213 return _resultobj;
8214 }
8215
8216 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8217 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8218 PyObject * _resultobj;
8219 wxImageList * _arg0;
8220 int _arg1;
8221 int * _arg2;
8222 int temp;
8223 int * _arg3;
8224 int temp0;
8225 PyObject * _argo0 = 0;
8226 char *_kwnames[] = { "self","index", NULL };
8227
8228 self = self;
8229 {
8230 _arg2 = &temp;
8231 }
8232 {
8233 _arg3 = &temp0;
8234 }
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
8236 return NULL;
8237 if (_argo0) {
8238 if (_argo0 == Py_None) { _arg0 = NULL; }
8239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8241 return NULL;
8242 }
8243 }
8244 {
8245 wxPy_BEGIN_ALLOW_THREADS;
8246 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
8247
8248 wxPy_END_ALLOW_THREADS;
8249 } Py_INCREF(Py_None);
8250 _resultobj = Py_None;
8251 {
8252 PyObject *o;
8253 o = PyInt_FromLong((long) (*_arg2));
8254 _resultobj = t_output_helper(_resultobj, o);
8255 }
8256 {
8257 PyObject *o;
8258 o = PyInt_FromLong((long) (*_arg3));
8259 _resultobj = t_output_helper(_resultobj, o);
8260 }
8261 return _resultobj;
8262 }
8263
8264 static PyMethodDef gdicMethods[] = {
8265 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
8266 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
8267 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
8268 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
8269 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
8270 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
8271 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
8272 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
8273 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
8274 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
8275 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
8276 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
8277 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
8278 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
8279 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
8280 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
8281 { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
8282 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
8283 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
8284 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
8285 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
8286 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
8287 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
8288 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
8289 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
8290 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
8291 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
8292 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
8293 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
8294 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
8295 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
8296 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
8297 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
8298 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
8299 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
8300 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
8301 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
8302 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
8303 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
8304 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
8305 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
8306 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
8307 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
8308 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
8309 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
8310 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
8311 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
8312 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
8313 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
8314 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
8315 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
8316 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
8317 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
8318 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
8319 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
8320 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
8321 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
8322 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
8323 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
8324 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
8325 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
8326 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
8327 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
8328 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
8329 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
8330 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
8331 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
8332 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
8333 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
8334 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
8335 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
8336 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
8337 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
8338 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
8339 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
8340 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
8341 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
8342 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
8343 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
8344 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
8345 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
8346 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
8347 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
8348 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
8349 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
8350 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
8351 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
8352 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
8353 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
8354 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
8355 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
8356 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
8357 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
8358 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
8359 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
8360 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
8361 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
8362 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
8363 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
8364 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
8365 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
8366 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
8367 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
8368 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
8369 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
8370 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
8371 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
8372 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
8373 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
8374 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
8375 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
8376 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
8377 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
8378 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
8379 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
8380 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
8381 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
8382 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
8383 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
8384 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
8385 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
8386 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
8387 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
8388 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
8389 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
8390 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
8391 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
8392 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
8393 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
8394 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
8395 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
8396 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
8397 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
8398 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
8399 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
8400 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
8401 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
8402 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
8403 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
8404 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
8405 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
8406 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
8407 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
8408 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
8409 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
8410 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
8411 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
8412 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
8413 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
8414 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
8415 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
8416 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
8417 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
8418 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
8419 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
8420 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
8421 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
8422 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
8423 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
8424 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
8425 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
8426 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
8427 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
8428 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
8429 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
8430 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
8431 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
8432 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
8433 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
8434 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
8435 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
8436 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
8437 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
8438 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
8439 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
8440 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
8441 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
8442 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
8443 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
8444 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
8445 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
8446 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
8447 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
8448 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
8449 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
8450 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
8451 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
8452 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
8453 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
8454 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
8455 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
8456 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
8457 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
8458 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
8459 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
8460 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
8461 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
8462 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
8463 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
8464 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
8465 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
8466 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
8467 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
8468 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
8469 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
8470 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
8471 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
8472 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
8473 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
8474 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
8475 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
8476 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
8477 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
8478 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
8479 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
8480 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
8481 { NULL, NULL }
8482 };
8483 #ifdef __cplusplus
8484 }
8485 #endif
8486 /*
8487 * This table is used by the pointer type-checker
8488 */
8489 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
8490 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
8491 { "_signed_long","_long",0},
8492 { "_wxPrintQuality","_wxCoord",0},
8493 { "_wxPrintQuality","_int",0},
8494 { "_wxPrintQuality","_signed_int",0},
8495 { "_wxPrintQuality","_unsigned_int",0},
8496 { "_wxPrintQuality","_wxWindowID",0},
8497 { "_wxPrintQuality","_uint",0},
8498 { "_wxPrintQuality","_EBool",0},
8499 { "_wxPrintQuality","_size_t",0},
8500 { "_wxPrintQuality","_time_t",0},
8501 { "_class_wxRegionIterator","_wxRegionIterator",0},
8502 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
8503 { "_wxCursor","_class_wxCursor",0},
8504 { "_wxMask","_class_wxMask",0},
8505 { "_wxPen","_class_wxPen",0},
8506 { "_byte","_unsigned_char",0},
8507 { "_wxColourDatabase","_class_wxColourDatabase",0},
8508 { "_long","_unsigned_long",0},
8509 { "_long","_signed_long",0},
8510 { "_wxImageList","_class_wxImageList",0},
8511 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
8512 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
8513 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
8514 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
8515 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
8516 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
8517 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
8518 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
8519 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
8520 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
8521 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
8522 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
8523 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
8524 { "_wxDC","_class_wxDC",0},
8525 { "_size_t","_wxCoord",0},
8526 { "_size_t","_wxPrintQuality",0},
8527 { "_size_t","_time_t",0},
8528 { "_size_t","_unsigned_int",0},
8529 { "_size_t","_int",0},
8530 { "_size_t","_wxWindowID",0},
8531 { "_size_t","_uint",0},
8532 { "_class_wxRealPoint","_wxRealPoint",0},
8533 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
8534 { "_class_wxMask","_wxMask",0},
8535 { "_wxColour","_class_wxColour",0},
8536 { "_wxBrush","_class_wxBrush",0},
8537 { "_uint","_wxCoord",0},
8538 { "_uint","_wxPrintQuality",0},
8539 { "_uint","_time_t",0},
8540 { "_uint","_size_t",0},
8541 { "_uint","_unsigned_int",0},
8542 { "_uint","_int",0},
8543 { "_uint","_wxWindowID",0},
8544 { "_wxChar","_char",0},
8545 { "_wxRect","_class_wxRect",0},
8546 { "_wxPoint","_class_wxPoint",0},
8547 { "_char","_wxChar",0},
8548 { "_wxBitmap","_class_wxBitmap",0},
8549 { "_wxPenList","_class_wxPenList",0},
8550 { "_wxWindowDC","_class_wxWindowDC",0},
8551 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
8552 { "_class_wxColourDatabase","_wxColourDatabase",0},
8553 { "_EBool","_wxCoord",0},
8554 { "_EBool","_wxPrintQuality",0},
8555 { "_EBool","_signed_int",0},
8556 { "_EBool","_int",0},
8557 { "_EBool","_wxWindowID",0},
8558 { "_class_wxRegion","_wxRegion",0},
8559 { "_wxFont","_class_wxFont",0},
8560 { "_unsigned_long","_long",0},
8561 { "_class_wxRect","_wxRect",0},
8562 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
8563 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
8564 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
8565 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
8566 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
8567 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
8568 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
8569 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
8570 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
8571 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
8572 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
8573 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
8574 { "_class_wxDC","_wxDC",0},
8575 { "_class_wxBrushList","_wxBrushList",0},
8576 { "_class_wxPenList","_wxPenList",0},
8577 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
8578 { "_signed_int","_wxCoord",0},
8579 { "_signed_int","_wxPrintQuality",0},
8580 { "_signed_int","_EBool",0},
8581 { "_signed_int","_wxWindowID",0},
8582 { "_signed_int","_int",0},
8583 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
8584 { "_wxScreenDC","_class_wxScreenDC",0},
8585 { "_WXTYPE","_short",0},
8586 { "_WXTYPE","_signed_short",0},
8587 { "_WXTYPE","_unsigned_short",0},
8588 { "_class_wxBrush","_wxBrush",0},
8589 { "_unsigned_short","_WXTYPE",0},
8590 { "_unsigned_short","_short",0},
8591 { "_class_wxFont","_wxFont",0},
8592 { "_wxBusyInfo","_class_wxBusyInfo",0},
8593 { "_wxFontList","_class_wxFontList",0},
8594 { "_wxClientDC","_class_wxClientDC",0},
8595 { "_class_wxPoint","_wxPoint",0},
8596 { "_wxRealPoint","_class_wxRealPoint",0},
8597 { "_signed_short","_WXTYPE",0},
8598 { "_signed_short","_short",0},
8599 { "_wxMemoryDC","_class_wxMemoryDC",0},
8600 { "_wxPaintDC","_class_wxPaintDC",0},
8601 { "_class_wxWindowDC","_wxWindowDC",0},
8602 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8603 { "_class_wxCursor","_wxCursor",0},
8604 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
8605 { "_unsigned_char","_byte",0},
8606 { "_unsigned_int","_wxCoord",0},
8607 { "_unsigned_int","_wxPrintQuality",0},
8608 { "_unsigned_int","_time_t",0},
8609 { "_unsigned_int","_size_t",0},
8610 { "_unsigned_int","_uint",0},
8611 { "_unsigned_int","_wxWindowID",0},
8612 { "_unsigned_int","_int",0},
8613 { "_wxIcon","_class_wxIcon",0},
8614 { "_class_wxPen","_wxPen",0},
8615 { "_short","_WXTYPE",0},
8616 { "_short","_unsigned_short",0},
8617 { "_short","_signed_short",0},
8618 { "_class_wxImageList","_wxImageList",0},
8619 { "_wxWindowID","_wxCoord",0},
8620 { "_wxWindowID","_wxPrintQuality",0},
8621 { "_wxWindowID","_time_t",0},
8622 { "_wxWindowID","_size_t",0},
8623 { "_wxWindowID","_EBool",0},
8624 { "_wxWindowID","_uint",0},
8625 { "_wxWindowID","_int",0},
8626 { "_wxWindowID","_signed_int",0},
8627 { "_wxWindowID","_unsigned_int",0},
8628 { "_int","_wxCoord",0},
8629 { "_int","_wxPrintQuality",0},
8630 { "_int","_time_t",0},
8631 { "_int","_size_t",0},
8632 { "_int","_EBool",0},
8633 { "_int","_uint",0},
8634 { "_int","_wxWindowID",0},
8635 { "_int","_unsigned_int",0},
8636 { "_int","_signed_int",0},
8637 { "_time_t","_wxCoord",0},
8638 { "_time_t","_wxPrintQuality",0},
8639 { "_time_t","_unsigned_int",0},
8640 { "_time_t","_int",0},
8641 { "_time_t","_wxWindowID",0},
8642 { "_time_t","_uint",0},
8643 { "_time_t","_size_t",0},
8644 { "_wxSize","_class_wxSize",0},
8645 { "_wxRegionIterator","_class_wxRegionIterator",0},
8646 { "_class_wxPaintDC","_wxPaintDC",0},
8647 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8648 { "_class_wxIcon","_wxIcon",0},
8649 { "_class_wxColour","_wxColour",0},
8650 { "_class_wxScreenDC","_wxScreenDC",0},
8651 { "_wxPalette","_class_wxPalette",0},
8652 { "_wxCoord","_int",0},
8653 { "_wxCoord","_signed_int",0},
8654 { "_wxCoord","_unsigned_int",0},
8655 { "_wxCoord","_wxWindowID",0},
8656 { "_wxCoord","_uint",0},
8657 { "_wxCoord","_EBool",0},
8658 { "_wxCoord","_size_t",0},
8659 { "_wxCoord","_time_t",0},
8660 { "_wxCoord","_wxPrintQuality",0},
8661 { "_wxRegion","_class_wxRegion",0},
8662 { "_class_wxBusyInfo","_wxBusyInfo",0},
8663 { "_class_wxFontList","_wxFontList",0},
8664 { "_class_wxClientDC","_wxClientDC",0},
8665 { "_wxBrushList","_class_wxBrushList",0},
8666 { "_class_wxSize","_wxSize",0},
8667 { "_class_wxBitmap","_wxBitmap",0},
8668 { "_class_wxMemoryDC","_wxMemoryDC",0},
8669 { "_class_wxPalette","_wxPalette",0},
8670 {0,0,0}};
8671
8672 static PyObject *SWIG_globals;
8673 #ifdef __cplusplus
8674 extern "C"
8675 #endif
8676 SWIGEXPORT(void) initgdic() {
8677 PyObject *m, *d;
8678 SWIG_globals = SWIG_newvarlink();
8679 m = Py_InitModule("gdic", gdicMethods);
8680 d = PyModule_GetDict(m);
8681 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
8682 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
8683 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
8684 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
8685 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
8686 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
8687 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
8688 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
8689 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
8690 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
8691 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
8692 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
8693 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
8694 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
8695 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
8696 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
8697 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
8698 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
8699 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
8700 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
8701 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
8702 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
8703 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
8704 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
8705 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
8706 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
8707 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
8708 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
8709 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
8710 PyDict_SetItemString(d,"cvar", SWIG_globals);
8711 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
8712 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
8713 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
8714 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
8715 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
8716 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
8717 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
8718 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
8719 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
8720 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
8721 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
8722 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
8723 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
8724 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
8725 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
8726 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
8727 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
8728 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
8729 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
8730 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
8731 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
8732 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
8733 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
8734 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
8735 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
8736 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
8737 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
8738 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
8739 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
8740 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
8741 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
8742 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
8743 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
8744 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
8745 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
8746 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
8747 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
8748 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
8749 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
8750 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
8751 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
8752 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
8753 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
8754 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
8755 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
8756 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
8757 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
8758 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
8759 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
8760 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
8761 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
8762 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
8763 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
8764 {
8765 int i;
8766 for (i = 0; _swig_mapping[i].n1; i++)
8767 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
8768 }
8769 }