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