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