]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/gdi.cpp
Fixed an issue related to the new wxList.
[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
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106
107 extern int* int_LIST_helper(PyObject* source);
108 extern long* long_LIST_helper(PyObject* source);
109 extern char** string_LIST_helper(PyObject* source);
110 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
111 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
112 extern wxString* wxString_LIST_helper(PyObject* source);
113 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
114
115
116 static char* wxStringErrorMsg = "string type is required for parameter";
117 // Alternate 'constructor'
118 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
119 return new wxBitmap(width, height, depth);
120 }
121
122 // This one won't own the reference, so Python won't call
123 // the dtor, this is good for toolbars and such where
124 // the parent will manage the bitmap.
125 wxBitmap* wxNoRefBitmap(char* name, long flags) {
126 return new wxBitmap(name, flags);
127 }
128
129 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
130 return new wxMask(bitmap, colour);
131 }
132 // Alternate 'constructor'
133 wxCursor* wxPyStockCursor(int id) {
134 return new wxCursor(id);
135 }
136 // Alternate 'constructor'
137 wxColour* wxNamedColour(const wxString& colorName) {
138 return new wxColour(colorName);
139 }
140 // Alternate 'constructor'
141 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
142 return new wxMemoryDC(oldDC);
143 }
144 extern wxFont * wxNORMAL_FONT;
145 extern wxFont * wxSMALL_FONT;
146 extern wxFont * wxITALIC_FONT;
147 extern wxFont * wxSWISS_FONT;
148 extern wxPen * wxRED_PEN;
149 extern wxPen * wxCYAN_PEN;
150 extern wxPen * wxGREEN_PEN;
151 extern wxPen * wxBLACK_PEN;
152 extern wxPen * wxWHITE_PEN;
153 extern wxPen * wxTRANSPARENT_PEN;
154 extern wxPen * wxBLACK_DASHED_PEN;
155 extern wxPen * wxGREY_PEN;
156 extern wxPen * wxMEDIUM_GREY_PEN;
157 extern wxPen * wxLIGHT_GREY_PEN;
158 extern wxBrush * wxBLUE_BRUSH;
159 extern wxBrush * wxGREEN_BRUSH;
160 extern wxBrush * wxWHITE_BRUSH;
161 extern wxBrush * wxBLACK_BRUSH;
162 extern wxBrush * wxTRANSPARENT_BRUSH;
163 extern wxBrush * wxCYAN_BRUSH;
164 extern wxBrush * wxRED_BRUSH;
165 extern wxBrush * wxGREY_BRUSH;
166 extern wxBrush * wxMEDIUM_GREY_BRUSH;
167 extern wxBrush * wxLIGHT_GREY_BRUSH;
168 extern wxColour * wxBLACK;
169 extern wxColour * wxWHITE;
170 extern wxColour * wxRED;
171 extern wxColour * wxBLUE;
172 extern wxColour * wxGREEN;
173 extern wxColour * wxCYAN;
174 extern wxColour * wxLIGHT_GREY;
175 extern wxCursor * wxSTANDARD_CURSOR;
176 extern wxCursor * wxHOURGLASS_CURSOR;
177 extern wxCursor * wxCROSS_CURSOR;
178 extern wxBitmap wxNullBitmap;
179 extern wxIcon wxNullIcon;
180 extern wxCursor wxNullCursor;
181 extern wxPen wxNullPen;
182 extern wxBrush wxNullBrush;
183 extern wxPalette wxNullPalette;
184 extern wxFont wxNullFont;
185 extern wxColour wxNullColour;
186 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args) {
187 PyObject * _resultobj;
188 wxBitmap * _result;
189 int _arg0;
190 int _arg1;
191 int _arg2 = -1;
192 char _ptemp[128];
193
194 self = self;
195 if(!PyArg_ParseTuple(args,"ii|i:wxEmptyBitmap",&_arg0,&_arg1,&_arg2))
196 return NULL;
197 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
198 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
199 _resultobj = Py_BuildValue("s",_ptemp);
200 return _resultobj;
201 }
202
203 static PyObject *_wrap_wxNoRefBitmap(PyObject *self, PyObject *args) {
204 PyObject * _resultobj;
205 wxBitmap * _result;
206 char * _arg0;
207 long _arg1;
208 char _ptemp[128];
209
210 self = self;
211 if(!PyArg_ParseTuple(args,"sl:wxNoRefBitmap",&_arg0,&_arg1))
212 return NULL;
213 _result = (wxBitmap *)wxNoRefBitmap(_arg0,_arg1);
214 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
215 _resultobj = Py_BuildValue("s",_ptemp);
216 return _resultobj;
217 }
218
219 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args) {
220 PyObject * _resultobj;
221 wxMask * _result;
222 wxBitmap * _arg0;
223 wxColour * _arg1;
224 char * _argc0 = 0;
225 char * _argc1 = 0;
226 char _ptemp[128];
227
228 self = self;
229 if(!PyArg_ParseTuple(args,"ss:wxMaskColour",&_argc0,&_argc1))
230 return NULL;
231 if (_argc0) {
232 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
234 return NULL;
235 }
236 }
237 if (_argc1) {
238 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) {
239 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMaskColour. Expected _wxColour_p.");
240 return NULL;
241 }
242 }
243 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
244 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
245 _resultobj = Py_BuildValue("s",_ptemp);
246 return _resultobj;
247 }
248
249 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args) {
250 PyObject * _resultobj;
251 wxCursor * _result;
252 int _arg0;
253 char _ptemp[128];
254
255 self = self;
256 if(!PyArg_ParseTuple(args,"i:wxStockCursor",&_arg0))
257 return NULL;
258 _result = (wxCursor *)wxPyStockCursor(_arg0);
259 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
260 _resultobj = Py_BuildValue("s",_ptemp);
261 return _resultobj;
262 }
263
264 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args) {
265 PyObject * _resultobj;
266 wxColour * _result;
267 wxString * _arg0;
268 PyObject * _obj0 = 0;
269 char _ptemp[128];
270
271 self = self;
272 if(!PyArg_ParseTuple(args,"O:wxNamedColour",&_obj0))
273 return NULL;
274 {
275 if (!PyString_Check(_obj0)) {
276 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
277 return NULL;
278 }
279 _arg0 = new wxString(PyString_AsString(_obj0));
280 }
281 _result = (wxColour *)wxNamedColour(*_arg0);
282 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
283 _resultobj = Py_BuildValue("s",_ptemp);
284 {
285 if (_obj0)
286 delete _arg0;
287 }
288 return _resultobj;
289 }
290
291 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args) {
292 PyObject * _resultobj;
293 wxMemoryDC * _result;
294 wxDC * _arg0;
295 char * _argc0 = 0;
296 char _ptemp[128];
297
298 self = self;
299 if(!PyArg_ParseTuple(args,"s:wxMemoryDCFromDC",&_argc0))
300 return NULL;
301 if (_argc0) {
302 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
304 return NULL;
305 }
306 }
307 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
308 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
309 _resultobj = Py_BuildValue("s",_ptemp);
310 return _resultobj;
311 }
312
313 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
314
315 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
316 return 1;
317 }
318
319 static PyObject *_wrap_wxNORMAL_FONT_get() {
320 PyObject * pyobj;
321 char ptemp[128];
322
323 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
324 pyobj = PyString_FromString(ptemp);
325 return pyobj;
326 }
327
328 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
329
330 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
331 return 1;
332 }
333
334 static PyObject *_wrap_wxSMALL_FONT_get() {
335 PyObject * pyobj;
336 char ptemp[128];
337
338 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
339 pyobj = PyString_FromString(ptemp);
340 return pyobj;
341 }
342
343 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
344
345 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
346 return 1;
347 }
348
349 static PyObject *_wrap_wxITALIC_FONT_get() {
350 PyObject * pyobj;
351 char ptemp[128];
352
353 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
354 pyobj = PyString_FromString(ptemp);
355 return pyobj;
356 }
357
358 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
359
360 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
361 return 1;
362 }
363
364 static PyObject *_wrap_wxSWISS_FONT_get() {
365 PyObject * pyobj;
366 char ptemp[128];
367
368 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
369 pyobj = PyString_FromString(ptemp);
370 return pyobj;
371 }
372
373 static int _wrap_wxRED_PEN_set(PyObject *val) {
374
375 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
376 return 1;
377 }
378
379 static PyObject *_wrap_wxRED_PEN_get() {
380 PyObject * pyobj;
381 char ptemp[128];
382
383 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
384 pyobj = PyString_FromString(ptemp);
385 return pyobj;
386 }
387
388 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
389
390 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
391 return 1;
392 }
393
394 static PyObject *_wrap_wxCYAN_PEN_get() {
395 PyObject * pyobj;
396 char ptemp[128];
397
398 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
399 pyobj = PyString_FromString(ptemp);
400 return pyobj;
401 }
402
403 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
404
405 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
406 return 1;
407 }
408
409 static PyObject *_wrap_wxGREEN_PEN_get() {
410 PyObject * pyobj;
411 char ptemp[128];
412
413 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
414 pyobj = PyString_FromString(ptemp);
415 return pyobj;
416 }
417
418 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
419
420 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
421 return 1;
422 }
423
424 static PyObject *_wrap_wxBLACK_PEN_get() {
425 PyObject * pyobj;
426 char ptemp[128];
427
428 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
429 pyobj = PyString_FromString(ptemp);
430 return pyobj;
431 }
432
433 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
434
435 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
436 return 1;
437 }
438
439 static PyObject *_wrap_wxWHITE_PEN_get() {
440 PyObject * pyobj;
441 char ptemp[128];
442
443 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
444 pyobj = PyString_FromString(ptemp);
445 return pyobj;
446 }
447
448 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
449
450 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
451 return 1;
452 }
453
454 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
455 PyObject * pyobj;
456 char ptemp[128];
457
458 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
459 pyobj = PyString_FromString(ptemp);
460 return pyobj;
461 }
462
463 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
464
465 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
466 return 1;
467 }
468
469 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
470 PyObject * pyobj;
471 char ptemp[128];
472
473 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
474 pyobj = PyString_FromString(ptemp);
475 return pyobj;
476 }
477
478 static int _wrap_wxGREY_PEN_set(PyObject *val) {
479
480 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
481 return 1;
482 }
483
484 static PyObject *_wrap_wxGREY_PEN_get() {
485 PyObject * pyobj;
486 char ptemp[128];
487
488 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
489 pyobj = PyString_FromString(ptemp);
490 return pyobj;
491 }
492
493 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
494
495 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
496 return 1;
497 }
498
499 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
500 PyObject * pyobj;
501 char ptemp[128];
502
503 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
504 pyobj = PyString_FromString(ptemp);
505 return pyobj;
506 }
507
508 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
509
510 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
511 return 1;
512 }
513
514 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
515 PyObject * pyobj;
516 char ptemp[128];
517
518 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
519 pyobj = PyString_FromString(ptemp);
520 return pyobj;
521 }
522
523 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
524
525 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
526 return 1;
527 }
528
529 static PyObject *_wrap_wxBLUE_BRUSH_get() {
530 PyObject * pyobj;
531 char ptemp[128];
532
533 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
534 pyobj = PyString_FromString(ptemp);
535 return pyobj;
536 }
537
538 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
539
540 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
541 return 1;
542 }
543
544 static PyObject *_wrap_wxGREEN_BRUSH_get() {
545 PyObject * pyobj;
546 char ptemp[128];
547
548 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
549 pyobj = PyString_FromString(ptemp);
550 return pyobj;
551 }
552
553 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
554
555 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
556 return 1;
557 }
558
559 static PyObject *_wrap_wxWHITE_BRUSH_get() {
560 PyObject * pyobj;
561 char ptemp[128];
562
563 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
564 pyobj = PyString_FromString(ptemp);
565 return pyobj;
566 }
567
568 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
569
570 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
571 return 1;
572 }
573
574 static PyObject *_wrap_wxBLACK_BRUSH_get() {
575 PyObject * pyobj;
576 char ptemp[128];
577
578 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
579 pyobj = PyString_FromString(ptemp);
580 return pyobj;
581 }
582
583 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
584
585 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
586 return 1;
587 }
588
589 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
590 PyObject * pyobj;
591 char ptemp[128];
592
593 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
594 pyobj = PyString_FromString(ptemp);
595 return pyobj;
596 }
597
598 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
599
600 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
601 return 1;
602 }
603
604 static PyObject *_wrap_wxCYAN_BRUSH_get() {
605 PyObject * pyobj;
606 char ptemp[128];
607
608 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
609 pyobj = PyString_FromString(ptemp);
610 return pyobj;
611 }
612
613 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
614
615 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
616 return 1;
617 }
618
619 static PyObject *_wrap_wxRED_BRUSH_get() {
620 PyObject * pyobj;
621 char ptemp[128];
622
623 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
624 pyobj = PyString_FromString(ptemp);
625 return pyobj;
626 }
627
628 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
629
630 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
631 return 1;
632 }
633
634 static PyObject *_wrap_wxGREY_BRUSH_get() {
635 PyObject * pyobj;
636 char ptemp[128];
637
638 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
639 pyobj = PyString_FromString(ptemp);
640 return pyobj;
641 }
642
643 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
644
645 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
646 return 1;
647 }
648
649 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
650 PyObject * pyobj;
651 char ptemp[128];
652
653 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
654 pyobj = PyString_FromString(ptemp);
655 return pyobj;
656 }
657
658 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
659
660 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
661 return 1;
662 }
663
664 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
665 PyObject * pyobj;
666 char ptemp[128];
667
668 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
669 pyobj = PyString_FromString(ptemp);
670 return pyobj;
671 }
672
673 static int _wrap_wxBLACK_set(PyObject *val) {
674
675 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
676 return 1;
677 }
678
679 static PyObject *_wrap_wxBLACK_get() {
680 PyObject * pyobj;
681 char ptemp[128];
682
683 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
684 pyobj = PyString_FromString(ptemp);
685 return pyobj;
686 }
687
688 static int _wrap_wxWHITE_set(PyObject *val) {
689
690 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
691 return 1;
692 }
693
694 static PyObject *_wrap_wxWHITE_get() {
695 PyObject * pyobj;
696 char ptemp[128];
697
698 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
699 pyobj = PyString_FromString(ptemp);
700 return pyobj;
701 }
702
703 static int _wrap_wxRED_set(PyObject *val) {
704
705 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
706 return 1;
707 }
708
709 static PyObject *_wrap_wxRED_get() {
710 PyObject * pyobj;
711 char ptemp[128];
712
713 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
714 pyobj = PyString_FromString(ptemp);
715 return pyobj;
716 }
717
718 static int _wrap_wxBLUE_set(PyObject *val) {
719
720 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
721 return 1;
722 }
723
724 static PyObject *_wrap_wxBLUE_get() {
725 PyObject * pyobj;
726 char ptemp[128];
727
728 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
729 pyobj = PyString_FromString(ptemp);
730 return pyobj;
731 }
732
733 static int _wrap_wxGREEN_set(PyObject *val) {
734
735 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
736 return 1;
737 }
738
739 static PyObject *_wrap_wxGREEN_get() {
740 PyObject * pyobj;
741 char ptemp[128];
742
743 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
744 pyobj = PyString_FromString(ptemp);
745 return pyobj;
746 }
747
748 static int _wrap_wxCYAN_set(PyObject *val) {
749
750 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
751 return 1;
752 }
753
754 static PyObject *_wrap_wxCYAN_get() {
755 PyObject * pyobj;
756 char ptemp[128];
757
758 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
759 pyobj = PyString_FromString(ptemp);
760 return pyobj;
761 }
762
763 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
764
765 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
766 return 1;
767 }
768
769 static PyObject *_wrap_wxLIGHT_GREY_get() {
770 PyObject * pyobj;
771 char ptemp[128];
772
773 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
774 pyobj = PyString_FromString(ptemp);
775 return pyobj;
776 }
777
778 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
779
780 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
781 return 1;
782 }
783
784 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
785 PyObject * pyobj;
786 char ptemp[128];
787
788 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
789 pyobj = PyString_FromString(ptemp);
790 return pyobj;
791 }
792
793 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
794
795 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
796 return 1;
797 }
798
799 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
800 PyObject * pyobj;
801 char ptemp[128];
802
803 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
804 pyobj = PyString_FromString(ptemp);
805 return pyobj;
806 }
807
808 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
809
810 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
811 return 1;
812 }
813
814 static PyObject *_wrap_wxCROSS_CURSOR_get() {
815 PyObject * pyobj;
816 char ptemp[128];
817
818 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
819 pyobj = PyString_FromString(ptemp);
820 return pyobj;
821 }
822
823 static int _wrap_wxNullBitmap_set(PyObject *val) {
824
825 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
826 return 1;
827 }
828
829 static PyObject *_wrap_wxNullBitmap_get() {
830 PyObject * pyobj;
831 char ptemp[128];
832
833 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
834 pyobj = PyString_FromString(ptemp);
835 return pyobj;
836 }
837
838 static int _wrap_wxNullIcon_set(PyObject *val) {
839
840 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
841 return 1;
842 }
843
844 static PyObject *_wrap_wxNullIcon_get() {
845 PyObject * pyobj;
846 char ptemp[128];
847
848 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
849 pyobj = PyString_FromString(ptemp);
850 return pyobj;
851 }
852
853 static int _wrap_wxNullCursor_set(PyObject *val) {
854
855 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
856 return 1;
857 }
858
859 static PyObject *_wrap_wxNullCursor_get() {
860 PyObject * pyobj;
861 char ptemp[128];
862
863 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
864 pyobj = PyString_FromString(ptemp);
865 return pyobj;
866 }
867
868 static int _wrap_wxNullPen_set(PyObject *val) {
869
870 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
871 return 1;
872 }
873
874 static PyObject *_wrap_wxNullPen_get() {
875 PyObject * pyobj;
876 char ptemp[128];
877
878 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
879 pyobj = PyString_FromString(ptemp);
880 return pyobj;
881 }
882
883 static int _wrap_wxNullBrush_set(PyObject *val) {
884
885 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
886 return 1;
887 }
888
889 static PyObject *_wrap_wxNullBrush_get() {
890 PyObject * pyobj;
891 char ptemp[128];
892
893 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
894 pyobj = PyString_FromString(ptemp);
895 return pyobj;
896 }
897
898 static int _wrap_wxNullPalette_set(PyObject *val) {
899
900 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
901 return 1;
902 }
903
904 static PyObject *_wrap_wxNullPalette_get() {
905 PyObject * pyobj;
906 char ptemp[128];
907
908 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
909 pyobj = PyString_FromString(ptemp);
910 return pyobj;
911 }
912
913 static int _wrap_wxNullFont_set(PyObject *val) {
914
915 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
916 return 1;
917 }
918
919 static PyObject *_wrap_wxNullFont_get() {
920 PyObject * pyobj;
921 char ptemp[128];
922
923 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
924 pyobj = PyString_FromString(ptemp);
925 return pyobj;
926 }
927
928 static int _wrap_wxNullColour_set(PyObject *val) {
929
930 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
931 return 1;
932 }
933
934 static PyObject *_wrap_wxNullColour_get() {
935 PyObject * pyobj;
936 char ptemp[128];
937
938 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
939 pyobj = PyString_FromString(ptemp);
940 return pyobj;
941 }
942
943 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
944 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args) {
945 PyObject * _resultobj;
946 wxBitmap * _result;
947 wxString * _arg0;
948 long _arg1;
949 PyObject * _obj0 = 0;
950 char _ptemp[128];
951
952 self = self;
953 if(!PyArg_ParseTuple(args,"Ol:new_wxBitmap",&_obj0,&_arg1))
954 return NULL;
955 {
956 if (!PyString_Check(_obj0)) {
957 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
958 return NULL;
959 }
960 _arg0 = new wxString(PyString_AsString(_obj0));
961 }
962 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
963 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
964 _resultobj = Py_BuildValue("s",_ptemp);
965 {
966 if (_obj0)
967 delete _arg0;
968 }
969 return _resultobj;
970 }
971
972 #define delete_wxBitmap(_swigobj) (delete _swigobj)
973 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args) {
974 PyObject * _resultobj;
975 wxBitmap * _arg0;
976 char * _argc0 = 0;
977
978 self = self;
979 if(!PyArg_ParseTuple(args,"s:delete_wxBitmap",&_argc0))
980 return NULL;
981 if (_argc0) {
982 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
984 return NULL;
985 }
986 }
987 delete_wxBitmap(_arg0);
988 Py_INCREF(Py_None);
989 _resultobj = Py_None;
990 return _resultobj;
991 }
992
993 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
994 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args) {
995 PyObject * _resultobj;
996 int _result;
997 wxBitmap * _arg0;
998 char * _argc0 = 0;
999
1000 self = self;
1001 if(!PyArg_ParseTuple(args,"s:wxBitmap_GetDepth",&_argc0))
1002 return NULL;
1003 if (_argc0) {
1004 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1006 return NULL;
1007 }
1008 }
1009 _result = (int )wxBitmap_GetDepth(_arg0);
1010 _resultobj = Py_BuildValue("i",_result);
1011 return _resultobj;
1012 }
1013
1014 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1015 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args) {
1016 PyObject * _resultobj;
1017 int _result;
1018 wxBitmap * _arg0;
1019 char * _argc0 = 0;
1020
1021 self = self;
1022 if(!PyArg_ParseTuple(args,"s:wxBitmap_GetHeight",&_argc0))
1023 return NULL;
1024 if (_argc0) {
1025 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1027 return NULL;
1028 }
1029 }
1030 _result = (int )wxBitmap_GetHeight(_arg0);
1031 _resultobj = Py_BuildValue("i",_result);
1032 return _resultobj;
1033 }
1034
1035 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1036 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args) {
1037 PyObject * _resultobj;
1038 wxPalette * _result;
1039 wxBitmap * _arg0;
1040 char * _argc0 = 0;
1041 char _ptemp[128];
1042
1043 self = self;
1044 if(!PyArg_ParseTuple(args,"s:wxBitmap_GetPalette",&_argc0))
1045 return NULL;
1046 if (_argc0) {
1047 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1049 return NULL;
1050 }
1051 }
1052 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1053 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1054 _resultobj = Py_BuildValue("s",_ptemp);
1055 return _resultobj;
1056 }
1057
1058 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1059 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args) {
1060 PyObject * _resultobj;
1061 wxMask * _result;
1062 wxBitmap * _arg0;
1063 char * _argc0 = 0;
1064 char _ptemp[128];
1065
1066 self = self;
1067 if(!PyArg_ParseTuple(args,"s:wxBitmap_GetMask",&_argc0))
1068 return NULL;
1069 if (_argc0) {
1070 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1072 return NULL;
1073 }
1074 }
1075 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1076 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1077 _resultobj = Py_BuildValue("s",_ptemp);
1078 return _resultobj;
1079 }
1080
1081 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1082 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args) {
1083 PyObject * _resultobj;
1084 int _result;
1085 wxBitmap * _arg0;
1086 char * _argc0 = 0;
1087
1088 self = self;
1089 if(!PyArg_ParseTuple(args,"s:wxBitmap_GetWidth",&_argc0))
1090 return NULL;
1091 if (_argc0) {
1092 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1094 return NULL;
1095 }
1096 }
1097 _result = (int )wxBitmap_GetWidth(_arg0);
1098 _resultobj = Py_BuildValue("i",_result);
1099 return _resultobj;
1100 }
1101
1102 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1103 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args) {
1104 PyObject * _resultobj;
1105 bool _result;
1106 wxBitmap * _arg0;
1107 wxString * _arg1;
1108 long _arg2;
1109 char * _argc0 = 0;
1110 PyObject * _obj1 = 0;
1111
1112 self = self;
1113 if(!PyArg_ParseTuple(args,"sOl:wxBitmap_LoadFile",&_argc0,&_obj1,&_arg2))
1114 return NULL;
1115 if (_argc0) {
1116 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1118 return NULL;
1119 }
1120 }
1121 {
1122 if (!PyString_Check(_obj1)) {
1123 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1124 return NULL;
1125 }
1126 _arg1 = new wxString(PyString_AsString(_obj1));
1127 }
1128 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1129 _resultobj = Py_BuildValue("i",_result);
1130 {
1131 if (_obj1)
1132 delete _arg1;
1133 }
1134 return _resultobj;
1135 }
1136
1137 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1138 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args) {
1139 PyObject * _resultobj;
1140 bool _result;
1141 wxBitmap * _arg0;
1142 char * _argc0 = 0;
1143
1144 self = self;
1145 if(!PyArg_ParseTuple(args,"s:wxBitmap_Ok",&_argc0))
1146 return NULL;
1147 if (_argc0) {
1148 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1150 return NULL;
1151 }
1152 }
1153 _result = (bool )wxBitmap_Ok(_arg0);
1154 _resultobj = Py_BuildValue("i",_result);
1155 return _resultobj;
1156 }
1157
1158 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1159 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args) {
1160 PyObject * _resultobj;
1161 bool _result;
1162 wxBitmap * _arg0;
1163 wxString * _arg1;
1164 int _arg2;
1165 wxPalette * _arg3 = NULL;
1166 char * _argc0 = 0;
1167 PyObject * _obj1 = 0;
1168 char * _argc3 = 0;
1169
1170 self = self;
1171 if(!PyArg_ParseTuple(args,"sOi|s:wxBitmap_SaveFile",&_argc0,&_obj1,&_arg2,&_argc3))
1172 return NULL;
1173 if (_argc0) {
1174 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1176 return NULL;
1177 }
1178 }
1179 {
1180 if (!PyString_Check(_obj1)) {
1181 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1182 return NULL;
1183 }
1184 _arg1 = new wxString(PyString_AsString(_obj1));
1185 }
1186 if (_argc3) {
1187 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPalette_p")) {
1188 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1189 return NULL;
1190 }
1191 }
1192 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1193 _resultobj = Py_BuildValue("i",_result);
1194 {
1195 if (_obj1)
1196 delete _arg1;
1197 }
1198 return _resultobj;
1199 }
1200
1201 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1202 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args) {
1203 PyObject * _resultobj;
1204 wxBitmap * _arg0;
1205 int _arg1;
1206 char * _argc0 = 0;
1207
1208 self = self;
1209 if(!PyArg_ParseTuple(args,"si:wxBitmap_SetDepth",&_argc0,&_arg1))
1210 return NULL;
1211 if (_argc0) {
1212 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1214 return NULL;
1215 }
1216 }
1217 wxBitmap_SetDepth(_arg0,_arg1);
1218 Py_INCREF(Py_None);
1219 _resultobj = Py_None;
1220 return _resultobj;
1221 }
1222
1223 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1224 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args) {
1225 PyObject * _resultobj;
1226 wxBitmap * _arg0;
1227 int _arg1;
1228 char * _argc0 = 0;
1229
1230 self = self;
1231 if(!PyArg_ParseTuple(args,"si:wxBitmap_SetHeight",&_argc0,&_arg1))
1232 return NULL;
1233 if (_argc0) {
1234 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1236 return NULL;
1237 }
1238 }
1239 wxBitmap_SetHeight(_arg0,_arg1);
1240 Py_INCREF(Py_None);
1241 _resultobj = Py_None;
1242 return _resultobj;
1243 }
1244
1245 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1246 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args) {
1247 PyObject * _resultobj;
1248 wxBitmap * _arg0;
1249 wxMask * _arg1;
1250 char * _argc0 = 0;
1251 char * _argc1 = 0;
1252
1253 self = self;
1254 if(!PyArg_ParseTuple(args,"ss:wxBitmap_SetMask",&_argc0,&_argc1))
1255 return NULL;
1256 if (_argc0) {
1257 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1259 return NULL;
1260 }
1261 }
1262 if (_argc1) {
1263 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMask_p")) {
1264 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1265 return NULL;
1266 }
1267 }
1268 wxBitmap_SetMask(_arg0,_arg1);
1269 Py_INCREF(Py_None);
1270 _resultobj = Py_None;
1271 return _resultobj;
1272 }
1273
1274 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1275 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args) {
1276 PyObject * _resultobj;
1277 wxBitmap * _arg0;
1278 int _arg1;
1279 char * _argc0 = 0;
1280
1281 self = self;
1282 if(!PyArg_ParseTuple(args,"si:wxBitmap_SetWidth",&_argc0,&_arg1))
1283 return NULL;
1284 if (_argc0) {
1285 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1287 return NULL;
1288 }
1289 }
1290 wxBitmap_SetWidth(_arg0,_arg1);
1291 Py_INCREF(Py_None);
1292 _resultobj = Py_None;
1293 return _resultobj;
1294 }
1295
1296 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1297 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args) {
1298 PyObject * _resultobj;
1299 wxMask * _result;
1300 wxBitmap * _arg0;
1301 char * _argc0 = 0;
1302 char _ptemp[128];
1303
1304 self = self;
1305 if(!PyArg_ParseTuple(args,"s:new_wxMask",&_argc0))
1306 return NULL;
1307 if (_argc0) {
1308 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) {
1309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1310 return NULL;
1311 }
1312 }
1313 _result = (wxMask *)new_wxMask(*_arg0);
1314 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1315 _resultobj = Py_BuildValue("s",_ptemp);
1316 return _resultobj;
1317 }
1318
1319 #define delete_wxMask(_swigobj) (delete _swigobj)
1320 static PyObject *_wrap_delete_wxMask(PyObject *self, PyObject *args) {
1321 PyObject * _resultobj;
1322 wxMask * _arg0;
1323 char * _argc0 = 0;
1324
1325 self = self;
1326 if(!PyArg_ParseTuple(args,"s:delete_wxMask",&_argc0))
1327 return NULL;
1328 if (_argc0) {
1329 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMask_p")) {
1330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMask. Expected _wxMask_p.");
1331 return NULL;
1332 }
1333 }
1334 delete_wxMask(_arg0);
1335 Py_INCREF(Py_None);
1336 _resultobj = Py_None;
1337 return _resultobj;
1338 }
1339
1340 static void *SwigwxIconTowxBitmap(void *ptr) {
1341 wxIcon *src;
1342 wxBitmap *dest;
1343 src = (wxIcon *) ptr;
1344 dest = (wxBitmap *) src;
1345 return (void *) dest;
1346 }
1347
1348 #define delete_wxIcon(_swigobj) (delete _swigobj)
1349 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args) {
1350 PyObject * _resultobj;
1351 wxIcon * _arg0;
1352 char * _argc0 = 0;
1353
1354 self = self;
1355 if(!PyArg_ParseTuple(args,"s:delete_wxIcon",&_argc0))
1356 return NULL;
1357 if (_argc0) {
1358 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1360 return NULL;
1361 }
1362 }
1363 delete_wxIcon(_arg0);
1364 Py_INCREF(Py_None);
1365 _resultobj = Py_None;
1366 return _resultobj;
1367 }
1368
1369 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
1370 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args) {
1371 PyObject * _resultobj;
1372 int _result;
1373 wxIcon * _arg0;
1374 char * _argc0 = 0;
1375
1376 self = self;
1377 if(!PyArg_ParseTuple(args,"s:wxIcon_GetDepth",&_argc0))
1378 return NULL;
1379 if (_argc0) {
1380 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
1382 return NULL;
1383 }
1384 }
1385 _result = (int )wxIcon_GetDepth(_arg0);
1386 _resultobj = Py_BuildValue("i",_result);
1387 return _resultobj;
1388 }
1389
1390 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
1391 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args) {
1392 PyObject * _resultobj;
1393 int _result;
1394 wxIcon * _arg0;
1395 char * _argc0 = 0;
1396
1397 self = self;
1398 if(!PyArg_ParseTuple(args,"s:wxIcon_GetHeight",&_argc0))
1399 return NULL;
1400 if (_argc0) {
1401 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
1403 return NULL;
1404 }
1405 }
1406 _result = (int )wxIcon_GetHeight(_arg0);
1407 _resultobj = Py_BuildValue("i",_result);
1408 return _resultobj;
1409 }
1410
1411 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
1412 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args) {
1413 PyObject * _resultobj;
1414 int _result;
1415 wxIcon * _arg0;
1416 char * _argc0 = 0;
1417
1418 self = self;
1419 if(!PyArg_ParseTuple(args,"s:wxIcon_GetWidth",&_argc0))
1420 return NULL;
1421 if (_argc0) {
1422 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
1424 return NULL;
1425 }
1426 }
1427 _result = (int )wxIcon_GetWidth(_arg0);
1428 _resultobj = Py_BuildValue("i",_result);
1429 return _resultobj;
1430 }
1431
1432 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1433 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args) {
1434 PyObject * _resultobj;
1435 bool _result;
1436 wxIcon * _arg0;
1437 wxString * _arg1;
1438 long _arg2;
1439 char * _argc0 = 0;
1440 PyObject * _obj1 = 0;
1441
1442 self = self;
1443 if(!PyArg_ParseTuple(args,"sOl:wxIcon_LoadFile",&_argc0,&_obj1,&_arg2))
1444 return NULL;
1445 if (_argc0) {
1446 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1448 return NULL;
1449 }
1450 }
1451 {
1452 if (!PyString_Check(_obj1)) {
1453 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1454 return NULL;
1455 }
1456 _arg1 = new wxString(PyString_AsString(_obj1));
1457 }
1458 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
1459 _resultobj = Py_BuildValue("i",_result);
1460 {
1461 if (_obj1)
1462 delete _arg1;
1463 }
1464 return _resultobj;
1465 }
1466
1467 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1468 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args) {
1469 PyObject * _resultobj;
1470 bool _result;
1471 wxIcon * _arg0;
1472 char * _argc0 = 0;
1473
1474 self = self;
1475 if(!PyArg_ParseTuple(args,"s:wxIcon_Ok",&_argc0))
1476 return NULL;
1477 if (_argc0) {
1478 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
1480 return NULL;
1481 }
1482 }
1483 _result = (bool )wxIcon_Ok(_arg0);
1484 _resultobj = Py_BuildValue("i",_result);
1485 return _resultobj;
1486 }
1487
1488 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1489 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args) {
1490 PyObject * _resultobj;
1491 wxIcon * _arg0;
1492 int _arg1;
1493 char * _argc0 = 0;
1494
1495 self = self;
1496 if(!PyArg_ParseTuple(args,"si:wxIcon_SetDepth",&_argc0,&_arg1))
1497 return NULL;
1498 if (_argc0) {
1499 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
1501 return NULL;
1502 }
1503 }
1504 wxIcon_SetDepth(_arg0,_arg1);
1505 Py_INCREF(Py_None);
1506 _resultobj = Py_None;
1507 return _resultobj;
1508 }
1509
1510 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1511 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args) {
1512 PyObject * _resultobj;
1513 wxIcon * _arg0;
1514 int _arg1;
1515 char * _argc0 = 0;
1516
1517 self = self;
1518 if(!PyArg_ParseTuple(args,"si:wxIcon_SetHeight",&_argc0,&_arg1))
1519 return NULL;
1520 if (_argc0) {
1521 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
1523 return NULL;
1524 }
1525 }
1526 wxIcon_SetHeight(_arg0,_arg1);
1527 Py_INCREF(Py_None);
1528 _resultobj = Py_None;
1529 return _resultobj;
1530 }
1531
1532 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1533 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args) {
1534 PyObject * _resultobj;
1535 wxIcon * _arg0;
1536 int _arg1;
1537 char * _argc0 = 0;
1538
1539 self = self;
1540 if(!PyArg_ParseTuple(args,"si:wxIcon_SetWidth",&_argc0,&_arg1))
1541 return NULL;
1542 if (_argc0) {
1543 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxIcon_p")) {
1544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
1545 return NULL;
1546 }
1547 }
1548 wxIcon_SetWidth(_arg0,_arg1);
1549 Py_INCREF(Py_None);
1550 _resultobj = Py_None;
1551 return _resultobj;
1552 }
1553
1554 static void *SwigwxCursorTowxBitmap(void *ptr) {
1555 wxCursor *src;
1556 wxBitmap *dest;
1557 src = (wxCursor *) ptr;
1558 dest = (wxBitmap *) src;
1559 return (void *) dest;
1560 }
1561
1562 #define delete_wxCursor(_swigobj) (delete _swigobj)
1563 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args) {
1564 PyObject * _resultobj;
1565 wxCursor * _arg0;
1566 char * _argc0 = 0;
1567
1568 self = self;
1569 if(!PyArg_ParseTuple(args,"s:delete_wxCursor",&_argc0))
1570 return NULL;
1571 if (_argc0) {
1572 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxCursor_p")) {
1573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
1574 return NULL;
1575 }
1576 }
1577 delete_wxCursor(_arg0);
1578 Py_INCREF(Py_None);
1579 _resultobj = Py_None;
1580 return _resultobj;
1581 }
1582
1583 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
1584 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args) {
1585 PyObject * _resultobj;
1586 bool _result;
1587 wxCursor * _arg0;
1588 char * _argc0 = 0;
1589
1590 self = self;
1591 if(!PyArg_ParseTuple(args,"s:wxCursor_Ok",&_argc0))
1592 return NULL;
1593 if (_argc0) {
1594 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxCursor_p")) {
1595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
1596 return NULL;
1597 }
1598 }
1599 _result = (bool )wxCursor_Ok(_arg0);
1600 _resultobj = Py_BuildValue("i",_result);
1601 return _resultobj;
1602 }
1603
1604 static wxFont *new_wxFont(int pointSize,int family,int style,int weight,int underline,char *faceName) {
1605
1606 return wxTheFontList->FindOrCreateFont(pointSize, family, style, weight,
1607 underline, faceName);
1608 }
1609
1610 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args) {
1611 PyObject * _resultobj;
1612 wxFont * _result;
1613 int _arg0;
1614 int _arg1;
1615 int _arg2;
1616 int _arg3;
1617 int _arg4 = (0);
1618 char * _arg5 = "";
1619 char _ptemp[128];
1620
1621 self = self;
1622 if(!PyArg_ParseTuple(args,"iiii|is:new_wxFont",&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
1623 return NULL;
1624 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1625 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1626 _resultobj = Py_BuildValue("s",_ptemp);
1627 return _resultobj;
1628 }
1629
1630 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
1631 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args) {
1632 PyObject * _resultobj;
1633 wxString * _result;
1634 wxFont * _arg0;
1635 char * _argc0 = 0;
1636
1637 self = self;
1638 if(!PyArg_ParseTuple(args,"s:wxFont_GetFaceName",&_argc0))
1639 return NULL;
1640 if (_argc0) {
1641 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
1643 return NULL;
1644 }
1645 }
1646 _result = new wxString (wxFont_GetFaceName(_arg0));
1647 {
1648 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1649 }
1650 {
1651 delete _result;
1652 }
1653 return _resultobj;
1654 }
1655
1656 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
1657 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args) {
1658 PyObject * _resultobj;
1659 int _result;
1660 wxFont * _arg0;
1661 char * _argc0 = 0;
1662
1663 self = self;
1664 if(!PyArg_ParseTuple(args,"s:wxFont_GetFamily",&_argc0))
1665 return NULL;
1666 if (_argc0) {
1667 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
1669 return NULL;
1670 }
1671 }
1672 _result = (int )wxFont_GetFamily(_arg0);
1673 _resultobj = Py_BuildValue("i",_result);
1674 return _resultobj;
1675 }
1676
1677 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
1678 static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args) {
1679 PyObject * _resultobj;
1680 int _result;
1681 wxFont * _arg0;
1682 char * _argc0 = 0;
1683
1684 self = self;
1685 if(!PyArg_ParseTuple(args,"s:wxFont_GetFontId",&_argc0))
1686 return NULL;
1687 if (_argc0) {
1688 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
1690 return NULL;
1691 }
1692 }
1693 _result = (int )wxFont_GetFontId(_arg0);
1694 _resultobj = Py_BuildValue("i",_result);
1695 return _resultobj;
1696 }
1697
1698 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
1699 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args) {
1700 PyObject * _resultobj;
1701 int _result;
1702 wxFont * _arg0;
1703 char * _argc0 = 0;
1704
1705 self = self;
1706 if(!PyArg_ParseTuple(args,"s:wxFont_GetPointSize",&_argc0))
1707 return NULL;
1708 if (_argc0) {
1709 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
1711 return NULL;
1712 }
1713 }
1714 _result = (int )wxFont_GetPointSize(_arg0);
1715 _resultobj = Py_BuildValue("i",_result);
1716 return _resultobj;
1717 }
1718
1719 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
1720 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args) {
1721 PyObject * _resultobj;
1722 int _result;
1723 wxFont * _arg0;
1724 char * _argc0 = 0;
1725
1726 self = self;
1727 if(!PyArg_ParseTuple(args,"s:wxFont_GetStyle",&_argc0))
1728 return NULL;
1729 if (_argc0) {
1730 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
1732 return NULL;
1733 }
1734 }
1735 _result = (int )wxFont_GetStyle(_arg0);
1736 _resultobj = Py_BuildValue("i",_result);
1737 return _resultobj;
1738 }
1739
1740 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
1741 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args) {
1742 PyObject * _resultobj;
1743 bool _result;
1744 wxFont * _arg0;
1745 char * _argc0 = 0;
1746
1747 self = self;
1748 if(!PyArg_ParseTuple(args,"s:wxFont_GetUnderlined",&_argc0))
1749 return NULL;
1750 if (_argc0) {
1751 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
1753 return NULL;
1754 }
1755 }
1756 _result = (bool )wxFont_GetUnderlined(_arg0);
1757 _resultobj = Py_BuildValue("i",_result);
1758 return _resultobj;
1759 }
1760
1761 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
1762 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args) {
1763 PyObject * _resultobj;
1764 int _result;
1765 wxFont * _arg0;
1766 char * _argc0 = 0;
1767
1768 self = self;
1769 if(!PyArg_ParseTuple(args,"s:wxFont_GetWeight",&_argc0))
1770 return NULL;
1771 if (_argc0) {
1772 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFont_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
1774 return NULL;
1775 }
1776 }
1777 _result = (int )wxFont_GetWeight(_arg0);
1778 _resultobj = Py_BuildValue("i",_result);
1779 return _resultobj;
1780 }
1781
1782 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
1783 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args) {
1784 PyObject * _resultobj;
1785 wxColour * _result;
1786 unsigned char _arg0 = 0;
1787 unsigned char _arg1 = 0;
1788 unsigned char _arg2 = 0;
1789 char _ptemp[128];
1790
1791 self = self;
1792 if(!PyArg_ParseTuple(args,"|bbb:new_wxColour",&_arg0,&_arg1,&_arg2))
1793 return NULL;
1794 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
1795 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
1796 _resultobj = Py_BuildValue("s",_ptemp);
1797 return _resultobj;
1798 }
1799
1800 #define delete_wxColour(_swigobj) (delete _swigobj)
1801 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args) {
1802 PyObject * _resultobj;
1803 wxColour * _arg0;
1804 char * _argc0 = 0;
1805
1806 self = self;
1807 if(!PyArg_ParseTuple(args,"s:delete_wxColour",&_argc0))
1808 return NULL;
1809 if (_argc0) {
1810 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColour. Expected _wxColour_p.");
1812 return NULL;
1813 }
1814 }
1815 delete_wxColour(_arg0);
1816 Py_INCREF(Py_None);
1817 _resultobj = Py_None;
1818 return _resultobj;
1819 }
1820
1821 #define wxColour_Red(_swigobj) (_swigobj->Red())
1822 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args) {
1823 PyObject * _resultobj;
1824 unsigned char _result;
1825 wxColour * _arg0;
1826 char * _argc0 = 0;
1827
1828 self = self;
1829 if(!PyArg_ParseTuple(args,"s:wxColour_Red",&_argc0))
1830 return NULL;
1831 if (_argc0) {
1832 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Red. Expected _wxColour_p.");
1834 return NULL;
1835 }
1836 }
1837 _result = (unsigned char )wxColour_Red(_arg0);
1838 _resultobj = Py_BuildValue("b",_result);
1839 return _resultobj;
1840 }
1841
1842 #define wxColour_Green(_swigobj) (_swigobj->Green())
1843 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args) {
1844 PyObject * _resultobj;
1845 unsigned char _result;
1846 wxColour * _arg0;
1847 char * _argc0 = 0;
1848
1849 self = self;
1850 if(!PyArg_ParseTuple(args,"s:wxColour_Green",&_argc0))
1851 return NULL;
1852 if (_argc0) {
1853 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Green. Expected _wxColour_p.");
1855 return NULL;
1856 }
1857 }
1858 _result = (unsigned char )wxColour_Green(_arg0);
1859 _resultobj = Py_BuildValue("b",_result);
1860 return _resultobj;
1861 }
1862
1863 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
1864 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args) {
1865 PyObject * _resultobj;
1866 unsigned char _result;
1867 wxColour * _arg0;
1868 char * _argc0 = 0;
1869
1870 self = self;
1871 if(!PyArg_ParseTuple(args,"s:wxColour_Blue",&_argc0))
1872 return NULL;
1873 if (_argc0) {
1874 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Blue. Expected _wxColour_p.");
1876 return NULL;
1877 }
1878 }
1879 _result = (unsigned char )wxColour_Blue(_arg0);
1880 _resultobj = Py_BuildValue("b",_result);
1881 return _resultobj;
1882 }
1883
1884 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
1885 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args) {
1886 PyObject * _resultobj;
1887 bool _result;
1888 wxColour * _arg0;
1889 char * _argc0 = 0;
1890
1891 self = self;
1892 if(!PyArg_ParseTuple(args,"s:wxColour_Ok",&_argc0))
1893 return NULL;
1894 if (_argc0) {
1895 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Ok. Expected _wxColour_p.");
1897 return NULL;
1898 }
1899 }
1900 _result = (bool )wxColour_Ok(_arg0);
1901 _resultobj = Py_BuildValue("i",_result);
1902 return _resultobj;
1903 }
1904
1905 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
1906 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args) {
1907 PyObject * _resultobj;
1908 wxColour * _arg0;
1909 unsigned char _arg1;
1910 unsigned char _arg2;
1911 unsigned char _arg3;
1912 char * _argc0 = 0;
1913
1914 self = self;
1915 if(!PyArg_ParseTuple(args,"sbbb:wxColour_Set",&_argc0,&_arg1,&_arg2,&_arg3))
1916 return NULL;
1917 if (_argc0) {
1918 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Set. Expected _wxColour_p.");
1920 return NULL;
1921 }
1922 }
1923 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
1924 Py_INCREF(Py_None);
1925 _resultobj = Py_None;
1926 return _resultobj;
1927 }
1928
1929 static PyObject * wxColour_Get(wxColour *self) {
1930 PyObject* rv = PyTuple_New(3);
1931 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
1932 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
1933 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
1934 return rv;
1935 }
1936 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args) {
1937 PyObject * _resultobj;
1938 PyObject * _result;
1939 wxColour * _arg0;
1940 char * _argc0 = 0;
1941
1942 self = self;
1943 if(!PyArg_ParseTuple(args,"s:wxColour_Get",&_argc0))
1944 return NULL;
1945 if (_argc0) {
1946 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColour_Get. Expected _wxColour_p.");
1948 return NULL;
1949 }
1950 }
1951 _result = (PyObject *)wxColour_Get(_arg0);
1952 {
1953 _resultobj = _result;
1954 }
1955 return _resultobj;
1956 }
1957
1958 static wxPen *new_wxPen(wxColour *colour,int width,int style) {
1959 return wxThePenList->FindOrCreatePen(*colour, width, style);
1960 }
1961
1962 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args) {
1963 PyObject * _resultobj;
1964 wxPen * _result;
1965 wxColour * _arg0;
1966 int _arg1 = 1;
1967 int _arg2 = (wxSOLID);
1968 char * _argc0 = 0;
1969 char _ptemp[128];
1970
1971 self = self;
1972 if(!PyArg_ParseTuple(args,"s|ii:new_wxPen",&_argc0,&_arg1,&_arg2))
1973 return NULL;
1974 if (_argc0) {
1975 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
1976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPen. Expected _wxColour_p.");
1977 return NULL;
1978 }
1979 }
1980 _result = (wxPen *)new_wxPen(_arg0,_arg1,_arg2);
1981 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
1982 _resultobj = Py_BuildValue("s",_ptemp);
1983 return _resultobj;
1984 }
1985
1986 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
1987 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args) {
1988 PyObject * _resultobj;
1989 int _result;
1990 wxPen * _arg0;
1991 char * _argc0 = 0;
1992
1993 self = self;
1994 if(!PyArg_ParseTuple(args,"s:wxPen_GetCap",&_argc0))
1995 return NULL;
1996 if (_argc0) {
1997 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
1999 return NULL;
2000 }
2001 }
2002 _result = (int )wxPen_GetCap(_arg0);
2003 _resultobj = Py_BuildValue("i",_result);
2004 return _resultobj;
2005 }
2006
2007 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
2008 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args) {
2009 PyObject * _resultobj;
2010 wxColour * _result;
2011 wxPen * _arg0;
2012 char * _argc0 = 0;
2013 char _ptemp[128];
2014
2015 self = self;
2016 if(!PyArg_ParseTuple(args,"s:wxPen_GetColour",&_argc0))
2017 return NULL;
2018 if (_argc0) {
2019 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
2021 return NULL;
2022 }
2023 }
2024 wxColour & _result_ref = wxPen_GetColour(_arg0);
2025 _result = (wxColour *) &_result_ref;
2026 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2027 _resultobj = Py_BuildValue("s",_ptemp);
2028 return _resultobj;
2029 }
2030
2031 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
2032 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args) {
2033 PyObject * _resultobj;
2034 int _result;
2035 wxPen * _arg0;
2036 char * _argc0 = 0;
2037
2038 self = self;
2039 if(!PyArg_ParseTuple(args,"s:wxPen_GetJoin",&_argc0))
2040 return NULL;
2041 if (_argc0) {
2042 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
2044 return NULL;
2045 }
2046 }
2047 _result = (int )wxPen_GetJoin(_arg0);
2048 _resultobj = Py_BuildValue("i",_result);
2049 return _resultobj;
2050 }
2051
2052 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
2053 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args) {
2054 PyObject * _resultobj;
2055 int _result;
2056 wxPen * _arg0;
2057 char * _argc0 = 0;
2058
2059 self = self;
2060 if(!PyArg_ParseTuple(args,"s:wxPen_GetStyle",&_argc0))
2061 return NULL;
2062 if (_argc0) {
2063 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
2065 return NULL;
2066 }
2067 }
2068 _result = (int )wxPen_GetStyle(_arg0);
2069 _resultobj = Py_BuildValue("i",_result);
2070 return _resultobj;
2071 }
2072
2073 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
2074 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args) {
2075 PyObject * _resultobj;
2076 int _result;
2077 wxPen * _arg0;
2078 char * _argc0 = 0;
2079
2080 self = self;
2081 if(!PyArg_ParseTuple(args,"s:wxPen_GetWidth",&_argc0))
2082 return NULL;
2083 if (_argc0) {
2084 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
2086 return NULL;
2087 }
2088 }
2089 _result = (int )wxPen_GetWidth(_arg0);
2090 _resultobj = Py_BuildValue("i",_result);
2091 return _resultobj;
2092 }
2093
2094 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
2095 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args) {
2096 PyObject * _resultobj;
2097 bool _result;
2098 wxPen * _arg0;
2099 char * _argc0 = 0;
2100
2101 self = self;
2102 if(!PyArg_ParseTuple(args,"s:wxPen_Ok",&_argc0))
2103 return NULL;
2104 if (_argc0) {
2105 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
2107 return NULL;
2108 }
2109 }
2110 _result = (bool )wxPen_Ok(_arg0);
2111 _resultobj = Py_BuildValue("i",_result);
2112 return _resultobj;
2113 }
2114
2115 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
2116 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args) {
2117 PyObject * _resultobj;
2118 wxPen * _arg0;
2119 int _arg1;
2120 char * _argc0 = 0;
2121
2122 self = self;
2123 if(!PyArg_ParseTuple(args,"si:wxPen_SetCap",&_argc0,&_arg1))
2124 return NULL;
2125 if (_argc0) {
2126 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
2128 return NULL;
2129 }
2130 }
2131 wxPen_SetCap(_arg0,_arg1);
2132 Py_INCREF(Py_None);
2133 _resultobj = Py_None;
2134 return _resultobj;
2135 }
2136
2137 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
2138 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args) {
2139 PyObject * _resultobj;
2140 wxPen * _arg0;
2141 wxColour * _arg1;
2142 char * _argc0 = 0;
2143 char * _argc1 = 0;
2144
2145 self = self;
2146 if(!PyArg_ParseTuple(args,"ss:wxPen_SetColour",&_argc0,&_argc1))
2147 return NULL;
2148 if (_argc0) {
2149 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
2151 return NULL;
2152 }
2153 }
2154 if (_argc1) {
2155 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) {
2156 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetColour. Expected _wxColour_p.");
2157 return NULL;
2158 }
2159 }
2160 wxPen_SetColour(_arg0,*_arg1);
2161 Py_INCREF(Py_None);
2162 _resultobj = Py_None;
2163 return _resultobj;
2164 }
2165
2166 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
2167 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args) {
2168 PyObject * _resultobj;
2169 wxPen * _arg0;
2170 int _arg1;
2171 char * _argc0 = 0;
2172
2173 self = self;
2174 if(!PyArg_ParseTuple(args,"si:wxPen_SetJoin",&_argc0,&_arg1))
2175 return NULL;
2176 if (_argc0) {
2177 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
2179 return NULL;
2180 }
2181 }
2182 wxPen_SetJoin(_arg0,_arg1);
2183 Py_INCREF(Py_None);
2184 _resultobj = Py_None;
2185 return _resultobj;
2186 }
2187
2188 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2189 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args) {
2190 PyObject * _resultobj;
2191 wxPen * _arg0;
2192 int _arg1;
2193 char * _argc0 = 0;
2194
2195 self = self;
2196 if(!PyArg_ParseTuple(args,"si:wxPen_SetStyle",&_argc0,&_arg1))
2197 return NULL;
2198 if (_argc0) {
2199 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
2201 return NULL;
2202 }
2203 }
2204 wxPen_SetStyle(_arg0,_arg1);
2205 Py_INCREF(Py_None);
2206 _resultobj = Py_None;
2207 return _resultobj;
2208 }
2209
2210 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2211 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args) {
2212 PyObject * _resultobj;
2213 wxPen * _arg0;
2214 int _arg1;
2215 char * _argc0 = 0;
2216
2217 self = self;
2218 if(!PyArg_ParseTuple(args,"si:wxPen_SetWidth",&_argc0,&_arg1))
2219 return NULL;
2220 if (_argc0) {
2221 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPen_p")) {
2222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
2223 return NULL;
2224 }
2225 }
2226 wxPen_SetWidth(_arg0,_arg1);
2227 Py_INCREF(Py_None);
2228 _resultobj = Py_None;
2229 return _resultobj;
2230 }
2231
2232 static wxBrush *new_wxBrush(wxColour *colour,int style) {
2233 return wxTheBrushList->FindOrCreateBrush(*colour, style);
2234 }
2235
2236 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args) {
2237 PyObject * _resultobj;
2238 wxBrush * _result;
2239 wxColour * _arg0;
2240 int _arg1 = (wxSOLID);
2241 char * _argc0 = 0;
2242 char _ptemp[128];
2243
2244 self = self;
2245 if(!PyArg_ParseTuple(args,"s|i:new_wxBrush",&_argc0,&_arg1))
2246 return NULL;
2247 if (_argc0) {
2248 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxColour_p")) {
2249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBrush. Expected _wxColour_p.");
2250 return NULL;
2251 }
2252 }
2253 _result = (wxBrush *)new_wxBrush(_arg0,_arg1);
2254 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
2255 _resultobj = Py_BuildValue("s",_ptemp);
2256 return _resultobj;
2257 }
2258
2259 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
2260 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args) {
2261 PyObject * _resultobj;
2262 wxColour * _result;
2263 wxBrush * _arg0;
2264 char * _argc0 = 0;
2265 char _ptemp[128];
2266
2267 self = self;
2268 if(!PyArg_ParseTuple(args,"s:wxBrush_GetColour",&_argc0))
2269 return NULL;
2270 if (_argc0) {
2271 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) {
2272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
2273 return NULL;
2274 }
2275 }
2276 wxColour & _result_ref = wxBrush_GetColour(_arg0);
2277 _result = (wxColour *) &_result_ref;
2278 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2279 _resultobj = Py_BuildValue("s",_ptemp);
2280 return _resultobj;
2281 }
2282
2283 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
2284 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args) {
2285 PyObject * _resultobj;
2286 wxBitmap * _result;
2287 wxBrush * _arg0;
2288 char * _argc0 = 0;
2289 char _ptemp[128];
2290
2291 self = self;
2292 if(!PyArg_ParseTuple(args,"s:wxBrush_GetStipple",&_argc0))
2293 return NULL;
2294 if (_argc0) {
2295 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) {
2296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
2297 return NULL;
2298 }
2299 }
2300 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
2301 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
2302 _resultobj = Py_BuildValue("s",_ptemp);
2303 return _resultobj;
2304 }
2305
2306 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
2307 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args) {
2308 PyObject * _resultobj;
2309 int _result;
2310 wxBrush * _arg0;
2311 char * _argc0 = 0;
2312
2313 self = self;
2314 if(!PyArg_ParseTuple(args,"s:wxBrush_GetStyle",&_argc0))
2315 return NULL;
2316 if (_argc0) {
2317 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) {
2318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
2319 return NULL;
2320 }
2321 }
2322 _result = (int )wxBrush_GetStyle(_arg0);
2323 _resultobj = Py_BuildValue("i",_result);
2324 return _resultobj;
2325 }
2326
2327 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
2328 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args) {
2329 PyObject * _resultobj;
2330 bool _result;
2331 wxBrush * _arg0;
2332 char * _argc0 = 0;
2333
2334 self = self;
2335 if(!PyArg_ParseTuple(args,"s:wxBrush_Ok",&_argc0))
2336 return NULL;
2337 if (_argc0) {
2338 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBrush_p")) {
2339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
2340 return NULL;
2341 }
2342 }
2343 _result = (bool )wxBrush_Ok(_arg0);
2344 _resultobj = Py_BuildValue("i",_result);
2345 return _resultobj;
2346 }
2347
2348 #define delete_wxDC(_swigobj) (delete _swigobj)
2349 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args) {
2350 PyObject * _resultobj;
2351 wxDC * _arg0;
2352 char * _argc0 = 0;
2353
2354 self = self;
2355 if(!PyArg_ParseTuple(args,"s:delete_wxDC",&_argc0))
2356 return NULL;
2357 if (_argc0) {
2358 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
2360 return NULL;
2361 }
2362 }
2363 delete_wxDC(_arg0);
2364 Py_INCREF(Py_None);
2365 _resultobj = Py_None;
2366 return _resultobj;
2367 }
2368
2369 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
2370 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args) {
2371 PyObject * _resultobj;
2372 wxDC * _arg0;
2373 char * _argc0 = 0;
2374
2375 self = self;
2376 if(!PyArg_ParseTuple(args,"s:wxDC_BeginDrawing",&_argc0))
2377 return NULL;
2378 if (_argc0) {
2379 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
2381 return NULL;
2382 }
2383 }
2384 wxDC_BeginDrawing(_arg0);
2385 Py_INCREF(Py_None);
2386 _resultobj = Py_None;
2387 return _resultobj;
2388 }
2389
2390 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
2391 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args) {
2392 PyObject * _resultobj;
2393 bool _result;
2394 wxDC * _arg0;
2395 long _arg1;
2396 long _arg2;
2397 long _arg3;
2398 long _arg4;
2399 wxDC * _arg5;
2400 long _arg6;
2401 long _arg7;
2402 long _arg8;
2403 char * _argc0 = 0;
2404 char * _argc5 = 0;
2405
2406 self = self;
2407 if(!PyArg_ParseTuple(args,"sllllslll:wxDC_Blit",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_argc5,&_arg6,&_arg7,&_arg8))
2408 return NULL;
2409 if (_argc0) {
2410 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
2412 return NULL;
2413 }
2414 }
2415 if (_argc5) {
2416 if (SWIG_GetPtr(_argc5,(void **) &_arg5,"_wxDC_p")) {
2417 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
2418 return NULL;
2419 }
2420 }
2421 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8);
2422 _resultobj = Py_BuildValue("i",_result);
2423 return _resultobj;
2424 }
2425
2426 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
2427 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args) {
2428 PyObject * _resultobj;
2429 wxDC * _arg0;
2430 char * _argc0 = 0;
2431
2432 self = self;
2433 if(!PyArg_ParseTuple(args,"s:wxDC_Clear",&_argc0))
2434 return NULL;
2435 if (_argc0) {
2436 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
2438 return NULL;
2439 }
2440 }
2441 wxDC_Clear(_arg0);
2442 Py_INCREF(Py_None);
2443 _resultobj = Py_None;
2444 return _resultobj;
2445 }
2446
2447 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
2448 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args) {
2449 PyObject * _resultobj;
2450 wxDC * _arg0;
2451 long _arg1;
2452 long _arg2;
2453 char * _argc0 = 0;
2454
2455 self = self;
2456 if(!PyArg_ParseTuple(args,"sll:wxDC_CrossHair",&_argc0,&_arg1,&_arg2))
2457 return NULL;
2458 if (_argc0) {
2459 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
2461 return NULL;
2462 }
2463 }
2464 wxDC_CrossHair(_arg0,_arg1,_arg2);
2465 Py_INCREF(Py_None);
2466 _resultobj = Py_None;
2467 return _resultobj;
2468 }
2469
2470 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
2471 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args) {
2472 PyObject * _resultobj;
2473 wxDC * _arg0;
2474 char * _argc0 = 0;
2475
2476 self = self;
2477 if(!PyArg_ParseTuple(args,"s:wxDC_DestroyClippingRegion",&_argc0))
2478 return NULL;
2479 if (_argc0) {
2480 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
2482 return NULL;
2483 }
2484 }
2485 wxDC_DestroyClippingRegion(_arg0);
2486 Py_INCREF(Py_None);
2487 _resultobj = Py_None;
2488 return _resultobj;
2489 }
2490
2491 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
2492 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args) {
2493 PyObject * _resultobj;
2494 long _result;
2495 wxDC * _arg0;
2496 long _arg1;
2497 char * _argc0 = 0;
2498
2499 self = self;
2500 if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalX",&_argc0,&_arg1))
2501 return NULL;
2502 if (_argc0) {
2503 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
2505 return NULL;
2506 }
2507 }
2508 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
2509 _resultobj = Py_BuildValue("l",_result);
2510 return _resultobj;
2511 }
2512
2513 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
2514 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args) {
2515 PyObject * _resultobj;
2516 long _result;
2517 wxDC * _arg0;
2518 long _arg1;
2519 char * _argc0 = 0;
2520
2521 self = self;
2522 if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalXRel",&_argc0,&_arg1))
2523 return NULL;
2524 if (_argc0) {
2525 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
2527 return NULL;
2528 }
2529 }
2530 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
2531 _resultobj = Py_BuildValue("l",_result);
2532 return _resultobj;
2533 }
2534
2535 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
2536 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args) {
2537 PyObject * _resultobj;
2538 long _result;
2539 wxDC * _arg0;
2540 long _arg1;
2541 char * _argc0 = 0;
2542
2543 self = self;
2544 if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalY",&_argc0,&_arg1))
2545 return NULL;
2546 if (_argc0) {
2547 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
2549 return NULL;
2550 }
2551 }
2552 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
2553 _resultobj = Py_BuildValue("l",_result);
2554 return _resultobj;
2555 }
2556
2557 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
2558 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args) {
2559 PyObject * _resultobj;
2560 long _result;
2561 wxDC * _arg0;
2562 long _arg1;
2563 char * _argc0 = 0;
2564
2565 self = self;
2566 if(!PyArg_ParseTuple(args,"sl:wxDC_DeviceToLogicalYRel",&_argc0,&_arg1))
2567 return NULL;
2568 if (_argc0) {
2569 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
2571 return NULL;
2572 }
2573 }
2574 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
2575 _resultobj = Py_BuildValue("l",_result);
2576 return _resultobj;
2577 }
2578
2579 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2580 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args) {
2581 PyObject * _resultobj;
2582 wxDC * _arg0;
2583 long _arg1;
2584 long _arg2;
2585 long _arg3;
2586 long _arg4;
2587 long _arg5;
2588 long _arg6;
2589 char * _argc0 = 0;
2590
2591 self = self;
2592 if(!PyArg_ParseTuple(args,"sllllll:wxDC_DrawArc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2593 return NULL;
2594 if (_argc0) {
2595 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
2597 return NULL;
2598 }
2599 }
2600 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2601 Py_INCREF(Py_None);
2602 _resultobj = Py_None;
2603 return _resultobj;
2604 }
2605
2606 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2607 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args) {
2608 PyObject * _resultobj;
2609 wxDC * _arg0;
2610 long _arg1;
2611 long _arg2;
2612 long _arg3;
2613 long _arg4;
2614 char * _argc0 = 0;
2615
2616 self = self;
2617 if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawEllipse",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
2618 return NULL;
2619 if (_argc0) {
2620 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
2622 return NULL;
2623 }
2624 }
2625 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
2626 Py_INCREF(Py_None);
2627 _resultobj = Py_None;
2628 return _resultobj;
2629 }
2630
2631 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2632 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args) {
2633 PyObject * _resultobj;
2634 wxDC * _arg0;
2635 long _arg1;
2636 long _arg2;
2637 long _arg3;
2638 long _arg4;
2639 long _arg5;
2640 long _arg6;
2641 char * _argc0 = 0;
2642
2643 self = self;
2644 if(!PyArg_ParseTuple(args,"sllllll:wxDC_DrawEllipticArc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2645 return NULL;
2646 if (_argc0) {
2647 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
2649 return NULL;
2650 }
2651 }
2652 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2653 Py_INCREF(Py_None);
2654 _resultobj = Py_None;
2655 return _resultobj;
2656 }
2657
2658 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
2659 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args) {
2660 PyObject * _resultobj;
2661 wxDC * _arg0;
2662 wxIcon * _arg1;
2663 long _arg2;
2664 long _arg3;
2665 char * _argc0 = 0;
2666 char * _argc1 = 0;
2667
2668 self = self;
2669 if(!PyArg_ParseTuple(args,"ssll:wxDC_DrawIcon",&_argc0,&_argc1,&_arg2,&_arg3))
2670 return NULL;
2671 if (_argc0) {
2672 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
2674 return NULL;
2675 }
2676 }
2677 if (_argc1) {
2678 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxIcon_p")) {
2679 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
2680 return NULL;
2681 }
2682 }
2683 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
2684 Py_INCREF(Py_None);
2685 _resultobj = Py_None;
2686 return _resultobj;
2687 }
2688
2689 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2690 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args) {
2691 PyObject * _resultobj;
2692 wxDC * _arg0;
2693 long _arg1;
2694 long _arg2;
2695 long _arg3;
2696 long _arg4;
2697 char * _argc0 = 0;
2698
2699 self = self;
2700 if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawLine",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
2701 return NULL;
2702 if (_argc0) {
2703 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
2705 return NULL;
2706 }
2707 }
2708 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
2709 Py_INCREF(Py_None);
2710 _resultobj = Py_None;
2711 return _resultobj;
2712 }
2713
2714 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2715 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args) {
2716 PyObject * _resultobj;
2717 wxDC * _arg0;
2718 int _arg1;
2719 wxPoint * _arg2;
2720 long _arg3 = 0;
2721 long _arg4 = 0;
2722 char * _argc0 = 0;
2723 PyObject * _obj2 = 0;
2724
2725 self = self;
2726 if(!PyArg_ParseTuple(args,"sO|ll:wxDC_DrawLines",&_argc0,&_obj2,&_arg3,&_arg4))
2727 return NULL;
2728 if (_argc0) {
2729 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
2731 return NULL;
2732 }
2733 }
2734 if (_obj2)
2735 {
2736 _arg2 = wxPoint_LIST_helper(_obj2);
2737 if (_arg2 == NULL) {
2738 return NULL;
2739 }
2740 }
2741 {
2742 _arg1 = PyList_Size(_obj2);
2743 }
2744 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
2745 Py_INCREF(Py_None);
2746 _resultobj = Py_None;
2747 {
2748 delete [] _arg2;
2749 }
2750 return _resultobj;
2751 }
2752
2753 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2754 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args) {
2755 PyObject * _resultobj;
2756 wxDC * _arg0;
2757 int _arg1;
2758 wxPoint * _arg2;
2759 long _arg3 = 0;
2760 long _arg4 = 0;
2761 int _arg5 = (wxODDEVEN_RULE);
2762 char * _argc0 = 0;
2763 PyObject * _obj2 = 0;
2764
2765 self = self;
2766 if(!PyArg_ParseTuple(args,"sO|lli:wxDC_DrawPolygon",&_argc0,&_obj2,&_arg3,&_arg4,&_arg5))
2767 return NULL;
2768 if (_argc0) {
2769 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
2771 return NULL;
2772 }
2773 }
2774 if (_obj2)
2775 {
2776 _arg2 = wxPoint_LIST_helper(_obj2);
2777 if (_arg2 == NULL) {
2778 return NULL;
2779 }
2780 }
2781 {
2782 _arg1 = PyList_Size(_obj2);
2783 }
2784 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2785 Py_INCREF(Py_None);
2786 _resultobj = Py_None;
2787 {
2788 delete [] _arg2;
2789 }
2790 return _resultobj;
2791 }
2792
2793 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
2794 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args) {
2795 PyObject * _resultobj;
2796 wxDC * _arg0;
2797 long _arg1;
2798 long _arg2;
2799 char * _argc0 = 0;
2800
2801 self = self;
2802 if(!PyArg_ParseTuple(args,"sll:wxDC_DrawPoint",&_argc0,&_arg1,&_arg2))
2803 return NULL;
2804 if (_argc0) {
2805 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
2807 return NULL;
2808 }
2809 }
2810 wxDC_DrawPoint(_arg0,_arg1,_arg2);
2811 Py_INCREF(Py_None);
2812 _resultobj = Py_None;
2813 return _resultobj;
2814 }
2815
2816 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2817 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args) {
2818 PyObject * _resultobj;
2819 wxDC * _arg0;
2820 long _arg1;
2821 long _arg2;
2822 long _arg3;
2823 long _arg4;
2824 char * _argc0 = 0;
2825
2826 self = self;
2827 if(!PyArg_ParseTuple(args,"sllll:wxDC_DrawRectangle",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
2828 return NULL;
2829 if (_argc0) {
2830 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
2832 return NULL;
2833 }
2834 }
2835 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
2836 Py_INCREF(Py_None);
2837 _resultobj = Py_None;
2838 return _resultobj;
2839 }
2840
2841 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2842 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args) {
2843 PyObject * _resultobj;
2844 wxDC * _arg0;
2845 long _arg1;
2846 long _arg2;
2847 long _arg3;
2848 long _arg4;
2849 long _arg5 = 20;
2850 char * _argc0 = 0;
2851
2852 self = self;
2853 if(!PyArg_ParseTuple(args,"sllll|l:wxDC_DrawRoundedRectangle",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
2854 return NULL;
2855 if (_argc0) {
2856 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
2858 return NULL;
2859 }
2860 }
2861 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2862 Py_INCREF(Py_None);
2863 _resultobj = Py_None;
2864 return _resultobj;
2865 }
2866
2867 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
2868 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args) {
2869 PyObject * _resultobj;
2870 wxDC * _arg0;
2871 int _arg1;
2872 wxPoint * _arg2;
2873 char * _argc0 = 0;
2874 PyObject * _obj2 = 0;
2875
2876 self = self;
2877 if(!PyArg_ParseTuple(args,"sO:wxDC_DrawSpline",&_argc0,&_obj2))
2878 return NULL;
2879 if (_argc0) {
2880 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
2882 return NULL;
2883 }
2884 }
2885 if (_obj2)
2886 {
2887 _arg2 = wxPoint_LIST_helper(_obj2);
2888 if (_arg2 == NULL) {
2889 return NULL;
2890 }
2891 }
2892 {
2893 _arg1 = PyList_Size(_obj2);
2894 }
2895 wxDC_DrawSpline(_arg0,_arg1,_arg2);
2896 Py_INCREF(Py_None);
2897 _resultobj = Py_None;
2898 {
2899 delete [] _arg2;
2900 }
2901 return _resultobj;
2902 }
2903
2904 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
2905 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args) {
2906 PyObject * _resultobj;
2907 wxDC * _arg0;
2908 wxString * _arg1;
2909 long _arg2;
2910 long _arg3;
2911 char * _argc0 = 0;
2912 PyObject * _obj1 = 0;
2913
2914 self = self;
2915 if(!PyArg_ParseTuple(args,"sOll:wxDC_DrawText",&_argc0,&_obj1,&_arg2,&_arg3))
2916 return NULL;
2917 if (_argc0) {
2918 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
2920 return NULL;
2921 }
2922 }
2923 {
2924 if (!PyString_Check(_obj1)) {
2925 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2926 return NULL;
2927 }
2928 _arg1 = new wxString(PyString_AsString(_obj1));
2929 }
2930 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
2931 Py_INCREF(Py_None);
2932 _resultobj = Py_None;
2933 {
2934 if (_obj1)
2935 delete _arg1;
2936 }
2937 return _resultobj;
2938 }
2939
2940 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
2941 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args) {
2942 PyObject * _resultobj;
2943 wxDC * _arg0;
2944 char * _argc0 = 0;
2945
2946 self = self;
2947 if(!PyArg_ParseTuple(args,"s:wxDC_EndDoc",&_argc0))
2948 return NULL;
2949 if (_argc0) {
2950 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
2952 return NULL;
2953 }
2954 }
2955 wxDC_EndDoc(_arg0);
2956 Py_INCREF(Py_None);
2957 _resultobj = Py_None;
2958 return _resultobj;
2959 }
2960
2961 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
2962 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args) {
2963 PyObject * _resultobj;
2964 wxDC * _arg0;
2965 char * _argc0 = 0;
2966
2967 self = self;
2968 if(!PyArg_ParseTuple(args,"s:wxDC_EndDrawing",&_argc0))
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_EndDrawing. Expected _wxDC_p.");
2973 return NULL;
2974 }
2975 }
2976 wxDC_EndDrawing(_arg0);
2977 Py_INCREF(Py_None);
2978 _resultobj = Py_None;
2979 return _resultobj;
2980 }
2981
2982 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
2983 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args) {
2984 PyObject * _resultobj;
2985 wxDC * _arg0;
2986 char * _argc0 = 0;
2987
2988 self = self;
2989 if(!PyArg_ParseTuple(args,"s:wxDC_EndPage",&_argc0))
2990 return NULL;
2991 if (_argc0) {
2992 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
2993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
2994 return NULL;
2995 }
2996 }
2997 wxDC_EndPage(_arg0);
2998 Py_INCREF(Py_None);
2999 _resultobj = Py_None;
3000 return _resultobj;
3001 }
3002
3003 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3004 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args) {
3005 PyObject * _resultobj;
3006 wxDC * _arg0;
3007 long _arg1;
3008 long _arg2;
3009 wxColour * _arg3;
3010 int _arg4 = (wxFLOOD_SURFACE);
3011 char * _argc0 = 0;
3012 char * _argc3 = 0;
3013
3014 self = self;
3015 if(!PyArg_ParseTuple(args,"slls|i:wxDC_FloodFill",&_argc0,&_arg1,&_arg2,&_argc3,&_arg4))
3016 return NULL;
3017 if (_argc0) {
3018 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
3020 return NULL;
3021 }
3022 }
3023 if (_argc3) {
3024 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxColour_p")) {
3025 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDC_FloodFill. Expected _wxColour_p.");
3026 return NULL;
3027 }
3028 }
3029 wxDC_FloodFill(_arg0,_arg1,_arg2,_arg3,_arg4);
3030 Py_INCREF(Py_None);
3031 _resultobj = Py_None;
3032 return _resultobj;
3033 }
3034
3035 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
3036 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args) {
3037 PyObject * _resultobj;
3038 wxBrush * _result;
3039 wxDC * _arg0;
3040 char * _argc0 = 0;
3041 char _ptemp[128];
3042
3043 self = self;
3044 if(!PyArg_ParseTuple(args,"s:wxDC_GetBackground",&_argc0))
3045 return NULL;
3046 if (_argc0) {
3047 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
3049 return NULL;
3050 }
3051 }
3052 _result = (wxBrush *)wxDC_GetBackground(_arg0);
3053 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
3054 _resultobj = Py_BuildValue("s",_ptemp);
3055 return _resultobj;
3056 }
3057
3058 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
3059 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args) {
3060 PyObject * _resultobj;
3061 wxBrush * _result;
3062 wxDC * _arg0;
3063 char * _argc0 = 0;
3064 char _ptemp[128];
3065
3066 self = self;
3067 if(!PyArg_ParseTuple(args,"s:wxDC_GetBrush",&_argc0))
3068 return NULL;
3069 if (_argc0) {
3070 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
3072 return NULL;
3073 }
3074 }
3075 _result = (wxBrush *)wxDC_GetBrush(_arg0);
3076 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
3077 _resultobj = Py_BuildValue("s",_ptemp);
3078 return _resultobj;
3079 }
3080
3081 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
3082 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args) {
3083 PyObject * _resultobj;
3084 long _result;
3085 wxDC * _arg0;
3086 char * _argc0 = 0;
3087
3088 self = self;
3089 if(!PyArg_ParseTuple(args,"s:wxDC_GetCharHeight",&_argc0))
3090 return NULL;
3091 if (_argc0) {
3092 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
3094 return NULL;
3095 }
3096 }
3097 _result = (long )wxDC_GetCharHeight(_arg0);
3098 _resultobj = Py_BuildValue("l",_result);
3099 return _resultobj;
3100 }
3101
3102 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
3103 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args) {
3104 PyObject * _resultobj;
3105 long _result;
3106 wxDC * _arg0;
3107 char * _argc0 = 0;
3108
3109 self = self;
3110 if(!PyArg_ParseTuple(args,"s:wxDC_GetCharWidth",&_argc0))
3111 return NULL;
3112 if (_argc0) {
3113 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
3115 return NULL;
3116 }
3117 }
3118 _result = (long )wxDC_GetCharWidth(_arg0);
3119 _resultobj = Py_BuildValue("l",_result);
3120 return _resultobj;
3121 }
3122
3123 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3124 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args) {
3125 PyObject * _resultobj;
3126 wxDC * _arg0;
3127 long * _arg1;
3128 long temp;
3129 long * _arg2;
3130 long temp0;
3131 long * _arg3;
3132 long temp1;
3133 long * _arg4;
3134 long temp2;
3135 char * _argc0 = 0;
3136
3137 self = self;
3138 {
3139 _arg1 = &temp;
3140 }
3141 {
3142 _arg2 = &temp0;
3143 }
3144 {
3145 _arg3 = &temp1;
3146 }
3147 {
3148 _arg4 = &temp2;
3149 }
3150 if(!PyArg_ParseTuple(args,"s:wxDC_GetClippingBox",&_argc0))
3151 return NULL;
3152 if (_argc0) {
3153 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3154 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
3155 return NULL;
3156 }
3157 }
3158 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
3159 Py_INCREF(Py_None);
3160 _resultobj = Py_None;
3161 {
3162 PyObject *o;
3163 o = PyInt_FromLong((long) (*_arg1));
3164 _resultobj = t_output_helper(_resultobj, o);
3165 }
3166 {
3167 PyObject *o;
3168 o = PyInt_FromLong((long) (*_arg2));
3169 _resultobj = t_output_helper(_resultobj, o);
3170 }
3171 {
3172 PyObject *o;
3173 o = PyInt_FromLong((long) (*_arg3));
3174 _resultobj = t_output_helper(_resultobj, o);
3175 }
3176 {
3177 PyObject *o;
3178 o = PyInt_FromLong((long) (*_arg4));
3179 _resultobj = t_output_helper(_resultobj, o);
3180 }
3181 return _resultobj;
3182 }
3183
3184 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
3185 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args) {
3186 PyObject * _resultobj;
3187 wxFont * _result;
3188 wxDC * _arg0;
3189 char * _argc0 = 0;
3190 char _ptemp[128];
3191
3192 self = self;
3193 if(!PyArg_ParseTuple(args,"s:wxDC_GetFont",&_argc0))
3194 return NULL;
3195 if (_argc0) {
3196 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
3198 return NULL;
3199 }
3200 }
3201 _result = (wxFont *)wxDC_GetFont(_arg0);
3202 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3203 _resultobj = Py_BuildValue("s",_ptemp);
3204 return _resultobj;
3205 }
3206
3207 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
3208 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args) {
3209 PyObject * _resultobj;
3210 int _result;
3211 wxDC * _arg0;
3212 char * _argc0 = 0;
3213
3214 self = self;
3215 if(!PyArg_ParseTuple(args,"s:wxDC_GetLogicalFunction",&_argc0))
3216 return NULL;
3217 if (_argc0) {
3218 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
3220 return NULL;
3221 }
3222 }
3223 _result = (int )wxDC_GetLogicalFunction(_arg0);
3224 _resultobj = Py_BuildValue("i",_result);
3225 return _resultobj;
3226 }
3227
3228 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
3229 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args) {
3230 PyObject * _resultobj;
3231 int _result;
3232 wxDC * _arg0;
3233 char * _argc0 = 0;
3234
3235 self = self;
3236 if(!PyArg_ParseTuple(args,"s:wxDC_GetMapMode",&_argc0))
3237 return NULL;
3238 if (_argc0) {
3239 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
3241 return NULL;
3242 }
3243 }
3244 _result = (int )wxDC_GetMapMode(_arg0);
3245 _resultobj = Py_BuildValue("i",_result);
3246 return _resultobj;
3247 }
3248
3249 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
3250 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args) {
3251 PyObject * _resultobj;
3252 bool _result;
3253 wxDC * _arg0;
3254 char * _argc0 = 0;
3255
3256 self = self;
3257 if(!PyArg_ParseTuple(args,"s:wxDC_GetOptimization",&_argc0))
3258 return NULL;
3259 if (_argc0) {
3260 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
3262 return NULL;
3263 }
3264 }
3265 _result = (bool )wxDC_GetOptimization(_arg0);
3266 _resultobj = Py_BuildValue("i",_result);
3267 return _resultobj;
3268 }
3269
3270 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
3271 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args) {
3272 PyObject * _resultobj;
3273 wxPen * _result;
3274 wxDC * _arg0;
3275 char * _argc0 = 0;
3276 char _ptemp[128];
3277
3278 self = self;
3279 if(!PyArg_ParseTuple(args,"s:wxDC_GetPen",&_argc0))
3280 return NULL;
3281 if (_argc0) {
3282 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
3284 return NULL;
3285 }
3286 }
3287 _result = (wxPen *)wxDC_GetPen(_arg0);
3288 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3289 _resultobj = Py_BuildValue("s",_ptemp);
3290 return _resultobj;
3291 }
3292
3293 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
3294 wxColour* wc = new wxColour();
3295 self->GetPixel(x, y, wc);
3296 return wc;
3297 }
3298 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args) {
3299 PyObject * _resultobj;
3300 wxColour * _result;
3301 wxDC * _arg0;
3302 long _arg1;
3303 long _arg2;
3304 char * _argc0 = 0;
3305 char _ptemp[128];
3306
3307 self = self;
3308 if(!PyArg_ParseTuple(args,"sll:wxDC_GetPixel",&_argc0,&_arg1,&_arg2))
3309 return NULL;
3310 if (_argc0) {
3311 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
3313 return NULL;
3314 }
3315 }
3316 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
3317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3318 _resultobj = Py_BuildValue("s",_ptemp);
3319 return _resultobj;
3320 }
3321
3322 #define wxDC_GetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
3323 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args) {
3324 PyObject * _resultobj;
3325 wxDC * _arg0;
3326 int * _arg1;
3327 int temp;
3328 int * _arg2;
3329 int temp0;
3330 char * _argc0 = 0;
3331
3332 self = self;
3333 {
3334 _arg1 = &temp;
3335 }
3336 {
3337 _arg2 = &temp0;
3338 }
3339 if(!PyArg_ParseTuple(args,"s:wxDC_GetSize",&_argc0))
3340 return NULL;
3341 if (_argc0) {
3342 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
3344 return NULL;
3345 }
3346 }
3347 wxDC_GetSize(_arg0,_arg1,_arg2);
3348 Py_INCREF(Py_None);
3349 _resultobj = Py_None;
3350 {
3351 PyObject *o;
3352 o = PyInt_FromLong((long) (*_arg1));
3353 _resultobj = t_output_helper(_resultobj, o);
3354 }
3355 {
3356 PyObject *o;
3357 o = PyInt_FromLong((long) (*_arg2));
3358 _resultobj = t_output_helper(_resultobj, o);
3359 }
3360 return _resultobj;
3361 }
3362
3363 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
3364 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args) {
3365 PyObject * _resultobj;
3366 wxColour * _result;
3367 wxDC * _arg0;
3368 char * _argc0 = 0;
3369 char _ptemp[128];
3370
3371 self = self;
3372 if(!PyArg_ParseTuple(args,"s:wxDC_GetTextBackground",&_argc0))
3373 return NULL;
3374 if (_argc0) {
3375 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
3377 return NULL;
3378 }
3379 }
3380 wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
3381 _result = (wxColour *) &_result_ref;
3382 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3383 _resultobj = Py_BuildValue("s",_ptemp);
3384 return _resultobj;
3385 }
3386
3387 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3388 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args) {
3389 PyObject * _resultobj;
3390 wxDC * _arg0;
3391 wxString * _arg1;
3392 long * _arg2;
3393 long temp;
3394 long * _arg3;
3395 long temp0;
3396 long * _arg4;
3397 long temp1;
3398 long * _arg5;
3399 long temp2;
3400 char * _argc0 = 0;
3401 PyObject * _obj1 = 0;
3402
3403 self = self;
3404 {
3405 _arg2 = &temp;
3406 }
3407 {
3408 _arg3 = &temp0;
3409 }
3410 {
3411 _arg4 = &temp1;
3412 }
3413 {
3414 _arg5 = &temp2;
3415 }
3416 if(!PyArg_ParseTuple(args,"sO:wxDC_GetTextExtent",&_argc0,&_obj1))
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_GetTextExtent. Expected _wxDC_p.");
3421 return NULL;
3422 }
3423 }
3424 {
3425 if (!PyString_Check(_obj1)) {
3426 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3427 return NULL;
3428 }
3429 _arg1 = new wxString(PyString_AsString(_obj1));
3430 }
3431 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
3432 Py_INCREF(Py_None);
3433 _resultobj = Py_None;
3434 {
3435 PyObject *o;
3436 o = PyInt_FromLong((long) (*_arg2));
3437 _resultobj = t_output_helper(_resultobj, o);
3438 }
3439 {
3440 PyObject *o;
3441 o = PyInt_FromLong((long) (*_arg3));
3442 _resultobj = t_output_helper(_resultobj, o);
3443 }
3444 {
3445 PyObject *o;
3446 o = PyInt_FromLong((long) (*_arg4));
3447 _resultobj = t_output_helper(_resultobj, o);
3448 }
3449 {
3450 PyObject *o;
3451 o = PyInt_FromLong((long) (*_arg5));
3452 _resultobj = t_output_helper(_resultobj, o);
3453 }
3454 {
3455 if (_obj1)
3456 delete _arg1;
3457 }
3458 return _resultobj;
3459 }
3460
3461 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
3462 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args) {
3463 PyObject * _resultobj;
3464 wxColour * _result;
3465 wxDC * _arg0;
3466 char * _argc0 = 0;
3467 char _ptemp[128];
3468
3469 self = self;
3470 if(!PyArg_ParseTuple(args,"s:wxDC_GetTextForeground",&_argc0))
3471 return NULL;
3472 if (_argc0) {
3473 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
3475 return NULL;
3476 }
3477 }
3478 wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
3479 _result = (wxColour *) &_result_ref;
3480 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3481 _resultobj = Py_BuildValue("s",_ptemp);
3482 return _resultobj;
3483 }
3484
3485 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
3486 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args) {
3487 PyObject * _resultobj;
3488 long _result;
3489 wxDC * _arg0;
3490 long _arg1;
3491 char * _argc0 = 0;
3492
3493 self = self;
3494 if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceX",&_argc0,&_arg1))
3495 return NULL;
3496 if (_argc0) {
3497 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
3499 return NULL;
3500 }
3501 }
3502 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
3503 _resultobj = Py_BuildValue("l",_result);
3504 return _resultobj;
3505 }
3506
3507 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
3508 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args) {
3509 PyObject * _resultobj;
3510 long _result;
3511 wxDC * _arg0;
3512 long _arg1;
3513 char * _argc0 = 0;
3514
3515 self = self;
3516 if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceXRel",&_argc0,&_arg1))
3517 return NULL;
3518 if (_argc0) {
3519 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
3521 return NULL;
3522 }
3523 }
3524 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
3525 _resultobj = Py_BuildValue("l",_result);
3526 return _resultobj;
3527 }
3528
3529 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
3530 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args) {
3531 PyObject * _resultobj;
3532 long _result;
3533 wxDC * _arg0;
3534 long _arg1;
3535 char * _argc0 = 0;
3536
3537 self = self;
3538 if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceY",&_argc0,&_arg1))
3539 return NULL;
3540 if (_argc0) {
3541 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
3543 return NULL;
3544 }
3545 }
3546 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
3547 _resultobj = Py_BuildValue("l",_result);
3548 return _resultobj;
3549 }
3550
3551 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
3552 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args) {
3553 PyObject * _resultobj;
3554 long _result;
3555 wxDC * _arg0;
3556 long _arg1;
3557 char * _argc0 = 0;
3558
3559 self = self;
3560 if(!PyArg_ParseTuple(args,"sl:wxDC_LogicalToDeviceYRel",&_argc0,&_arg1))
3561 return NULL;
3562 if (_argc0) {
3563 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
3565 return NULL;
3566 }
3567 }
3568 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
3569 _resultobj = Py_BuildValue("l",_result);
3570 return _resultobj;
3571 }
3572
3573 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
3574 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args) {
3575 PyObject * _resultobj;
3576 long _result;
3577 wxDC * _arg0;
3578 char * _argc0 = 0;
3579
3580 self = self;
3581 if(!PyArg_ParseTuple(args,"s:wxDC_MaxX",&_argc0))
3582 return NULL;
3583 if (_argc0) {
3584 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
3586 return NULL;
3587 }
3588 }
3589 _result = (long )wxDC_MaxX(_arg0);
3590 _resultobj = Py_BuildValue("l",_result);
3591 return _resultobj;
3592 }
3593
3594 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
3595 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args) {
3596 PyObject * _resultobj;
3597 long _result;
3598 wxDC * _arg0;
3599 char * _argc0 = 0;
3600
3601 self = self;
3602 if(!PyArg_ParseTuple(args,"s:wxDC_MaxY",&_argc0))
3603 return NULL;
3604 if (_argc0) {
3605 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
3607 return NULL;
3608 }
3609 }
3610 _result = (long )wxDC_MaxY(_arg0);
3611 _resultobj = Py_BuildValue("l",_result);
3612 return _resultobj;
3613 }
3614
3615 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
3616 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args) {
3617 PyObject * _resultobj;
3618 long _result;
3619 wxDC * _arg0;
3620 char * _argc0 = 0;
3621
3622 self = self;
3623 if(!PyArg_ParseTuple(args,"s:wxDC_MinX",&_argc0))
3624 return NULL;
3625 if (_argc0) {
3626 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
3628 return NULL;
3629 }
3630 }
3631 _result = (long )wxDC_MinX(_arg0);
3632 _resultobj = Py_BuildValue("l",_result);
3633 return _resultobj;
3634 }
3635
3636 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
3637 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args) {
3638 PyObject * _resultobj;
3639 long _result;
3640 wxDC * _arg0;
3641 char * _argc0 = 0;
3642
3643 self = self;
3644 if(!PyArg_ParseTuple(args,"s:wxDC_MinY",&_argc0))
3645 return NULL;
3646 if (_argc0) {
3647 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
3649 return NULL;
3650 }
3651 }
3652 _result = (long )wxDC_MinY(_arg0);
3653 _resultobj = Py_BuildValue("l",_result);
3654 return _resultobj;
3655 }
3656
3657 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
3658 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args) {
3659 PyObject * _resultobj;
3660 bool _result;
3661 wxDC * _arg0;
3662 char * _argc0 = 0;
3663
3664 self = self;
3665 if(!PyArg_ParseTuple(args,"s:wxDC_Ok",&_argc0))
3666 return NULL;
3667 if (_argc0) {
3668 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
3670 return NULL;
3671 }
3672 }
3673 _result = (bool )wxDC_Ok(_arg0);
3674 _resultobj = Py_BuildValue("i",_result);
3675 return _resultobj;
3676 }
3677
3678 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
3679 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args) {
3680 PyObject * _resultobj;
3681 wxDC * _arg0;
3682 long _arg1;
3683 long _arg2;
3684 char * _argc0 = 0;
3685
3686 self = self;
3687 if(!PyArg_ParseTuple(args,"sll:wxDC_SetDeviceOrigin",&_argc0,&_arg1,&_arg2))
3688 return NULL;
3689 if (_argc0) {
3690 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
3692 return NULL;
3693 }
3694 }
3695 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
3696 Py_INCREF(Py_None);
3697 _resultobj = Py_None;
3698 return _resultobj;
3699 }
3700
3701 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
3702 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args) {
3703 PyObject * _resultobj;
3704 wxDC * _arg0;
3705 wxBrush * _arg1;
3706 char * _argc0 = 0;
3707 char * _argc1 = 0;
3708
3709 self = self;
3710 if(!PyArg_ParseTuple(args,"ss:wxDC_SetBackground",&_argc0,&_argc1))
3711 return NULL;
3712 if (_argc0) {
3713 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
3715 return NULL;
3716 }
3717 }
3718 if (_argc1) {
3719 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBrush_p")) {
3720 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
3721 return NULL;
3722 }
3723 }
3724 wxDC_SetBackground(_arg0,*_arg1);
3725 Py_INCREF(Py_None);
3726 _resultobj = Py_None;
3727 return _resultobj;
3728 }
3729
3730 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
3731 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args) {
3732 PyObject * _resultobj;
3733 wxDC * _arg0;
3734 int _arg1;
3735 char * _argc0 = 0;
3736
3737 self = self;
3738 if(!PyArg_ParseTuple(args,"si:wxDC_SetBackgroundMode",&_argc0,&_arg1))
3739 return NULL;
3740 if (_argc0) {
3741 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
3743 return NULL;
3744 }
3745 }
3746 wxDC_SetBackgroundMode(_arg0,_arg1);
3747 Py_INCREF(Py_None);
3748 _resultobj = Py_None;
3749 return _resultobj;
3750 }
3751
3752 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3753 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args) {
3754 PyObject * _resultobj;
3755 wxDC * _arg0;
3756 long _arg1;
3757 long _arg2;
3758 long _arg3;
3759 long _arg4;
3760 char * _argc0 = 0;
3761
3762 self = self;
3763 if(!PyArg_ParseTuple(args,"sllll:wxDC_SetClippingRegion",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
3764 return NULL;
3765 if (_argc0) {
3766 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
3768 return NULL;
3769 }
3770 }
3771 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
3772 Py_INCREF(Py_None);
3773 _resultobj = Py_None;
3774 return _resultobj;
3775 }
3776
3777 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
3778 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args) {
3779 PyObject * _resultobj;
3780 wxDC * _arg0;
3781 wxPalette * _arg1;
3782 char * _argc0 = 0;
3783 char * _argc1 = 0;
3784
3785 self = self;
3786 if(!PyArg_ParseTuple(args,"ss:wxDC_SetPalette",&_argc0,&_argc1))
3787 return NULL;
3788 if (_argc0) {
3789 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
3791 return NULL;
3792 }
3793 }
3794 if (_argc1) {
3795 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPalette_p")) {
3796 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
3797 return NULL;
3798 }
3799 }
3800 wxDC_SetPalette(_arg0,*_arg1);
3801 Py_INCREF(Py_None);
3802 _resultobj = Py_None;
3803 return _resultobj;
3804 }
3805
3806 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
3807 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args) {
3808 PyObject * _resultobj;
3809 wxDC * _arg0;
3810 wxBrush * _arg1;
3811 char * _argc0 = 0;
3812 char * _argc1 = 0;
3813
3814 self = self;
3815 if(!PyArg_ParseTuple(args,"ss:wxDC_SetBrush",&_argc0,&_argc1))
3816 return NULL;
3817 if (_argc0) {
3818 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
3820 return NULL;
3821 }
3822 }
3823 if (_argc1) {
3824 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBrush_p")) {
3825 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
3826 return NULL;
3827 }
3828 }
3829 wxDC_SetBrush(_arg0,*_arg1);
3830 Py_INCREF(Py_None);
3831 _resultobj = Py_None;
3832 return _resultobj;
3833 }
3834
3835 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3836 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args) {
3837 PyObject * _resultobj;
3838 wxDC * _arg0;
3839 wxFont * _arg1;
3840 char * _argc0 = 0;
3841 char * _argc1 = 0;
3842
3843 self = self;
3844 if(!PyArg_ParseTuple(args,"ss:wxDC_SetFont",&_argc0,&_argc1))
3845 return NULL;
3846 if (_argc0) {
3847 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
3849 return NULL;
3850 }
3851 }
3852 if (_argc1) {
3853 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxFont_p")) {
3854 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
3855 return NULL;
3856 }
3857 }
3858 wxDC_SetFont(_arg0,*_arg1);
3859 Py_INCREF(Py_None);
3860 _resultobj = Py_None;
3861 return _resultobj;
3862 }
3863
3864 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
3865 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args) {
3866 PyObject * _resultobj;
3867 wxDC * _arg0;
3868 int _arg1;
3869 char * _argc0 = 0;
3870
3871 self = self;
3872 if(!PyArg_ParseTuple(args,"si:wxDC_SetLogicalFunction",&_argc0,&_arg1))
3873 return NULL;
3874 if (_argc0) {
3875 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
3877 return NULL;
3878 }
3879 }
3880 wxDC_SetLogicalFunction(_arg0,_arg1);
3881 Py_INCREF(Py_None);
3882 _resultobj = Py_None;
3883 return _resultobj;
3884 }
3885
3886 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
3887 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args) {
3888 PyObject * _resultobj;
3889 wxDC * _arg0;
3890 int _arg1;
3891 char * _argc0 = 0;
3892
3893 self = self;
3894 if(!PyArg_ParseTuple(args,"si:wxDC_SetMapMode",&_argc0,&_arg1))
3895 return NULL;
3896 if (_argc0) {
3897 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
3899 return NULL;
3900 }
3901 }
3902 wxDC_SetMapMode(_arg0,_arg1);
3903 Py_INCREF(Py_None);
3904 _resultobj = Py_None;
3905 return _resultobj;
3906 }
3907
3908 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
3909 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args) {
3910 PyObject * _resultobj;
3911 wxDC * _arg0;
3912 bool _arg1;
3913 char * _argc0 = 0;
3914 int tempbool1;
3915
3916 self = self;
3917 if(!PyArg_ParseTuple(args,"si:wxDC_SetOptimization",&_argc0,&tempbool1))
3918 return NULL;
3919 if (_argc0) {
3920 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
3922 return NULL;
3923 }
3924 }
3925 _arg1 = (bool ) tempbool1;
3926 wxDC_SetOptimization(_arg0,_arg1);
3927 Py_INCREF(Py_None);
3928 _resultobj = Py_None;
3929 return _resultobj;
3930 }
3931
3932 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
3933 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args) {
3934 PyObject * _resultobj;
3935 wxDC * _arg0;
3936 wxPen * _arg1;
3937 char * _argc0 = 0;
3938 char * _argc1 = 0;
3939
3940 self = self;
3941 if(!PyArg_ParseTuple(args,"ss:wxDC_SetPen",&_argc0,&_argc1))
3942 return NULL;
3943 if (_argc0) {
3944 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
3946 return NULL;
3947 }
3948 }
3949 if (_argc1) {
3950 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPen_p")) {
3951 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
3952 return NULL;
3953 }
3954 }
3955 wxDC_SetPen(_arg0,*_arg1);
3956 Py_INCREF(Py_None);
3957 _resultobj = Py_None;
3958 return _resultobj;
3959 }
3960
3961 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
3962 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args) {
3963 PyObject * _resultobj;
3964 wxDC * _arg0;
3965 wxColour * _arg1;
3966 char * _argc0 = 0;
3967 char * _argc1 = 0;
3968
3969 self = self;
3970 if(!PyArg_ParseTuple(args,"ss:wxDC_SetTextBackground",&_argc0,&_argc1))
3971 return NULL;
3972 if (_argc0) {
3973 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
3974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
3975 return NULL;
3976 }
3977 }
3978 if (_argc1) {
3979 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) {
3980 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextBackground. Expected _wxColour_p.");
3981 return NULL;
3982 }
3983 }
3984 wxDC_SetTextBackground(_arg0,*_arg1);
3985 Py_INCREF(Py_None);
3986 _resultobj = Py_None;
3987 return _resultobj;
3988 }
3989
3990 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
3991 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args) {
3992 PyObject * _resultobj;
3993 wxDC * _arg0;
3994 wxColour * _arg1;
3995 char * _argc0 = 0;
3996 char * _argc1 = 0;
3997
3998 self = self;
3999 if(!PyArg_ParseTuple(args,"ss:wxDC_SetTextForeground",&_argc0,&_argc1))
4000 return NULL;
4001 if (_argc0) {
4002 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
4003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
4004 return NULL;
4005 }
4006 }
4007 if (_argc1) {
4008 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxColour_p")) {
4009 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetTextForeground. Expected _wxColour_p.");
4010 return NULL;
4011 }
4012 }
4013 wxDC_SetTextForeground(_arg0,*_arg1);
4014 Py_INCREF(Py_None);
4015 _resultobj = Py_None;
4016 return _resultobj;
4017 }
4018
4019 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
4020 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args) {
4021 PyObject * _resultobj;
4022 wxDC * _arg0;
4023 double _arg1;
4024 double _arg2;
4025 char * _argc0 = 0;
4026
4027 self = self;
4028 if(!PyArg_ParseTuple(args,"sdd:wxDC_SetUserScale",&_argc0,&_arg1,&_arg2))
4029 return NULL;
4030 if (_argc0) {
4031 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
4032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
4033 return NULL;
4034 }
4035 }
4036 wxDC_SetUserScale(_arg0,_arg1,_arg2);
4037 Py_INCREF(Py_None);
4038 _resultobj = Py_None;
4039 return _resultobj;
4040 }
4041
4042 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
4043 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args) {
4044 PyObject * _resultobj;
4045 bool _result;
4046 wxDC * _arg0;
4047 wxString * _arg1;
4048 char * _argc0 = 0;
4049 PyObject * _obj1 = 0;
4050
4051 self = self;
4052 if(!PyArg_ParseTuple(args,"sO:wxDC_StartDoc",&_argc0,&_obj1))
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_StartDoc. Expected _wxDC_p.");
4057 return NULL;
4058 }
4059 }
4060 {
4061 if (!PyString_Check(_obj1)) {
4062 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4063 return NULL;
4064 }
4065 _arg1 = new wxString(PyString_AsString(_obj1));
4066 }
4067 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
4068 _resultobj = Py_BuildValue("i",_result);
4069 {
4070 if (_obj1)
4071 delete _arg1;
4072 }
4073 return _resultobj;
4074 }
4075
4076 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
4077 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args) {
4078 PyObject * _resultobj;
4079 wxDC * _arg0;
4080 char * _argc0 = 0;
4081
4082 self = self;
4083 if(!PyArg_ParseTuple(args,"s:wxDC_StartPage",&_argc0))
4084 return NULL;
4085 if (_argc0) {
4086 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
4087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
4088 return NULL;
4089 }
4090 }
4091 wxDC_StartPage(_arg0);
4092 Py_INCREF(Py_None);
4093 _resultobj = Py_None;
4094 return _resultobj;
4095 }
4096
4097 static void wxDC_DrawBitmap(wxDC *self,wxBitmap * bitmap,long x,long y,bool swapPalette) {
4098 wxMemoryDC* memDC = new wxMemoryDC;
4099 memDC->SelectObject(bitmap);
4100 if (swapPalette)
4101 self->SetPalette(bitmap->GetPalette());
4102 self->Blit(x, y, bitmap->GetWidth(), bitmap->GetHeight(), memDC,
4103 0, 0, self->GetLogicalFunction());
4104 memDC->SelectObject(wxNullBitmap);
4105 delete memDC;
4106 }
4107 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args) {
4108 PyObject * _resultobj;
4109 wxDC * _arg0;
4110 wxBitmap * _arg1;
4111 long _arg2;
4112 long _arg3;
4113 bool _arg4 = (1);
4114 char * _argc0 = 0;
4115 char * _argc1 = 0;
4116 int tempbool4;
4117
4118 self = self;
4119 if(!PyArg_ParseTuple(args,"ssll|i:wxDC_DrawBitmap",&_argc0,&_argc1,&_arg2,&_arg3,&tempbool4))
4120 return NULL;
4121 if (_argc0) {
4122 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDC_p")) {
4123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
4124 return NULL;
4125 }
4126 }
4127 if (_argc1) {
4128 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBitmap_p")) {
4129 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
4130 return NULL;
4131 }
4132 }
4133 _arg4 = (bool ) tempbool4;
4134 wxDC_DrawBitmap(_arg0,_arg1,_arg2,_arg3,_arg4);
4135 Py_INCREF(Py_None);
4136 _resultobj = Py_None;
4137 return _resultobj;
4138 }
4139
4140 static void *SwigwxMemoryDCTowxDC(void *ptr) {
4141 wxMemoryDC *src;
4142 wxDC *dest;
4143 src = (wxMemoryDC *) ptr;
4144 dest = (wxDC *) src;
4145 return (void *) dest;
4146 }
4147
4148 #define new_wxMemoryDC() (new wxMemoryDC())
4149 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args) {
4150 PyObject * _resultobj;
4151 wxMemoryDC * _result;
4152 char _ptemp[128];
4153
4154 self = self;
4155 if(!PyArg_ParseTuple(args,":new_wxMemoryDC"))
4156 return NULL;
4157 _result = (wxMemoryDC *)new_wxMemoryDC();
4158 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
4159 _resultobj = Py_BuildValue("s",_ptemp);
4160 return _resultobj;
4161 }
4162
4163 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
4164 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args) {
4165 PyObject * _resultobj;
4166 wxMemoryDC * _arg0;
4167 wxBitmap * _arg1;
4168 char * _argc0 = 0;
4169 char * _argc1 = 0;
4170
4171 self = self;
4172 if(!PyArg_ParseTuple(args,"ss:wxMemoryDC_SelectObject",&_argc0,&_argc1))
4173 return NULL;
4174 if (_argc0) {
4175 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMemoryDC_p")) {
4176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
4177 return NULL;
4178 }
4179 }
4180 if (_argc1) {
4181 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxBitmap_p")) {
4182 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
4183 return NULL;
4184 }
4185 }
4186 wxMemoryDC_SelectObject(_arg0,*_arg1);
4187 Py_INCREF(Py_None);
4188 _resultobj = Py_None;
4189 return _resultobj;
4190 }
4191
4192 static void *SwigwxScreenDCTowxDC(void *ptr) {
4193 wxScreenDC *src;
4194 wxDC *dest;
4195 src = (wxScreenDC *) ptr;
4196 dest = (wxDC *) src;
4197 return (void *) dest;
4198 }
4199
4200 #define new_wxScreenDC() (new wxScreenDC())
4201 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args) {
4202 PyObject * _resultobj;
4203 wxScreenDC * _result;
4204 char _ptemp[128];
4205
4206 self = self;
4207 if(!PyArg_ParseTuple(args,":new_wxScreenDC"))
4208 return NULL;
4209 _result = (wxScreenDC *)new_wxScreenDC();
4210 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
4211 _resultobj = Py_BuildValue("s",_ptemp);
4212 return _resultobj;
4213 }
4214
4215 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
4216 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args) {
4217 PyObject * _resultobj;
4218 bool _result;
4219 wxScreenDC * _arg0;
4220 wxWindow * _arg1;
4221 char * _argc0 = 0;
4222 char * _argc1 = 0;
4223
4224 self = self;
4225 if(!PyArg_ParseTuple(args,"ss:wxScreenDC_StartDrawingOnTop",&_argc0,&_argc1))
4226 return NULL;
4227 if (_argc0) {
4228 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) {
4229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
4230 return NULL;
4231 }
4232 }
4233 if (_argc1) {
4234 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxWindow_p")) {
4235 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTop. Expected _wxWindow_p.");
4236 return NULL;
4237 }
4238 }
4239 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
4240 _resultobj = Py_BuildValue("i",_result);
4241 return _resultobj;
4242 }
4243
4244 #define wxScreenDC_StartDrawingOnTopRect(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
4245 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject *args) {
4246 PyObject * _resultobj;
4247 bool _result;
4248 wxScreenDC * _arg0;
4249 wxRect * _arg1 = NULL;
4250 char * _argc0 = 0;
4251 char * _argc1 = 0;
4252
4253 self = self;
4254 if(!PyArg_ParseTuple(args,"s|s:wxScreenDC_StartDrawingOnTopRect",&_argc0,&_argc1))
4255 return NULL;
4256 if (_argc0) {
4257 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) {
4258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopRect. Expected _wxScreenDC_p.");
4259 return NULL;
4260 }
4261 }
4262 if (_argc1) {
4263 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxRect_p")) {
4264 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopRect. Expected _wxRect_p.");
4265 return NULL;
4266 }
4267 }
4268 _result = (bool )wxScreenDC_StartDrawingOnTopRect(_arg0,_arg1);
4269 _resultobj = Py_BuildValue("i",_result);
4270 return _resultobj;
4271 }
4272
4273 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
4274 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args) {
4275 PyObject * _resultobj;
4276 bool _result;
4277 wxScreenDC * _arg0;
4278 char * _argc0 = 0;
4279
4280 self = self;
4281 if(!PyArg_ParseTuple(args,"s:wxScreenDC_EndDrawingOnTop",&_argc0))
4282 return NULL;
4283 if (_argc0) {
4284 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxScreenDC_p")) {
4285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
4286 return NULL;
4287 }
4288 }
4289 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
4290 _resultobj = Py_BuildValue("i",_result);
4291 return _resultobj;
4292 }
4293
4294 static void *SwigwxClientDCTowxDC(void *ptr) {
4295 wxClientDC *src;
4296 wxDC *dest;
4297 src = (wxClientDC *) ptr;
4298 dest = (wxDC *) src;
4299 return (void *) dest;
4300 }
4301
4302 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
4303 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args) {
4304 PyObject * _resultobj;
4305 wxClientDC * _result;
4306 wxWindow * _arg0;
4307 char * _argc0 = 0;
4308 char _ptemp[128];
4309
4310 self = self;
4311 if(!PyArg_ParseTuple(args,"s:new_wxClientDC",&_argc0))
4312 return NULL;
4313 if (_argc0) {
4314 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
4315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
4316 return NULL;
4317 }
4318 }
4319 _result = (wxClientDC *)new_wxClientDC(_arg0);
4320 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
4321 _resultobj = Py_BuildValue("s",_ptemp);
4322 return _resultobj;
4323 }
4324
4325 static void *SwigwxPaintDCTowxDC(void *ptr) {
4326 wxPaintDC *src;
4327 wxDC *dest;
4328 src = (wxPaintDC *) ptr;
4329 dest = (wxDC *) src;
4330 return (void *) dest;
4331 }
4332
4333 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
4334 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args) {
4335 PyObject * _resultobj;
4336 wxPaintDC * _result;
4337 wxWindow * _arg0;
4338 char * _argc0 = 0;
4339 char _ptemp[128];
4340
4341 self = self;
4342 if(!PyArg_ParseTuple(args,"s:new_wxPaintDC",&_argc0))
4343 return NULL;
4344 if (_argc0) {
4345 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
4346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
4347 return NULL;
4348 }
4349 }
4350 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
4351 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
4352 _resultobj = Py_BuildValue("s",_ptemp);
4353 return _resultobj;
4354 }
4355
4356 static void *SwigwxPostScriptDCTowxDC(void *ptr) {
4357 wxPostScriptDC *src;
4358 wxDC *dest;
4359 src = (wxPostScriptDC *) ptr;
4360 dest = (wxDC *) src;
4361 return (void *) dest;
4362 }
4363
4364 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
4365 static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args) {
4366 PyObject * _resultobj;
4367 wxPostScriptDC * _result;
4368 wxString * _arg0;
4369 bool _arg1 = (1);
4370 wxWindow * _arg2 = NULL;
4371 PyObject * _obj0 = 0;
4372 int tempbool1;
4373 char * _argc2 = 0;
4374 char _ptemp[128];
4375
4376 self = self;
4377 if(!PyArg_ParseTuple(args,"O|is:new_wxPostScriptDC",&_obj0,&tempbool1,&_argc2))
4378 return NULL;
4379 {
4380 if (!PyString_Check(_obj0)) {
4381 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4382 return NULL;
4383 }
4384 _arg0 = new wxString(PyString_AsString(_obj0));
4385 }
4386 _arg1 = (bool ) tempbool1;
4387 if (_argc2) {
4388 if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_wxWindow_p")) {
4389 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
4390 return NULL;
4391 }
4392 }
4393 _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2);
4394 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
4395 _resultobj = Py_BuildValue("s",_ptemp);
4396 {
4397 if (_obj0)
4398 delete _arg0;
4399 }
4400 return _resultobj;
4401 }
4402
4403 static PyMethodDef gdicMethods[] = {
4404 { "new_wxPostScriptDC", _wrap_new_wxPostScriptDC, 1 },
4405 { "new_wxPaintDC", _wrap_new_wxPaintDC, 1 },
4406 { "new_wxClientDC", _wrap_new_wxClientDC, 1 },
4407 { "wxScreenDC_EndDrawingOnTop", _wrap_wxScreenDC_EndDrawingOnTop, 1 },
4408 { "wxScreenDC_StartDrawingOnTopRect", _wrap_wxScreenDC_StartDrawingOnTopRect, 1 },
4409 { "wxScreenDC_StartDrawingOnTop", _wrap_wxScreenDC_StartDrawingOnTop, 1 },
4410 { "new_wxScreenDC", _wrap_new_wxScreenDC, 1 },
4411 { "wxMemoryDC_SelectObject", _wrap_wxMemoryDC_SelectObject, 1 },
4412 { "new_wxMemoryDC", _wrap_new_wxMemoryDC, 1 },
4413 { "wxDC_DrawBitmap", _wrap_wxDC_DrawBitmap, 1 },
4414 { "wxDC_StartPage", _wrap_wxDC_StartPage, 1 },
4415 { "wxDC_StartDoc", _wrap_wxDC_StartDoc, 1 },
4416 { "wxDC_SetUserScale", _wrap_wxDC_SetUserScale, 1 },
4417 { "wxDC_SetTextForeground", _wrap_wxDC_SetTextForeground, 1 },
4418 { "wxDC_SetTextBackground", _wrap_wxDC_SetTextBackground, 1 },
4419 { "wxDC_SetPen", _wrap_wxDC_SetPen, 1 },
4420 { "wxDC_SetOptimization", _wrap_wxDC_SetOptimization, 1 },
4421 { "wxDC_SetMapMode", _wrap_wxDC_SetMapMode, 1 },
4422 { "wxDC_SetLogicalFunction", _wrap_wxDC_SetLogicalFunction, 1 },
4423 { "wxDC_SetFont", _wrap_wxDC_SetFont, 1 },
4424 { "wxDC_SetBrush", _wrap_wxDC_SetBrush, 1 },
4425 { "wxDC_SetPalette", _wrap_wxDC_SetPalette, 1 },
4426 { "wxDC_SetClippingRegion", _wrap_wxDC_SetClippingRegion, 1 },
4427 { "wxDC_SetBackgroundMode", _wrap_wxDC_SetBackgroundMode, 1 },
4428 { "wxDC_SetBackground", _wrap_wxDC_SetBackground, 1 },
4429 { "wxDC_SetDeviceOrigin", _wrap_wxDC_SetDeviceOrigin, 1 },
4430 { "wxDC_Ok", _wrap_wxDC_Ok, 1 },
4431 { "wxDC_MinY", _wrap_wxDC_MinY, 1 },
4432 { "wxDC_MinX", _wrap_wxDC_MinX, 1 },
4433 { "wxDC_MaxY", _wrap_wxDC_MaxY, 1 },
4434 { "wxDC_MaxX", _wrap_wxDC_MaxX, 1 },
4435 { "wxDC_LogicalToDeviceYRel", _wrap_wxDC_LogicalToDeviceYRel, 1 },
4436 { "wxDC_LogicalToDeviceY", _wrap_wxDC_LogicalToDeviceY, 1 },
4437 { "wxDC_LogicalToDeviceXRel", _wrap_wxDC_LogicalToDeviceXRel, 1 },
4438 { "wxDC_LogicalToDeviceX", _wrap_wxDC_LogicalToDeviceX, 1 },
4439 { "wxDC_GetTextForeground", _wrap_wxDC_GetTextForeground, 1 },
4440 { "wxDC_GetTextExtent", _wrap_wxDC_GetTextExtent, 1 },
4441 { "wxDC_GetTextBackground", _wrap_wxDC_GetTextBackground, 1 },
4442 { "wxDC_GetSize", _wrap_wxDC_GetSize, 1 },
4443 { "wxDC_GetPixel", _wrap_wxDC_GetPixel, 1 },
4444 { "wxDC_GetPen", _wrap_wxDC_GetPen, 1 },
4445 { "wxDC_GetOptimization", _wrap_wxDC_GetOptimization, 1 },
4446 { "wxDC_GetMapMode", _wrap_wxDC_GetMapMode, 1 },
4447 { "wxDC_GetLogicalFunction", _wrap_wxDC_GetLogicalFunction, 1 },
4448 { "wxDC_GetFont", _wrap_wxDC_GetFont, 1 },
4449 { "wxDC_GetClippingBox", _wrap_wxDC_GetClippingBox, 1 },
4450 { "wxDC_GetCharWidth", _wrap_wxDC_GetCharWidth, 1 },
4451 { "wxDC_GetCharHeight", _wrap_wxDC_GetCharHeight, 1 },
4452 { "wxDC_GetBrush", _wrap_wxDC_GetBrush, 1 },
4453 { "wxDC_GetBackground", _wrap_wxDC_GetBackground, 1 },
4454 { "wxDC_FloodFill", _wrap_wxDC_FloodFill, 1 },
4455 { "wxDC_EndPage", _wrap_wxDC_EndPage, 1 },
4456 { "wxDC_EndDrawing", _wrap_wxDC_EndDrawing, 1 },
4457 { "wxDC_EndDoc", _wrap_wxDC_EndDoc, 1 },
4458 { "wxDC_DrawText", _wrap_wxDC_DrawText, 1 },
4459 { "wxDC_DrawSpline", _wrap_wxDC_DrawSpline, 1 },
4460 { "wxDC_DrawRoundedRectangle", _wrap_wxDC_DrawRoundedRectangle, 1 },
4461 { "wxDC_DrawRectangle", _wrap_wxDC_DrawRectangle, 1 },
4462 { "wxDC_DrawPoint", _wrap_wxDC_DrawPoint, 1 },
4463 { "wxDC_DrawPolygon", _wrap_wxDC_DrawPolygon, 1 },
4464 { "wxDC_DrawLines", _wrap_wxDC_DrawLines, 1 },
4465 { "wxDC_DrawLine", _wrap_wxDC_DrawLine, 1 },
4466 { "wxDC_DrawIcon", _wrap_wxDC_DrawIcon, 1 },
4467 { "wxDC_DrawEllipticArc", _wrap_wxDC_DrawEllipticArc, 1 },
4468 { "wxDC_DrawEllipse", _wrap_wxDC_DrawEllipse, 1 },
4469 { "wxDC_DrawArc", _wrap_wxDC_DrawArc, 1 },
4470 { "wxDC_DeviceToLogicalYRel", _wrap_wxDC_DeviceToLogicalYRel, 1 },
4471 { "wxDC_DeviceToLogicalY", _wrap_wxDC_DeviceToLogicalY, 1 },
4472 { "wxDC_DeviceToLogicalXRel", _wrap_wxDC_DeviceToLogicalXRel, 1 },
4473 { "wxDC_DeviceToLogicalX", _wrap_wxDC_DeviceToLogicalX, 1 },
4474 { "wxDC_DestroyClippingRegion", _wrap_wxDC_DestroyClippingRegion, 1 },
4475 { "wxDC_CrossHair", _wrap_wxDC_CrossHair, 1 },
4476 { "wxDC_Clear", _wrap_wxDC_Clear, 1 },
4477 { "wxDC_Blit", _wrap_wxDC_Blit, 1 },
4478 { "wxDC_BeginDrawing", _wrap_wxDC_BeginDrawing, 1 },
4479 { "delete_wxDC", _wrap_delete_wxDC, 1 },
4480 { "wxBrush_Ok", _wrap_wxBrush_Ok, 1 },
4481 { "wxBrush_GetStyle", _wrap_wxBrush_GetStyle, 1 },
4482 { "wxBrush_GetStipple", _wrap_wxBrush_GetStipple, 1 },
4483 { "wxBrush_GetColour", _wrap_wxBrush_GetColour, 1 },
4484 { "new_wxBrush", _wrap_new_wxBrush, 1 },
4485 { "wxPen_SetWidth", _wrap_wxPen_SetWidth, 1 },
4486 { "wxPen_SetStyle", _wrap_wxPen_SetStyle, 1 },
4487 { "wxPen_SetJoin", _wrap_wxPen_SetJoin, 1 },
4488 { "wxPen_SetColour", _wrap_wxPen_SetColour, 1 },
4489 { "wxPen_SetCap", _wrap_wxPen_SetCap, 1 },
4490 { "wxPen_Ok", _wrap_wxPen_Ok, 1 },
4491 { "wxPen_GetWidth", _wrap_wxPen_GetWidth, 1 },
4492 { "wxPen_GetStyle", _wrap_wxPen_GetStyle, 1 },
4493 { "wxPen_GetJoin", _wrap_wxPen_GetJoin, 1 },
4494 { "wxPen_GetColour", _wrap_wxPen_GetColour, 1 },
4495 { "wxPen_GetCap", _wrap_wxPen_GetCap, 1 },
4496 { "new_wxPen", _wrap_new_wxPen, 1 },
4497 { "wxColour_Get", _wrap_wxColour_Get, 1 },
4498 { "wxColour_Set", _wrap_wxColour_Set, 1 },
4499 { "wxColour_Ok", _wrap_wxColour_Ok, 1 },
4500 { "wxColour_Blue", _wrap_wxColour_Blue, 1 },
4501 { "wxColour_Green", _wrap_wxColour_Green, 1 },
4502 { "wxColour_Red", _wrap_wxColour_Red, 1 },
4503 { "delete_wxColour", _wrap_delete_wxColour, 1 },
4504 { "new_wxColour", _wrap_new_wxColour, 1 },
4505 { "wxFont_GetWeight", _wrap_wxFont_GetWeight, 1 },
4506 { "wxFont_GetUnderlined", _wrap_wxFont_GetUnderlined, 1 },
4507 { "wxFont_GetStyle", _wrap_wxFont_GetStyle, 1 },
4508 { "wxFont_GetPointSize", _wrap_wxFont_GetPointSize, 1 },
4509 { "wxFont_GetFontId", _wrap_wxFont_GetFontId, 1 },
4510 { "wxFont_GetFamily", _wrap_wxFont_GetFamily, 1 },
4511 { "wxFont_GetFaceName", _wrap_wxFont_GetFaceName, 1 },
4512 { "new_wxFont", _wrap_new_wxFont, 1 },
4513 { "wxCursor_Ok", _wrap_wxCursor_Ok, 1 },
4514 { "delete_wxCursor", _wrap_delete_wxCursor, 1 },
4515 { "wxIcon_SetWidth", _wrap_wxIcon_SetWidth, 1 },
4516 { "wxIcon_SetHeight", _wrap_wxIcon_SetHeight, 1 },
4517 { "wxIcon_SetDepth", _wrap_wxIcon_SetDepth, 1 },
4518 { "wxIcon_Ok", _wrap_wxIcon_Ok, 1 },
4519 { "wxIcon_LoadFile", _wrap_wxIcon_LoadFile, 1 },
4520 { "wxIcon_GetWidth", _wrap_wxIcon_GetWidth, 1 },
4521 { "wxIcon_GetHeight", _wrap_wxIcon_GetHeight, 1 },
4522 { "wxIcon_GetDepth", _wrap_wxIcon_GetDepth, 1 },
4523 { "delete_wxIcon", _wrap_delete_wxIcon, 1 },
4524 { "delete_wxMask", _wrap_delete_wxMask, 1 },
4525 { "new_wxMask", _wrap_new_wxMask, 1 },
4526 { "wxBitmap_SetWidth", _wrap_wxBitmap_SetWidth, 1 },
4527 { "wxBitmap_SetMask", _wrap_wxBitmap_SetMask, 1 },
4528 { "wxBitmap_SetHeight", _wrap_wxBitmap_SetHeight, 1 },
4529 { "wxBitmap_SetDepth", _wrap_wxBitmap_SetDepth, 1 },
4530 { "wxBitmap_SaveFile", _wrap_wxBitmap_SaveFile, 1 },
4531 { "wxBitmap_Ok", _wrap_wxBitmap_Ok, 1 },
4532 { "wxBitmap_LoadFile", _wrap_wxBitmap_LoadFile, 1 },
4533 { "wxBitmap_GetWidth", _wrap_wxBitmap_GetWidth, 1 },
4534 { "wxBitmap_GetMask", _wrap_wxBitmap_GetMask, 1 },
4535 { "wxBitmap_GetPalette", _wrap_wxBitmap_GetPalette, 1 },
4536 { "wxBitmap_GetHeight", _wrap_wxBitmap_GetHeight, 1 },
4537 { "wxBitmap_GetDepth", _wrap_wxBitmap_GetDepth, 1 },
4538 { "delete_wxBitmap", _wrap_delete_wxBitmap, 1 },
4539 { "new_wxBitmap", _wrap_new_wxBitmap, 1 },
4540 { "wxMemoryDCFromDC", _wrap_wxMemoryDCFromDC, 1 },
4541 { "wxNamedColour", _wrap_wxNamedColour, 1 },
4542 { "wxStockCursor", _wrap_wxStockCursor, 1 },
4543 { "wxMaskColour", _wrap_wxMaskColour, 1 },
4544 { "wxNoRefBitmap", _wrap_wxNoRefBitmap, 1 },
4545 { "wxEmptyBitmap", _wrap_wxEmptyBitmap, 1 },
4546 { NULL, NULL }
4547 };
4548 static PyObject *SWIG_globals;
4549 #ifdef __cplusplus
4550 extern "C"
4551 #endif
4552 SWIGEXPORT(void,initgdic)() {
4553 PyObject *m, *d;
4554 SWIG_globals = SWIG_newvarlink();
4555 m = Py_InitModule("gdic", gdicMethods);
4556 d = PyModule_GetDict(m);
4557 PyDict_SetItemString(d,"cvar", SWIG_globals);
4558 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
4559 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
4560 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
4561 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
4562 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
4563 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
4564 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
4565 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
4566 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
4567 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
4568 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
4569 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
4570 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
4571 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
4572 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
4573 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
4574 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
4575 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
4576 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
4577 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
4578 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
4579 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
4580 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
4581 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
4582 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
4583 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
4584 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
4585 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
4586 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
4587 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
4588 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
4589 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
4590 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
4591 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
4592 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
4593 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
4594 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
4595 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
4596 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
4597 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
4598 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
4599 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
4600 /*
4601 * These are the pointer type-equivalency mappings.
4602 * (Used by the SWIG pointer type-checker).
4603 */
4604 SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
4605 SWIG_RegisterMapping("_signed_long","_long",0);
4606 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
4607 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
4608 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
4609 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
4610 SWIG_RegisterMapping("_byte","_unsigned_char",0);
4611 SWIG_RegisterMapping("_long","_wxDash",0);
4612 SWIG_RegisterMapping("_long","_unsigned_long",0);
4613 SWIG_RegisterMapping("_long","_signed_long",0);
4614 SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
4615 SWIG_RegisterMapping("_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC);
4616 SWIG_RegisterMapping("_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC);
4617 SWIG_RegisterMapping("_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC);
4618 SWIG_RegisterMapping("_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC);
4619 SWIG_RegisterMapping("_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC);
4620 SWIG_RegisterMapping("_wxDC","_wxClientDC",SwigwxClientDCTowxDC);
4621 SWIG_RegisterMapping("_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC);
4622 SWIG_RegisterMapping("_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC);
4623 SWIG_RegisterMapping("_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC);
4624 SWIG_RegisterMapping("_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC);
4625 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
4626 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
4627 SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
4628 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
4629 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
4630 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
4631 SWIG_RegisterMapping("_uint","_unsigned_int",0);
4632 SWIG_RegisterMapping("_uint","_int",0);
4633 SWIG_RegisterMapping("_uint","_wxWindowID",0);
4634 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
4635 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
4636 SWIG_RegisterMapping("_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap);
4637 SWIG_RegisterMapping("_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap);
4638 SWIG_RegisterMapping("_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap);
4639 SWIG_RegisterMapping("_wxBitmap","_wxIcon",SwigwxIconTowxBitmap);
4640 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
4641 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
4642 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
4643 SWIG_RegisterMapping("_EBool","_signed_int",0);
4644 SWIG_RegisterMapping("_EBool","_int",0);
4645 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
4646 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
4647 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
4648 SWIG_RegisterMapping("_unsigned_long","_long",0);
4649 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
4650 SWIG_RegisterMapping("_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC);
4651 SWIG_RegisterMapping("_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC);
4652 SWIG_RegisterMapping("_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC);
4653 SWIG_RegisterMapping("_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC);
4654 SWIG_RegisterMapping("_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC);
4655 SWIG_RegisterMapping("_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC);
4656 SWIG_RegisterMapping("_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC);
4657 SWIG_RegisterMapping("_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC);
4658 SWIG_RegisterMapping("_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC);
4659 SWIG_RegisterMapping("_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC);
4660 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
4661 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
4662 SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
4663 SWIG_RegisterMapping("_signed_int","_EBool",0);
4664 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
4665 SWIG_RegisterMapping("_signed_int","_int",0);
4666 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
4667 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
4668 SWIG_RegisterMapping("_WXTYPE","_short",0);
4669 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
4670 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
4671 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
4672 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
4673 SWIG_RegisterMapping("_unsigned_short","_short",0);
4674 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
4675 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
4676 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
4677 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
4678 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
4679 SWIG_RegisterMapping("_signed_short","_short",0);
4680 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
4681 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
4682 SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
4683 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
4684 SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
4685 SWIG_RegisterMapping("_unsigned_char","_byte",0);
4686 SWIG_RegisterMapping("_unsigned_int","_uint",0);
4687 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
4688 SWIG_RegisterMapping("_unsigned_int","_int",0);
4689 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
4690 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
4691 SWIG_RegisterMapping("_short","_WXTYPE",0);
4692 SWIG_RegisterMapping("_short","_unsigned_short",0);
4693 SWIG_RegisterMapping("_short","_signed_short",0);
4694 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
4695 SWIG_RegisterMapping("_wxWindowID","_uint",0);
4696 SWIG_RegisterMapping("_wxWindowID","_int",0);
4697 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
4698 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
4699 SWIG_RegisterMapping("_int","_EBool",0);
4700 SWIG_RegisterMapping("_int","_uint",0);
4701 SWIG_RegisterMapping("_int","_wxWindowID",0);
4702 SWIG_RegisterMapping("_int","_unsigned_int",0);
4703 SWIG_RegisterMapping("_int","_signed_int",0);
4704 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
4705 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
4706 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
4707 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
4708 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
4709 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
4710 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
4711 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
4712 SWIG_RegisterMapping("_class_wxBitmap","_class_wxCursor",SwigwxCursorTowxBitmap);
4713 SWIG_RegisterMapping("_class_wxBitmap","_wxCursor",SwigwxCursorTowxBitmap);
4714 SWIG_RegisterMapping("_class_wxBitmap","_class_wxIcon",SwigwxIconTowxBitmap);
4715 SWIG_RegisterMapping("_class_wxBitmap","_wxIcon",SwigwxIconTowxBitmap);
4716 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
4717 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
4718 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
4719 SWIG_RegisterMapping("_wxDash","_long",0);
4720 }