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