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