]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/gdi.cpp
Prep for wxPython 2.1b3 release
[wxWidgets.git] / utils / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 802)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initgdic
53
54 #define SWIG_name "gdic"
55
56 #include "helpers.h"
57 #include <wx/metafile.h>
58 #include <wx/imaglist.h>
59 #ifndef __WXMSW__
60 #include <wx/dcps.h>
61 #endif
62
63 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyList_Check(target)) {
73 o2 = target;
74 target = PyList_New(0);
75 PyList_Append(target, o2);
76 Py_XDECREF(o2);
77 }
78 PyList_Append(target,o);
79 Py_XDECREF(o);
80 }
81 return target;
82 }
83
84 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
85 PyObject* o2;
86 PyObject* o3;
87
88 if (!target) {
89 target = o;
90 } else if (target == Py_None) {
91 Py_DECREF(Py_None);
92 target = o;
93 } else {
94 if (!PyTuple_Check(target)) {
95 o2 = target;
96 target = PyTuple_New(1);
97 PyTuple_SetItem(target, 0, o2);
98 }
99 o3 = PyTuple_New(1);
100 PyTuple_SetItem(o3, 0, o);
101
102 o2 = target;
103 target = PySequence_Concat(o2, o3);
104 Py_DECREF(o2);
105 Py_DECREF(o3);
106 }
107 return target;
108 }
109
110
111 extern byte* byte_LIST_helper(PyObject* source);
112 extern int* int_LIST_helper(PyObject* source);
113 extern long* long_LIST_helper(PyObject* source);
114 extern char** string_LIST_helper(PyObject* source);
115 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
116 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
117 extern wxString* wxString_LIST_helper(PyObject* source);
118 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
119
120
121 static char* wxStringErrorMsg = "string type is required for parameter";
122 // Alternate 'constructor'
123 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
124 return new wxBitmap(width, height, depth);
125 }
126
127 // This one won't own the reference, so Python
128 // won't call the dtor, this is good for
129 // toolbars and such where the parent will
130 // manage the bitmap.
131 wxBitmap* wxNoRefBitmap(char* name, long flags) {
132 return new wxBitmap(name, flags);
133 }
134
135 #ifdef __WXMSW__
136 wxBitmap* wxBitmapFromData(char* data, long type,
137 int width, int height, int depth = 1) {
138 return new wxBitmap((void*)data, type, width, height, depth);
139 }
140 #endif
141
142 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
143 return new wxMask(bitmap, colour);
144 }
145 // Alternate 'constructor'
146 wxCursor* wxPyStockCursor(int id) {
147 return new wxCursor(id);
148 }
149 // Alternate 'constructor'
150 wxColour* wxNamedColour(const wxString& colorName) {
151 return new wxColour(colorName);
152 }
153 // Alternate 'constructor'
154 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
155 return new wxMemoryDC(oldDC);
156 }
157
158 #if 0
159 extern wxFont * wxNORMAL_FONT;
160 extern wxFont * wxSMALL_FONT;
161 extern wxFont * wxITALIC_FONT;
162 extern wxFont * wxSWISS_FONT;
163 extern wxPen * wxRED_PEN;
164 extern wxPen * wxCYAN_PEN;
165 extern wxPen * wxGREEN_PEN;
166 extern wxPen * wxBLACK_PEN;
167 extern wxPen * wxWHITE_PEN;
168 extern wxPen * wxTRANSPARENT_PEN;
169 extern wxPen * wxBLACK_DASHED_PEN;
170 extern wxPen * wxGREY_PEN;
171 extern wxPen * wxMEDIUM_GREY_PEN;
172 extern wxPen * wxLIGHT_GREY_PEN;
173 extern wxBrush * wxBLUE_BRUSH;
174 extern wxBrush * wxGREEN_BRUSH;
175 extern wxBrush * wxWHITE_BRUSH;
176 extern wxBrush * wxBLACK_BRUSH;
177 extern wxBrush * wxTRANSPARENT_BRUSH;
178 extern wxBrush * wxCYAN_BRUSH;
179 extern wxBrush * wxRED_BRUSH;
180 extern wxBrush * wxGREY_BRUSH;
181 extern wxBrush * wxMEDIUM_GREY_BRUSH;
182 extern wxBrush * wxLIGHT_GREY_BRUSH;
183 extern wxColour * wxBLACK;
184 extern wxColour * wxWHITE;
185 extern wxColour * wxRED;
186 extern wxColour * wxBLUE;
187 extern wxColour * wxGREEN;
188 extern wxColour * wxCYAN;
189 extern wxColour * wxLIGHT_GREY;
190 extern wxCursor * wxSTANDARD_CURSOR;
191 extern wxCursor * wxHOURGLASS_CURSOR;
192 extern wxCursor * wxCROSS_CURSOR;
193 extern wxBitmap wxNullBitmap;
194 extern wxIcon wxNullIcon;
195 extern wxCursor wxNullCursor;
196 extern wxPen wxNullPen;
197 extern wxBrush wxNullBrush;
198 extern wxPalette wxNullPalette;
199 extern wxFont wxNullFont;
200 extern wxColour wxNullColour;
201
202 #endif
203 #ifdef __cplusplus
204 extern "C" {
205 #endif
206 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args) {
207 PyObject * _resultobj;
208 wxBitmap * _result;
209 int _arg0;
210 int _arg1;
211 int _arg2 = (int ) -1;
212 char _ptemp[128];
213
214 self = self;
215 if(!PyArg_ParseTuple(args,"ii|i:wxEmptyBitmap",&_arg0,&_arg1,&_arg2))
216 return NULL;
217 {
218 wxPy_BEGIN_ALLOW_THREADS;
219 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
220
221 wxPy_END_ALLOW_THREADS;
222 } if (_result) {
223 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
224 _resultobj = Py_BuildValue("s",_ptemp);
225 } else {
226 Py_INCREF(Py_None);
227 _resultobj = Py_None;
228 }
229 return _resultobj;
230 }
231
232 static PyObject *_wrap_wxNoRefBitmap(PyObject *self, PyObject *args) {
233 PyObject * _resultobj;
234 wxBitmap * _result;
235 char * _arg0;
236 long _arg1;
237 char _ptemp[128];
238
239 self = self;
240 if(!PyArg_ParseTuple(args,"sl:wxNoRefBitmap",&_arg0,&_arg1))
241 return NULL;
242 {
243 wxPy_BEGIN_ALLOW_THREADS;
244 _result = (wxBitmap *)wxNoRefBitmap(_arg0,_arg1);
245
246 wxPy_END_ALLOW_THREADS;
247 } if (_result) {
248 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
249 _resultobj = Py_BuildValue("s",_ptemp);
250 } else {
251 Py_INCREF(Py_None);
252 _resultobj = Py_None;
253 }
254 return _resultobj;
255 }
256
257 static PyObject *_wrap_wxBitmapFromData(PyObject *self, PyObject *args) {
258 PyObject * _resultobj;
259 wxBitmap * _result;
260 char * _arg0;
261 long _arg1;
262 int _arg2;
263 int _arg3;
264 int _arg4 = (int ) 1;
265 char _ptemp[128];
266
267 self = self;
268 if(!PyArg_ParseTuple(args,"slii|i:wxBitmapFromData",&_arg0,&_arg1,&_arg2,&_arg3,&_arg4))
269 return NULL;
270 {
271 wxPy_BEGIN_ALLOW_THREADS;
272 _result = (wxBitmap *)wxBitmapFromData(_arg0,_arg1,_arg2,_arg3,_arg4);
273
274 wxPy_END_ALLOW_THREADS;
275 } if (_result) {
276 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
277 _resultobj = Py_BuildValue("s",_ptemp);
278 } else {
279 Py_INCREF(Py_None);
280 _resultobj = Py_None;
281 }
282 return _resultobj;
283 }
284
285 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args) {
286 PyObject * _resultobj;
287 wxMask * _result;
288 wxBitmap * _arg0;
289 wxColour * _arg1;
290 PyObject * _argo0 = 0;
291 PyObject * _argo1 = 0;
292 char _ptemp[128];
293
294 self = self;
295 if(!PyArg_ParseTuple(args,"OO:wxMaskColour",&_argo0,&_argo1))
296 return NULL;
297 if (_argo0) {
298 if (_argo0 == Py_None) { _arg0 = NULL; }
299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
301 return NULL;
302 }
303 }
304 if (_argo1) {
305 if (_argo1 == Py_None) { _arg1 = NULL; }
306 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
307 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMaskColour. Expected _wxColour_p.");
308 return NULL;
309 }
310 }
311 {
312 wxPy_BEGIN_ALLOW_THREADS;
313 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
314
315 wxPy_END_ALLOW_THREADS;
316 } if (_result) {
317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
318 _resultobj = Py_BuildValue("s",_ptemp);
319 } else {
320 Py_INCREF(Py_None);
321 _resultobj = Py_None;
322 }
323 return _resultobj;
324 }
325
326 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args) {
327 PyObject * _resultobj;
328 wxCursor * _result;
329 int _arg0;
330 char _ptemp[128];
331
332 self = self;
333 if(!PyArg_ParseTuple(args,"i:wxStockCursor",&_arg0))
334 return NULL;
335 {
336 wxPy_BEGIN_ALLOW_THREADS;
337 _result = (wxCursor *)wxPyStockCursor(_arg0);
338
339 wxPy_END_ALLOW_THREADS;
340 } if (_result) {
341 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
342 _resultobj = Py_BuildValue("s",_ptemp);
343 } else {
344 Py_INCREF(Py_None);
345 _resultobj = Py_None;
346 }
347 return _resultobj;
348 }
349
350 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args) {
351 PyObject * _resultobj;
352 wxColour * _result;
353 wxString * _arg0;
354 PyObject * _obj0 = 0;
355 char _ptemp[128];
356
357 self = self;
358 if(!PyArg_ParseTuple(args,"O:wxNamedColour",&_obj0))
359 return NULL;
360 {
361 if (!PyString_Check(_obj0)) {
362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
363 return NULL;
364 }
365 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
366 }
367 {
368 wxPy_BEGIN_ALLOW_THREADS;
369 _result = (wxColour *)wxNamedColour(*_arg0);
370
371 wxPy_END_ALLOW_THREADS;
372 } if (_result) {
373 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
374 _resultobj = Py_BuildValue("s",_ptemp);
375 } else {
376 Py_INCREF(Py_None);
377 _resultobj = Py_None;
378 }
379 {
380 if (_obj0)
381 delete _arg0;
382 }
383 return _resultobj;
384 }
385
386 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args) {
387 PyObject * _resultobj;
388 wxMemoryDC * _result;
389 wxDC * _arg0;
390 PyObject * _argo0 = 0;
391 char _ptemp[128];
392
393 self = self;
394 if(!PyArg_ParseTuple(args,"O:wxMemoryDCFromDC",&_argo0))
395 return NULL;
396 if (_argo0) {
397 if (_argo0 == Py_None) { _arg0 = NULL; }
398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
400 return NULL;
401 }
402 }
403 {
404 wxPy_BEGIN_ALLOW_THREADS;
405 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
406
407 wxPy_END_ALLOW_THREADS;
408 } if (_result) {
409 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
410 _resultobj = Py_BuildValue("s",_ptemp);
411 } else {
412 Py_INCREF(Py_None);
413 _resultobj = Py_None;
414 }
415 return _resultobj;
416 }
417
418 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
419
420 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
421 return 1;
422 }
423
424 static PyObject *_wrap_wxNORMAL_FONT_get() {
425 PyObject * pyobj;
426 char ptemp[128];
427
428 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
429 pyobj = PyString_FromString(ptemp);
430 return pyobj;
431 }
432
433 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
434
435 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
436 return 1;
437 }
438
439 static PyObject *_wrap_wxSMALL_FONT_get() {
440 PyObject * pyobj;
441 char ptemp[128];
442
443 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
444 pyobj = PyString_FromString(ptemp);
445 return pyobj;
446 }
447
448 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
449
450 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
451 return 1;
452 }
453
454 static PyObject *_wrap_wxITALIC_FONT_get() {
455 PyObject * pyobj;
456 char ptemp[128];
457
458 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
459 pyobj = PyString_FromString(ptemp);
460 return pyobj;
461 }
462
463 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
464
465 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
466 return 1;
467 }
468
469 static PyObject *_wrap_wxSWISS_FONT_get() {
470 PyObject * pyobj;
471 char ptemp[128];
472
473 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
474 pyobj = PyString_FromString(ptemp);
475 return pyobj;
476 }
477
478 static int _wrap_wxRED_PEN_set(PyObject *val) {
479
480 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
481 return 1;
482 }
483
484 static PyObject *_wrap_wxRED_PEN_get() {
485 PyObject * pyobj;
486 char ptemp[128];
487
488 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
489 pyobj = PyString_FromString(ptemp);
490 return pyobj;
491 }
492
493 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
494
495 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
496 return 1;
497 }
498
499 static PyObject *_wrap_wxCYAN_PEN_get() {
500 PyObject * pyobj;
501 char ptemp[128];
502
503 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
504 pyobj = PyString_FromString(ptemp);
505 return pyobj;
506 }
507
508 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
509
510 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
511 return 1;
512 }
513
514 static PyObject *_wrap_wxGREEN_PEN_get() {
515 PyObject * pyobj;
516 char ptemp[128];
517
518 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
519 pyobj = PyString_FromString(ptemp);
520 return pyobj;
521 }
522
523 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
524
525 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
526 return 1;
527 }
528
529 static PyObject *_wrap_wxBLACK_PEN_get() {
530 PyObject * pyobj;
531 char ptemp[128];
532
533 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
534 pyobj = PyString_FromString(ptemp);
535 return pyobj;
536 }
537
538 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
539
540 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
541 return 1;
542 }
543
544 static PyObject *_wrap_wxWHITE_PEN_get() {
545 PyObject * pyobj;
546 char ptemp[128];
547
548 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
549 pyobj = PyString_FromString(ptemp);
550 return pyobj;
551 }
552
553 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
554
555 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
556 return 1;
557 }
558
559 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
560 PyObject * pyobj;
561 char ptemp[128];
562
563 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
564 pyobj = PyString_FromString(ptemp);
565 return pyobj;
566 }
567
568 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
569
570 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
571 return 1;
572 }
573
574 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
575 PyObject * pyobj;
576 char ptemp[128];
577
578 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
579 pyobj = PyString_FromString(ptemp);
580 return pyobj;
581 }
582
583 static int _wrap_wxGREY_PEN_set(PyObject *val) {
584
585 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
586 return 1;
587 }
588
589 static PyObject *_wrap_wxGREY_PEN_get() {
590 PyObject * pyobj;
591 char ptemp[128];
592
593 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
594 pyobj = PyString_FromString(ptemp);
595 return pyobj;
596 }
597
598 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
599
600 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
601 return 1;
602 }
603
604 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
605 PyObject * pyobj;
606 char ptemp[128];
607
608 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
609 pyobj = PyString_FromString(ptemp);
610 return pyobj;
611 }
612
613 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
614
615 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
616 return 1;
617 }
618
619 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
620 PyObject * pyobj;
621 char ptemp[128];
622
623 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
624 pyobj = PyString_FromString(ptemp);
625 return pyobj;
626 }
627
628 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
629
630 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
631 return 1;
632 }
633
634 static PyObject *_wrap_wxBLUE_BRUSH_get() {
635 PyObject * pyobj;
636 char ptemp[128];
637
638 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
639 pyobj = PyString_FromString(ptemp);
640 return pyobj;
641 }
642
643 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
644
645 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
646 return 1;
647 }
648
649 static PyObject *_wrap_wxGREEN_BRUSH_get() {
650 PyObject * pyobj;
651 char ptemp[128];
652
653 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
654 pyobj = PyString_FromString(ptemp);
655 return pyobj;
656 }
657
658 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
659
660 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
661 return 1;
662 }
663
664 static PyObject *_wrap_wxWHITE_BRUSH_get() {
665 PyObject * pyobj;
666 char ptemp[128];
667
668 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
669 pyobj = PyString_FromString(ptemp);
670 return pyobj;
671 }
672
673 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
674
675 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
676 return 1;
677 }
678
679 static PyObject *_wrap_wxBLACK_BRUSH_get() {
680 PyObject * pyobj;
681 char ptemp[128];
682
683 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
684 pyobj = PyString_FromString(ptemp);
685 return pyobj;
686 }
687
688 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
689
690 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
691 return 1;
692 }
693
694 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
695 PyObject * pyobj;
696 char ptemp[128];
697
698 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
699 pyobj = PyString_FromString(ptemp);
700 return pyobj;
701 }
702
703 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
704
705 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
706 return 1;
707 }
708
709 static PyObject *_wrap_wxCYAN_BRUSH_get() {
710 PyObject * pyobj;
711 char ptemp[128];
712
713 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
714 pyobj = PyString_FromString(ptemp);
715 return pyobj;
716 }
717
718 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
719
720 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
721 return 1;
722 }
723
724 static PyObject *_wrap_wxRED_BRUSH_get() {
725 PyObject * pyobj;
726 char ptemp[128];
727
728 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
729 pyobj = PyString_FromString(ptemp);
730 return pyobj;
731 }
732
733 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
734
735 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
736 return 1;
737 }
738
739 static PyObject *_wrap_wxGREY_BRUSH_get() {
740 PyObject * pyobj;
741 char ptemp[128];
742
743 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
744 pyobj = PyString_FromString(ptemp);
745 return pyobj;
746 }
747
748 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
749
750 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
751 return 1;
752 }
753
754 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
755 PyObject * pyobj;
756 char ptemp[128];
757
758 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
759 pyobj = PyString_FromString(ptemp);
760 return pyobj;
761 }
762
763 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
764
765 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
766 return 1;
767 }
768
769 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
770 PyObject * pyobj;
771 char ptemp[128];
772
773 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
774 pyobj = PyString_FromString(ptemp);
775 return pyobj;
776 }
777
778 static int _wrap_wxBLACK_set(PyObject *val) {
779
780 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
781 return 1;
782 }
783
784 static PyObject *_wrap_wxBLACK_get() {
785 PyObject * pyobj;
786 char ptemp[128];
787
788 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
789 pyobj = PyString_FromString(ptemp);
790 return pyobj;
791 }
792
793 static int _wrap_wxWHITE_set(PyObject *val) {
794
795 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
796 return 1;
797 }
798
799 static PyObject *_wrap_wxWHITE_get() {
800 PyObject * pyobj;
801 char ptemp[128];
802
803 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
804 pyobj = PyString_FromString(ptemp);
805 return pyobj;
806 }
807
808 static int _wrap_wxRED_set(PyObject *val) {
809
810 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
811 return 1;
812 }
813
814 static PyObject *_wrap_wxRED_get() {
815 PyObject * pyobj;
816 char ptemp[128];
817
818 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
819 pyobj = PyString_FromString(ptemp);
820 return pyobj;
821 }
822
823 static int _wrap_wxBLUE_set(PyObject *val) {
824
825 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
826 return 1;
827 }
828
829 static PyObject *_wrap_wxBLUE_get() {
830 PyObject * pyobj;
831 char ptemp[128];
832
833 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
834 pyobj = PyString_FromString(ptemp);
835 return pyobj;
836 }
837
838 static int _wrap_wxGREEN_set(PyObject *val) {
839
840 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
841 return 1;
842 }
843
844 static PyObject *_wrap_wxGREEN_get() {
845 PyObject * pyobj;
846 char ptemp[128];
847
848 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
849 pyobj = PyString_FromString(ptemp);
850 return pyobj;
851 }
852
853 static int _wrap_wxCYAN_set(PyObject *val) {
854
855 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
856 return 1;
857 }
858
859 static PyObject *_wrap_wxCYAN_get() {
860 PyObject * pyobj;
861 char ptemp[128];
862
863 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
864 pyobj = PyString_FromString(ptemp);
865 return pyobj;
866 }
867
868 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
869
870 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
871 return 1;
872 }
873
874 static PyObject *_wrap_wxLIGHT_GREY_get() {
875 PyObject * pyobj;
876 char ptemp[128];
877
878 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
879 pyobj = PyString_FromString(ptemp);
880 return pyobj;
881 }
882
883 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
884
885 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
886 return 1;
887 }
888
889 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
890 PyObject * pyobj;
891 char ptemp[128];
892
893 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
894 pyobj = PyString_FromString(ptemp);
895 return pyobj;
896 }
897
898 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
899
900 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
901 return 1;
902 }
903
904 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
905 PyObject * pyobj;
906 char ptemp[128];
907
908 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
909 pyobj = PyString_FromString(ptemp);
910 return pyobj;
911 }
912
913 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
914
915 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
916 return 1;
917 }
918
919 static PyObject *_wrap_wxCROSS_CURSOR_get() {
920 PyObject * pyobj;
921 char ptemp[128];
922
923 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
924 pyobj = PyString_FromString(ptemp);
925 return pyobj;
926 }
927
928 static int _wrap_wxNullBitmap_set(PyObject *val) {
929
930 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
931 return 1;
932 }
933
934 static PyObject *_wrap_wxNullBitmap_get() {
935 PyObject * pyobj;
936 char ptemp[128];
937
938 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
939 pyobj = PyString_FromString(ptemp);
940 return pyobj;
941 }
942
943 static int _wrap_wxNullIcon_set(PyObject *val) {
944
945 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
946 return 1;
947 }
948
949 static PyObject *_wrap_wxNullIcon_get() {
950 PyObject * pyobj;
951 char ptemp[128];
952
953 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
954 pyobj = PyString_FromString(ptemp);
955 return pyobj;
956 }
957
958 static int _wrap_wxNullCursor_set(PyObject *val) {
959
960 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
961 return 1;
962 }
963
964 static PyObject *_wrap_wxNullCursor_get() {
965 PyObject * pyobj;
966 char ptemp[128];
967
968 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
969 pyobj = PyString_FromString(ptemp);
970 return pyobj;
971 }
972
973 static int _wrap_wxNullPen_set(PyObject *val) {
974
975 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
976 return 1;
977 }
978
979 static PyObject *_wrap_wxNullPen_get() {
980 PyObject * pyobj;
981 char ptemp[128];
982
983 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
984 pyobj = PyString_FromString(ptemp);
985 return pyobj;
986 }
987
988 static int _wrap_wxNullBrush_set(PyObject *val) {
989
990 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
991 return 1;
992 }
993
994 static PyObject *_wrap_wxNullBrush_get() {
995 PyObject * pyobj;
996 char ptemp[128];
997
998 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
999 pyobj = PyString_FromString(ptemp);
1000 return pyobj;
1001 }
1002
1003 static int _wrap_wxNullPalette_set(PyObject *val) {
1004
1005 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1006 return 1;
1007 }
1008
1009 static PyObject *_wrap_wxNullPalette_get() {
1010 PyObject * pyobj;
1011 char ptemp[128];
1012
1013 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1014 pyobj = PyString_FromString(ptemp);
1015 return pyobj;
1016 }
1017
1018 static int _wrap_wxNullFont_set(PyObject *val) {
1019
1020 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1021 return 1;
1022 }
1023
1024 static PyObject *_wrap_wxNullFont_get() {
1025 PyObject * pyobj;
1026 char ptemp[128];
1027
1028 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1029 pyobj = PyString_FromString(ptemp);
1030 return pyobj;
1031 }
1032
1033 static int _wrap_wxNullColour_set(PyObject *val) {
1034
1035 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1036 return 1;
1037 }
1038
1039 static PyObject *_wrap_wxNullColour_get() {
1040 PyObject * pyobj;
1041 char ptemp[128];
1042
1043 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1044 pyobj = PyString_FromString(ptemp);
1045 return pyobj;
1046 }
1047
1048 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1049 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args) {
1050 PyObject * _resultobj;
1051 wxBitmap * _result;
1052 wxString * _arg0;
1053 long _arg1;
1054 PyObject * _obj0 = 0;
1055 char _ptemp[128];
1056
1057 self = self;
1058 if(!PyArg_ParseTuple(args,"Ol:new_wxBitmap",&_obj0,&_arg1))
1059 return NULL;
1060 {
1061 if (!PyString_Check(_obj0)) {
1062 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1063 return NULL;
1064 }
1065 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
1066 }
1067 {
1068 wxPy_BEGIN_ALLOW_THREADS;
1069 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1070
1071 wxPy_END_ALLOW_THREADS;
1072 } if (_result) {
1073 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1074 _resultobj = Py_BuildValue("s",_ptemp);
1075 } else {
1076 Py_INCREF(Py_None);
1077 _resultobj = Py_None;
1078 }
1079 {
1080 if (_obj0)
1081 delete _arg0;
1082 }
1083 return _resultobj;
1084 }
1085
1086 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1087 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args) {
1088 PyObject * _resultobj;
1089 wxBitmap * _arg0;
1090 PyObject * _argo0 = 0;
1091
1092 self = self;
1093 if(!PyArg_ParseTuple(args,"O:delete_wxBitmap",&_argo0))
1094 return NULL;
1095 if (_argo0) {
1096 if (_argo0 == Py_None) { _arg0 = NULL; }
1097 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1098 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1099 return NULL;
1100 }
1101 }
1102 {
1103 wxPy_BEGIN_ALLOW_THREADS;
1104 delete_wxBitmap(_arg0);
1105
1106 wxPy_END_ALLOW_THREADS;
1107 } Py_INCREF(Py_None);
1108 _resultobj = Py_None;
1109 return _resultobj;
1110 }
1111
1112 #define wxBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2))
1113 static PyObject *_wrap_wxBitmap_Create(PyObject *self, PyObject *args) {
1114 PyObject * _resultobj;
1115 wxBitmap * _arg0;
1116 int _arg1;
1117 int _arg2;
1118 int _arg3 = (int ) -1;
1119 PyObject * _argo0 = 0;
1120
1121 self = self;
1122 if(!PyArg_ParseTuple(args,"Oii|i:wxBitmap_Create",&_argo0,&_arg1,&_arg2,&_arg3))
1123 return NULL;
1124 if (_argo0) {
1125 if (_argo0 == Py_None) { _arg0 = NULL; }
1126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Create. Expected _wxBitmap_p.");
1128 return NULL;
1129 }
1130 }
1131 {
1132 wxPy_BEGIN_ALLOW_THREADS;
1133 wxBitmap_Create(_arg0,_arg1,_arg2,_arg3);
1134
1135 wxPy_END_ALLOW_THREADS;
1136 } Py_INCREF(Py_None);
1137 _resultobj = Py_None;
1138 return _resultobj;
1139 }
1140
1141 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1142 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args) {
1143 PyObject * _resultobj;
1144 int _result;
1145 wxBitmap * _arg0;
1146 PyObject * _argo0 = 0;
1147
1148 self = self;
1149 if(!PyArg_ParseTuple(args,"O:wxBitmap_GetDepth",&_argo0))
1150 return NULL;
1151 if (_argo0) {
1152 if (_argo0 == Py_None) { _arg0 = NULL; }
1153 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1154 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1155 return NULL;
1156 }
1157 }
1158 {
1159 wxPy_BEGIN_ALLOW_THREADS;
1160 _result = (int )wxBitmap_GetDepth(_arg0);
1161
1162 wxPy_END_ALLOW_THREADS;
1163 } _resultobj = Py_BuildValue("i",_result);
1164 return _resultobj;
1165 }
1166
1167 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1168 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args) {
1169 PyObject * _resultobj;
1170 int _result;
1171 wxBitmap * _arg0;
1172 PyObject * _argo0 = 0;
1173
1174 self = self;
1175 if(!PyArg_ParseTuple(args,"O:wxBitmap_GetHeight",&_argo0))
1176 return NULL;
1177 if (_argo0) {
1178 if (_argo0 == Py_None) { _arg0 = NULL; }
1179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1181 return NULL;
1182 }
1183 }
1184 {
1185 wxPy_BEGIN_ALLOW_THREADS;
1186 _result = (int )wxBitmap_GetHeight(_arg0);
1187
1188 wxPy_END_ALLOW_THREADS;
1189 } _resultobj = Py_BuildValue("i",_result);
1190 return _resultobj;
1191 }
1192
1193 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1194 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args) {
1195 PyObject * _resultobj;
1196 wxPalette * _result;
1197 wxBitmap * _arg0;
1198 PyObject * _argo0 = 0;
1199 char _ptemp[128];
1200
1201 self = self;
1202 if(!PyArg_ParseTuple(args,"O:wxBitmap_GetPalette",&_argo0))
1203 return NULL;
1204 if (_argo0) {
1205 if (_argo0 == Py_None) { _arg0 = NULL; }
1206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1208 return NULL;
1209 }
1210 }
1211 {
1212 wxPy_BEGIN_ALLOW_THREADS;
1213 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1214
1215 wxPy_END_ALLOW_THREADS;
1216 } if (_result) {
1217 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1218 _resultobj = Py_BuildValue("s",_ptemp);
1219 } else {
1220 Py_INCREF(Py_None);
1221 _resultobj = Py_None;
1222 }
1223 return _resultobj;
1224 }
1225
1226 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1227 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args) {
1228 PyObject * _resultobj;
1229 wxMask * _result;
1230 wxBitmap * _arg0;
1231 PyObject * _argo0 = 0;
1232 char _ptemp[128];
1233
1234 self = self;
1235 if(!PyArg_ParseTuple(args,"O:wxBitmap_GetMask",&_argo0))
1236 return NULL;
1237 if (_argo0) {
1238 if (_argo0 == Py_None) { _arg0 = NULL; }
1239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1241 return NULL;
1242 }
1243 }
1244 {
1245 wxPy_BEGIN_ALLOW_THREADS;
1246 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1247
1248 wxPy_END_ALLOW_THREADS;
1249 } if (_result) {
1250 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1251 _resultobj = Py_BuildValue("s",_ptemp);
1252 } else {
1253 Py_INCREF(Py_None);
1254 _resultobj = Py_None;
1255 }
1256 return _resultobj;
1257 }
1258
1259 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1260 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args) {
1261 PyObject * _resultobj;
1262 int _result;
1263 wxBitmap * _arg0;
1264 PyObject * _argo0 = 0;
1265
1266 self = self;
1267 if(!PyArg_ParseTuple(args,"O:wxBitmap_GetWidth",&_argo0))
1268 return NULL;
1269 if (_argo0) {
1270 if (_argo0 == Py_None) { _arg0 = NULL; }
1271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1273 return NULL;
1274 }
1275 }
1276 {
1277 wxPy_BEGIN_ALLOW_THREADS;
1278 _result = (int )wxBitmap_GetWidth(_arg0);
1279
1280 wxPy_END_ALLOW_THREADS;
1281 } _resultobj = Py_BuildValue("i",_result);
1282 return _resultobj;
1283 }
1284
1285 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1286 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args) {
1287 PyObject * _resultobj;
1288 bool _result;
1289 wxBitmap * _arg0;
1290 wxString * _arg1;
1291 long _arg2;
1292 PyObject * _argo0 = 0;
1293 PyObject * _obj1 = 0;
1294
1295 self = self;
1296 if(!PyArg_ParseTuple(args,"OOl:wxBitmap_LoadFile",&_argo0,&_obj1,&_arg2))
1297 return NULL;
1298 if (_argo0) {
1299 if (_argo0 == Py_None) { _arg0 = NULL; }
1300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1302 return NULL;
1303 }
1304 }
1305 {
1306 if (!PyString_Check(_obj1)) {
1307 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1308 return NULL;
1309 }
1310 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1311 }
1312 {
1313 wxPy_BEGIN_ALLOW_THREADS;
1314 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1315
1316 wxPy_END_ALLOW_THREADS;
1317 } _resultobj = Py_BuildValue("i",_result);
1318 {
1319 if (_obj1)
1320 delete _arg1;
1321 }
1322 return _resultobj;
1323 }
1324
1325 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1326 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args) {
1327 PyObject * _resultobj;
1328 bool _result;
1329 wxBitmap * _arg0;
1330 PyObject * _argo0 = 0;
1331
1332 self = self;
1333 if(!PyArg_ParseTuple(args,"O:wxBitmap_Ok",&_argo0))
1334 return NULL;
1335 if (_argo0) {
1336 if (_argo0 == Py_None) { _arg0 = NULL; }
1337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1339 return NULL;
1340 }
1341 }
1342 {
1343 wxPy_BEGIN_ALLOW_THREADS;
1344 _result = (bool )wxBitmap_Ok(_arg0);
1345
1346 wxPy_END_ALLOW_THREADS;
1347 } _resultobj = Py_BuildValue("i",_result);
1348 return _resultobj;
1349 }
1350
1351 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1352 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args) {
1353 PyObject * _resultobj;
1354 bool _result;
1355 wxBitmap * _arg0;
1356 wxString * _arg1;
1357 int _arg2;
1358 wxPalette * _arg3 = (wxPalette *) NULL;
1359 PyObject * _argo0 = 0;
1360 PyObject * _obj1 = 0;
1361 PyObject * _argo3 = 0;
1362
1363 self = self;
1364 if(!PyArg_ParseTuple(args,"OOi|O:wxBitmap_SaveFile",&_argo0,&_obj1,&_arg2,&_argo3))
1365 return NULL;
1366 if (_argo0) {
1367 if (_argo0 == Py_None) { _arg0 = NULL; }
1368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1370 return NULL;
1371 }
1372 }
1373 {
1374 if (!PyString_Check(_obj1)) {
1375 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1376 return NULL;
1377 }
1378 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1379 }
1380 if (_argo3) {
1381 if (_argo3 == Py_None) { _arg3 = NULL; }
1382 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1383 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1384 return NULL;
1385 }
1386 }
1387 {
1388 wxPy_BEGIN_ALLOW_THREADS;
1389 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1390
1391 wxPy_END_ALLOW_THREADS;
1392 } _resultobj = Py_BuildValue("i",_result);
1393 {
1394 if (_obj1)
1395 delete _arg1;
1396 }
1397 return _resultobj;
1398 }
1399
1400 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1401 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args) {
1402 PyObject * _resultobj;
1403 wxBitmap * _arg0;
1404 int _arg1;
1405 PyObject * _argo0 = 0;
1406
1407 self = self;
1408 if(!PyArg_ParseTuple(args,"Oi:wxBitmap_SetDepth",&_argo0,&_arg1))
1409 return NULL;
1410 if (_argo0) {
1411 if (_argo0 == Py_None) { _arg0 = NULL; }
1412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1414 return NULL;
1415 }
1416 }
1417 {
1418 wxPy_BEGIN_ALLOW_THREADS;
1419 wxBitmap_SetDepth(_arg0,_arg1);
1420
1421 wxPy_END_ALLOW_THREADS;
1422 } Py_INCREF(Py_None);
1423 _resultobj = Py_None;
1424 return _resultobj;
1425 }
1426
1427 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1428 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args) {
1429 PyObject * _resultobj;
1430 wxBitmap * _arg0;
1431 int _arg1;
1432 PyObject * _argo0 = 0;
1433
1434 self = self;
1435 if(!PyArg_ParseTuple(args,"Oi:wxBitmap_SetHeight",&_argo0,&_arg1))
1436 return NULL;
1437 if (_argo0) {
1438 if (_argo0 == Py_None) { _arg0 = NULL; }
1439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1441 return NULL;
1442 }
1443 }
1444 {
1445 wxPy_BEGIN_ALLOW_THREADS;
1446 wxBitmap_SetHeight(_arg0,_arg1);
1447
1448 wxPy_END_ALLOW_THREADS;
1449 } Py_INCREF(Py_None);
1450 _resultobj = Py_None;
1451 return _resultobj;
1452 }
1453
1454 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1455 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args) {
1456 PyObject * _resultobj;
1457 wxBitmap * _arg0;
1458 wxMask * _arg1;
1459 PyObject * _argo0 = 0;
1460 PyObject * _argo1 = 0;
1461
1462 self = self;
1463 if(!PyArg_ParseTuple(args,"OO:wxBitmap_SetMask",&_argo0,&_argo1))
1464 return NULL;
1465 if (_argo0) {
1466 if (_argo0 == Py_None) { _arg0 = NULL; }
1467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1469 return NULL;
1470 }
1471 }
1472 if (_argo1) {
1473 if (_argo1 == Py_None) { _arg1 = NULL; }
1474 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1475 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1476 return NULL;
1477 }
1478 }
1479 {
1480 wxPy_BEGIN_ALLOW_THREADS;
1481 wxBitmap_SetMask(_arg0,_arg1);
1482
1483 wxPy_END_ALLOW_THREADS;
1484 } Py_INCREF(Py_None);
1485 _resultobj = Py_None;
1486 return _resultobj;
1487 }
1488
1489 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1490 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args) {
1491 PyObject * _resultobj;
1492 wxBitmap * _arg0;
1493 wxPalette * _arg1;
1494 PyObject * _argo0 = 0;
1495 PyObject * _argo1 = 0;
1496
1497 self = self;
1498 if(!PyArg_ParseTuple(args,"OO:wxBitmap_SetPalette",&_argo0,&_argo1))
1499 return NULL;
1500 if (_argo0) {
1501 if (_argo0 == Py_None) { _arg0 = NULL; }
1502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1504 return NULL;
1505 }
1506 }
1507 if (_argo1) {
1508 if (_argo1 == Py_None) { _arg1 = NULL; }
1509 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1510 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1511 return NULL;
1512 }
1513 }
1514 {
1515 wxPy_BEGIN_ALLOW_THREADS;
1516 wxBitmap_SetPalette(_arg0,*_arg1);
1517
1518 wxPy_END_ALLOW_THREADS;
1519 } Py_INCREF(Py_None);
1520 _resultobj = Py_None;
1521 return _resultobj;
1522 }
1523
1524 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1525 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args) {
1526 PyObject * _resultobj;
1527 wxBitmap * _arg0;
1528 int _arg1;
1529 PyObject * _argo0 = 0;
1530
1531 self = self;
1532 if(!PyArg_ParseTuple(args,"Oi:wxBitmap_SetWidth",&_argo0,&_arg1))
1533 return NULL;
1534 if (_argo0) {
1535 if (_argo0 == Py_None) { _arg0 = NULL; }
1536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1538 return NULL;
1539 }
1540 }
1541 {
1542 wxPy_BEGIN_ALLOW_THREADS;
1543 wxBitmap_SetWidth(_arg0,_arg1);
1544
1545 wxPy_END_ALLOW_THREADS;
1546 } Py_INCREF(Py_None);
1547 _resultobj = Py_None;
1548 return _resultobj;
1549 }
1550
1551 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1552 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args) {
1553 PyObject * _resultobj;
1554 wxMask * _result;
1555 wxBitmap * _arg0;
1556 PyObject * _argo0 = 0;
1557 char _ptemp[128];
1558
1559 self = self;
1560 if(!PyArg_ParseTuple(args,"O:new_wxMask",&_argo0))
1561 return NULL;
1562 if (_argo0) {
1563 if (_argo0 == Py_None) { _arg0 = NULL; }
1564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1566 return NULL;
1567 }
1568 }
1569 {
1570 wxPy_BEGIN_ALLOW_THREADS;
1571 _result = (wxMask *)new_wxMask(*_arg0);
1572
1573 wxPy_END_ALLOW_THREADS;
1574 } if (_result) {
1575 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1576 _resultobj = Py_BuildValue("s",_ptemp);
1577 } else {
1578 Py_INCREF(Py_None);
1579 _resultobj = Py_None;
1580 }
1581 return _resultobj;
1582 }
1583
1584 #define delete_wxMask(_swigobj) (delete _swigobj)
1585 static PyObject *_wrap_delete_wxMask(PyObject *self, PyObject *args) {
1586 PyObject * _resultobj;
1587 wxMask * _arg0;
1588 PyObject * _argo0 = 0;
1589
1590 self = self;
1591 if(!PyArg_ParseTuple(args,"O:delete_wxMask",&_argo0))
1592 return NULL;
1593 if (_argo0) {
1594 if (_argo0 == Py_None) { _arg0 = NULL; }
1595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
1596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMask. Expected _wxMask_p.");
1597 return NULL;
1598 }
1599 }
1600 {
1601 wxPy_BEGIN_ALLOW_THREADS;
1602 delete_wxMask(_arg0);
1603
1604 wxPy_END_ALLOW_THREADS;
1605 } Py_INCREF(Py_None);
1606 _resultobj = Py_None;
1607 return _resultobj;
1608 }
1609
1610 static void *SwigwxIconTowxBitmap(void *ptr) {
1611 wxIcon *src;
1612 wxBitmap *dest;
1613 src = (wxIcon *) ptr;
1614 dest = (wxBitmap *) src;
1615 return (void *) dest;
1616 }
1617
1618 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1619 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args) {
1620 PyObject * _resultobj;
1621 wxIcon * _result;
1622 wxString * _arg0;
1623 long _arg1;
1624 int _arg2 = (int ) -1;
1625 int _arg3 = (int ) -1;
1626 PyObject * _obj0 = 0;
1627 char _ptemp[128];
1628
1629 self = self;
1630 if(!PyArg_ParseTuple(args,"Ol|ii:new_wxIcon",&_obj0,&_arg1,&_arg2,&_arg3))
1631 return NULL;
1632 {
1633 if (!PyString_Check(_obj0)) {
1634 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1635 return NULL;
1636 }
1637 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
1638 }
1639 {
1640 wxPy_BEGIN_ALLOW_THREADS;
1641 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
1642
1643 wxPy_END_ALLOW_THREADS;
1644 } if (_result) {
1645 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
1646 _resultobj = Py_BuildValue("s",_ptemp);
1647 } else {
1648 Py_INCREF(Py_None);
1649 _resultobj = Py_None;
1650 }
1651 {
1652 if (_obj0)
1653 delete _arg0;
1654 }
1655 return _resultobj;
1656 }
1657
1658 #define delete_wxIcon(_swigobj) (delete _swigobj)
1659 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args) {
1660 PyObject * _resultobj;
1661 wxIcon * _arg0;
1662 PyObject * _argo0 = 0;
1663
1664 self = self;
1665 if(!PyArg_ParseTuple(args,"O:delete_wxIcon",&_argo0))
1666 return NULL;
1667 if (_argo0) {
1668 if (_argo0 == Py_None) { _arg0 = NULL; }
1669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1671 return NULL;
1672 }
1673 }
1674 {
1675 wxPy_BEGIN_ALLOW_THREADS;
1676 delete_wxIcon(_arg0);
1677
1678 wxPy_END_ALLOW_THREADS;
1679 } Py_INCREF(Py_None);
1680 _resultobj = Py_None;
1681 return _resultobj;
1682 }
1683
1684 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
1685 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args) {
1686 PyObject * _resultobj;
1687 int _result;
1688 wxIcon * _arg0;
1689 PyObject * _argo0 = 0;
1690
1691 self = self;
1692 if(!PyArg_ParseTuple(args,"O:wxIcon_GetDepth",&_argo0))
1693 return NULL;
1694 if (_argo0) {
1695 if (_argo0 == Py_None) { _arg0 = NULL; }
1696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
1698 return NULL;
1699 }
1700 }
1701 {
1702 wxPy_BEGIN_ALLOW_THREADS;
1703 _result = (int )wxIcon_GetDepth(_arg0);
1704
1705 wxPy_END_ALLOW_THREADS;
1706 } _resultobj = Py_BuildValue("i",_result);
1707 return _resultobj;
1708 }
1709
1710 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
1711 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args) {
1712 PyObject * _resultobj;
1713 int _result;
1714 wxIcon * _arg0;
1715 PyObject * _argo0 = 0;
1716
1717 self = self;
1718 if(!PyArg_ParseTuple(args,"O:wxIcon_GetHeight",&_argo0))
1719 return NULL;
1720 if (_argo0) {
1721 if (_argo0 == Py_None) { _arg0 = NULL; }
1722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
1724 return NULL;
1725 }
1726 }
1727 {
1728 wxPy_BEGIN_ALLOW_THREADS;
1729 _result = (int )wxIcon_GetHeight(_arg0);
1730
1731 wxPy_END_ALLOW_THREADS;
1732 } _resultobj = Py_BuildValue("i",_result);
1733 return _resultobj;
1734 }
1735
1736 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
1737 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args) {
1738 PyObject * _resultobj;
1739 int _result;
1740 wxIcon * _arg0;
1741 PyObject * _argo0 = 0;
1742
1743 self = self;
1744 if(!PyArg_ParseTuple(args,"O:wxIcon_GetWidth",&_argo0))
1745 return NULL;
1746 if (_argo0) {
1747 if (_argo0 == Py_None) { _arg0 = NULL; }
1748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
1750 return NULL;
1751 }
1752 }
1753 {
1754 wxPy_BEGIN_ALLOW_THREADS;
1755 _result = (int )wxIcon_GetWidth(_arg0);
1756
1757 wxPy_END_ALLOW_THREADS;
1758 } _resultobj = Py_BuildValue("i",_result);
1759 return _resultobj;
1760 }
1761
1762 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1763 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args) {
1764 PyObject * _resultobj;
1765 bool _result;
1766 wxIcon * _arg0;
1767 wxString * _arg1;
1768 long _arg2;
1769 PyObject * _argo0 = 0;
1770 PyObject * _obj1 = 0;
1771
1772 self = self;
1773 if(!PyArg_ParseTuple(args,"OOl:wxIcon_LoadFile",&_argo0,&_obj1,&_arg2))
1774 return NULL;
1775 if (_argo0) {
1776 if (_argo0 == Py_None) { _arg0 = NULL; }
1777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1779 return NULL;
1780 }
1781 }
1782 {
1783 if (!PyString_Check(_obj1)) {
1784 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1785 return NULL;
1786 }
1787 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1788 }
1789 {
1790 wxPy_BEGIN_ALLOW_THREADS;
1791 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
1792
1793 wxPy_END_ALLOW_THREADS;
1794 } _resultobj = Py_BuildValue("i",_result);
1795 {
1796 if (_obj1)
1797 delete _arg1;
1798 }
1799 return _resultobj;
1800 }
1801
1802 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1803 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args) {
1804 PyObject * _resultobj;
1805 bool _result;
1806 wxIcon * _arg0;
1807 PyObject * _argo0 = 0;
1808
1809 self = self;
1810 if(!PyArg_ParseTuple(args,"O:wxIcon_Ok",&_argo0))
1811 return NULL;
1812 if (_argo0) {
1813 if (_argo0 == Py_None) { _arg0 = NULL; }
1814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
1816 return NULL;
1817 }
1818 }
1819 {
1820 wxPy_BEGIN_ALLOW_THREADS;
1821 _result = (bool )wxIcon_Ok(_arg0);
1822
1823 wxPy_END_ALLOW_THREADS;
1824 } _resultobj = Py_BuildValue("i",_result);
1825 return _resultobj;
1826 }
1827
1828 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1829 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args) {
1830 PyObject * _resultobj;
1831 wxIcon * _arg0;
1832 int _arg1;
1833 PyObject * _argo0 = 0;
1834
1835 self = self;
1836 if(!PyArg_ParseTuple(args,"Oi:wxIcon_SetDepth",&_argo0,&_arg1))
1837 return NULL;
1838 if (_argo0) {
1839 if (_argo0 == Py_None) { _arg0 = NULL; }
1840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
1842 return NULL;
1843 }
1844 }
1845 {
1846 wxPy_BEGIN_ALLOW_THREADS;
1847 wxIcon_SetDepth(_arg0,_arg1);
1848
1849 wxPy_END_ALLOW_THREADS;
1850 } Py_INCREF(Py_None);
1851 _resultobj = Py_None;
1852 return _resultobj;
1853 }
1854
1855 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1856 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args) {
1857 PyObject * _resultobj;
1858 wxIcon * _arg0;
1859 int _arg1;
1860 PyObject * _argo0 = 0;
1861
1862 self = self;
1863 if(!PyArg_ParseTuple(args,"Oi:wxIcon_SetHeight",&_argo0,&_arg1))
1864 return NULL;
1865 if (_argo0) {
1866 if (_argo0 == Py_None) { _arg0 = NULL; }
1867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
1869 return NULL;
1870 }
1871 }
1872 {
1873 wxPy_BEGIN_ALLOW_THREADS;
1874 wxIcon_SetHeight(_arg0,_arg1);
1875
1876 wxPy_END_ALLOW_THREADS;
1877 } Py_INCREF(Py_None);
1878 _resultobj = Py_None;
1879 return _resultobj;
1880 }
1881
1882 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1883 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args) {
1884 PyObject * _resultobj;
1885 wxIcon * _arg0;
1886 int _arg1;
1887 PyObject * _argo0 = 0;
1888
1889 self = self;
1890 if(!PyArg_ParseTuple(args,"Oi:wxIcon_SetWidth",&_argo0,&_arg1))
1891 return NULL;
1892 if (_argo0) {
1893 if (_argo0 == Py_None) { _arg0 = NULL; }
1894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
1895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
1896 return NULL;
1897 }
1898 }
1899 {
1900 wxPy_BEGIN_ALLOW_THREADS;
1901 wxIcon_SetWidth(_arg0,_arg1);
1902
1903 wxPy_END_ALLOW_THREADS;
1904 } Py_INCREF(Py_None);
1905 _resultobj = Py_None;
1906 return _resultobj;
1907 }
1908
1909 static void *SwigwxCursorTowxBitmap(void *ptr) {
1910 wxCursor *src;
1911 wxBitmap *dest;
1912 src = (wxCursor *) ptr;
1913 dest = (wxBitmap *) src;
1914 return (void *) dest;
1915 }
1916
1917 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1918 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args) {
1919 PyObject * _resultobj;
1920 wxCursor * _result;
1921 wxString * _arg0;
1922 long _arg1;
1923 int _arg2 = (int ) 0;
1924 int _arg3 = (int ) 0;
1925 PyObject * _obj0 = 0;
1926 char _ptemp[128];
1927
1928 self = self;
1929 if(!PyArg_ParseTuple(args,"Ol|ii:new_wxCursor",&_obj0,&_arg1,&_arg2,&_arg3))
1930 return NULL;
1931 {
1932 if (!PyString_Check(_obj0)) {
1933 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1934 return NULL;
1935 }
1936 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
1937 }
1938 {
1939 wxPy_BEGIN_ALLOW_THREADS;
1940 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
1941
1942 wxPy_END_ALLOW_THREADS;
1943 } if (_result) {
1944 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
1945 _resultobj = Py_BuildValue("s",_ptemp);
1946 } else {
1947 Py_INCREF(Py_None);
1948 _resultobj = Py_None;
1949 }
1950 {
1951 if (_obj0)
1952 delete _arg0;
1953 }
1954 return _resultobj;
1955 }
1956
1957 #define delete_wxCursor(_swigobj) (delete _swigobj)
1958 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args) {
1959 PyObject * _resultobj;
1960 wxCursor * _arg0;
1961 PyObject * _argo0 = 0;
1962
1963 self = self;
1964 if(!PyArg_ParseTuple(args,"O:delete_wxCursor",&_argo0))
1965 return NULL;
1966 if (_argo0) {
1967 if (_argo0 == Py_None) { _arg0 = NULL; }
1968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
1969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
1970 return NULL;
1971 }
1972 }
1973 {
1974 wxPy_BEGIN_ALLOW_THREADS;
1975 delete_wxCursor(_arg0);
1976
1977 wxPy_END_ALLOW_THREADS;
1978 } Py_INCREF(Py_None);
1979 _resultobj = Py_None;
1980 return _resultobj;
1981 }
1982
1983 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
1984 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args) {
1985 PyObject * _resultobj;
1986 bool _result;
1987 wxCursor * _arg0;
1988 PyObject * _argo0 = 0;
1989
1990 self = self;
1991 if(!PyArg_ParseTuple(args,"O:wxCursor_Ok",&_argo0))
1992 return NULL;
1993 if (_argo0) {
1994 if (_argo0 == Py_None) { _arg0 = NULL; }
1995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
1996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
1997 return NULL;
1998 }
1999 }
2000 {
2001 wxPy_BEGIN_ALLOW_THREADS;
2002 _result = (bool )wxCursor_Ok(_arg0);
2003
2004 wxPy_END_ALLOW_THREADS;
2005 } _resultobj = Py_BuildValue("i",_result);
2006 return _resultobj;
2007 }
2008
2009 static wxFont *new_wxFont(int pointSize,int family,int style,int weight,int underline,char *faceName) {
2010
2011 return wxTheFontList->FindOrCreateFont(pointSize, family, style, weight,
2012 underline, faceName);
2013 }
2014
2015 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args) {
2016 PyObject * _resultobj;
2017 wxFont * _result;
2018 int _arg0;
2019 int _arg1;
2020 int _arg2;
2021 int _arg3;
2022 int _arg4 = (int ) FALSE;
2023 char * _arg5 = (char *) "";
2024 char _ptemp[128];
2025
2026 self = self;
2027 if(!PyArg_ParseTuple(args,"iiii|is:new_wxFont",&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
2028 return NULL;
2029 {
2030 wxPy_BEGIN_ALLOW_THREADS;
2031 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2032
2033 wxPy_END_ALLOW_THREADS;
2034 } if (_result) {
2035 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
2036 _resultobj = Py_BuildValue("s",_ptemp);
2037 } else {
2038 Py_INCREF(Py_None);
2039 _resultobj = Py_None;
2040 }
2041 return _resultobj;
2042 }
2043
2044 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2045 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args) {
2046 PyObject * _resultobj;
2047 wxString * _result;
2048 wxFont * _arg0;
2049 PyObject * _argo0 = 0;
2050
2051 self = self;
2052 if(!PyArg_ParseTuple(args,"O:wxFont_GetFaceName",&_argo0))
2053 return NULL;
2054 if (_argo0) {
2055 if (_argo0 == Py_None) { _arg0 = NULL; }
2056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2058 return NULL;
2059 }
2060 }
2061 {
2062 wxPy_BEGIN_ALLOW_THREADS;
2063 _result = new wxString (wxFont_GetFaceName(_arg0));
2064
2065 wxPy_END_ALLOW_THREADS;
2066 }{
2067 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
2068 }
2069 {
2070 delete _result;
2071 }
2072 return _resultobj;
2073 }
2074
2075 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2076 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args) {
2077 PyObject * _resultobj;
2078 int _result;
2079 wxFont * _arg0;
2080 PyObject * _argo0 = 0;
2081
2082 self = self;
2083 if(!PyArg_ParseTuple(args,"O:wxFont_GetFamily",&_argo0))
2084 return NULL;
2085 if (_argo0) {
2086 if (_argo0 == Py_None) { _arg0 = NULL; }
2087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2089 return NULL;
2090 }
2091 }
2092 {
2093 wxPy_BEGIN_ALLOW_THREADS;
2094 _result = (int )wxFont_GetFamily(_arg0);
2095
2096 wxPy_END_ALLOW_THREADS;
2097 } _resultobj = Py_BuildValue("i",_result);
2098 return _resultobj;
2099 }
2100
2101 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
2102 static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args) {
2103 PyObject * _resultobj;
2104 int _result;
2105 wxFont * _arg0;
2106 PyObject * _argo0 = 0;
2107
2108 self = self;
2109 if(!PyArg_ParseTuple(args,"O:wxFont_GetFontId",&_argo0))
2110 return NULL;
2111 if (_argo0) {
2112 if (_argo0 == Py_None) { _arg0 = NULL; }
2113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
2115 return NULL;
2116 }
2117 }
2118 {
2119 wxPy_BEGIN_ALLOW_THREADS;
2120 _result = (int )wxFont_GetFontId(_arg0);
2121
2122 wxPy_END_ALLOW_THREADS;
2123 } _resultobj = Py_BuildValue("i",_result);
2124 return _resultobj;
2125 }
2126
2127 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2128 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args) {
2129 PyObject * _resultobj;
2130 int _result;
2131 wxFont * _arg0;
2132 PyObject * _argo0 = 0;
2133
2134 self = self;
2135 if(!PyArg_ParseTuple(args,"O:wxFont_GetPointSize",&_argo0))
2136 return NULL;
2137 if (_argo0) {
2138 if (_argo0 == Py_None) { _arg0 = NULL; }
2139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2141 return NULL;
2142 }
2143 }
2144 {
2145 wxPy_BEGIN_ALLOW_THREADS;
2146 _result = (int )wxFont_GetPointSize(_arg0);
2147
2148 wxPy_END_ALLOW_THREADS;
2149 } _resultobj = Py_BuildValue("i",_result);
2150 return _resultobj;
2151 }
2152
2153 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2154 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args) {
2155 PyObject * _resultobj;
2156 int _result;
2157 wxFont * _arg0;
2158 PyObject * _argo0 = 0;
2159
2160 self = self;
2161 if(!PyArg_ParseTuple(args,"O:wxFont_GetStyle",&_argo0))
2162 return NULL;
2163 if (_argo0) {
2164 if (_argo0 == Py_None) { _arg0 = NULL; }
2165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2167 return NULL;
2168 }
2169 }
2170 {
2171 wxPy_BEGIN_ALLOW_THREADS;
2172 _result = (int )wxFont_GetStyle(_arg0);
2173
2174 wxPy_END_ALLOW_THREADS;
2175 } _resultobj = Py_BuildValue("i",_result);
2176 return _resultobj;
2177 }
2178
2179 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2180 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args) {
2181 PyObject * _resultobj;
2182 bool _result;
2183 wxFont * _arg0;
2184 PyObject * _argo0 = 0;
2185
2186 self = self;
2187 if(!PyArg_ParseTuple(args,"O:wxFont_GetUnderlined",&_argo0))
2188 return NULL;
2189 if (_argo0) {
2190 if (_argo0 == Py_None) { _arg0 = NULL; }
2191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2193 return NULL;
2194 }
2195 }
2196 {
2197 wxPy_BEGIN_ALLOW_THREADS;
2198 _result = (bool )wxFont_GetUnderlined(_arg0);
2199
2200 wxPy_END_ALLOW_THREADS;
2201 } _resultobj = Py_BuildValue("i",_result);
2202 return _resultobj;
2203 }
2204
2205 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2206 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args) {
2207 PyObject * _resultobj;
2208 int _result;
2209 wxFont * _arg0;
2210 PyObject * _argo0 = 0;
2211
2212 self = self;
2213 if(!PyArg_ParseTuple(args,"O:wxFont_GetWeight",&_argo0))
2214 return NULL;
2215 if (_argo0) {
2216 if (_argo0 == Py_None) { _arg0 = NULL; }
2217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2219 return NULL;
2220 }
2221 }
2222 {
2223 wxPy_BEGIN_ALLOW_THREADS;
2224 _result = (int )wxFont_GetWeight(_arg0);
2225
2226 wxPy_END_ALLOW_THREADS;
2227 } _resultobj = Py_BuildValue("i",_result);
2228 return _resultobj;
2229 }
2230
2231 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2232 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args) {
2233 PyObject * _resultobj;
2234 wxFont * _arg0;
2235 wxString * _arg1;
2236 PyObject * _argo0 = 0;
2237 PyObject * _obj1 = 0;
2238
2239 self = self;
2240 if(!PyArg_ParseTuple(args,"OO:wxFont_SetFaceName",&_argo0,&_obj1))
2241 return NULL;
2242 if (_argo0) {
2243 if (_argo0 == Py_None) { _arg0 = NULL; }
2244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2246 return NULL;
2247 }
2248 }
2249 {
2250 if (!PyString_Check(_obj1)) {
2251 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2252 return NULL;
2253 }
2254 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2255 }
2256 {
2257 wxPy_BEGIN_ALLOW_THREADS;
2258 wxFont_SetFaceName(_arg0,*_arg1);
2259
2260 wxPy_END_ALLOW_THREADS;
2261 } Py_INCREF(Py_None);
2262 _resultobj = Py_None;
2263 {
2264 if (_obj1)
2265 delete _arg1;
2266 }
2267 return _resultobj;
2268 }
2269
2270 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2271 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args) {
2272 PyObject * _resultobj;
2273 wxFont * _arg0;
2274 int _arg1;
2275 PyObject * _argo0 = 0;
2276
2277 self = self;
2278 if(!PyArg_ParseTuple(args,"Oi:wxFont_SetFamily",&_argo0,&_arg1))
2279 return NULL;
2280 if (_argo0) {
2281 if (_argo0 == Py_None) { _arg0 = NULL; }
2282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2284 return NULL;
2285 }
2286 }
2287 {
2288 wxPy_BEGIN_ALLOW_THREADS;
2289 wxFont_SetFamily(_arg0,_arg1);
2290
2291 wxPy_END_ALLOW_THREADS;
2292 } Py_INCREF(Py_None);
2293 _resultobj = Py_None;
2294 return _resultobj;
2295 }
2296
2297 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2298 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args) {
2299 PyObject * _resultobj;
2300 wxFont * _arg0;
2301 int _arg1;
2302 PyObject * _argo0 = 0;
2303
2304 self = self;
2305 if(!PyArg_ParseTuple(args,"Oi:wxFont_SetPointSize",&_argo0,&_arg1))
2306 return NULL;
2307 if (_argo0) {
2308 if (_argo0 == Py_None) { _arg0 = NULL; }
2309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2311 return NULL;
2312 }
2313 }
2314 {
2315 wxPy_BEGIN_ALLOW_THREADS;
2316 wxFont_SetPointSize(_arg0,_arg1);
2317
2318 wxPy_END_ALLOW_THREADS;
2319 } Py_INCREF(Py_None);
2320 _resultobj = Py_None;
2321 return _resultobj;
2322 }
2323
2324 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2325 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args) {
2326 PyObject * _resultobj;
2327 wxFont * _arg0;
2328 int _arg1;
2329 PyObject * _argo0 = 0;
2330
2331 self = self;
2332 if(!PyArg_ParseTuple(args,"Oi:wxFont_SetStyle",&_argo0,&_arg1))
2333 return NULL;
2334 if (_argo0) {
2335 if (_argo0 == Py_None) { _arg0 = NULL; }
2336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2338 return NULL;
2339 }
2340 }
2341 {
2342 wxPy_BEGIN_ALLOW_THREADS;
2343 wxFont_SetStyle(_arg0,_arg1);
2344
2345 wxPy_END_ALLOW_THREADS;
2346 } Py_INCREF(Py_None);
2347 _resultobj = Py_None;
2348 return _resultobj;
2349 }
2350
2351 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2352 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args) {
2353 PyObject * _resultobj;
2354 wxFont * _arg0;
2355 bool _arg1;
2356 PyObject * _argo0 = 0;
2357 int tempbool1;
2358
2359 self = self;
2360 if(!PyArg_ParseTuple(args,"Oi:wxFont_SetUnderlined",&_argo0,&tempbool1))
2361 return NULL;
2362 if (_argo0) {
2363 if (_argo0 == Py_None) { _arg0 = NULL; }
2364 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2365 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2366 return NULL;
2367 }
2368 }
2369 _arg1 = (bool ) tempbool1;
2370 {
2371 wxPy_BEGIN_ALLOW_THREADS;
2372 wxFont_SetUnderlined(_arg0,_arg1);
2373
2374 wxPy_END_ALLOW_THREADS;
2375 } Py_INCREF(Py_None);
2376 _resultobj = Py_None;
2377 return _resultobj;
2378 }
2379
2380 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2381 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args) {
2382 PyObject * _resultobj;
2383 wxFont * _arg0;
2384 int _arg1;
2385 PyObject * _argo0 = 0;
2386
2387 self = self;
2388 if(!PyArg_ParseTuple(args,"Oi:wxFont_SetWeight",&_argo0,&_arg1))
2389 return NULL;
2390 if (_argo0) {
2391 if (_argo0 == Py_None) { _arg0 = NULL; }
2392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
2393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2394 return NULL;
2395 }
2396 }
2397 {
2398 wxPy_BEGIN_ALLOW_THREADS;
2399 wxFont_SetWeight(_arg0,_arg1);
2400
2401 wxPy_END_ALLOW_THREADS;
2402 } Py_INCREF(Py_None);
2403 _resultobj = Py_None;
2404 return _resultobj;
2405 }
2406
2407 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2408 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args) {
2409 PyObject * _resultobj;
2410 wxColour * _result;
2411 unsigned char _arg0 = (unsigned char ) 0;
2412 unsigned char _arg1 = (unsigned char ) 0;
2413 unsigned char _arg2 = (unsigned char ) 0;
2414 char _ptemp[128];
2415
2416 self = self;
2417 if(!PyArg_ParseTuple(args,"|bbb:new_wxColour",&_arg0,&_arg1,&_arg2))
2418 return NULL;
2419 {
2420 wxPy_BEGIN_ALLOW_THREADS;
2421 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
2422
2423 wxPy_END_ALLOW_THREADS;
2424 } if (_result) {
2425 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2426 _resultobj = Py_BuildValue("s",_ptemp);
2427 } else {
2428 Py_INCREF(Py_None);
2429 _resultobj = Py_None;
2430 }
2431 return _resultobj;
2432 }
2433
2434 #define delete_wxColour(_swigobj) (delete _swigobj)
2435 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args) {
2436 PyObject * _resultobj;
2437 wxColour * _arg0;
2438 PyObject * _argo0 = 0;
2439
2440 self = self;
2441 if(!PyArg_ParseTuple(args,"O:delete_wxColour",&_argo0))
2442 return NULL;
2443 if (_argo0) {
2444 if (_argo0 == Py_None) { _arg0 = NULL; }
2445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColour. Expected _wxColour_p.");
2447 return NULL;
2448 }
2449 }
2450 {
2451 wxPy_BEGIN_ALLOW_THREADS;
2452 delete_wxColour(_arg0);
2453
2454 wxPy_END_ALLOW_THREADS;
2455 } Py_INCREF(Py_None);
2456 _resultobj = Py_None;
2457 return _resultobj;
2458 }
2459
2460 #define wxColour_Red(_swigobj) (_swigobj->Red())
2461 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args) {
2462 PyObject * _resultobj;
2463 unsigned char _result;
2464 wxColour * _arg0;
2465 PyObject * _argo0 = 0;
2466
2467 self = self;
2468 if(!PyArg_ParseTuple(args,"O:wxColour_Red",&_argo0))
2469 return NULL;
2470 if (_argo0) {
2471 if (_argo0 == Py_None) { _arg0 = NULL; }
2472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Red. Expected _wxColour_p.");
2474 return NULL;
2475 }
2476 }
2477 {
2478 wxPy_BEGIN_ALLOW_THREADS;
2479 _result = (unsigned char )wxColour_Red(_arg0);
2480
2481 wxPy_END_ALLOW_THREADS;
2482 } _resultobj = Py_BuildValue("b",_result);
2483 return _resultobj;
2484 }
2485
2486 #define wxColour_Green(_swigobj) (_swigobj->Green())
2487 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args) {
2488 PyObject * _resultobj;
2489 unsigned char _result;
2490 wxColour * _arg0;
2491 PyObject * _argo0 = 0;
2492
2493 self = self;
2494 if(!PyArg_ParseTuple(args,"O:wxColour_Green",&_argo0))
2495 return NULL;
2496 if (_argo0) {
2497 if (_argo0 == Py_None) { _arg0 = NULL; }
2498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Green. Expected _wxColour_p.");
2500 return NULL;
2501 }
2502 }
2503 {
2504 wxPy_BEGIN_ALLOW_THREADS;
2505 _result = (unsigned char )wxColour_Green(_arg0);
2506
2507 wxPy_END_ALLOW_THREADS;
2508 } _resultobj = Py_BuildValue("b",_result);
2509 return _resultobj;
2510 }
2511
2512 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
2513 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args) {
2514 PyObject * _resultobj;
2515 unsigned char _result;
2516 wxColour * _arg0;
2517 PyObject * _argo0 = 0;
2518
2519 self = self;
2520 if(!PyArg_ParseTuple(args,"O:wxColour_Blue",&_argo0))
2521 return NULL;
2522 if (_argo0) {
2523 if (_argo0 == Py_None) { _arg0 = NULL; }
2524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Blue. Expected _wxColour_p.");
2526 return NULL;
2527 }
2528 }
2529 {
2530 wxPy_BEGIN_ALLOW_THREADS;
2531 _result = (unsigned char )wxColour_Blue(_arg0);
2532
2533 wxPy_END_ALLOW_THREADS;
2534 } _resultobj = Py_BuildValue("b",_result);
2535 return _resultobj;
2536 }
2537
2538 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
2539 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args) {
2540 PyObject * _resultobj;
2541 bool _result;
2542 wxColour * _arg0;
2543 PyObject * _argo0 = 0;
2544
2545 self = self;
2546 if(!PyArg_ParseTuple(args,"O:wxColour_Ok",&_argo0))
2547 return NULL;
2548 if (_argo0) {
2549 if (_argo0 == Py_None) { _arg0 = NULL; }
2550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Ok. Expected _wxColour_p.");
2552 return NULL;
2553 }
2554 }
2555 {
2556 wxPy_BEGIN_ALLOW_THREADS;
2557 _result = (bool )wxColour_Ok(_arg0);
2558
2559 wxPy_END_ALLOW_THREADS;
2560 } _resultobj = Py_BuildValue("i",_result);
2561 return _resultobj;
2562 }
2563
2564 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
2565 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args) {
2566 PyObject * _resultobj;
2567 wxColour * _arg0;
2568 unsigned char _arg1;
2569 unsigned char _arg2;
2570 unsigned char _arg3;
2571 PyObject * _argo0 = 0;
2572
2573 self = self;
2574 if(!PyArg_ParseTuple(args,"Obbb:wxColour_Set",&_argo0,&_arg1,&_arg2,&_arg3))
2575 return NULL;
2576 if (_argo0) {
2577 if (_argo0 == Py_None) { _arg0 = NULL; }
2578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Set. Expected _wxColour_p.");
2580 return NULL;
2581 }
2582 }
2583 {
2584 wxPy_BEGIN_ALLOW_THREADS;
2585 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
2586
2587 wxPy_END_ALLOW_THREADS;
2588 } Py_INCREF(Py_None);
2589 _resultobj = Py_None;
2590 return _resultobj;
2591 }
2592
2593 static PyObject * wxColour_Get(wxColour *self) {
2594 PyObject* rv = PyTuple_New(3);
2595 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
2596 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
2597 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
2598 return rv;
2599 }
2600 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args) {
2601 PyObject * _resultobj;
2602 PyObject * _result;
2603 wxColour * _arg0;
2604 PyObject * _argo0 = 0;
2605
2606 self = self;
2607 if(!PyArg_ParseTuple(args,"O:wxColour_Get",&_argo0))
2608 return NULL;
2609 if (_argo0) {
2610 if (_argo0 == Py_None) { _arg0 = NULL; }
2611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Get. Expected _wxColour_p.");
2613 return NULL;
2614 }
2615 }
2616 {
2617 wxPy_BEGIN_ALLOW_THREADS;
2618 _result = (PyObject *)wxColour_Get(_arg0);
2619
2620 wxPy_END_ALLOW_THREADS;
2621 }{
2622 _resultobj = _result;
2623 }
2624 return _resultobj;
2625 }
2626
2627 static wxPen *new_wxPen(wxColour *colour,int width,int style) {
2628 return wxThePenList->FindOrCreatePen(*colour, width, style);
2629 }
2630
2631 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args) {
2632 PyObject * _resultobj;
2633 wxPen * _result;
2634 wxColour * _arg0;
2635 int _arg1 = (int ) 1;
2636 int _arg2 = (int ) wxSOLID;
2637 PyObject * _argo0 = 0;
2638 char _ptemp[128];
2639
2640 self = self;
2641 if(!PyArg_ParseTuple(args,"O|ii:new_wxPen",&_argo0,&_arg1,&_arg2))
2642 return NULL;
2643 if (_argo0) {
2644 if (_argo0 == Py_None) { _arg0 = NULL; }
2645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
2646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPen. Expected _wxColour_p.");
2647 return NULL;
2648 }
2649 }
2650 {
2651 wxPy_BEGIN_ALLOW_THREADS;
2652 _result = (wxPen *)new_wxPen(_arg0,_arg1,_arg2);
2653
2654 wxPy_END_ALLOW_THREADS;
2655 } if (_result) {
2656 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
2657 _resultobj = Py_BuildValue("s",_ptemp);
2658 } else {
2659 Py_INCREF(Py_None);
2660 _resultobj = Py_None;
2661 }
2662 return _resultobj;
2663 }
2664
2665 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
2666 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args) {
2667 PyObject * _resultobj;
2668 int _result;
2669 wxPen * _arg0;
2670 PyObject * _argo0 = 0;
2671
2672 self = self;
2673 if(!PyArg_ParseTuple(args,"O:wxPen_GetCap",&_argo0))
2674 return NULL;
2675 if (_argo0) {
2676 if (_argo0 == Py_None) { _arg0 = NULL; }
2677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
2679 return NULL;
2680 }
2681 }
2682 {
2683 wxPy_BEGIN_ALLOW_THREADS;
2684 _result = (int )wxPen_GetCap(_arg0);
2685
2686 wxPy_END_ALLOW_THREADS;
2687 } _resultobj = Py_BuildValue("i",_result);
2688 return _resultobj;
2689 }
2690
2691 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
2692 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args) {
2693 PyObject * _resultobj;
2694 wxColour * _result;
2695 wxPen * _arg0;
2696 PyObject * _argo0 = 0;
2697 char _ptemp[128];
2698
2699 self = self;
2700 if(!PyArg_ParseTuple(args,"O:wxPen_GetColour",&_argo0))
2701 return NULL;
2702 if (_argo0) {
2703 if (_argo0 == Py_None) { _arg0 = NULL; }
2704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
2706 return NULL;
2707 }
2708 }
2709 {
2710 wxPy_BEGIN_ALLOW_THREADS;
2711 wxColour & _result_ref = wxPen_GetColour(_arg0);
2712 _result = (wxColour *) &_result_ref;
2713
2714 wxPy_END_ALLOW_THREADS;
2715 } if (_result) {
2716 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2717 _resultobj = Py_BuildValue("s",_ptemp);
2718 } else {
2719 Py_INCREF(Py_None);
2720 _resultobj = Py_None;
2721 }
2722 return _resultobj;
2723 }
2724
2725 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
2726 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args) {
2727 PyObject * _resultobj;
2728 int _result;
2729 wxPen * _arg0;
2730 PyObject * _argo0 = 0;
2731
2732 self = self;
2733 if(!PyArg_ParseTuple(args,"O:wxPen_GetJoin",&_argo0))
2734 return NULL;
2735 if (_argo0) {
2736 if (_argo0 == Py_None) { _arg0 = NULL; }
2737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
2739 return NULL;
2740 }
2741 }
2742 {
2743 wxPy_BEGIN_ALLOW_THREADS;
2744 _result = (int )wxPen_GetJoin(_arg0);
2745
2746 wxPy_END_ALLOW_THREADS;
2747 } _resultobj = Py_BuildValue("i",_result);
2748 return _resultobj;
2749 }
2750
2751 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
2752 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args) {
2753 PyObject * _resultobj;
2754 int _result;
2755 wxPen * _arg0;
2756 PyObject * _argo0 = 0;
2757
2758 self = self;
2759 if(!PyArg_ParseTuple(args,"O:wxPen_GetStyle",&_argo0))
2760 return NULL;
2761 if (_argo0) {
2762 if (_argo0 == Py_None) { _arg0 = NULL; }
2763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
2765 return NULL;
2766 }
2767 }
2768 {
2769 wxPy_BEGIN_ALLOW_THREADS;
2770 _result = (int )wxPen_GetStyle(_arg0);
2771
2772 wxPy_END_ALLOW_THREADS;
2773 } _resultobj = Py_BuildValue("i",_result);
2774 return _resultobj;
2775 }
2776
2777 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
2778 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args) {
2779 PyObject * _resultobj;
2780 int _result;
2781 wxPen * _arg0;
2782 PyObject * _argo0 = 0;
2783
2784 self = self;
2785 if(!PyArg_ParseTuple(args,"O:wxPen_GetWidth",&_argo0))
2786 return NULL;
2787 if (_argo0) {
2788 if (_argo0 == Py_None) { _arg0 = NULL; }
2789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
2791 return NULL;
2792 }
2793 }
2794 {
2795 wxPy_BEGIN_ALLOW_THREADS;
2796 _result = (int )wxPen_GetWidth(_arg0);
2797
2798 wxPy_END_ALLOW_THREADS;
2799 } _resultobj = Py_BuildValue("i",_result);
2800 return _resultobj;
2801 }
2802
2803 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
2804 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args) {
2805 PyObject * _resultobj;
2806 bool _result;
2807 wxPen * _arg0;
2808 PyObject * _argo0 = 0;
2809
2810 self = self;
2811 if(!PyArg_ParseTuple(args,"O:wxPen_Ok",&_argo0))
2812 return NULL;
2813 if (_argo0) {
2814 if (_argo0 == Py_None) { _arg0 = NULL; }
2815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
2817 return NULL;
2818 }
2819 }
2820 {
2821 wxPy_BEGIN_ALLOW_THREADS;
2822 _result = (bool )wxPen_Ok(_arg0);
2823
2824 wxPy_END_ALLOW_THREADS;
2825 } _resultobj = Py_BuildValue("i",_result);
2826 return _resultobj;
2827 }
2828
2829 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
2830 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args) {
2831 PyObject * _resultobj;
2832 wxPen * _arg0;
2833 int _arg1;
2834 PyObject * _argo0 = 0;
2835
2836 self = self;
2837 if(!PyArg_ParseTuple(args,"Oi:wxPen_SetCap",&_argo0,&_arg1))
2838 return NULL;
2839 if (_argo0) {
2840 if (_argo0 == Py_None) { _arg0 = NULL; }
2841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
2843 return NULL;
2844 }
2845 }
2846 {
2847 wxPy_BEGIN_ALLOW_THREADS;
2848 wxPen_SetCap(_arg0,_arg1);
2849
2850 wxPy_END_ALLOW_THREADS;
2851 } Py_INCREF(Py_None);
2852 _resultobj = Py_None;
2853 return _resultobj;
2854 }
2855
2856 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
2857 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args) {
2858 PyObject * _resultobj;
2859 wxPen * _arg0;
2860 wxColour * _arg1;
2861 PyObject * _argo0 = 0;
2862 PyObject * _argo1 = 0;
2863
2864 self = self;
2865 if(!PyArg_ParseTuple(args,"OO:wxPen_SetColour",&_argo0,&_argo1))
2866 return NULL;
2867 if (_argo0) {
2868 if (_argo0 == Py_None) { _arg0 = NULL; }
2869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
2871 return NULL;
2872 }
2873 }
2874 if (_argo1) {
2875 if (_argo1 == Py_None) { _arg1 = NULL; }
2876 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2877 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetColour. Expected _wxColour_p.");
2878 return NULL;
2879 }
2880 }
2881 {
2882 wxPy_BEGIN_ALLOW_THREADS;
2883 wxPen_SetColour(_arg0,*_arg1);
2884
2885 wxPy_END_ALLOW_THREADS;
2886 } Py_INCREF(Py_None);
2887 _resultobj = Py_None;
2888 return _resultobj;
2889 }
2890
2891 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
2892 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args) {
2893 PyObject * _resultobj;
2894 wxPen * _arg0;
2895 int _arg1;
2896 PyObject * _argo0 = 0;
2897
2898 self = self;
2899 if(!PyArg_ParseTuple(args,"Oi:wxPen_SetJoin",&_argo0,&_arg1))
2900 return NULL;
2901 if (_argo0) {
2902 if (_argo0 == Py_None) { _arg0 = NULL; }
2903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
2905 return NULL;
2906 }
2907 }
2908 {
2909 wxPy_BEGIN_ALLOW_THREADS;
2910 wxPen_SetJoin(_arg0,_arg1);
2911
2912 wxPy_END_ALLOW_THREADS;
2913 } Py_INCREF(Py_None);
2914 _resultobj = Py_None;
2915 return _resultobj;
2916 }
2917
2918 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2919 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args) {
2920 PyObject * _resultobj;
2921 wxPen * _arg0;
2922 int _arg1;
2923 PyObject * _argo0 = 0;
2924
2925 self = self;
2926 if(!PyArg_ParseTuple(args,"Oi:wxPen_SetStyle",&_argo0,&_arg1))
2927 return NULL;
2928 if (_argo0) {
2929 if (_argo0 == Py_None) { _arg0 = NULL; }
2930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
2932 return NULL;
2933 }
2934 }
2935 {
2936 wxPy_BEGIN_ALLOW_THREADS;
2937 wxPen_SetStyle(_arg0,_arg1);
2938
2939 wxPy_END_ALLOW_THREADS;
2940 } Py_INCREF(Py_None);
2941 _resultobj = Py_None;
2942 return _resultobj;
2943 }
2944
2945 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2946 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args) {
2947 PyObject * _resultobj;
2948 wxPen * _arg0;
2949 int _arg1;
2950 PyObject * _argo0 = 0;
2951
2952 self = self;
2953 if(!PyArg_ParseTuple(args,"Oi:wxPen_SetWidth",&_argo0,&_arg1))
2954 return NULL;
2955 if (_argo0) {
2956 if (_argo0 == Py_None) { _arg0 = NULL; }
2957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
2959 return NULL;
2960 }
2961 }
2962 {
2963 wxPy_BEGIN_ALLOW_THREADS;
2964 wxPen_SetWidth(_arg0,_arg1);
2965
2966 wxPy_END_ALLOW_THREADS;
2967 } Py_INCREF(Py_None);
2968 _resultobj = Py_None;
2969 return _resultobj;
2970 }
2971
2972 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
2973 static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args) {
2974 PyObject * _resultobj;
2975 int _result;
2976 wxPen * _arg0;
2977 wxDash ** _arg1;
2978 PyObject * _argo0 = 0;
2979 PyObject * _argo1 = 0;
2980
2981 self = self;
2982 if(!PyArg_ParseTuple(args,"OO:wxPen_GetDashes",&_argo0,&_argo1))
2983 return NULL;
2984 if (_argo0) {
2985 if (_argo0 == Py_None) { _arg0 = NULL; }
2986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
2987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
2988 return NULL;
2989 }
2990 }
2991 if (_argo1) {
2992 if (_argo1 == Py_None) { _arg1 = NULL; }
2993 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) {
2994 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
2995 return NULL;
2996 }
2997 }
2998 {
2999 wxPy_BEGIN_ALLOW_THREADS;
3000 _result = (int )wxPen_GetDashes(_arg0,_arg1);
3001
3002 wxPy_END_ALLOW_THREADS;
3003 } _resultobj = Py_BuildValue("i",_result);
3004 return _resultobj;
3005 }
3006
3007 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
3008 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args) {
3009 PyObject * _resultobj;
3010 wxBitmap * _result;
3011 wxPen * _arg0;
3012 PyObject * _argo0 = 0;
3013 char _ptemp[128];
3014
3015 self = self;
3016 if(!PyArg_ParseTuple(args,"O:wxPen_GetStipple",&_argo0))
3017 return NULL;
3018 if (_argo0) {
3019 if (_argo0 == Py_None) { _arg0 = NULL; }
3020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
3022 return NULL;
3023 }
3024 }
3025 {
3026 wxPy_BEGIN_ALLOW_THREADS;
3027 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
3028
3029 wxPy_END_ALLOW_THREADS;
3030 } if (_result) {
3031 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
3032 _resultobj = Py_BuildValue("s",_ptemp);
3033 } else {
3034 Py_INCREF(Py_None);
3035 _resultobj = Py_None;
3036 }
3037 return _resultobj;
3038 }
3039
3040 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3041 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args) {
3042 PyObject * _resultobj;
3043 wxPen * _arg0;
3044 int _arg1;
3045 wxDash * _arg2;
3046 PyObject * _argo0 = 0;
3047 PyObject * _obj2 = 0;
3048
3049 self = self;
3050 if(!PyArg_ParseTuple(args,"OO:wxPen_SetDashes",&_argo0,&_obj2))
3051 return NULL;
3052 if (_argo0) {
3053 if (_argo0 == Py_None) { _arg0 = NULL; }
3054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3056 return NULL;
3057 }
3058 }
3059 if (_obj2)
3060 {
3061 _arg2 = (unsigned long*)long_LIST_helper(_obj2);
3062 if (_arg2 == NULL) {
3063 return NULL;
3064 }
3065 }
3066 {
3067 if (_obj2) {
3068 _arg1 = PyList_Size(_obj2);
3069 }
3070 else {
3071 _arg1 = 0;
3072 }
3073 }
3074 {
3075 wxPy_BEGIN_ALLOW_THREADS;
3076 wxPen_SetDashes(_arg0,_arg1,_arg2);
3077
3078 wxPy_END_ALLOW_THREADS;
3079 } Py_INCREF(Py_None);
3080 _resultobj = Py_None;
3081 {
3082 delete [] _arg2;
3083 }
3084 return _resultobj;
3085 }
3086
3087 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
3088 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args) {
3089 PyObject * _resultobj;
3090 wxPen * _arg0;
3091 wxBitmap * _arg1;
3092 PyObject * _argo0 = 0;
3093 PyObject * _argo1 = 0;
3094
3095 self = self;
3096 if(!PyArg_ParseTuple(args,"OO:wxPen_SetStipple",&_argo0,&_argo1))
3097 return NULL;
3098 if (_argo0) {
3099 if (_argo0 == Py_None) { _arg0 = NULL; }
3100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
3102 return NULL;
3103 }
3104 }
3105 if (_argo1) {
3106 if (_argo1 == Py_None) { _arg1 = NULL; }
3107 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
3108 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
3109 return NULL;
3110 }
3111 }
3112 {
3113 wxPy_BEGIN_ALLOW_THREADS;
3114 wxPen_SetStipple(_arg0,*_arg1);
3115
3116 wxPy_END_ALLOW_THREADS;
3117 } Py_INCREF(Py_None);
3118 _resultobj = Py_None;
3119 return _resultobj;
3120 }
3121
3122 static wxBrush *new_wxBrush(wxColour *colour,int style) {
3123 return wxTheBrushList->FindOrCreateBrush(*colour, style);
3124 }
3125
3126 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args) {
3127 PyObject * _resultobj;
3128 wxBrush * _result;
3129 wxColour * _arg0;
3130 int _arg1 = (int ) wxSOLID;
3131 PyObject * _argo0 = 0;
3132 char _ptemp[128];
3133
3134 self = self;
3135 if(!PyArg_ParseTuple(args,"O|i:new_wxBrush",&_argo0,&_arg1))
3136 return NULL;
3137 if (_argo0) {
3138 if (_argo0 == Py_None) { _arg0 = NULL; }
3139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColour_p")) {
3140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBrush. Expected _wxColour_p.");
3141 return NULL;
3142 }
3143 }
3144 {
3145 wxPy_BEGIN_ALLOW_THREADS;
3146 _result = (wxBrush *)new_wxBrush(_arg0,_arg1);
3147
3148 wxPy_END_ALLOW_THREADS;
3149 } if (_result) {
3150 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
3151 _resultobj = Py_BuildValue("s",_ptemp);
3152 } else {
3153 Py_INCREF(Py_None);
3154 _resultobj = Py_None;
3155 }
3156 return _resultobj;
3157 }
3158
3159 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
3160 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args) {
3161 PyObject * _resultobj;
3162 wxColour * _result;
3163 wxBrush * _arg0;
3164 PyObject * _argo0 = 0;
3165 char _ptemp[128];
3166
3167 self = self;
3168 if(!PyArg_ParseTuple(args,"O:wxBrush_GetColour",&_argo0))
3169 return NULL;
3170 if (_argo0) {
3171 if (_argo0 == Py_None) { _arg0 = NULL; }
3172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
3174 return NULL;
3175 }
3176 }
3177 {
3178 wxPy_BEGIN_ALLOW_THREADS;
3179 wxColour & _result_ref = wxBrush_GetColour(_arg0);
3180 _result = (wxColour *) &_result_ref;
3181
3182 wxPy_END_ALLOW_THREADS;
3183 } if (_result) {
3184 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3185 _resultobj = Py_BuildValue("s",_ptemp);
3186 } else {
3187 Py_INCREF(Py_None);
3188 _resultobj = Py_None;
3189 }
3190 return _resultobj;
3191 }
3192
3193 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
3194 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args) {
3195 PyObject * _resultobj;
3196 wxBitmap * _result;
3197 wxBrush * _arg0;
3198 PyObject * _argo0 = 0;
3199 char _ptemp[128];
3200
3201 self = self;
3202 if(!PyArg_ParseTuple(args,"O:wxBrush_GetStipple",&_argo0))
3203 return NULL;
3204 if (_argo0) {
3205 if (_argo0 == Py_None) { _arg0 = NULL; }
3206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
3208 return NULL;
3209 }
3210 }
3211 {
3212 wxPy_BEGIN_ALLOW_THREADS;
3213 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
3214
3215 wxPy_END_ALLOW_THREADS;
3216 } if (_result) {
3217 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
3218 _resultobj = Py_BuildValue("s",_ptemp);
3219 } else {
3220 Py_INCREF(Py_None);
3221 _resultobj = Py_None;
3222 }
3223 return _resultobj;
3224 }
3225
3226 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
3227 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args) {
3228 PyObject * _resultobj;
3229 int _result;
3230 wxBrush * _arg0;
3231 PyObject * _argo0 = 0;
3232
3233 self = self;
3234 if(!PyArg_ParseTuple(args,"O:wxBrush_GetStyle",&_argo0))
3235 return NULL;
3236 if (_argo0) {
3237 if (_argo0 == Py_None) { _arg0 = NULL; }
3238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
3240 return NULL;
3241 }
3242 }
3243 {
3244 wxPy_BEGIN_ALLOW_THREADS;
3245 _result = (int )wxBrush_GetStyle(_arg0);
3246
3247 wxPy_END_ALLOW_THREADS;
3248 } _resultobj = Py_BuildValue("i",_result);
3249 return _resultobj;
3250 }
3251
3252 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
3253 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args) {
3254 PyObject * _resultobj;
3255 bool _result;
3256 wxBrush * _arg0;
3257 PyObject * _argo0 = 0;
3258
3259 self = self;
3260 if(!PyArg_ParseTuple(args,"O:wxBrush_Ok",&_argo0))
3261 return NULL;
3262 if (_argo0) {
3263 if (_argo0 == Py_None) { _arg0 = NULL; }
3264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
3266 return NULL;
3267 }
3268 }
3269 {
3270 wxPy_BEGIN_ALLOW_THREADS;
3271 _result = (bool )wxBrush_Ok(_arg0);
3272
3273 wxPy_END_ALLOW_THREADS;
3274 } _resultobj = Py_BuildValue("i",_result);
3275 return _resultobj;
3276 }
3277
3278 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3279 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args) {
3280 PyObject * _resultobj;
3281 wxBrush * _arg0;
3282 wxColour * _arg1;
3283 PyObject * _argo0 = 0;
3284 PyObject * _argo1 = 0;
3285
3286 self = self;
3287 if(!PyArg_ParseTuple(args,"OO:wxBrush_SetColour",&_argo0,&_argo1))
3288 return NULL;
3289 if (_argo0) {
3290 if (_argo0 == Py_None) { _arg0 = NULL; }
3291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
3293 return NULL;
3294 }
3295 }
3296 if (_argo1) {
3297 if (_argo1 == Py_None) { _arg1 = NULL; }
3298 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
3299 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetColour. Expected _wxColour_p.");
3300 return NULL;
3301 }
3302 }
3303 {
3304 wxPy_BEGIN_ALLOW_THREADS;
3305 wxBrush_SetColour(_arg0,*_arg1);
3306
3307 wxPy_END_ALLOW_THREADS;
3308 } Py_INCREF(Py_None);
3309 _resultobj = Py_None;
3310 return _resultobj;
3311 }
3312
3313 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
3314 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args) {
3315 PyObject * _resultobj;
3316 wxBrush * _arg0;
3317 wxBitmap * _arg1;
3318 PyObject * _argo0 = 0;
3319 PyObject * _argo1 = 0;
3320
3321 self = self;
3322 if(!PyArg_ParseTuple(args,"OO:wxBrush_SetStipple",&_argo0,&_argo1))
3323 return NULL;
3324 if (_argo0) {
3325 if (_argo0 == Py_None) { _arg0 = NULL; }
3326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
3328 return NULL;
3329 }
3330 }
3331 if (_argo1) {
3332 if (_argo1 == Py_None) { _arg1 = NULL; }
3333 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
3334 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
3335 return NULL;
3336 }
3337 }
3338 {
3339 wxPy_BEGIN_ALLOW_THREADS;
3340 wxBrush_SetStipple(_arg0,*_arg1);
3341
3342 wxPy_END_ALLOW_THREADS;
3343 } Py_INCREF(Py_None);
3344 _resultobj = Py_None;
3345 return _resultobj;
3346 }
3347
3348 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3349 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args) {
3350 PyObject * _resultobj;
3351 wxBrush * _arg0;
3352 int _arg1;
3353 PyObject * _argo0 = 0;
3354
3355 self = self;
3356 if(!PyArg_ParseTuple(args,"Oi:wxBrush_SetStyle",&_argo0,&_arg1))
3357 return NULL;
3358 if (_argo0) {
3359 if (_argo0 == Py_None) { _arg0 = NULL; }
3360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
3361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
3362 return NULL;
3363 }
3364 }
3365 {
3366 wxPy_BEGIN_ALLOW_THREADS;
3367 wxBrush_SetStyle(_arg0,_arg1);
3368
3369 wxPy_END_ALLOW_THREADS;
3370 } Py_INCREF(Py_None);
3371 _resultobj = Py_None;
3372 return _resultobj;
3373 }
3374
3375 #define delete_wxDC(_swigobj) (delete _swigobj)
3376 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args) {
3377 PyObject * _resultobj;
3378 wxDC * _arg0;
3379 PyObject * _argo0 = 0;
3380
3381 self = self;
3382 if(!PyArg_ParseTuple(args,"O:delete_wxDC",&_argo0))
3383 return NULL;
3384 if (_argo0) {
3385 if (_argo0 == Py_None) { _arg0 = NULL; }
3386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
3388 return NULL;
3389 }
3390 }
3391 {
3392 wxPy_BEGIN_ALLOW_THREADS;
3393 delete_wxDC(_arg0);
3394
3395 wxPy_END_ALLOW_THREADS;
3396 } Py_INCREF(Py_None);
3397 _resultobj = Py_None;
3398 return _resultobj;
3399 }
3400
3401 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
3402 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args) {
3403 PyObject * _resultobj;
3404 wxDC * _arg0;
3405 PyObject * _argo0 = 0;
3406
3407 self = self;
3408 if(!PyArg_ParseTuple(args,"O:wxDC_BeginDrawing",&_argo0))
3409 return NULL;
3410 if (_argo0) {
3411 if (_argo0 == Py_None) { _arg0 = NULL; }
3412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
3414 return NULL;
3415 }
3416 }
3417 {
3418 wxPy_BEGIN_ALLOW_THREADS;
3419 wxDC_BeginDrawing(_arg0);
3420
3421 wxPy_END_ALLOW_THREADS;
3422 } Py_INCREF(Py_None);
3423 _resultobj = Py_None;
3424 return _resultobj;
3425 }
3426
3427 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
3428 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args) {
3429 PyObject * _resultobj;
3430 bool _result;
3431 wxDC * _arg0;
3432 long _arg1;
3433 long _arg2;
3434 long _arg3;
3435 long _arg4;
3436 wxDC * _arg5;
3437 long _arg6;
3438 long _arg7;
3439 int _arg8 = (int ) wxCOPY;
3440 int _arg9 = (int ) FALSE;
3441 PyObject * _argo0 = 0;
3442 PyObject * _argo5 = 0;
3443
3444 self = self;
3445 if(!PyArg_ParseTuple(args,"OllllOll|ii:wxDC_Blit",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
3446 return NULL;
3447 if (_argo0) {
3448 if (_argo0 == Py_None) { _arg0 = NULL; }
3449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
3451 return NULL;
3452 }
3453 }
3454 if (_argo5) {
3455 if (_argo5 == Py_None) { _arg5 = NULL; }
3456 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
3457 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
3458 return NULL;
3459 }
3460 }
3461 {
3462 wxPy_BEGIN_ALLOW_THREADS;
3463 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
3464
3465 wxPy_END_ALLOW_THREADS;
3466 } _resultobj = Py_BuildValue("i",_result);
3467 return _resultobj;
3468 }
3469
3470 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
3471 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args) {
3472 PyObject * _resultobj;
3473 wxDC * _arg0;
3474 PyObject * _argo0 = 0;
3475
3476 self = self;
3477 if(!PyArg_ParseTuple(args,"O:wxDC_Clear",&_argo0))
3478 return NULL;
3479 if (_argo0) {
3480 if (_argo0 == Py_None) { _arg0 = NULL; }
3481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
3483 return NULL;
3484 }
3485 }
3486 {
3487 wxPy_BEGIN_ALLOW_THREADS;
3488 wxDC_Clear(_arg0);
3489
3490 wxPy_END_ALLOW_THREADS;
3491 } Py_INCREF(Py_None);
3492 _resultobj = Py_None;
3493 return _resultobj;
3494 }
3495
3496 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
3497 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args) {
3498 PyObject * _resultobj;
3499 wxDC * _arg0;
3500 long _arg1;
3501 long _arg2;
3502 PyObject * _argo0 = 0;
3503
3504 self = self;
3505 if(!PyArg_ParseTuple(args,"Oll:wxDC_CrossHair",&_argo0,&_arg1,&_arg2))
3506 return NULL;
3507 if (_argo0) {
3508 if (_argo0 == Py_None) { _arg0 = NULL; }
3509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
3511 return NULL;
3512 }
3513 }
3514 {
3515 wxPy_BEGIN_ALLOW_THREADS;
3516 wxDC_CrossHair(_arg0,_arg1,_arg2);
3517
3518 wxPy_END_ALLOW_THREADS;
3519 } Py_INCREF(Py_None);
3520 _resultobj = Py_None;
3521 return _resultobj;
3522 }
3523
3524 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
3525 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args) {
3526 PyObject * _resultobj;
3527 wxDC * _arg0;
3528 PyObject * _argo0 = 0;
3529
3530 self = self;
3531 if(!PyArg_ParseTuple(args,"O:wxDC_DestroyClippingRegion",&_argo0))
3532 return NULL;
3533 if (_argo0) {
3534 if (_argo0 == Py_None) { _arg0 = NULL; }
3535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
3537 return NULL;
3538 }
3539 }
3540 {
3541 wxPy_BEGIN_ALLOW_THREADS;
3542 wxDC_DestroyClippingRegion(_arg0);
3543
3544 wxPy_END_ALLOW_THREADS;
3545 } Py_INCREF(Py_None);
3546 _resultobj = Py_None;
3547 return _resultobj;
3548 }
3549
3550 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
3551 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args) {
3552 PyObject * _resultobj;
3553 long _result;
3554 wxDC * _arg0;
3555 long _arg1;
3556 PyObject * _argo0 = 0;
3557
3558 self = self;
3559 if(!PyArg_ParseTuple(args,"Ol:wxDC_DeviceToLogicalX",&_argo0,&_arg1))
3560 return NULL;
3561 if (_argo0) {
3562 if (_argo0 == Py_None) { _arg0 = NULL; }
3563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
3565 return NULL;
3566 }
3567 }
3568 {
3569 wxPy_BEGIN_ALLOW_THREADS;
3570 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
3571
3572 wxPy_END_ALLOW_THREADS;
3573 } _resultobj = Py_BuildValue("l",_result);
3574 return _resultobj;
3575 }
3576
3577 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
3578 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args) {
3579 PyObject * _resultobj;
3580 long _result;
3581 wxDC * _arg0;
3582 long _arg1;
3583 PyObject * _argo0 = 0;
3584
3585 self = self;
3586 if(!PyArg_ParseTuple(args,"Ol:wxDC_DeviceToLogicalXRel",&_argo0,&_arg1))
3587 return NULL;
3588 if (_argo0) {
3589 if (_argo0 == Py_None) { _arg0 = NULL; }
3590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
3592 return NULL;
3593 }
3594 }
3595 {
3596 wxPy_BEGIN_ALLOW_THREADS;
3597 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
3598
3599 wxPy_END_ALLOW_THREADS;
3600 } _resultobj = Py_BuildValue("l",_result);
3601 return _resultobj;
3602 }
3603
3604 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
3605 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args) {
3606 PyObject * _resultobj;
3607 long _result;
3608 wxDC * _arg0;
3609 long _arg1;
3610 PyObject * _argo0 = 0;
3611
3612 self = self;
3613 if(!PyArg_ParseTuple(args,"Ol:wxDC_DeviceToLogicalY",&_argo0,&_arg1))
3614 return NULL;
3615 if (_argo0) {
3616 if (_argo0 == Py_None) { _arg0 = NULL; }
3617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
3619 return NULL;
3620 }
3621 }
3622 {
3623 wxPy_BEGIN_ALLOW_THREADS;
3624 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
3625
3626 wxPy_END_ALLOW_THREADS;
3627 } _resultobj = Py_BuildValue("l",_result);
3628 return _resultobj;
3629 }
3630
3631 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
3632 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args) {
3633 PyObject * _resultobj;
3634 long _result;
3635 wxDC * _arg0;
3636 long _arg1;
3637 PyObject * _argo0 = 0;
3638
3639 self = self;
3640 if(!PyArg_ParseTuple(args,"Ol:wxDC_DeviceToLogicalYRel",&_argo0,&_arg1))
3641 return NULL;
3642 if (_argo0) {
3643 if (_argo0 == Py_None) { _arg0 = NULL; }
3644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
3646 return NULL;
3647 }
3648 }
3649 {
3650 wxPy_BEGIN_ALLOW_THREADS;
3651 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
3652
3653 wxPy_END_ALLOW_THREADS;
3654 } _resultobj = Py_BuildValue("l",_result);
3655 return _resultobj;
3656 }
3657
3658 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3659 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args) {
3660 PyObject * _resultobj;
3661 wxDC * _arg0;
3662 long _arg1;
3663 long _arg2;
3664 long _arg3;
3665 long _arg4;
3666 long _arg5;
3667 long _arg6;
3668 PyObject * _argo0 = 0;
3669
3670 self = self;
3671 if(!PyArg_ParseTuple(args,"Ollllll:wxDC_DrawArc",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3672 return NULL;
3673 if (_argo0) {
3674 if (_argo0 == Py_None) { _arg0 = NULL; }
3675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
3677 return NULL;
3678 }
3679 }
3680 {
3681 wxPy_BEGIN_ALLOW_THREADS;
3682 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3683
3684 wxPy_END_ALLOW_THREADS;
3685 } Py_INCREF(Py_None);
3686 _resultobj = Py_None;
3687 return _resultobj;
3688 }
3689
3690 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
3691 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args) {
3692 PyObject * _resultobj;
3693 wxDC * _arg0;
3694 long _arg1;
3695 long _arg2;
3696 long _arg3;
3697 PyObject * _argo0 = 0;
3698
3699 self = self;
3700 if(!PyArg_ParseTuple(args,"Olll:wxDC_DrawCircle",&_argo0,&_arg1,&_arg2,&_arg3))
3701 return NULL;
3702 if (_argo0) {
3703 if (_argo0 == Py_None) { _arg0 = NULL; }
3704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
3706 return NULL;
3707 }
3708 }
3709 {
3710 wxPy_BEGIN_ALLOW_THREADS;
3711 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
3712
3713 wxPy_END_ALLOW_THREADS;
3714 } Py_INCREF(Py_None);
3715 _resultobj = Py_None;
3716 return _resultobj;
3717 }
3718
3719 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3720 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args) {
3721 PyObject * _resultobj;
3722 wxDC * _arg0;
3723 long _arg1;
3724 long _arg2;
3725 long _arg3;
3726 long _arg4;
3727 PyObject * _argo0 = 0;
3728
3729 self = self;
3730 if(!PyArg_ParseTuple(args,"Ollll:wxDC_DrawEllipse",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
3731 return NULL;
3732 if (_argo0) {
3733 if (_argo0 == Py_None) { _arg0 = NULL; }
3734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
3736 return NULL;
3737 }
3738 }
3739 {
3740 wxPy_BEGIN_ALLOW_THREADS;
3741 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
3742
3743 wxPy_END_ALLOW_THREADS;
3744 } Py_INCREF(Py_None);
3745 _resultobj = Py_None;
3746 return _resultobj;
3747 }
3748
3749 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3750 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args) {
3751 PyObject * _resultobj;
3752 wxDC * _arg0;
3753 long _arg1;
3754 long _arg2;
3755 long _arg3;
3756 long _arg4;
3757 long _arg5;
3758 long _arg6;
3759 PyObject * _argo0 = 0;
3760
3761 self = self;
3762 if(!PyArg_ParseTuple(args,"Ollllll:wxDC_DrawEllipticArc",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3763 return NULL;
3764 if (_argo0) {
3765 if (_argo0 == Py_None) { _arg0 = NULL; }
3766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
3768 return NULL;
3769 }
3770 }
3771 {
3772 wxPy_BEGIN_ALLOW_THREADS;
3773 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3774
3775 wxPy_END_ALLOW_THREADS;
3776 } Py_INCREF(Py_None);
3777 _resultobj = Py_None;
3778 return _resultobj;
3779 }
3780
3781 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
3782 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args) {
3783 PyObject * _resultobj;
3784 wxDC * _arg0;
3785 wxIcon * _arg1;
3786 long _arg2;
3787 long _arg3;
3788 PyObject * _argo0 = 0;
3789 PyObject * _argo1 = 0;
3790
3791 self = self;
3792 if(!PyArg_ParseTuple(args,"OOll:wxDC_DrawIcon",&_argo0,&_argo1,&_arg2,&_arg3))
3793 return NULL;
3794 if (_argo0) {
3795 if (_argo0 == Py_None) { _arg0 = NULL; }
3796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
3798 return NULL;
3799 }
3800 }
3801 if (_argo1) {
3802 if (_argo1 == Py_None) { _arg1 = NULL; }
3803 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
3804 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
3805 return NULL;
3806 }
3807 }
3808 {
3809 wxPy_BEGIN_ALLOW_THREADS;
3810 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
3811
3812 wxPy_END_ALLOW_THREADS;
3813 } Py_INCREF(Py_None);
3814 _resultobj = Py_None;
3815 return _resultobj;
3816 }
3817
3818 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3819 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args) {
3820 PyObject * _resultobj;
3821 wxDC * _arg0;
3822 long _arg1;
3823 long _arg2;
3824 long _arg3;
3825 long _arg4;
3826 PyObject * _argo0 = 0;
3827
3828 self = self;
3829 if(!PyArg_ParseTuple(args,"Ollll:wxDC_DrawLine",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
3830 return NULL;
3831 if (_argo0) {
3832 if (_argo0 == Py_None) { _arg0 = NULL; }
3833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
3835 return NULL;
3836 }
3837 }
3838 {
3839 wxPy_BEGIN_ALLOW_THREADS;
3840 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
3841
3842 wxPy_END_ALLOW_THREADS;
3843 } Py_INCREF(Py_None);
3844 _resultobj = Py_None;
3845 return _resultobj;
3846 }
3847
3848 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3849 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args) {
3850 PyObject * _resultobj;
3851 wxDC * _arg0;
3852 int _arg1;
3853 wxPoint * _arg2;
3854 long _arg3 = (long ) 0;
3855 long _arg4 = (long ) 0;
3856 PyObject * _argo0 = 0;
3857 PyObject * _obj2 = 0;
3858
3859 self = self;
3860 if(!PyArg_ParseTuple(args,"OO|ll:wxDC_DrawLines",&_argo0,&_obj2,&_arg3,&_arg4))
3861 return NULL;
3862 if (_argo0) {
3863 if (_argo0 == Py_None) { _arg0 = NULL; }
3864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
3866 return NULL;
3867 }
3868 }
3869 if (_obj2)
3870 {
3871 _arg2 = wxPoint_LIST_helper(_obj2);
3872 if (_arg2 == NULL) {
3873 return NULL;
3874 }
3875 }
3876 {
3877 if (_obj2) {
3878 _arg1 = PyList_Size(_obj2);
3879 }
3880 else {
3881 _arg1 = 0;
3882 }
3883 }
3884 {
3885 wxPy_BEGIN_ALLOW_THREADS;
3886 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
3887
3888 wxPy_END_ALLOW_THREADS;
3889 } Py_INCREF(Py_None);
3890 _resultobj = Py_None;
3891 {
3892 delete [] _arg2;
3893 }
3894 return _resultobj;
3895 }
3896
3897 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3898 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args) {
3899 PyObject * _resultobj;
3900 wxDC * _arg0;
3901 int _arg1;
3902 wxPoint * _arg2;
3903 long _arg3 = (long ) 0;
3904 long _arg4 = (long ) 0;
3905 int _arg5 = (int ) wxODDEVEN_RULE;
3906 PyObject * _argo0 = 0;
3907 PyObject * _obj2 = 0;
3908
3909 self = self;
3910 if(!PyArg_ParseTuple(args,"OO|lli:wxDC_DrawPolygon",&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
3911 return NULL;
3912 if (_argo0) {
3913 if (_argo0 == Py_None) { _arg0 = NULL; }
3914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
3916 return NULL;
3917 }
3918 }
3919 if (_obj2)
3920 {
3921 _arg2 = wxPoint_LIST_helper(_obj2);
3922 if (_arg2 == NULL) {
3923 return NULL;
3924 }
3925 }
3926 {
3927 if (_obj2) {
3928 _arg1 = PyList_Size(_obj2);
3929 }
3930 else {
3931 _arg1 = 0;
3932 }
3933 }
3934 {
3935 wxPy_BEGIN_ALLOW_THREADS;
3936 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3937
3938 wxPy_END_ALLOW_THREADS;
3939 } Py_INCREF(Py_None);
3940 _resultobj = Py_None;
3941 {
3942 delete [] _arg2;
3943 }
3944 return _resultobj;
3945 }
3946
3947 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
3948 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args) {
3949 PyObject * _resultobj;
3950 wxDC * _arg0;
3951 long _arg1;
3952 long _arg2;
3953 PyObject * _argo0 = 0;
3954
3955 self = self;
3956 if(!PyArg_ParseTuple(args,"Oll:wxDC_DrawPoint",&_argo0,&_arg1,&_arg2))
3957 return NULL;
3958 if (_argo0) {
3959 if (_argo0 == Py_None) { _arg0 = NULL; }
3960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
3962 return NULL;
3963 }
3964 }
3965 {
3966 wxPy_BEGIN_ALLOW_THREADS;
3967 wxDC_DrawPoint(_arg0,_arg1,_arg2);
3968
3969 wxPy_END_ALLOW_THREADS;
3970 } Py_INCREF(Py_None);
3971 _resultobj = Py_None;
3972 return _resultobj;
3973 }
3974
3975 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3976 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args) {
3977 PyObject * _resultobj;
3978 wxDC * _arg0;
3979 long _arg1;
3980 long _arg2;
3981 long _arg3;
3982 long _arg4;
3983 PyObject * _argo0 = 0;
3984
3985 self = self;
3986 if(!PyArg_ParseTuple(args,"Ollll:wxDC_DrawRectangle",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
3987 return NULL;
3988 if (_argo0) {
3989 if (_argo0 == Py_None) { _arg0 = NULL; }
3990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
3991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
3992 return NULL;
3993 }
3994 }
3995 {
3996 wxPy_BEGIN_ALLOW_THREADS;
3997 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
3998
3999 wxPy_END_ALLOW_THREADS;
4000 } Py_INCREF(Py_None);
4001 _resultobj = Py_None;
4002 return _resultobj;
4003 }
4004
4005 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4006 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args) {
4007 PyObject * _resultobj;
4008 wxDC * _arg0;
4009 long _arg1;
4010 long _arg2;
4011 long _arg3;
4012 long _arg4;
4013 long _arg5 = (long ) 20;
4014 PyObject * _argo0 = 0;
4015
4016 self = self;
4017 if(!PyArg_ParseTuple(args,"Ollll|l:wxDC_DrawRoundedRectangle",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4018 return NULL;
4019 if (_argo0) {
4020 if (_argo0 == Py_None) { _arg0 = NULL; }
4021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
4023 return NULL;
4024 }
4025 }
4026 {
4027 wxPy_BEGIN_ALLOW_THREADS;
4028 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4029
4030 wxPy_END_ALLOW_THREADS;
4031 } Py_INCREF(Py_None);
4032 _resultobj = Py_None;
4033 return _resultobj;
4034 }
4035
4036 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
4037 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args) {
4038 PyObject * _resultobj;
4039 wxDC * _arg0;
4040 int _arg1;
4041 wxPoint * _arg2;
4042 PyObject * _argo0 = 0;
4043 PyObject * _obj2 = 0;
4044
4045 self = self;
4046 if(!PyArg_ParseTuple(args,"OO:wxDC_DrawSpline",&_argo0,&_obj2))
4047 return NULL;
4048 if (_argo0) {
4049 if (_argo0 == Py_None) { _arg0 = NULL; }
4050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
4052 return NULL;
4053 }
4054 }
4055 if (_obj2)
4056 {
4057 _arg2 = wxPoint_LIST_helper(_obj2);
4058 if (_arg2 == NULL) {
4059 return NULL;
4060 }
4061 }
4062 {
4063 if (_obj2) {
4064 _arg1 = PyList_Size(_obj2);
4065 }
4066 else {
4067 _arg1 = 0;
4068 }
4069 }
4070 {
4071 wxPy_BEGIN_ALLOW_THREADS;
4072 wxDC_DrawSpline(_arg0,_arg1,_arg2);
4073
4074 wxPy_END_ALLOW_THREADS;
4075 } Py_INCREF(Py_None);
4076 _resultobj = Py_None;
4077 {
4078 delete [] _arg2;
4079 }
4080 return _resultobj;
4081 }
4082
4083 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
4084 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args) {
4085 PyObject * _resultobj;
4086 wxDC * _arg0;
4087 wxString * _arg1;
4088 long _arg2;
4089 long _arg3;
4090 PyObject * _argo0 = 0;
4091 PyObject * _obj1 = 0;
4092
4093 self = self;
4094 if(!PyArg_ParseTuple(args,"OOll:wxDC_DrawText",&_argo0,&_obj1,&_arg2,&_arg3))
4095 return NULL;
4096 if (_argo0) {
4097 if (_argo0 == Py_None) { _arg0 = NULL; }
4098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
4100 return NULL;
4101 }
4102 }
4103 {
4104 if (!PyString_Check(_obj1)) {
4105 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4106 return NULL;
4107 }
4108 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4109 }
4110 {
4111 wxPy_BEGIN_ALLOW_THREADS;
4112 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
4113
4114 wxPy_END_ALLOW_THREADS;
4115 } Py_INCREF(Py_None);
4116 _resultobj = Py_None;
4117 {
4118 if (_obj1)
4119 delete _arg1;
4120 }
4121 return _resultobj;
4122 }
4123
4124 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
4125 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args) {
4126 PyObject * _resultobj;
4127 wxDC * _arg0;
4128 PyObject * _argo0 = 0;
4129
4130 self = self;
4131 if(!PyArg_ParseTuple(args,"O:wxDC_EndDoc",&_argo0))
4132 return NULL;
4133 if (_argo0) {
4134 if (_argo0 == Py_None) { _arg0 = NULL; }
4135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
4137 return NULL;
4138 }
4139 }
4140 {
4141 wxPy_BEGIN_ALLOW_THREADS;
4142 wxDC_EndDoc(_arg0);
4143
4144 wxPy_END_ALLOW_THREADS;
4145 } Py_INCREF(Py_None);
4146 _resultobj = Py_None;
4147 return _resultobj;
4148 }
4149
4150 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
4151 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args) {
4152 PyObject * _resultobj;
4153 wxDC * _arg0;
4154 PyObject * _argo0 = 0;
4155
4156 self = self;
4157 if(!PyArg_ParseTuple(args,"O:wxDC_EndDrawing",&_argo0))
4158 return NULL;
4159 if (_argo0) {
4160 if (_argo0 == Py_None) { _arg0 = NULL; }
4161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
4163 return NULL;
4164 }
4165 }
4166 {
4167 wxPy_BEGIN_ALLOW_THREADS;
4168 wxDC_EndDrawing(_arg0);
4169
4170 wxPy_END_ALLOW_THREADS;
4171 } Py_INCREF(Py_None);
4172 _resultobj = Py_None;
4173 return _resultobj;
4174 }
4175
4176 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
4177 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args) {
4178 PyObject * _resultobj;
4179 wxDC * _arg0;
4180 PyObject * _argo0 = 0;
4181
4182 self = self;
4183 if(!PyArg_ParseTuple(args,"O:wxDC_EndPage",&_argo0))
4184 return NULL;
4185 if (_argo0) {
4186 if (_argo0 == Py_None) { _arg0 = NULL; }
4187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
4189 return NULL;
4190 }
4191 }
4192 {
4193 wxPy_BEGIN_ALLOW_THREADS;
4194 wxDC_EndPage(_arg0);
4195
4196 wxPy_END_ALLOW_THREADS;
4197 } Py_INCREF(Py_None);
4198 _resultobj = Py_None;
4199 return _resultobj;
4200 }
4201
4202 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4203 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args) {
4204 PyObject * _resultobj;
4205 wxDC * _arg0;
4206 long _arg1;
4207 long _arg2;
4208 wxColour * _arg3;
4209 int _arg4 = (int ) wxFLOOD_SURFACE;
4210 PyObject * _argo0 = 0;
4211 PyObject * _argo3 = 0;
4212
4213 self = self;
4214 if(!PyArg_ParseTuple(args,"OllO|i:wxDC_FloodFill",&_argo0,&_arg1,&_arg2,&_argo3,&_arg4))
4215 return NULL;
4216 if (_argo0) {
4217 if (_argo0 == Py_None) { _arg0 = NULL; }
4218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
4220 return NULL;
4221 }
4222 }
4223 if (_argo3) {
4224 if (_argo3 == Py_None) { _arg3 = NULL; }
4225 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxColour_p")) {
4226 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDC_FloodFill. Expected _wxColour_p.");
4227 return NULL;
4228 }
4229 }
4230 {
4231 wxPy_BEGIN_ALLOW_THREADS;
4232 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
4233
4234 wxPy_END_ALLOW_THREADS;
4235 } Py_INCREF(Py_None);
4236 _resultobj = Py_None;
4237 return _resultobj;
4238 }
4239
4240 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
4241 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args) {
4242 PyObject * _resultobj;
4243 wxBrush * _result;
4244 wxDC * _arg0;
4245 PyObject * _argo0 = 0;
4246 char _ptemp[128];
4247
4248 self = self;
4249 if(!PyArg_ParseTuple(args,"O:wxDC_GetBackground",&_argo0))
4250 return NULL;
4251 if (_argo0) {
4252 if (_argo0 == Py_None) { _arg0 = NULL; }
4253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
4255 return NULL;
4256 }
4257 }
4258 {
4259 wxPy_BEGIN_ALLOW_THREADS;
4260 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
4261 _result = (wxBrush *) &_result_ref;
4262
4263 wxPy_END_ALLOW_THREADS;
4264 } if (_result) {
4265 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4266 _resultobj = Py_BuildValue("s",_ptemp);
4267 } else {
4268 Py_INCREF(Py_None);
4269 _resultobj = Py_None;
4270 }
4271 return _resultobj;
4272 }
4273
4274 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
4275 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args) {
4276 PyObject * _resultobj;
4277 wxBrush * _result;
4278 wxDC * _arg0;
4279 PyObject * _argo0 = 0;
4280 char _ptemp[128];
4281
4282 self = self;
4283 if(!PyArg_ParseTuple(args,"O:wxDC_GetBrush",&_argo0))
4284 return NULL;
4285 if (_argo0) {
4286 if (_argo0 == Py_None) { _arg0 = NULL; }
4287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
4289 return NULL;
4290 }
4291 }
4292 {
4293 wxPy_BEGIN_ALLOW_THREADS;
4294 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
4295 _result = (wxBrush *) &_result_ref;
4296
4297 wxPy_END_ALLOW_THREADS;
4298 } if (_result) {
4299 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4300 _resultobj = Py_BuildValue("s",_ptemp);
4301 } else {
4302 Py_INCREF(Py_None);
4303 _resultobj = Py_None;
4304 }
4305 return _resultobj;
4306 }
4307
4308 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
4309 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args) {
4310 PyObject * _resultobj;
4311 long _result;
4312 wxDC * _arg0;
4313 PyObject * _argo0 = 0;
4314
4315 self = self;
4316 if(!PyArg_ParseTuple(args,"O:wxDC_GetCharHeight",&_argo0))
4317 return NULL;
4318 if (_argo0) {
4319 if (_argo0 == Py_None) { _arg0 = NULL; }
4320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
4322 return NULL;
4323 }
4324 }
4325 {
4326 wxPy_BEGIN_ALLOW_THREADS;
4327 _result = (long )wxDC_GetCharHeight(_arg0);
4328
4329 wxPy_END_ALLOW_THREADS;
4330 } _resultobj = Py_BuildValue("l",_result);
4331 return _resultobj;
4332 }
4333
4334 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
4335 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args) {
4336 PyObject * _resultobj;
4337 long _result;
4338 wxDC * _arg0;
4339 PyObject * _argo0 = 0;
4340
4341 self = self;
4342 if(!PyArg_ParseTuple(args,"O:wxDC_GetCharWidth",&_argo0))
4343 return NULL;
4344 if (_argo0) {
4345 if (_argo0 == Py_None) { _arg0 = NULL; }
4346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
4348 return NULL;
4349 }
4350 }
4351 {
4352 wxPy_BEGIN_ALLOW_THREADS;
4353 _result = (long )wxDC_GetCharWidth(_arg0);
4354
4355 wxPy_END_ALLOW_THREADS;
4356 } _resultobj = Py_BuildValue("l",_result);
4357 return _resultobj;
4358 }
4359
4360 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4361 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args) {
4362 PyObject * _resultobj;
4363 wxDC * _arg0;
4364 long * _arg1;
4365 long temp;
4366 long * _arg2;
4367 long temp0;
4368 long * _arg3;
4369 long temp1;
4370 long * _arg4;
4371 long temp2;
4372 PyObject * _argo0 = 0;
4373
4374 self = self;
4375 {
4376 _arg1 = &temp;
4377 }
4378 {
4379 _arg2 = &temp0;
4380 }
4381 {
4382 _arg3 = &temp1;
4383 }
4384 {
4385 _arg4 = &temp2;
4386 }
4387 if(!PyArg_ParseTuple(args,"O:wxDC_GetClippingBox",&_argo0))
4388 return NULL;
4389 if (_argo0) {
4390 if (_argo0 == Py_None) { _arg0 = NULL; }
4391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
4393 return NULL;
4394 }
4395 }
4396 {
4397 wxPy_BEGIN_ALLOW_THREADS;
4398 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
4399
4400 wxPy_END_ALLOW_THREADS;
4401 } Py_INCREF(Py_None);
4402 _resultobj = Py_None;
4403 {
4404 PyObject *o;
4405 o = PyInt_FromLong((long) (*_arg1));
4406 _resultobj = t_output_helper(_resultobj, o);
4407 }
4408 {
4409 PyObject *o;
4410 o = PyInt_FromLong((long) (*_arg2));
4411 _resultobj = t_output_helper(_resultobj, o);
4412 }
4413 {
4414 PyObject *o;
4415 o = PyInt_FromLong((long) (*_arg3));
4416 _resultobj = t_output_helper(_resultobj, o);
4417 }
4418 {
4419 PyObject *o;
4420 o = PyInt_FromLong((long) (*_arg4));
4421 _resultobj = t_output_helper(_resultobj, o);
4422 }
4423 return _resultobj;
4424 }
4425
4426 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
4427 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args) {
4428 PyObject * _resultobj;
4429 wxFont * _result;
4430 wxDC * _arg0;
4431 PyObject * _argo0 = 0;
4432 char _ptemp[128];
4433
4434 self = self;
4435 if(!PyArg_ParseTuple(args,"O:wxDC_GetFont",&_argo0))
4436 return NULL;
4437 if (_argo0) {
4438 if (_argo0 == Py_None) { _arg0 = NULL; }
4439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
4441 return NULL;
4442 }
4443 }
4444 {
4445 wxPy_BEGIN_ALLOW_THREADS;
4446 wxFont & _result_ref = wxDC_GetFont(_arg0);
4447 _result = (wxFont *) &_result_ref;
4448
4449 wxPy_END_ALLOW_THREADS;
4450 } if (_result) {
4451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4452 _resultobj = Py_BuildValue("s",_ptemp);
4453 } else {
4454 Py_INCREF(Py_None);
4455 _resultobj = Py_None;
4456 }
4457 return _resultobj;
4458 }
4459
4460 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
4461 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args) {
4462 PyObject * _resultobj;
4463 int _result;
4464 wxDC * _arg0;
4465 PyObject * _argo0 = 0;
4466
4467 self = self;
4468 if(!PyArg_ParseTuple(args,"O:wxDC_GetLogicalFunction",&_argo0))
4469 return NULL;
4470 if (_argo0) {
4471 if (_argo0 == Py_None) { _arg0 = NULL; }
4472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
4474 return NULL;
4475 }
4476 }
4477 {
4478 wxPy_BEGIN_ALLOW_THREADS;
4479 _result = (int )wxDC_GetLogicalFunction(_arg0);
4480
4481 wxPy_END_ALLOW_THREADS;
4482 } _resultobj = Py_BuildValue("i",_result);
4483 return _resultobj;
4484 }
4485
4486 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
4487 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args) {
4488 PyObject * _resultobj;
4489 int _result;
4490 wxDC * _arg0;
4491 PyObject * _argo0 = 0;
4492
4493 self = self;
4494 if(!PyArg_ParseTuple(args,"O:wxDC_GetMapMode",&_argo0))
4495 return NULL;
4496 if (_argo0) {
4497 if (_argo0 == Py_None) { _arg0 = NULL; }
4498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
4500 return NULL;
4501 }
4502 }
4503 {
4504 wxPy_BEGIN_ALLOW_THREADS;
4505 _result = (int )wxDC_GetMapMode(_arg0);
4506
4507 wxPy_END_ALLOW_THREADS;
4508 } _resultobj = Py_BuildValue("i",_result);
4509 return _resultobj;
4510 }
4511
4512 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
4513 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args) {
4514 PyObject * _resultobj;
4515 bool _result;
4516 wxDC * _arg0;
4517 PyObject * _argo0 = 0;
4518
4519 self = self;
4520 if(!PyArg_ParseTuple(args,"O:wxDC_GetOptimization",&_argo0))
4521 return NULL;
4522 if (_argo0) {
4523 if (_argo0 == Py_None) { _arg0 = NULL; }
4524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
4526 return NULL;
4527 }
4528 }
4529 {
4530 wxPy_BEGIN_ALLOW_THREADS;
4531 _result = (bool )wxDC_GetOptimization(_arg0);
4532
4533 wxPy_END_ALLOW_THREADS;
4534 } _resultobj = Py_BuildValue("i",_result);
4535 return _resultobj;
4536 }
4537
4538 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
4539 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args) {
4540 PyObject * _resultobj;
4541 wxPen * _result;
4542 wxDC * _arg0;
4543 PyObject * _argo0 = 0;
4544 char _ptemp[128];
4545
4546 self = self;
4547 if(!PyArg_ParseTuple(args,"O:wxDC_GetPen",&_argo0))
4548 return NULL;
4549 if (_argo0) {
4550 if (_argo0 == Py_None) { _arg0 = NULL; }
4551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
4553 return NULL;
4554 }
4555 }
4556 {
4557 wxPy_BEGIN_ALLOW_THREADS;
4558 wxPen & _result_ref = wxDC_GetPen(_arg0);
4559 _result = (wxPen *) &_result_ref;
4560
4561 wxPy_END_ALLOW_THREADS;
4562 } if (_result) {
4563 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4564 _resultobj = Py_BuildValue("s",_ptemp);
4565 } else {
4566 Py_INCREF(Py_None);
4567 _resultobj = Py_None;
4568 }
4569 return _resultobj;
4570 }
4571
4572 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
4573 wxColour* wc = new wxColour();
4574 self->GetPixel(x, y, wc);
4575 return wc;
4576 }
4577 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args) {
4578 PyObject * _resultobj;
4579 wxColour * _result;
4580 wxDC * _arg0;
4581 long _arg1;
4582 long _arg2;
4583 PyObject * _argo0 = 0;
4584 char _ptemp[128];
4585
4586 self = self;
4587 if(!PyArg_ParseTuple(args,"Oll:wxDC_GetPixel",&_argo0,&_arg1,&_arg2))
4588 return NULL;
4589 if (_argo0) {
4590 if (_argo0 == Py_None) { _arg0 = NULL; }
4591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
4593 return NULL;
4594 }
4595 }
4596 {
4597 wxPy_BEGIN_ALLOW_THREADS;
4598 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
4599
4600 wxPy_END_ALLOW_THREADS;
4601 } if (_result) {
4602 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4603 _resultobj = Py_BuildValue("s",_ptemp);
4604 } else {
4605 Py_INCREF(Py_None);
4606 _resultobj = Py_None;
4607 }
4608 return _resultobj;
4609 }
4610
4611 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
4612 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args) {
4613 PyObject * _resultobj;
4614 wxDC * _arg0;
4615 int * _arg1;
4616 int temp;
4617 int * _arg2;
4618 int temp0;
4619 PyObject * _argo0 = 0;
4620
4621 self = self;
4622 {
4623 _arg1 = &temp;
4624 }
4625 {
4626 _arg2 = &temp0;
4627 }
4628 if(!PyArg_ParseTuple(args,"O:wxDC_GetSizeTuple",&_argo0))
4629 return NULL;
4630 if (_argo0) {
4631 if (_argo0 == Py_None) { _arg0 = NULL; }
4632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
4634 return NULL;
4635 }
4636 }
4637 {
4638 wxPy_BEGIN_ALLOW_THREADS;
4639 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
4640
4641 wxPy_END_ALLOW_THREADS;
4642 } Py_INCREF(Py_None);
4643 _resultobj = Py_None;
4644 {
4645 PyObject *o;
4646 o = PyInt_FromLong((long) (*_arg1));
4647 _resultobj = t_output_helper(_resultobj, o);
4648 }
4649 {
4650 PyObject *o;
4651 o = PyInt_FromLong((long) (*_arg2));
4652 _resultobj = t_output_helper(_resultobj, o);
4653 }
4654 return _resultobj;
4655 }
4656
4657 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
4658 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args) {
4659 PyObject * _resultobj;
4660 wxSize * _result;
4661 wxDC * _arg0;
4662 PyObject * _argo0 = 0;
4663 char _ptemp[128];
4664
4665 self = self;
4666 if(!PyArg_ParseTuple(args,"O:wxDC_GetSize",&_argo0))
4667 return NULL;
4668 if (_argo0) {
4669 if (_argo0 == Py_None) { _arg0 = NULL; }
4670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
4672 return NULL;
4673 }
4674 }
4675 {
4676 wxPy_BEGIN_ALLOW_THREADS;
4677 _result = new wxSize (wxDC_GetSize(_arg0));
4678
4679 wxPy_END_ALLOW_THREADS;
4680 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4681 _resultobj = Py_BuildValue("s",_ptemp);
4682 return _resultobj;
4683 }
4684
4685 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
4686 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args) {
4687 PyObject * _resultobj;
4688 wxColour * _result;
4689 wxDC * _arg0;
4690 PyObject * _argo0 = 0;
4691 char _ptemp[128];
4692
4693 self = self;
4694 if(!PyArg_ParseTuple(args,"O:wxDC_GetTextBackground",&_argo0))
4695 return NULL;
4696 if (_argo0) {
4697 if (_argo0 == Py_None) { _arg0 = NULL; }
4698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
4700 return NULL;
4701 }
4702 }
4703 {
4704 wxPy_BEGIN_ALLOW_THREADS;
4705 wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
4706 _result = (wxColour *) &_result_ref;
4707
4708 wxPy_END_ALLOW_THREADS;
4709 } if (_result) {
4710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4711 _resultobj = Py_BuildValue("s",_ptemp);
4712 } else {
4713 Py_INCREF(Py_None);
4714 _resultobj = Py_None;
4715 }
4716 return _resultobj;
4717 }
4718
4719 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
4720 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args) {
4721 PyObject * _resultobj;
4722 wxDC * _arg0;
4723 wxString * _arg1;
4724 long * _arg2;
4725 long temp;
4726 long * _arg3;
4727 long temp0;
4728 PyObject * _argo0 = 0;
4729 PyObject * _obj1 = 0;
4730
4731 self = self;
4732 {
4733 _arg2 = &temp;
4734 }
4735 {
4736 _arg3 = &temp0;
4737 }
4738 if(!PyArg_ParseTuple(args,"OO:wxDC_GetTextExtent",&_argo0,&_obj1))
4739 return NULL;
4740 if (_argo0) {
4741 if (_argo0 == Py_None) { _arg0 = NULL; }
4742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
4744 return NULL;
4745 }
4746 }
4747 {
4748 if (!PyString_Check(_obj1)) {
4749 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4750 return NULL;
4751 }
4752 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4753 }
4754 {
4755 wxPy_BEGIN_ALLOW_THREADS;
4756 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
4757
4758 wxPy_END_ALLOW_THREADS;
4759 } Py_INCREF(Py_None);
4760 _resultobj = Py_None;
4761 {
4762 PyObject *o;
4763 o = PyInt_FromLong((long) (*_arg2));
4764 _resultobj = t_output_helper(_resultobj, o);
4765 }
4766 {
4767 PyObject *o;
4768 o = PyInt_FromLong((long) (*_arg3));
4769 _resultobj = t_output_helper(_resultobj, o);
4770 }
4771 {
4772 if (_obj1)
4773 delete _arg1;
4774 }
4775 return _resultobj;
4776 }
4777
4778 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4779 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args) {
4780 PyObject * _resultobj;
4781 wxDC * _arg0;
4782 wxString * _arg1;
4783 long * _arg2;
4784 long temp;
4785 long * _arg3;
4786 long temp0;
4787 long * _arg4;
4788 long temp1;
4789 long * _arg5;
4790 long temp2;
4791 wxFont * _arg6 = (wxFont *) NULL;
4792 PyObject * _argo0 = 0;
4793 PyObject * _obj1 = 0;
4794 PyObject * _argo6 = 0;
4795
4796 self = self;
4797 {
4798 _arg2 = &temp;
4799 }
4800 {
4801 _arg3 = &temp0;
4802 }
4803 {
4804 _arg4 = &temp1;
4805 }
4806 {
4807 _arg5 = &temp2;
4808 }
4809 if(!PyArg_ParseTuple(args,"OO|O:wxDC_GetFullTextExtent",&_argo0,&_obj1,&_argo6))
4810 return NULL;
4811 if (_argo0) {
4812 if (_argo0 == Py_None) { _arg0 = NULL; }
4813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
4815 return NULL;
4816 }
4817 }
4818 {
4819 if (!PyString_Check(_obj1)) {
4820 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4821 return NULL;
4822 }
4823 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4824 }
4825 if (_argo6) {
4826 if (_argo6 == Py_None) { _arg6 = NULL; }
4827 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
4828 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
4829 return NULL;
4830 }
4831 }
4832 {
4833 wxPy_BEGIN_ALLOW_THREADS;
4834 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4835
4836 wxPy_END_ALLOW_THREADS;
4837 } Py_INCREF(Py_None);
4838 _resultobj = Py_None;
4839 {
4840 PyObject *o;
4841 o = PyInt_FromLong((long) (*_arg2));
4842 _resultobj = t_output_helper(_resultobj, o);
4843 }
4844 {
4845 PyObject *o;
4846 o = PyInt_FromLong((long) (*_arg3));
4847 _resultobj = t_output_helper(_resultobj, o);
4848 }
4849 {
4850 PyObject *o;
4851 o = PyInt_FromLong((long) (*_arg4));
4852 _resultobj = t_output_helper(_resultobj, o);
4853 }
4854 {
4855 PyObject *o;
4856 o = PyInt_FromLong((long) (*_arg5));
4857 _resultobj = t_output_helper(_resultobj, o);
4858 }
4859 {
4860 if (_obj1)
4861 delete _arg1;
4862 }
4863 return _resultobj;
4864 }
4865
4866 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
4867 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args) {
4868 PyObject * _resultobj;
4869 wxColour * _result;
4870 wxDC * _arg0;
4871 PyObject * _argo0 = 0;
4872 char _ptemp[128];
4873
4874 self = self;
4875 if(!PyArg_ParseTuple(args,"O:wxDC_GetTextForeground",&_argo0))
4876 return NULL;
4877 if (_argo0) {
4878 if (_argo0 == Py_None) { _arg0 = NULL; }
4879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
4881 return NULL;
4882 }
4883 }
4884 {
4885 wxPy_BEGIN_ALLOW_THREADS;
4886 wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
4887 _result = (wxColour *) &_result_ref;
4888
4889 wxPy_END_ALLOW_THREADS;
4890 } if (_result) {
4891 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4892 _resultobj = Py_BuildValue("s",_ptemp);
4893 } else {
4894 Py_INCREF(Py_None);
4895 _resultobj = Py_None;
4896 }
4897 return _resultobj;
4898 }
4899
4900 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
4901 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args) {
4902 PyObject * _resultobj;
4903 long _result;
4904 wxDC * _arg0;
4905 long _arg1;
4906 PyObject * _argo0 = 0;
4907
4908 self = self;
4909 if(!PyArg_ParseTuple(args,"Ol:wxDC_LogicalToDeviceX",&_argo0,&_arg1))
4910 return NULL;
4911 if (_argo0) {
4912 if (_argo0 == Py_None) { _arg0 = NULL; }
4913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
4915 return NULL;
4916 }
4917 }
4918 {
4919 wxPy_BEGIN_ALLOW_THREADS;
4920 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
4921
4922 wxPy_END_ALLOW_THREADS;
4923 } _resultobj = Py_BuildValue("l",_result);
4924 return _resultobj;
4925 }
4926
4927 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
4928 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args) {
4929 PyObject * _resultobj;
4930 long _result;
4931 wxDC * _arg0;
4932 long _arg1;
4933 PyObject * _argo0 = 0;
4934
4935 self = self;
4936 if(!PyArg_ParseTuple(args,"Ol:wxDC_LogicalToDeviceXRel",&_argo0,&_arg1))
4937 return NULL;
4938 if (_argo0) {
4939 if (_argo0 == Py_None) { _arg0 = NULL; }
4940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
4942 return NULL;
4943 }
4944 }
4945 {
4946 wxPy_BEGIN_ALLOW_THREADS;
4947 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
4948
4949 wxPy_END_ALLOW_THREADS;
4950 } _resultobj = Py_BuildValue("l",_result);
4951 return _resultobj;
4952 }
4953
4954 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
4955 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args) {
4956 PyObject * _resultobj;
4957 long _result;
4958 wxDC * _arg0;
4959 long _arg1;
4960 PyObject * _argo0 = 0;
4961
4962 self = self;
4963 if(!PyArg_ParseTuple(args,"Ol:wxDC_LogicalToDeviceY",&_argo0,&_arg1))
4964 return NULL;
4965 if (_argo0) {
4966 if (_argo0 == Py_None) { _arg0 = NULL; }
4967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
4969 return NULL;
4970 }
4971 }
4972 {
4973 wxPy_BEGIN_ALLOW_THREADS;
4974 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
4975
4976 wxPy_END_ALLOW_THREADS;
4977 } _resultobj = Py_BuildValue("l",_result);
4978 return _resultobj;
4979 }
4980
4981 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
4982 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args) {
4983 PyObject * _resultobj;
4984 long _result;
4985 wxDC * _arg0;
4986 long _arg1;
4987 PyObject * _argo0 = 0;
4988
4989 self = self;
4990 if(!PyArg_ParseTuple(args,"Ol:wxDC_LogicalToDeviceYRel",&_argo0,&_arg1))
4991 return NULL;
4992 if (_argo0) {
4993 if (_argo0 == Py_None) { _arg0 = NULL; }
4994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
4996 return NULL;
4997 }
4998 }
4999 {
5000 wxPy_BEGIN_ALLOW_THREADS;
5001 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
5002
5003 wxPy_END_ALLOW_THREADS;
5004 } _resultobj = Py_BuildValue("l",_result);
5005 return _resultobj;
5006 }
5007
5008 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
5009 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args) {
5010 PyObject * _resultobj;
5011 long _result;
5012 wxDC * _arg0;
5013 PyObject * _argo0 = 0;
5014
5015 self = self;
5016 if(!PyArg_ParseTuple(args,"O:wxDC_MaxX",&_argo0))
5017 return NULL;
5018 if (_argo0) {
5019 if (_argo0 == Py_None) { _arg0 = NULL; }
5020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
5022 return NULL;
5023 }
5024 }
5025 {
5026 wxPy_BEGIN_ALLOW_THREADS;
5027 _result = (long )wxDC_MaxX(_arg0);
5028
5029 wxPy_END_ALLOW_THREADS;
5030 } _resultobj = Py_BuildValue("l",_result);
5031 return _resultobj;
5032 }
5033
5034 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
5035 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args) {
5036 PyObject * _resultobj;
5037 long _result;
5038 wxDC * _arg0;
5039 PyObject * _argo0 = 0;
5040
5041 self = self;
5042 if(!PyArg_ParseTuple(args,"O:wxDC_MaxY",&_argo0))
5043 return NULL;
5044 if (_argo0) {
5045 if (_argo0 == Py_None) { _arg0 = NULL; }
5046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
5048 return NULL;
5049 }
5050 }
5051 {
5052 wxPy_BEGIN_ALLOW_THREADS;
5053 _result = (long )wxDC_MaxY(_arg0);
5054
5055 wxPy_END_ALLOW_THREADS;
5056 } _resultobj = Py_BuildValue("l",_result);
5057 return _resultobj;
5058 }
5059
5060 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
5061 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args) {
5062 PyObject * _resultobj;
5063 long _result;
5064 wxDC * _arg0;
5065 PyObject * _argo0 = 0;
5066
5067 self = self;
5068 if(!PyArg_ParseTuple(args,"O:wxDC_MinX",&_argo0))
5069 return NULL;
5070 if (_argo0) {
5071 if (_argo0 == Py_None) { _arg0 = NULL; }
5072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
5074 return NULL;
5075 }
5076 }
5077 {
5078 wxPy_BEGIN_ALLOW_THREADS;
5079 _result = (long )wxDC_MinX(_arg0);
5080
5081 wxPy_END_ALLOW_THREADS;
5082 } _resultobj = Py_BuildValue("l",_result);
5083 return _resultobj;
5084 }
5085
5086 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
5087 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args) {
5088 PyObject * _resultobj;
5089 long _result;
5090 wxDC * _arg0;
5091 PyObject * _argo0 = 0;
5092
5093 self = self;
5094 if(!PyArg_ParseTuple(args,"O:wxDC_MinY",&_argo0))
5095 return NULL;
5096 if (_argo0) {
5097 if (_argo0 == Py_None) { _arg0 = NULL; }
5098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
5100 return NULL;
5101 }
5102 }
5103 {
5104 wxPy_BEGIN_ALLOW_THREADS;
5105 _result = (long )wxDC_MinY(_arg0);
5106
5107 wxPy_END_ALLOW_THREADS;
5108 } _resultobj = Py_BuildValue("l",_result);
5109 return _resultobj;
5110 }
5111
5112 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
5113 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args) {
5114 PyObject * _resultobj;
5115 bool _result;
5116 wxDC * _arg0;
5117 PyObject * _argo0 = 0;
5118
5119 self = self;
5120 if(!PyArg_ParseTuple(args,"O:wxDC_Ok",&_argo0))
5121 return NULL;
5122 if (_argo0) {
5123 if (_argo0 == Py_None) { _arg0 = NULL; }
5124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
5126 return NULL;
5127 }
5128 }
5129 {
5130 wxPy_BEGIN_ALLOW_THREADS;
5131 _result = (bool )wxDC_Ok(_arg0);
5132
5133 wxPy_END_ALLOW_THREADS;
5134 } _resultobj = Py_BuildValue("i",_result);
5135 return _resultobj;
5136 }
5137
5138 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
5139 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args) {
5140 PyObject * _resultobj;
5141 wxDC * _arg0;
5142 long _arg1;
5143 long _arg2;
5144 PyObject * _argo0 = 0;
5145
5146 self = self;
5147 if(!PyArg_ParseTuple(args,"Oll:wxDC_SetDeviceOrigin",&_argo0,&_arg1,&_arg2))
5148 return NULL;
5149 if (_argo0) {
5150 if (_argo0 == Py_None) { _arg0 = NULL; }
5151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
5153 return NULL;
5154 }
5155 }
5156 {
5157 wxPy_BEGIN_ALLOW_THREADS;
5158 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
5159
5160 wxPy_END_ALLOW_THREADS;
5161 } Py_INCREF(Py_None);
5162 _resultobj = Py_None;
5163 return _resultobj;
5164 }
5165
5166 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
5167 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args) {
5168 PyObject * _resultobj;
5169 wxDC * _arg0;
5170 wxBrush * _arg1;
5171 PyObject * _argo0 = 0;
5172 PyObject * _argo1 = 0;
5173
5174 self = self;
5175 if(!PyArg_ParseTuple(args,"OO:wxDC_SetBackground",&_argo0,&_argo1))
5176 return NULL;
5177 if (_argo0) {
5178 if (_argo0 == Py_None) { _arg0 = NULL; }
5179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
5181 return NULL;
5182 }
5183 }
5184 if (_argo1) {
5185 if (_argo1 == Py_None) { _arg1 = NULL; }
5186 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5187 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
5188 return NULL;
5189 }
5190 }
5191 {
5192 wxPy_BEGIN_ALLOW_THREADS;
5193 wxDC_SetBackground(_arg0,*_arg1);
5194
5195 wxPy_END_ALLOW_THREADS;
5196 } Py_INCREF(Py_None);
5197 _resultobj = Py_None;
5198 return _resultobj;
5199 }
5200
5201 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
5202 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args) {
5203 PyObject * _resultobj;
5204 wxDC * _arg0;
5205 int _arg1;
5206 PyObject * _argo0 = 0;
5207
5208 self = self;
5209 if(!PyArg_ParseTuple(args,"Oi:wxDC_SetBackgroundMode",&_argo0,&_arg1))
5210 return NULL;
5211 if (_argo0) {
5212 if (_argo0 == Py_None) { _arg0 = NULL; }
5213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
5215 return NULL;
5216 }
5217 }
5218 {
5219 wxPy_BEGIN_ALLOW_THREADS;
5220 wxDC_SetBackgroundMode(_arg0,_arg1);
5221
5222 wxPy_END_ALLOW_THREADS;
5223 } Py_INCREF(Py_None);
5224 _resultobj = Py_None;
5225 return _resultobj;
5226 }
5227
5228 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5229 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args) {
5230 PyObject * _resultobj;
5231 wxDC * _arg0;
5232 long _arg1;
5233 long _arg2;
5234 long _arg3;
5235 long _arg4;
5236 PyObject * _argo0 = 0;
5237
5238 self = self;
5239 if(!PyArg_ParseTuple(args,"Ollll:wxDC_SetClippingRegion",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5240 return NULL;
5241 if (_argo0) {
5242 if (_argo0 == Py_None) { _arg0 = NULL; }
5243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
5245 return NULL;
5246 }
5247 }
5248 {
5249 wxPy_BEGIN_ALLOW_THREADS;
5250 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
5251
5252 wxPy_END_ALLOW_THREADS;
5253 } Py_INCREF(Py_None);
5254 _resultobj = Py_None;
5255 return _resultobj;
5256 }
5257
5258 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
5259 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args) {
5260 PyObject * _resultobj;
5261 wxDC * _arg0;
5262 wxPalette * _arg1;
5263 PyObject * _argo0 = 0;
5264 PyObject * _argo1 = 0;
5265
5266 self = self;
5267 if(!PyArg_ParseTuple(args,"OO:wxDC_SetPalette",&_argo0,&_argo1))
5268 return NULL;
5269 if (_argo0) {
5270 if (_argo0 == Py_None) { _arg0 = NULL; }
5271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
5273 return NULL;
5274 }
5275 }
5276 if (_argo1) {
5277 if (_argo1 == Py_None) { _arg1 = NULL; }
5278 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
5279 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
5280 return NULL;
5281 }
5282 }
5283 {
5284 wxPy_BEGIN_ALLOW_THREADS;
5285 wxDC_SetPalette(_arg0,*_arg1);
5286
5287 wxPy_END_ALLOW_THREADS;
5288 } Py_INCREF(Py_None);
5289 _resultobj = Py_None;
5290 return _resultobj;
5291 }
5292
5293 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
5294 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args) {
5295 PyObject * _resultobj;
5296 wxDC * _arg0;
5297 wxBrush * _arg1;
5298 PyObject * _argo0 = 0;
5299 PyObject * _argo1 = 0;
5300
5301 self = self;
5302 if(!PyArg_ParseTuple(args,"OO:wxDC_SetBrush",&_argo0,&_argo1))
5303 return NULL;
5304 if (_argo0) {
5305 if (_argo0 == Py_None) { _arg0 = NULL; }
5306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
5308 return NULL;
5309 }
5310 }
5311 if (_argo1) {
5312 if (_argo1 == Py_None) { _arg1 = NULL; }
5313 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5314 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
5315 return NULL;
5316 }
5317 }
5318 {
5319 wxPy_BEGIN_ALLOW_THREADS;
5320 wxDC_SetBrush(_arg0,*_arg1);
5321
5322 wxPy_END_ALLOW_THREADS;
5323 } Py_INCREF(Py_None);
5324 _resultobj = Py_None;
5325 return _resultobj;
5326 }
5327
5328 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5329 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args) {
5330 PyObject * _resultobj;
5331 wxDC * _arg0;
5332 wxFont * _arg1;
5333 PyObject * _argo0 = 0;
5334 PyObject * _argo1 = 0;
5335
5336 self = self;
5337 if(!PyArg_ParseTuple(args,"OO:wxDC_SetFont",&_argo0,&_argo1))
5338 return NULL;
5339 if (_argo0) {
5340 if (_argo0 == Py_None) { _arg0 = NULL; }
5341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
5343 return NULL;
5344 }
5345 }
5346 if (_argo1) {
5347 if (_argo1 == Py_None) { _arg1 = NULL; }
5348 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5349 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
5350 return NULL;
5351 }
5352 }
5353 {
5354 wxPy_BEGIN_ALLOW_THREADS;
5355 wxDC_SetFont(_arg0,*_arg1);
5356
5357 wxPy_END_ALLOW_THREADS;
5358 } Py_INCREF(Py_None);
5359 _resultobj = Py_None;
5360 return _resultobj;
5361 }
5362
5363 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
5364 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args) {
5365 PyObject * _resultobj;
5366 wxDC * _arg0;
5367 int _arg1;
5368 PyObject * _argo0 = 0;
5369
5370 self = self;
5371 if(!PyArg_ParseTuple(args,"Oi:wxDC_SetLogicalFunction",&_argo0,&_arg1))
5372 return NULL;
5373 if (_argo0) {
5374 if (_argo0 == Py_None) { _arg0 = NULL; }
5375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
5377 return NULL;
5378 }
5379 }
5380 {
5381 wxPy_BEGIN_ALLOW_THREADS;
5382 wxDC_SetLogicalFunction(_arg0,_arg1);
5383
5384 wxPy_END_ALLOW_THREADS;
5385 } Py_INCREF(Py_None);
5386 _resultobj = Py_None;
5387 return _resultobj;
5388 }
5389
5390 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
5391 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args) {
5392 PyObject * _resultobj;
5393 wxDC * _arg0;
5394 int _arg1;
5395 PyObject * _argo0 = 0;
5396
5397 self = self;
5398 if(!PyArg_ParseTuple(args,"Oi:wxDC_SetMapMode",&_argo0,&_arg1))
5399 return NULL;
5400 if (_argo0) {
5401 if (_argo0 == Py_None) { _arg0 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
5404 return NULL;
5405 }
5406 }
5407 {
5408 wxPy_BEGIN_ALLOW_THREADS;
5409 wxDC_SetMapMode(_arg0,_arg1);
5410
5411 wxPy_END_ALLOW_THREADS;
5412 } Py_INCREF(Py_None);
5413 _resultobj = Py_None;
5414 return _resultobj;
5415 }
5416
5417 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
5418 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args) {
5419 PyObject * _resultobj;
5420 wxDC * _arg0;
5421 bool _arg1;
5422 PyObject * _argo0 = 0;
5423 int tempbool1;
5424
5425 self = self;
5426 if(!PyArg_ParseTuple(args,"Oi:wxDC_SetOptimization",&_argo0,&tempbool1))
5427 return NULL;
5428 if (_argo0) {
5429 if (_argo0 == Py_None) { _arg0 = NULL; }
5430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
5432 return NULL;
5433 }
5434 }
5435 _arg1 = (bool ) tempbool1;
5436 {
5437 wxPy_BEGIN_ALLOW_THREADS;
5438 wxDC_SetOptimization(_arg0,_arg1);
5439
5440 wxPy_END_ALLOW_THREADS;
5441 } Py_INCREF(Py_None);
5442 _resultobj = Py_None;
5443 return _resultobj;
5444 }
5445
5446 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
5447 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args) {
5448 PyObject * _resultobj;
5449 wxDC * _arg0;
5450 wxPen * _arg1;
5451 PyObject * _argo0 = 0;
5452 PyObject * _argo1 = 0;
5453
5454 self = self;
5455 if(!PyArg_ParseTuple(args,"OO:wxDC_SetPen",&_argo0,&_argo1))
5456 return NULL;
5457 if (_argo0) {
5458 if (_argo0 == Py_None) { _arg0 = NULL; }
5459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
5461 return NULL;
5462 }
5463 }
5464 if (_argo1) {
5465 if (_argo1 == Py_None) { _arg1 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
5468 return NULL;
5469 }
5470 }
5471 {
5472 wxPy_BEGIN_ALLOW_THREADS;
5473 wxDC_SetPen(_arg0,*_arg1);
5474
5475 wxPy_END_ALLOW_THREADS;
5476 } Py_INCREF(Py_None);
5477 _resultobj = Py_None;
5478 return _resultobj;
5479 }
5480
5481 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
5482 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args) {
5483 PyObject * _resultobj;
5484 wxDC * _arg0;
5485 wxColour * _arg1;
5486 PyObject * _argo0 = 0;
5487 PyObject * _argo1 = 0;
5488
5489 self = self;
5490 if(!PyArg_ParseTuple(args,"OO:wxDC_SetTextBackground",&_argo0,&_argo1))
5491 return NULL;
5492 if (_argo0) {
5493 if (_argo0 == Py_None) { _arg0 = NULL; }
5494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
5496 return NULL;
5497 }
5498 }
5499 if (_argo1) {
5500 if (_argo1 == Py_None) { _arg1 = NULL; }
5501 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
5502 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextBackground. Expected _wxColour_p.");
5503 return NULL;
5504 }
5505 }
5506 {
5507 wxPy_BEGIN_ALLOW_THREADS;
5508 wxDC_SetTextBackground(_arg0,*_arg1);
5509
5510 wxPy_END_ALLOW_THREADS;
5511 } Py_INCREF(Py_None);
5512 _resultobj = Py_None;
5513 return _resultobj;
5514 }
5515
5516 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
5517 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args) {
5518 PyObject * _resultobj;
5519 wxDC * _arg0;
5520 wxColour * _arg1;
5521 PyObject * _argo0 = 0;
5522 PyObject * _argo1 = 0;
5523
5524 self = self;
5525 if(!PyArg_ParseTuple(args,"OO:wxDC_SetTextForeground",&_argo0,&_argo1))
5526 return NULL;
5527 if (_argo0) {
5528 if (_argo0 == Py_None) { _arg0 = NULL; }
5529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
5531 return NULL;
5532 }
5533 }
5534 if (_argo1) {
5535 if (_argo1 == Py_None) { _arg1 = NULL; }
5536 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
5537 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextForeground. Expected _wxColour_p.");
5538 return NULL;
5539 }
5540 }
5541 {
5542 wxPy_BEGIN_ALLOW_THREADS;
5543 wxDC_SetTextForeground(_arg0,*_arg1);
5544
5545 wxPy_END_ALLOW_THREADS;
5546 } Py_INCREF(Py_None);
5547 _resultobj = Py_None;
5548 return _resultobj;
5549 }
5550
5551 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
5552 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args) {
5553 PyObject * _resultobj;
5554 wxDC * _arg0;
5555 double _arg1;
5556 double _arg2;
5557 PyObject * _argo0 = 0;
5558
5559 self = self;
5560 if(!PyArg_ParseTuple(args,"Odd:wxDC_SetUserScale",&_argo0,&_arg1,&_arg2))
5561 return NULL;
5562 if (_argo0) {
5563 if (_argo0 == Py_None) { _arg0 = NULL; }
5564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
5566 return NULL;
5567 }
5568 }
5569 {
5570 wxPy_BEGIN_ALLOW_THREADS;
5571 wxDC_SetUserScale(_arg0,_arg1,_arg2);
5572
5573 wxPy_END_ALLOW_THREADS;
5574 } Py_INCREF(Py_None);
5575 _resultobj = Py_None;
5576 return _resultobj;
5577 }
5578
5579 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
5580 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args) {
5581 PyObject * _resultobj;
5582 bool _result;
5583 wxDC * _arg0;
5584 wxString * _arg1;
5585 PyObject * _argo0 = 0;
5586 PyObject * _obj1 = 0;
5587
5588 self = self;
5589 if(!PyArg_ParseTuple(args,"OO:wxDC_StartDoc",&_argo0,&_obj1))
5590 return NULL;
5591 if (_argo0) {
5592 if (_argo0 == Py_None) { _arg0 = NULL; }
5593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
5595 return NULL;
5596 }
5597 }
5598 {
5599 if (!PyString_Check(_obj1)) {
5600 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5601 return NULL;
5602 }
5603 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5604 }
5605 {
5606 wxPy_BEGIN_ALLOW_THREADS;
5607 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
5608
5609 wxPy_END_ALLOW_THREADS;
5610 } _resultobj = Py_BuildValue("i",_result);
5611 {
5612 if (_obj1)
5613 delete _arg1;
5614 }
5615 return _resultobj;
5616 }
5617
5618 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
5619 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args) {
5620 PyObject * _resultobj;
5621 wxDC * _arg0;
5622 PyObject * _argo0 = 0;
5623
5624 self = self;
5625 if(!PyArg_ParseTuple(args,"O:wxDC_StartPage",&_argo0))
5626 return NULL;
5627 if (_argo0) {
5628 if (_argo0 == Py_None) { _arg0 = NULL; }
5629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
5631 return NULL;
5632 }
5633 }
5634 {
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 wxDC_StartPage(_arg0);
5637
5638 wxPy_END_ALLOW_THREADS;
5639 } Py_INCREF(Py_None);
5640 _resultobj = Py_None;
5641 return _resultobj;
5642 }
5643
5644 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5645 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args) {
5646 PyObject * _resultobj;
5647 wxDC * _arg0;
5648 wxBitmap * _arg1;
5649 long _arg2;
5650 long _arg3;
5651 int _arg4 = (int ) FALSE;
5652 PyObject * _argo0 = 0;
5653 PyObject * _argo1 = 0;
5654
5655 self = self;
5656 if(!PyArg_ParseTuple(args,"OOll|i:wxDC_DrawBitmap",&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
5657 return NULL;
5658 if (_argo0) {
5659 if (_argo0 == Py_None) { _arg0 = NULL; }
5660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
5662 return NULL;
5663 }
5664 }
5665 if (_argo1) {
5666 if (_argo1 == Py_None) { _arg1 = NULL; }
5667 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5668 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
5669 return NULL;
5670 }
5671 }
5672 {
5673 wxPy_BEGIN_ALLOW_THREADS;
5674 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
5675
5676 wxPy_END_ALLOW_THREADS;
5677 } Py_INCREF(Py_None);
5678 _resultobj = Py_None;
5679 return _resultobj;
5680 }
5681
5682 static void *SwigwxMemoryDCTowxDC(void *ptr) {
5683 wxMemoryDC *src;
5684 wxDC *dest;
5685 src = (wxMemoryDC *) ptr;
5686 dest = (wxDC *) src;
5687 return (void *) dest;
5688 }
5689
5690 #define new_wxMemoryDC() (new wxMemoryDC())
5691 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args) {
5692 PyObject * _resultobj;
5693 wxMemoryDC * _result;
5694 char _ptemp[128];
5695
5696 self = self;
5697 if(!PyArg_ParseTuple(args,":new_wxMemoryDC"))
5698 return NULL;
5699 {
5700 wxPy_BEGIN_ALLOW_THREADS;
5701 _result = (wxMemoryDC *)new_wxMemoryDC();
5702
5703 wxPy_END_ALLOW_THREADS;
5704 } if (_result) {
5705 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
5706 _resultobj = Py_BuildValue("s",_ptemp);
5707 } else {
5708 Py_INCREF(Py_None);
5709 _resultobj = Py_None;
5710 }
5711 return _resultobj;
5712 }
5713
5714 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
5715 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args) {
5716 PyObject * _resultobj;
5717 wxMemoryDC * _arg0;
5718 wxBitmap * _arg1;
5719 PyObject * _argo0 = 0;
5720 PyObject * _argo1 = 0;
5721
5722 self = self;
5723 if(!PyArg_ParseTuple(args,"OO:wxMemoryDC_SelectObject",&_argo0,&_argo1))
5724 return NULL;
5725 if (_argo0) {
5726 if (_argo0 == Py_None) { _arg0 = NULL; }
5727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
5728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
5729 return NULL;
5730 }
5731 }
5732 if (_argo1) {
5733 if (_argo1 == Py_None) { _arg1 = NULL; }
5734 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5735 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
5736 return NULL;
5737 }
5738 }
5739 {
5740 wxPy_BEGIN_ALLOW_THREADS;
5741 wxMemoryDC_SelectObject(_arg0,*_arg1);
5742
5743 wxPy_END_ALLOW_THREADS;
5744 } Py_INCREF(Py_None);
5745 _resultobj = Py_None;
5746 return _resultobj;
5747 }
5748
5749 static void *SwigwxScreenDCTowxDC(void *ptr) {
5750 wxScreenDC *src;
5751 wxDC *dest;
5752 src = (wxScreenDC *) ptr;
5753 dest = (wxDC *) src;
5754 return (void *) dest;
5755 }
5756
5757 #define new_wxScreenDC() (new wxScreenDC())
5758 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args) {
5759 PyObject * _resultobj;
5760 wxScreenDC * _result;
5761 char _ptemp[128];
5762
5763 self = self;
5764 if(!PyArg_ParseTuple(args,":new_wxScreenDC"))
5765 return NULL;
5766 {
5767 wxPy_BEGIN_ALLOW_THREADS;
5768 _result = (wxScreenDC *)new_wxScreenDC();
5769
5770 wxPy_END_ALLOW_THREADS;
5771 } if (_result) {
5772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
5773 _resultobj = Py_BuildValue("s",_ptemp);
5774 } else {
5775 Py_INCREF(Py_None);
5776 _resultobj = Py_None;
5777 }
5778 return _resultobj;
5779 }
5780
5781 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
5782 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args) {
5783 PyObject * _resultobj;
5784 bool _result;
5785 wxScreenDC * _arg0;
5786 wxWindow * _arg1;
5787 PyObject * _argo0 = 0;
5788 PyObject * _argo1 = 0;
5789
5790 self = self;
5791 if(!PyArg_ParseTuple(args,"OO:wxScreenDC_StartDrawingOnTop",&_argo0,&_argo1))
5792 return NULL;
5793 if (_argo0) {
5794 if (_argo0 == Py_None) { _arg0 = NULL; }
5795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
5796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
5797 return NULL;
5798 }
5799 }
5800 if (_argo1) {
5801 if (_argo1 == Py_None) { _arg1 = NULL; }
5802 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5803 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTop. Expected _wxWindow_p.");
5804 return NULL;
5805 }
5806 }
5807 {
5808 wxPy_BEGIN_ALLOW_THREADS;
5809 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
5810
5811 wxPy_END_ALLOW_THREADS;
5812 } _resultobj = Py_BuildValue("i",_result);
5813 return _resultobj;
5814 }
5815
5816 #define wxScreenDC_StartDrawingOnTopRect(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
5817 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject *args) {
5818 PyObject * _resultobj;
5819 bool _result;
5820 wxScreenDC * _arg0;
5821 wxRect * _arg1 = (wxRect *) NULL;
5822 PyObject * _argo0 = 0;
5823 PyObject * _argo1 = 0;
5824
5825 self = self;
5826 if(!PyArg_ParseTuple(args,"O|O:wxScreenDC_StartDrawingOnTopRect",&_argo0,&_argo1))
5827 return NULL;
5828 if (_argo0) {
5829 if (_argo0 == Py_None) { _arg0 = NULL; }
5830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
5831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopRect. Expected _wxScreenDC_p.");
5832 return NULL;
5833 }
5834 }
5835 if (_argo1) {
5836 if (_argo1 == Py_None) { _arg1 = NULL; }
5837 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRect_p")) {
5838 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopRect. Expected _wxRect_p.");
5839 return NULL;
5840 }
5841 }
5842 {
5843 wxPy_BEGIN_ALLOW_THREADS;
5844 _result = (bool )wxScreenDC_StartDrawingOnTopRect(_arg0,_arg1);
5845
5846 wxPy_END_ALLOW_THREADS;
5847 } _resultobj = Py_BuildValue("i",_result);
5848 return _resultobj;
5849 }
5850
5851 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
5852 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args) {
5853 PyObject * _resultobj;
5854 bool _result;
5855 wxScreenDC * _arg0;
5856 PyObject * _argo0 = 0;
5857
5858 self = self;
5859 if(!PyArg_ParseTuple(args,"O:wxScreenDC_EndDrawingOnTop",&_argo0))
5860 return NULL;
5861 if (_argo0) {
5862 if (_argo0 == Py_None) { _arg0 = NULL; }
5863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
5864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
5865 return NULL;
5866 }
5867 }
5868 {
5869 wxPy_BEGIN_ALLOW_THREADS;
5870 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
5871
5872 wxPy_END_ALLOW_THREADS;
5873 } _resultobj = Py_BuildValue("i",_result);
5874 return _resultobj;
5875 }
5876
5877 static void *SwigwxClientDCTowxDC(void *ptr) {
5878 wxClientDC *src;
5879 wxDC *dest;
5880 src = (wxClientDC *) ptr;
5881 dest = (wxDC *) src;
5882 return (void *) dest;
5883 }
5884
5885 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
5886 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args) {
5887 PyObject * _resultobj;
5888 wxClientDC * _result;
5889 wxWindow * _arg0;
5890 PyObject * _argo0 = 0;
5891 char _ptemp[128];
5892
5893 self = self;
5894 if(!PyArg_ParseTuple(args,"O:new_wxClientDC",&_argo0))
5895 return NULL;
5896 if (_argo0) {
5897 if (_argo0 == Py_None) { _arg0 = NULL; }
5898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
5900 return NULL;
5901 }
5902 }
5903 {
5904 wxPy_BEGIN_ALLOW_THREADS;
5905 _result = (wxClientDC *)new_wxClientDC(_arg0);
5906
5907 wxPy_END_ALLOW_THREADS;
5908 } if (_result) {
5909 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
5910 _resultobj = Py_BuildValue("s",_ptemp);
5911 } else {
5912 Py_INCREF(Py_None);
5913 _resultobj = Py_None;
5914 }
5915 return _resultobj;
5916 }
5917
5918 static void *SwigwxPaintDCTowxDC(void *ptr) {
5919 wxPaintDC *src;
5920 wxDC *dest;
5921 src = (wxPaintDC *) ptr;
5922 dest = (wxDC *) src;
5923 return (void *) dest;
5924 }
5925
5926 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
5927 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args) {
5928 PyObject * _resultobj;
5929 wxPaintDC * _result;
5930 wxWindow * _arg0;
5931 PyObject * _argo0 = 0;
5932 char _ptemp[128];
5933
5934 self = self;
5935 if(!PyArg_ParseTuple(args,"O:new_wxPaintDC",&_argo0))
5936 return NULL;
5937 if (_argo0) {
5938 if (_argo0 == Py_None) { _arg0 = NULL; }
5939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
5941 return NULL;
5942 }
5943 }
5944 {
5945 wxPy_BEGIN_ALLOW_THREADS;
5946 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
5947
5948 wxPy_END_ALLOW_THREADS;
5949 } if (_result) {
5950 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
5951 _resultobj = Py_BuildValue("s",_ptemp);
5952 } else {
5953 Py_INCREF(Py_None);
5954 _resultobj = Py_None;
5955 }
5956 return _resultobj;
5957 }
5958
5959 static void *SwigwxWindowDCTowxDC(void *ptr) {
5960 wxWindowDC *src;
5961 wxDC *dest;
5962 src = (wxWindowDC *) ptr;
5963 dest = (wxDC *) src;
5964 return (void *) dest;
5965 }
5966
5967 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
5968 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args) {
5969 PyObject * _resultobj;
5970 wxWindowDC * _result;
5971 wxWindow * _arg0;
5972 PyObject * _argo0 = 0;
5973 char _ptemp[128];
5974
5975 self = self;
5976 if(!PyArg_ParseTuple(args,"O:new_wxWindowDC",&_argo0))
5977 return NULL;
5978 if (_argo0) {
5979 if (_argo0 == Py_None) { _arg0 = NULL; }
5980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
5982 return NULL;
5983 }
5984 }
5985 {
5986 wxPy_BEGIN_ALLOW_THREADS;
5987 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
5988
5989 wxPy_END_ALLOW_THREADS;
5990 } if (_result) {
5991 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
5992 _resultobj = Py_BuildValue("s",_ptemp);
5993 } else {
5994 Py_INCREF(Py_None);
5995 _resultobj = Py_None;
5996 }
5997 return _resultobj;
5998 }
5999
6000 static void *SwigwxPrinterDCTowxDC(void *ptr) {
6001 wxPrinterDC *src;
6002 wxDC *dest;
6003 src = (wxPrinterDC *) ptr;
6004 dest = (wxDC *) src;
6005 return (void *) dest;
6006 }
6007
6008 #define new_wxPrinterDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPrinterDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6009 static PyObject *_wrap_new_wxPrinterDC(PyObject *self, PyObject *args) {
6010 PyObject * _resultobj;
6011 wxPrinterDC * _result;
6012 wxString * _arg0;
6013 wxString * _arg1;
6014 wxString * _arg2;
6015 bool _arg3 = (bool ) TRUE;
6016 int _arg4 = (int ) wxPORTRAIT;
6017 PyObject * _obj0 = 0;
6018 PyObject * _obj1 = 0;
6019 PyObject * _obj2 = 0;
6020 int tempbool3 = (int) TRUE;
6021 char _ptemp[128];
6022
6023 self = self;
6024 if(!PyArg_ParseTuple(args,"OOO|ii:new_wxPrinterDC",&_obj0,&_obj1,&_obj2,&tempbool3,&_arg4))
6025 return NULL;
6026 {
6027 if (!PyString_Check(_obj0)) {
6028 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6029 return NULL;
6030 }
6031 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
6032 }
6033 {
6034 if (!PyString_Check(_obj1)) {
6035 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6036 return NULL;
6037 }
6038 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6039 }
6040 {
6041 if (!PyString_Check(_obj2)) {
6042 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6043 return NULL;
6044 }
6045 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6046 }
6047 _arg3 = (bool ) tempbool3;
6048 {
6049 wxPy_BEGIN_ALLOW_THREADS;
6050 _result = (wxPrinterDC *)new_wxPrinterDC(*_arg0,*_arg1,*_arg2,_arg3,_arg4);
6051
6052 wxPy_END_ALLOW_THREADS;
6053 } if (_result) {
6054 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinterDC_p");
6055 _resultobj = Py_BuildValue("s",_ptemp);
6056 } else {
6057 Py_INCREF(Py_None);
6058 _resultobj = Py_None;
6059 }
6060 {
6061 if (_obj0)
6062 delete _arg0;
6063 }
6064 {
6065 if (_obj1)
6066 delete _arg1;
6067 }
6068 {
6069 if (_obj2)
6070 delete _arg2;
6071 }
6072 return _resultobj;
6073 }
6074
6075 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
6076 wxMetaFileDC *src;
6077 wxDC *dest;
6078 src = (wxMetaFileDC *) ptr;
6079 dest = (wxDC *) src;
6080 return (void *) dest;
6081 }
6082
6083 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
6084 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args) {
6085 PyObject * _resultobj;
6086 wxMetaFileDC * _result;
6087 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
6088 PyObject * _obj0 = 0;
6089 char _ptemp[128];
6090
6091 self = self;
6092 if(!PyArg_ParseTuple(args,"|O:new_wxMetaFileDC",&_obj0))
6093 return NULL;
6094 if (_obj0)
6095 {
6096 if (!PyString_Check(_obj0)) {
6097 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6098 return NULL;
6099 }
6100 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
6101 }
6102 {
6103 wxPy_BEGIN_ALLOW_THREADS;
6104 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0);
6105
6106 wxPy_END_ALLOW_THREADS;
6107 } if (_result) {
6108 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
6109 _resultobj = Py_BuildValue("s",_ptemp);
6110 } else {
6111 Py_INCREF(Py_None);
6112 _resultobj = Py_None;
6113 }
6114 {
6115 if (_obj0)
6116 delete _arg0;
6117 }
6118 return _resultobj;
6119 }
6120
6121 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
6122 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args) {
6123 PyObject * _resultobj;
6124 wxMetaFile * _result;
6125 wxMetaFileDC * _arg0;
6126 PyObject * _argo0 = 0;
6127 char _ptemp[128];
6128
6129 self = self;
6130 if(!PyArg_ParseTuple(args,"O:wxMetaFileDC_Close",&_argo0))
6131 return NULL;
6132 if (_argo0) {
6133 if (_argo0 == Py_None) { _arg0 = NULL; }
6134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
6135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
6136 return NULL;
6137 }
6138 }
6139 {
6140 wxPy_BEGIN_ALLOW_THREADS;
6141 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
6142
6143 wxPy_END_ALLOW_THREADS;
6144 } if (_result) {
6145 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
6146 _resultobj = Py_BuildValue("s",_ptemp);
6147 } else {
6148 Py_INCREF(Py_None);
6149 _resultobj = Py_None;
6150 }
6151 return _resultobj;
6152 }
6153
6154 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6155 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args) {
6156 PyObject * _resultobj;
6157 wxPalette * _result;
6158 int _arg0;
6159 byte * _arg1;
6160 byte * _arg2;
6161 byte * _arg3;
6162 PyObject * _obj1 = 0;
6163 PyObject * _obj2 = 0;
6164 PyObject * _obj3 = 0;
6165 char _ptemp[128];
6166
6167 self = self;
6168 if(!PyArg_ParseTuple(args,"OOO:new_wxPalette",&_obj1,&_obj2,&_obj3))
6169 return NULL;
6170 {
6171 _arg1 = byte_LIST_helper(_obj1);
6172 if (_arg1 == NULL) {
6173 return NULL;
6174 }
6175 }
6176 {
6177 _arg2 = byte_LIST_helper(_obj2);
6178 if (_arg2 == NULL) {
6179 return NULL;
6180 }
6181 }
6182 if (_obj3)
6183 {
6184 _arg3 = byte_LIST_helper(_obj3);
6185 if (_arg3 == NULL) {
6186 return NULL;
6187 }
6188 }
6189 {
6190 if (_obj1) {
6191 _arg0 = PyList_Size(_obj1);
6192 }
6193 else {
6194 _arg0 = 0;
6195 }
6196 }
6197 {
6198 wxPy_BEGIN_ALLOW_THREADS;
6199 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
6200
6201 wxPy_END_ALLOW_THREADS;
6202 } if (_result) {
6203 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
6204 _resultobj = Py_BuildValue("s",_ptemp);
6205 } else {
6206 Py_INCREF(Py_None);
6207 _resultobj = Py_None;
6208 }
6209 {
6210 delete [] _arg1;
6211 }
6212 {
6213 delete [] _arg2;
6214 }
6215 {
6216 delete [] _arg3;
6217 }
6218 return _resultobj;
6219 }
6220
6221 #define delete_wxPalette(_swigobj) (delete _swigobj)
6222 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args) {
6223 PyObject * _resultobj;
6224 wxPalette * _arg0;
6225 PyObject * _argo0 = 0;
6226
6227 self = self;
6228 if(!PyArg_ParseTuple(args,"O:delete_wxPalette",&_argo0))
6229 return NULL;
6230 if (_argo0) {
6231 if (_argo0 == Py_None) { _arg0 = NULL; }
6232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
6233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
6234 return NULL;
6235 }
6236 }
6237 {
6238 wxPy_BEGIN_ALLOW_THREADS;
6239 delete_wxPalette(_arg0);
6240
6241 wxPy_END_ALLOW_THREADS;
6242 } Py_INCREF(Py_None);
6243 _resultobj = Py_None;
6244 return _resultobj;
6245 }
6246
6247 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
6248 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args) {
6249 PyObject * _resultobj;
6250 int _result;
6251 wxPalette * _arg0;
6252 byte _arg1;
6253 byte _arg2;
6254 byte _arg3;
6255 PyObject * _argo0 = 0;
6256
6257 self = self;
6258 if(!PyArg_ParseTuple(args,"Obbb:wxPalette_GetPixel",&_argo0,&_arg1,&_arg2,&_arg3))
6259 return NULL;
6260 if (_argo0) {
6261 if (_argo0 == Py_None) { _arg0 = NULL; }
6262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
6263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
6264 return NULL;
6265 }
6266 }
6267 {
6268 wxPy_BEGIN_ALLOW_THREADS;
6269 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
6270
6271 wxPy_END_ALLOW_THREADS;
6272 } _resultobj = Py_BuildValue("i",_result);
6273 return _resultobj;
6274 }
6275
6276 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6277 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args) {
6278 PyObject * _resultobj;
6279 bool _result;
6280 wxPalette * _arg0;
6281 int _arg1;
6282 byte * _arg2;
6283 byte * _arg3;
6284 byte * _arg4;
6285 PyObject * _argo0 = 0;
6286 PyObject * _argo2 = 0;
6287 PyObject * _argo3 = 0;
6288 PyObject * _argo4 = 0;
6289
6290 self = self;
6291 if(!PyArg_ParseTuple(args,"OiOOO:wxPalette_GetRGB",&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
6292 return NULL;
6293 if (_argo0) {
6294 if (_argo0 == Py_None) { _arg0 = NULL; }
6295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
6296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
6297 return NULL;
6298 }
6299 }
6300 if (_argo2) {
6301 if (_argo2 == Py_None) { _arg2 = NULL; }
6302 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
6303 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
6304 return NULL;
6305 }
6306 }
6307 if (_argo3) {
6308 if (_argo3 == Py_None) { _arg3 = NULL; }
6309 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
6310 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
6311 return NULL;
6312 }
6313 }
6314 if (_argo4) {
6315 if (_argo4 == Py_None) { _arg4 = NULL; }
6316 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
6317 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
6318 return NULL;
6319 }
6320 }
6321 {
6322 wxPy_BEGIN_ALLOW_THREADS;
6323 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
6324
6325 wxPy_END_ALLOW_THREADS;
6326 } _resultobj = Py_BuildValue("i",_result);
6327 return _resultobj;
6328 }
6329
6330 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
6331 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args) {
6332 PyObject * _resultobj;
6333 bool _result;
6334 wxPalette * _arg0;
6335 PyObject * _argo0 = 0;
6336
6337 self = self;
6338 if(!PyArg_ParseTuple(args,"O:wxPalette_Ok",&_argo0))
6339 return NULL;
6340 if (_argo0) {
6341 if (_argo0 == Py_None) { _arg0 = NULL; }
6342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
6343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
6344 return NULL;
6345 }
6346 }
6347 {
6348 wxPy_BEGIN_ALLOW_THREADS;
6349 _result = (bool )wxPalette_Ok(_arg0);
6350
6351 wxPy_END_ALLOW_THREADS;
6352 } _resultobj = Py_BuildValue("i",_result);
6353 return _resultobj;
6354 }
6355
6356 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6357 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args) {
6358 PyObject * _resultobj;
6359 wxImageList * _result;
6360 int _arg0;
6361 int _arg1;
6362 bool _arg2 = (bool ) TRUE;
6363 int _arg3 = (int ) 1;
6364 int tempbool2 = (int) TRUE;
6365 char _ptemp[128];
6366
6367 self = self;
6368 if(!PyArg_ParseTuple(args,"ii|ii:new_wxImageList",&_arg0,&_arg1,&tempbool2,&_arg3))
6369 return NULL;
6370 _arg2 = (bool ) tempbool2;
6371 {
6372 wxPy_BEGIN_ALLOW_THREADS;
6373 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
6374
6375 wxPy_END_ALLOW_THREADS;
6376 } if (_result) {
6377 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
6378 _resultobj = Py_BuildValue("s",_ptemp);
6379 } else {
6380 Py_INCREF(Py_None);
6381 _resultobj = Py_None;
6382 }
6383 return _resultobj;
6384 }
6385
6386 #define delete_wxImageList(_swigobj) (delete _swigobj)
6387 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args) {
6388 PyObject * _resultobj;
6389 wxImageList * _arg0;
6390 PyObject * _argo0 = 0;
6391
6392 self = self;
6393 if(!PyArg_ParseTuple(args,"O:delete_wxImageList",&_argo0))
6394 return NULL;
6395 if (_argo0) {
6396 if (_argo0 == Py_None) { _arg0 = NULL; }
6397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
6399 return NULL;
6400 }
6401 }
6402 {
6403 wxPy_BEGIN_ALLOW_THREADS;
6404 delete_wxImageList(_arg0);
6405
6406 wxPy_END_ALLOW_THREADS;
6407 } Py_INCREF(Py_None);
6408 _resultobj = Py_None;
6409 return _resultobj;
6410 }
6411
6412 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
6413 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args) {
6414 PyObject * _resultobj;
6415 int _result;
6416 wxImageList * _arg0;
6417 wxBitmap * _arg1;
6418 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
6419 PyObject * _argo0 = 0;
6420 PyObject * _argo1 = 0;
6421 PyObject * _argo2 = 0;
6422
6423 self = self;
6424 if(!PyArg_ParseTuple(args,"OO|O:wxImageList_Add",&_argo0,&_argo1,&_argo2))
6425 return NULL;
6426 if (_argo0) {
6427 if (_argo0 == Py_None) { _arg0 = NULL; }
6428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
6430 return NULL;
6431 }
6432 }
6433 if (_argo1) {
6434 if (_argo1 == Py_None) { _arg1 = NULL; }
6435 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6436 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
6437 return NULL;
6438 }
6439 }
6440 if (_argo2) {
6441 if (_argo2 == Py_None) { _arg2 = NULL; }
6442 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6443 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
6444 return NULL;
6445 }
6446 }
6447 {
6448 wxPy_BEGIN_ALLOW_THREADS;
6449 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
6450
6451 wxPy_END_ALLOW_THREADS;
6452 } _resultobj = Py_BuildValue("i",_result);
6453 return _resultobj;
6454 }
6455
6456 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
6457 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args) {
6458 PyObject * _resultobj;
6459 int _result;
6460 wxImageList * _arg0;
6461 wxBitmap * _arg1;
6462 wxColour * _arg2;
6463 PyObject * _argo0 = 0;
6464 PyObject * _argo1 = 0;
6465 PyObject * _argo2 = 0;
6466
6467 self = self;
6468 if(!PyArg_ParseTuple(args,"OOO:wxImageList_AddWithColourMask",&_argo0,&_argo1,&_argo2))
6469 return NULL;
6470 if (_argo0) {
6471 if (_argo0 == Py_None) { _arg0 = NULL; }
6472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
6474 return NULL;
6475 }
6476 }
6477 if (_argo1) {
6478 if (_argo1 == Py_None) { _arg1 = NULL; }
6479 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6480 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
6481 return NULL;
6482 }
6483 }
6484 if (_argo2) {
6485 if (_argo2 == Py_None) { _arg2 = NULL; }
6486 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) {
6487 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_AddWithColourMask. Expected _wxColour_p.");
6488 return NULL;
6489 }
6490 }
6491 {
6492 wxPy_BEGIN_ALLOW_THREADS;
6493 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
6494
6495 wxPy_END_ALLOW_THREADS;
6496 } _resultobj = Py_BuildValue("i",_result);
6497 return _resultobj;
6498 }
6499
6500 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
6501 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args) {
6502 PyObject * _resultobj;
6503 int _result;
6504 wxImageList * _arg0;
6505 wxIcon * _arg1;
6506 PyObject * _argo0 = 0;
6507 PyObject * _argo1 = 0;
6508
6509 self = self;
6510 if(!PyArg_ParseTuple(args,"OO:wxImageList_AddIcon",&_argo0,&_argo1))
6511 return NULL;
6512 if (_argo0) {
6513 if (_argo0 == Py_None) { _arg0 = NULL; }
6514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
6516 return NULL;
6517 }
6518 }
6519 if (_argo1) {
6520 if (_argo1 == Py_None) { _arg1 = NULL; }
6521 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6522 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
6523 return NULL;
6524 }
6525 }
6526 {
6527 wxPy_BEGIN_ALLOW_THREADS;
6528 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
6529
6530 wxPy_END_ALLOW_THREADS;
6531 } _resultobj = Py_BuildValue("i",_result);
6532 return _resultobj;
6533 }
6534
6535 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
6536 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args) {
6537 PyObject * _resultobj;
6538 bool _result;
6539 wxImageList * _arg0;
6540 int _arg1;
6541 wxBitmap * _arg2;
6542 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
6543 PyObject * _argo0 = 0;
6544 PyObject * _argo2 = 0;
6545 PyObject * _argo3 = 0;
6546
6547 self = self;
6548 if(!PyArg_ParseTuple(args,"OiO|O:wxImageList_Replace",&_argo0,&_arg1,&_argo2,&_argo3))
6549 return NULL;
6550 if (_argo0) {
6551 if (_argo0 == Py_None) { _arg0 = NULL; }
6552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
6554 return NULL;
6555 }
6556 }
6557 if (_argo2) {
6558 if (_argo2 == Py_None) { _arg2 = NULL; }
6559 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6560 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
6561 return NULL;
6562 }
6563 }
6564 if (_argo3) {
6565 if (_argo3 == Py_None) { _arg3 = NULL; }
6566 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
6567 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
6568 return NULL;
6569 }
6570 }
6571 {
6572 wxPy_BEGIN_ALLOW_THREADS;
6573 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
6574
6575 wxPy_END_ALLOW_THREADS;
6576 } _resultobj = Py_BuildValue("i",_result);
6577 return _resultobj;
6578 }
6579
6580 #define wxImageList_ReplaceIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
6581 static PyObject *_wrap_wxImageList_ReplaceIcon(PyObject *self, PyObject *args) {
6582 PyObject * _resultobj;
6583 bool _result;
6584 wxImageList * _arg0;
6585 int _arg1;
6586 wxIcon * _arg2;
6587 PyObject * _argo0 = 0;
6588 PyObject * _argo2 = 0;
6589
6590 self = self;
6591 if(!PyArg_ParseTuple(args,"OiO:wxImageList_ReplaceIcon",&_argo0,&_arg1,&_argo2))
6592 return NULL;
6593 if (_argo0) {
6594 if (_argo0 == Py_None) { _arg0 = NULL; }
6595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_ReplaceIcon. Expected _wxImageList_p.");
6597 return NULL;
6598 }
6599 }
6600 if (_argo2) {
6601 if (_argo2 == Py_None) { _arg2 = NULL; }
6602 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxIcon_p")) {
6603 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_ReplaceIcon. Expected _wxIcon_p.");
6604 return NULL;
6605 }
6606 }
6607 {
6608 wxPy_BEGIN_ALLOW_THREADS;
6609 _result = (bool )wxImageList_ReplaceIcon(_arg0,_arg1,*_arg2);
6610
6611 wxPy_END_ALLOW_THREADS;
6612 } _resultobj = Py_BuildValue("i",_result);
6613 return _resultobj;
6614 }
6615
6616 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6617 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args) {
6618 PyObject * _resultobj;
6619 bool _result;
6620 wxImageList * _arg0;
6621 int _arg1;
6622 wxDC * _arg2;
6623 int _arg3;
6624 int _arg4;
6625 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
6626 bool _arg6 = (bool ) FALSE;
6627 PyObject * _argo0 = 0;
6628 PyObject * _argo2 = 0;
6629 int tempbool6 = (int) FALSE;
6630
6631 self = self;
6632 if(!PyArg_ParseTuple(args,"OiOii|ii:wxImageList_Draw",&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
6633 return NULL;
6634 if (_argo0) {
6635 if (_argo0 == Py_None) { _arg0 = NULL; }
6636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
6638 return NULL;
6639 }
6640 }
6641 if (_argo2) {
6642 if (_argo2 == Py_None) { _arg2 = NULL; }
6643 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
6644 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
6645 return NULL;
6646 }
6647 }
6648 _arg6 = (bool ) tempbool6;
6649 {
6650 wxPy_BEGIN_ALLOW_THREADS;
6651 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
6652
6653 wxPy_END_ALLOW_THREADS;
6654 } _resultobj = Py_BuildValue("i",_result);
6655 return _resultobj;
6656 }
6657
6658 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
6659 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args) {
6660 PyObject * _resultobj;
6661 int _result;
6662 wxImageList * _arg0;
6663 PyObject * _argo0 = 0;
6664
6665 self = self;
6666 if(!PyArg_ParseTuple(args,"O:wxImageList_GetImageCount",&_argo0))
6667 return NULL;
6668 if (_argo0) {
6669 if (_argo0 == Py_None) { _arg0 = NULL; }
6670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
6672 return NULL;
6673 }
6674 }
6675 {
6676 wxPy_BEGIN_ALLOW_THREADS;
6677 _result = (int )wxImageList_GetImageCount(_arg0);
6678
6679 wxPy_END_ALLOW_THREADS;
6680 } _resultobj = Py_BuildValue("i",_result);
6681 return _resultobj;
6682 }
6683
6684 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
6685 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args) {
6686 PyObject * _resultobj;
6687 bool _result;
6688 wxImageList * _arg0;
6689 int _arg1;
6690 PyObject * _argo0 = 0;
6691
6692 self = self;
6693 if(!PyArg_ParseTuple(args,"Oi:wxImageList_Remove",&_argo0,&_arg1))
6694 return NULL;
6695 if (_argo0) {
6696 if (_argo0 == Py_None) { _arg0 = NULL; }
6697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
6699 return NULL;
6700 }
6701 }
6702 {
6703 wxPy_BEGIN_ALLOW_THREADS;
6704 _result = (bool )wxImageList_Remove(_arg0,_arg1);
6705
6706 wxPy_END_ALLOW_THREADS;
6707 } _resultobj = Py_BuildValue("i",_result);
6708 return _resultobj;
6709 }
6710
6711 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
6712 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args) {
6713 PyObject * _resultobj;
6714 bool _result;
6715 wxImageList * _arg0;
6716 PyObject * _argo0 = 0;
6717
6718 self = self;
6719 if(!PyArg_ParseTuple(args,"O:wxImageList_RemoveAll",&_argo0))
6720 return NULL;
6721 if (_argo0) {
6722 if (_argo0 == Py_None) { _arg0 = NULL; }
6723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
6724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
6725 return NULL;
6726 }
6727 }
6728 {
6729 wxPy_BEGIN_ALLOW_THREADS;
6730 _result = (bool )wxImageList_RemoveAll(_arg0);
6731
6732 wxPy_END_ALLOW_THREADS;
6733 } _resultobj = Py_BuildValue("i",_result);
6734 return _resultobj;
6735 }
6736
6737 static PyMethodDef gdicMethods[] = {
6738 { "wxImageList_RemoveAll", _wrap_wxImageList_RemoveAll, METH_VARARGS },
6739 { "wxImageList_Remove", _wrap_wxImageList_Remove, METH_VARARGS },
6740 { "wxImageList_GetImageCount", _wrap_wxImageList_GetImageCount, METH_VARARGS },
6741 { "wxImageList_Draw", _wrap_wxImageList_Draw, METH_VARARGS },
6742 { "wxImageList_ReplaceIcon", _wrap_wxImageList_ReplaceIcon, METH_VARARGS },
6743 { "wxImageList_Replace", _wrap_wxImageList_Replace, METH_VARARGS },
6744 { "wxImageList_AddIcon", _wrap_wxImageList_AddIcon, METH_VARARGS },
6745 { "wxImageList_AddWithColourMask", _wrap_wxImageList_AddWithColourMask, METH_VARARGS },
6746 { "wxImageList_Add", _wrap_wxImageList_Add, METH_VARARGS },
6747 { "delete_wxImageList", _wrap_delete_wxImageList, METH_VARARGS },
6748 { "new_wxImageList", _wrap_new_wxImageList, METH_VARARGS },
6749 { "wxPalette_Ok", _wrap_wxPalette_Ok, METH_VARARGS },
6750 { "wxPalette_GetRGB", _wrap_wxPalette_GetRGB, METH_VARARGS },
6751 { "wxPalette_GetPixel", _wrap_wxPalette_GetPixel, METH_VARARGS },
6752 { "delete_wxPalette", _wrap_delete_wxPalette, METH_VARARGS },
6753 { "new_wxPalette", _wrap_new_wxPalette, METH_VARARGS },
6754 { "wxMetaFileDC_Close", _wrap_wxMetaFileDC_Close, METH_VARARGS },
6755 { "new_wxMetaFileDC", _wrap_new_wxMetaFileDC, METH_VARARGS },
6756 { "new_wxPrinterDC", _wrap_new_wxPrinterDC, METH_VARARGS },
6757 { "new_wxWindowDC", _wrap_new_wxWindowDC, METH_VARARGS },
6758 { "new_wxPaintDC", _wrap_new_wxPaintDC, METH_VARARGS },
6759 { "new_wxClientDC", _wrap_new_wxClientDC, METH_VARARGS },
6760 { "wxScreenDC_EndDrawingOnTop", _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS },
6761 { "wxScreenDC_StartDrawingOnTopRect", _wrap_wxScreenDC_StartDrawingOnTopRect, METH_VARARGS },
6762 { "wxScreenDC_StartDrawingOnTop", _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS },
6763 { "new_wxScreenDC", _wrap_new_wxScreenDC, METH_VARARGS },
6764 { "wxMemoryDC_SelectObject", _wrap_wxMemoryDC_SelectObject, METH_VARARGS },
6765 { "new_wxMemoryDC", _wrap_new_wxMemoryDC, METH_VARARGS },
6766 { "wxDC_DrawBitmap", _wrap_wxDC_DrawBitmap, METH_VARARGS },
6767 { "wxDC_StartPage", _wrap_wxDC_StartPage, METH_VARARGS },
6768 { "wxDC_StartDoc", _wrap_wxDC_StartDoc, METH_VARARGS },
6769 { "wxDC_SetUserScale", _wrap_wxDC_SetUserScale, METH_VARARGS },
6770 { "wxDC_SetTextForeground", _wrap_wxDC_SetTextForeground, METH_VARARGS },
6771 { "wxDC_SetTextBackground", _wrap_wxDC_SetTextBackground, METH_VARARGS },
6772 { "wxDC_SetPen", _wrap_wxDC_SetPen, METH_VARARGS },
6773 { "wxDC_SetOptimization", _wrap_wxDC_SetOptimization, METH_VARARGS },
6774 { "wxDC_SetMapMode", _wrap_wxDC_SetMapMode, METH_VARARGS },
6775 { "wxDC_SetLogicalFunction", _wrap_wxDC_SetLogicalFunction, METH_VARARGS },
6776 { "wxDC_SetFont", _wrap_wxDC_SetFont, METH_VARARGS },
6777 { "wxDC_SetBrush", _wrap_wxDC_SetBrush, METH_VARARGS },
6778 { "wxDC_SetPalette", _wrap_wxDC_SetPalette, METH_VARARGS },
6779 { "wxDC_SetClippingRegion", _wrap_wxDC_SetClippingRegion, METH_VARARGS },
6780 { "wxDC_SetBackgroundMode", _wrap_wxDC_SetBackgroundMode, METH_VARARGS },
6781 { "wxDC_SetBackground", _wrap_wxDC_SetBackground, METH_VARARGS },
6782 { "wxDC_SetDeviceOrigin", _wrap_wxDC_SetDeviceOrigin, METH_VARARGS },
6783 { "wxDC_Ok", _wrap_wxDC_Ok, METH_VARARGS },
6784 { "wxDC_MinY", _wrap_wxDC_MinY, METH_VARARGS },
6785 { "wxDC_MinX", _wrap_wxDC_MinX, METH_VARARGS },
6786 { "wxDC_MaxY", _wrap_wxDC_MaxY, METH_VARARGS },
6787 { "wxDC_MaxX", _wrap_wxDC_MaxX, METH_VARARGS },
6788 { "wxDC_LogicalToDeviceYRel", _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS },
6789 { "wxDC_LogicalToDeviceY", _wrap_wxDC_LogicalToDeviceY, METH_VARARGS },
6790 { "wxDC_LogicalToDeviceXRel", _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS },
6791 { "wxDC_LogicalToDeviceX", _wrap_wxDC_LogicalToDeviceX, METH_VARARGS },
6792 { "wxDC_GetTextForeground", _wrap_wxDC_GetTextForeground, METH_VARARGS },
6793 { "wxDC_GetFullTextExtent", _wrap_wxDC_GetFullTextExtent, METH_VARARGS },
6794 { "wxDC_GetTextExtent", _wrap_wxDC_GetTextExtent, METH_VARARGS },
6795 { "wxDC_GetTextBackground", _wrap_wxDC_GetTextBackground, METH_VARARGS },
6796 { "wxDC_GetSize", _wrap_wxDC_GetSize, METH_VARARGS },
6797 { "wxDC_GetSizeTuple", _wrap_wxDC_GetSizeTuple, METH_VARARGS },
6798 { "wxDC_GetPixel", _wrap_wxDC_GetPixel, METH_VARARGS },
6799 { "wxDC_GetPen", _wrap_wxDC_GetPen, METH_VARARGS },
6800 { "wxDC_GetOptimization", _wrap_wxDC_GetOptimization, METH_VARARGS },
6801 { "wxDC_GetMapMode", _wrap_wxDC_GetMapMode, METH_VARARGS },
6802 { "wxDC_GetLogicalFunction", _wrap_wxDC_GetLogicalFunction, METH_VARARGS },
6803 { "wxDC_GetFont", _wrap_wxDC_GetFont, METH_VARARGS },
6804 { "wxDC_GetClippingBox", _wrap_wxDC_GetClippingBox, METH_VARARGS },
6805 { "wxDC_GetCharWidth", _wrap_wxDC_GetCharWidth, METH_VARARGS },
6806 { "wxDC_GetCharHeight", _wrap_wxDC_GetCharHeight, METH_VARARGS },
6807 { "wxDC_GetBrush", _wrap_wxDC_GetBrush, METH_VARARGS },
6808 { "wxDC_GetBackground", _wrap_wxDC_GetBackground, METH_VARARGS },
6809 { "wxDC_FloodFill", _wrap_wxDC_FloodFill, METH_VARARGS },
6810 { "wxDC_EndPage", _wrap_wxDC_EndPage, METH_VARARGS },
6811 { "wxDC_EndDrawing", _wrap_wxDC_EndDrawing, METH_VARARGS },
6812 { "wxDC_EndDoc", _wrap_wxDC_EndDoc, METH_VARARGS },
6813 { "wxDC_DrawText", _wrap_wxDC_DrawText, METH_VARARGS },
6814 { "wxDC_DrawSpline", _wrap_wxDC_DrawSpline, METH_VARARGS },
6815 { "wxDC_DrawRoundedRectangle", _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS },
6816 { "wxDC_DrawRectangle", _wrap_wxDC_DrawRectangle, METH_VARARGS },
6817 { "wxDC_DrawPoint", _wrap_wxDC_DrawPoint, METH_VARARGS },
6818 { "wxDC_DrawPolygon", _wrap_wxDC_DrawPolygon, METH_VARARGS },
6819 { "wxDC_DrawLines", _wrap_wxDC_DrawLines, METH_VARARGS },
6820 { "wxDC_DrawLine", _wrap_wxDC_DrawLine, METH_VARARGS },
6821 { "wxDC_DrawIcon", _wrap_wxDC_DrawIcon, METH_VARARGS },
6822 { "wxDC_DrawEllipticArc", _wrap_wxDC_DrawEllipticArc, METH_VARARGS },
6823 { "wxDC_DrawEllipse", _wrap_wxDC_DrawEllipse, METH_VARARGS },
6824 { "wxDC_DrawCircle", _wrap_wxDC_DrawCircle, METH_VARARGS },
6825 { "wxDC_DrawArc", _wrap_wxDC_DrawArc, METH_VARARGS },
6826 { "wxDC_DeviceToLogicalYRel", _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS },
6827 { "wxDC_DeviceToLogicalY", _wrap_wxDC_DeviceToLogicalY, METH_VARARGS },
6828 { "wxDC_DeviceToLogicalXRel", _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS },
6829 { "wxDC_DeviceToLogicalX", _wrap_wxDC_DeviceToLogicalX, METH_VARARGS },
6830 { "wxDC_DestroyClippingRegion", _wrap_wxDC_DestroyClippingRegion, METH_VARARGS },
6831 { "wxDC_CrossHair", _wrap_wxDC_CrossHair, METH_VARARGS },
6832 { "wxDC_Clear", _wrap_wxDC_Clear, METH_VARARGS },
6833 { "wxDC_Blit", _wrap_wxDC_Blit, METH_VARARGS },
6834 { "wxDC_BeginDrawing", _wrap_wxDC_BeginDrawing, METH_VARARGS },
6835 { "delete_wxDC", _wrap_delete_wxDC, METH_VARARGS },
6836 { "wxBrush_SetStyle", _wrap_wxBrush_SetStyle, METH_VARARGS },
6837 { "wxBrush_SetStipple", _wrap_wxBrush_SetStipple, METH_VARARGS },
6838 { "wxBrush_SetColour", _wrap_wxBrush_SetColour, METH_VARARGS },
6839 { "wxBrush_Ok", _wrap_wxBrush_Ok, METH_VARARGS },
6840 { "wxBrush_GetStyle", _wrap_wxBrush_GetStyle, METH_VARARGS },
6841 { "wxBrush_GetStipple", _wrap_wxBrush_GetStipple, METH_VARARGS },
6842 { "wxBrush_GetColour", _wrap_wxBrush_GetColour, METH_VARARGS },
6843 { "new_wxBrush", _wrap_new_wxBrush, METH_VARARGS },
6844 { "wxPen_SetStipple", _wrap_wxPen_SetStipple, METH_VARARGS },
6845 { "wxPen_SetDashes", _wrap_wxPen_SetDashes, METH_VARARGS },
6846 { "wxPen_GetStipple", _wrap_wxPen_GetStipple, METH_VARARGS },
6847 { "wxPen_GetDashes", _wrap_wxPen_GetDashes, METH_VARARGS },
6848 { "wxPen_SetWidth", _wrap_wxPen_SetWidth, METH_VARARGS },
6849 { "wxPen_SetStyle", _wrap_wxPen_SetStyle, METH_VARARGS },
6850 { "wxPen_SetJoin", _wrap_wxPen_SetJoin, METH_VARARGS },
6851 { "wxPen_SetColour", _wrap_wxPen_SetColour, METH_VARARGS },
6852 { "wxPen_SetCap", _wrap_wxPen_SetCap, METH_VARARGS },
6853 { "wxPen_Ok", _wrap_wxPen_Ok, METH_VARARGS },
6854 { "wxPen_GetWidth", _wrap_wxPen_GetWidth, METH_VARARGS },
6855 { "wxPen_GetStyle", _wrap_wxPen_GetStyle, METH_VARARGS },
6856 { "wxPen_GetJoin", _wrap_wxPen_GetJoin, METH_VARARGS },
6857 { "wxPen_GetColour", _wrap_wxPen_GetColour, METH_VARARGS },
6858 { "wxPen_GetCap", _wrap_wxPen_GetCap, METH_VARARGS },
6859 { "new_wxPen", _wrap_new_wxPen, METH_VARARGS },
6860 { "wxColour_Get", _wrap_wxColour_Get, METH_VARARGS },
6861 { "wxColour_Set", _wrap_wxColour_Set, METH_VARARGS },
6862 { "wxColour_Ok", _wrap_wxColour_Ok, METH_VARARGS },
6863 { "wxColour_Blue", _wrap_wxColour_Blue, METH_VARARGS },
6864 { "wxColour_Green", _wrap_wxColour_Green, METH_VARARGS },
6865 { "wxColour_Red", _wrap_wxColour_Red, METH_VARARGS },
6866 { "delete_wxColour", _wrap_delete_wxColour, METH_VARARGS },
6867 { "new_wxColour", _wrap_new_wxColour, METH_VARARGS },
6868 { "wxFont_SetWeight", _wrap_wxFont_SetWeight, METH_VARARGS },
6869 { "wxFont_SetUnderlined", _wrap_wxFont_SetUnderlined, METH_VARARGS },
6870 { "wxFont_SetStyle", _wrap_wxFont_SetStyle, METH_VARARGS },
6871 { "wxFont_SetPointSize", _wrap_wxFont_SetPointSize, METH_VARARGS },
6872 { "wxFont_SetFamily", _wrap_wxFont_SetFamily, METH_VARARGS },
6873 { "wxFont_SetFaceName", _wrap_wxFont_SetFaceName, METH_VARARGS },
6874 { "wxFont_GetWeight", _wrap_wxFont_GetWeight, METH_VARARGS },
6875 { "wxFont_GetUnderlined", _wrap_wxFont_GetUnderlined, METH_VARARGS },
6876 { "wxFont_GetStyle", _wrap_wxFont_GetStyle, METH_VARARGS },
6877 { "wxFont_GetPointSize", _wrap_wxFont_GetPointSize, METH_VARARGS },
6878 { "wxFont_GetFontId", _wrap_wxFont_GetFontId, METH_VARARGS },
6879 { "wxFont_GetFamily", _wrap_wxFont_GetFamily, METH_VARARGS },
6880 { "wxFont_GetFaceName", _wrap_wxFont_GetFaceName, METH_VARARGS },
6881 { "new_wxFont", _wrap_new_wxFont, METH_VARARGS },
6882 { "wxCursor_Ok", _wrap_wxCursor_Ok, METH_VARARGS },
6883 { "delete_wxCursor", _wrap_delete_wxCursor, METH_VARARGS },
6884 { "new_wxCursor", _wrap_new_wxCursor, METH_VARARGS },
6885 { "wxIcon_SetWidth", _wrap_wxIcon_SetWidth, METH_VARARGS },
6886 { "wxIcon_SetHeight", _wrap_wxIcon_SetHeight, METH_VARARGS },
6887 { "wxIcon_SetDepth", _wrap_wxIcon_SetDepth, METH_VARARGS },
6888 { "wxIcon_Ok", _wrap_wxIcon_Ok, METH_VARARGS },
6889 { "wxIcon_LoadFile", _wrap_wxIcon_LoadFile, METH_VARARGS },
6890 { "wxIcon_GetWidth", _wrap_wxIcon_GetWidth, METH_VARARGS },
6891 { "wxIcon_GetHeight", _wrap_wxIcon_GetHeight, METH_VARARGS },
6892 { "wxIcon_GetDepth", _wrap_wxIcon_GetDepth, METH_VARARGS },
6893 { "delete_wxIcon", _wrap_delete_wxIcon, METH_VARARGS },
6894 { "new_wxIcon", _wrap_new_wxIcon, METH_VARARGS },
6895 { "delete_wxMask", _wrap_delete_wxMask, METH_VARARGS },
6896 { "new_wxMask", _wrap_new_wxMask, METH_VARARGS },
6897 { "wxBitmap_SetWidth", _wrap_wxBitmap_SetWidth, METH_VARARGS },
6898 { "wxBitmap_SetPalette", _wrap_wxBitmap_SetPalette, METH_VARARGS },
6899 { "wxBitmap_SetMask", _wrap_wxBitmap_SetMask, METH_VARARGS },
6900 { "wxBitmap_SetHeight", _wrap_wxBitmap_SetHeight, METH_VARARGS },
6901 { "wxBitmap_SetDepth", _wrap_wxBitmap_SetDepth, METH_VARARGS },
6902 { "wxBitmap_SaveFile", _wrap_wxBitmap_SaveFile, METH_VARARGS },
6903 { "wxBitmap_Ok", _wrap_wxBitmap_Ok, METH_VARARGS },
6904 { "wxBitmap_LoadFile", _wrap_wxBitmap_LoadFile, METH_VARARGS },
6905 { "wxBitmap_GetWidth", _wrap_wxBitmap_GetWidth, METH_VARARGS },
6906 { "wxBitmap_GetMask", _wrap_wxBitmap_GetMask, METH_VARARGS },
6907 { "wxBitmap_GetPalette", _wrap_wxBitmap_GetPalette, METH_VARARGS },
6908 { "wxBitmap_GetHeight", _wrap_wxBitmap_GetHeight, METH_VARARGS },
6909 { "wxBitmap_GetDepth", _wrap_wxBitmap_GetDepth, METH_VARARGS },
6910 { "wxBitmap_Create", _wrap_wxBitmap_Create, METH_VARARGS },
6911 { "delete_wxBitmap", _wrap_delete_wxBitmap, METH_VARARGS },
6912 { "new_wxBitmap", _wrap_new_wxBitmap, METH_VARARGS },
6913 { "wxMemoryDCFromDC", _wrap_wxMemoryDCFromDC, METH_VARARGS },
6914 { "wxNamedColour", _wrap_wxNamedColour, METH_VARARGS },
6915 { "wxStockCursor", _wrap_wxStockCursor, METH_VARARGS },
6916 { "wxMaskColour", _wrap_wxMaskColour, METH_VARARGS },
6917 { "wxBitmapFromData", _wrap_wxBitmapFromData, METH_VARARGS },
6918 { "wxNoRefBitmap", _wrap_wxNoRefBitmap, METH_VARARGS },
6919 { "wxEmptyBitmap", _wrap_wxEmptyBitmap, METH_VARARGS },
6920 { NULL, NULL }
6921 };
6922 #ifdef __cplusplus
6923 }
6924 #endif
6925 /*
6926 * This table is used by the pointer type-checker
6927 */
6928 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
6929 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
6930 { "_signed_long","_long",0},
6931 { "_wxPrintQuality","_int",0},
6932 { "_wxPrintQuality","_signed_int",0},
6933 { "_wxPrintQuality","_unsigned_int",0},
6934 { "_wxPrintQuality","_wxWindowID",0},
6935 { "_wxPrintQuality","_uint",0},
6936 { "_wxPrintQuality","_EBool",0},
6937 { "_wxPrintQuality","_size_t",0},
6938 { "_class_wxRegionIterator","_wxRegionIterator",0},
6939 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
6940 { "_wxCursor","_class_wxCursor",0},
6941 { "_wxMask","_class_wxMask",0},
6942 { "_wxPen","_class_wxPen",0},
6943 { "_byte","_unsigned_char",0},
6944 { "_long","_wxDash",0},
6945 { "_long","_unsigned_long",0},
6946 { "_long","_signed_long",0},
6947 { "_wxImageList","_class_wxImageList",0},
6948 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
6949 { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
6950 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
6951 { "_wxDC","_class_wxPrinterDC",SwigwxPrinterDCTowxDC},
6952 { "_wxDC","_wxPrinterDC",SwigwxPrinterDCTowxDC},
6953 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
6954 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
6955 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
6956 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
6957 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
6958 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
6959 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
6960 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
6961 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
6962 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
6963 { "_wxDC","_class_wxDC",0},
6964 { "_size_t","_wxPrintQuality",0},
6965 { "_size_t","_unsigned_int",0},
6966 { "_size_t","_int",0},
6967 { "_size_t","_wxWindowID",0},
6968 { "_size_t","_uint",0},
6969 { "_class_wxRealPoint","_wxRealPoint",0},
6970 { "_wxPrinterDC","_class_wxPrinterDC",0},
6971 { "_class_wxMask","_wxMask",0},
6972 { "_wxColour","_class_wxColour",0},
6973 { "_wxBrush","_class_wxBrush",0},
6974 { "_uint","_wxPrintQuality",0},
6975 { "_uint","_size_t",0},
6976 { "_uint","_unsigned_int",0},
6977 { "_uint","_int",0},
6978 { "_uint","_wxWindowID",0},
6979 { "_wxRect","_class_wxRect",0},
6980 { "_wxPoint","_class_wxPoint",0},
6981 { "_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap},
6982 { "_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap},
6983 { "_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap},
6984 { "_wxBitmap","_wxIcon",SwigwxIconTowxBitmap},
6985 { "_wxBitmap","_class_wxBitmap",0},
6986 { "_wxPyTimer","_class_wxPyTimer",0},
6987 { "_wxWindowDC","_class_wxWindowDC",0},
6988 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
6989 { "_EBool","_wxPrintQuality",0},
6990 { "_EBool","_signed_int",0},
6991 { "_EBool","_int",0},
6992 { "_EBool","_wxWindowID",0},
6993 { "_class_wxRegion","_wxRegion",0},
6994 { "_wxFont","_class_wxFont",0},
6995 { "_unsigned_long","_wxDash",0},
6996 { "_unsigned_long","_long",0},
6997 { "_class_wxRect","_wxRect",0},
6998 { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
6999 { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
7000 { "_class_wxDC","_class_wxPrinterDC",SwigwxPrinterDCTowxDC},
7001 { "_class_wxDC","_wxPrinterDC",SwigwxPrinterDCTowxDC},
7002 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
7003 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
7004 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
7005 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
7006 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
7007 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
7008 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
7009 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
7010 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
7011 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
7012 { "_class_wxDC","_wxDC",0},
7013 { "_class_wxPyTimer","_wxPyTimer",0},
7014 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
7015 { "_signed_int","_wxPrintQuality",0},
7016 { "_signed_int","_EBool",0},
7017 { "_signed_int","_wxWindowID",0},
7018 { "_signed_int","_int",0},
7019 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
7020 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
7021 { "_wxScreenDC","_class_wxScreenDC",0},
7022 { "_WXTYPE","_short",0},
7023 { "_WXTYPE","_signed_short",0},
7024 { "_WXTYPE","_unsigned_short",0},
7025 { "_class_wxBrush","_wxBrush",0},
7026 { "_unsigned_short","_WXTYPE",0},
7027 { "_unsigned_short","_short",0},
7028 { "_class_wxFont","_wxFont",0},
7029 { "_wxClientDC","_class_wxClientDC",0},
7030 { "_class_wxPoint","_wxPoint",0},
7031 { "_wxRealPoint","_class_wxRealPoint",0},
7032 { "_signed_short","_WXTYPE",0},
7033 { "_signed_short","_short",0},
7034 { "_wxMemoryDC","_class_wxMemoryDC",0},
7035 { "_wxPaintDC","_class_wxPaintDC",0},
7036 { "_class_wxWindowDC","_wxWindowDC",0},
7037 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
7038 { "_class_wxCursor","_wxCursor",0},
7039 { "_unsigned_char","_byte",0},
7040 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
7041 { "_unsigned_int","_wxPrintQuality",0},
7042 { "_unsigned_int","_size_t",0},
7043 { "_unsigned_int","_uint",0},
7044 { "_unsigned_int","_wxWindowID",0},
7045 { "_unsigned_int","_int",0},
7046 { "_wxIcon","_class_wxIcon",0},
7047 { "_class_wxPen","_wxPen",0},
7048 { "_short","_WXTYPE",0},
7049 { "_short","_unsigned_short",0},
7050 { "_short","_signed_short",0},
7051 { "_class_wxImageList","_wxImageList",0},
7052 { "_wxWindowID","_wxPrintQuality",0},
7053 { "_wxWindowID","_size_t",0},
7054 { "_wxWindowID","_EBool",0},
7055 { "_wxWindowID","_uint",0},
7056 { "_wxWindowID","_int",0},
7057 { "_wxWindowID","_signed_int",0},
7058 { "_wxWindowID","_unsigned_int",0},
7059 { "_int","_wxPrintQuality",0},
7060 { "_int","_size_t",0},
7061 { "_int","_EBool",0},
7062 { "_int","_uint",0},
7063 { "_int","_wxWindowID",0},
7064 { "_int","_unsigned_int",0},
7065 { "_int","_signed_int",0},
7066 { "_wxSize","_class_wxSize",0},
7067 { "_wxRegionIterator","_class_wxRegionIterator",0},
7068 { "_class_wxPrinterDC","_wxPrinterDC",0},
7069 { "_class_wxPaintDC","_wxPaintDC",0},
7070 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
7071 { "_class_wxIcon","_wxIcon",0},
7072 { "_class_wxColour","_wxColour",0},
7073 { "_class_wxScreenDC","_wxScreenDC",0},
7074 { "_wxPalette","_class_wxPalette",0},
7075 { "_wxRegion","_class_wxRegion",0},
7076 { "_class_wxClientDC","_wxClientDC",0},
7077 { "_class_wxSize","_wxSize",0},
7078 { "_class_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap},
7079 { "_class_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap},
7080 { "_class_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap},
7081 { "_class_wxBitmap","_wxIcon",SwigwxIconTowxBitmap},
7082 { "_class_wxBitmap","_wxBitmap",0},
7083 { "_class_wxMemoryDC","_wxMemoryDC",0},
7084 { "_wxDash","_unsigned_long",0},
7085 { "_wxDash","_long",0},
7086 { "_class_wxPalette","_wxPalette",0},
7087 {0,0,0}};
7088
7089 static PyObject *SWIG_globals;
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 SWIGEXPORT(void) initgdic() {
7094 PyObject *m, *d;
7095 SWIG_globals = SWIG_newvarlink();
7096 m = Py_InitModule("gdic", gdicMethods);
7097 d = PyModule_GetDict(m);
7098 PyDict_SetItemString(d,"cvar", SWIG_globals);
7099 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
7100 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
7101 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
7102 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
7103 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
7104 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
7105 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
7106 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
7107 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
7108 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
7109 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
7110 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
7111 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
7112 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
7113 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
7114 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
7115 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
7116 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
7117 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
7118 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
7119 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
7120 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
7121 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
7122 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
7123 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
7124 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
7125 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
7126 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
7127 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
7128 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
7129 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
7130 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
7131 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
7132 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
7133 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
7134 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
7135 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
7136 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
7137 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
7138 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
7139 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
7140 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
7141 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
7142 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
7143 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
7144 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
7145 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
7146 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
7147 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
7148 {
7149 int i;
7150 for (i = 0; _swig_mapping[i].n1; i++)
7151 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
7152 }
7153 }