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