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