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