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