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