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