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