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