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