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