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