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