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