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