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