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