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