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