]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Added wxListCtrlAutoWidthMixin from Erik Westra.
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : src/msw/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/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64 #include <wx/dcbuffer.h>
65
66
67 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
68 PyObject* o2;
69 PyObject* o3;
70
71 if (!target) {
72 target = o;
73 } else if (target == Py_None) {
74 Py_DECREF(Py_None);
75 target = o;
76 } else {
77 if (!PyTuple_Check(target)) {
78 o2 = target;
79 target = PyTuple_New(1);
80 PyTuple_SetItem(target, 0, o2);
81 }
82 o3 = PyTuple_New(1);
83 PyTuple_SetItem(o3, 0, o);
84
85 o2 = target;
86 target = PySequence_Concat(o2, o3);
87 Py_DECREF(o2);
88 Py_DECREF(o3);
89 }
90 return target;
91 }
92
93 // Put some wx default wxChar* values into wxStrings.
94 static const wxString wxPyEmptyString(wxT(""));
95 // Implementations of some alternate "constructors"
96
97 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
98 return new wxBitmap(width, height, depth);
99 }
100
101 static char** ConvertListOfStrings(PyObject* listOfStrings) {
102 char** cArray = NULL;
103 int count;
104
105 if (!PyList_Check(listOfStrings)) {
106 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
107 return NULL;
108 }
109 count = PyList_Size(listOfStrings);
110 cArray = new char*[count];
111
112 for(int x=0; x<count; x++) {
113 // TODO: Need some validation and error checking here
114 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
115 }
116 return cArray;
117 }
118
119
120 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
121 char** cArray = NULL;
122 wxBitmap* bmp;
123
124 cArray = ConvertListOfStrings(listOfStrings);
125 if (! cArray)
126 return NULL;
127 bmp = new wxBitmap(cArray);
128 delete [] cArray;
129 return bmp;
130 }
131
132
133 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
134 return new wxBitmap(icon);
135 }
136
137
138 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
139 return new wxBitmap(bits, width, height, depth);
140 }
141
142
143 // #ifdef __WXMSW__
144 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
145 // int width, int height, int depth = 1) {
146 // if (! PyString_Check(data)) {
147 // PyErr_SetString(PyExc_TypeError, "Expected string object");
148 // return NULL;
149 // }
150 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
151 // }
152 // #endif
153
154 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
155 return new wxMask(bitmap, colour);
156 }
157 // Implementations of some alternate "constructors"
158 wxIcon* wxEmptyIcon() {
159 return new wxIcon();
160 }
161
162 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
163 char** cArray = NULL;
164 wxIcon* icon;
165
166 cArray = ConvertListOfStrings(listOfStrings);
167 if (! cArray)
168 return NULL;
169 icon = new wxIcon(cArray);
170 delete [] cArray;
171 return icon;
172 }
173
174 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
175 wxIcon* icon = new wxIcon();
176 icon->CopyFromBitmap(bmp);
177 return icon;
178 }
179 // Alternate 'constructor'
180 wxCursor* wxPyStockCursor(int id) {
181 return new wxCursor(id);
182 }
183 // Alternate 'constructor'
184 wxColour* wxNamedColour(const wxString& colorName) {
185 return new wxColour(colorName);
186 }
187
188 class wxPyPen : public wxPen {
189 public:
190 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
191 : wxPen(colour, width, style)
192 { m_dash = NULL; }
193 ~wxPyPen() {
194 if (m_dash)
195 delete [] m_dash;
196 }
197
198 void SetDashes(int nb_dashes, const wxDash *dash) {
199 if (m_dash)
200 delete [] m_dash;
201 m_dash = new wxDash[nb_dashes];
202 for (int i=0; i<nb_dashes; i++) {
203 m_dash[i] = dash[i];
204 }
205 wxPen::SetDashes(nb_dashes, m_dash);
206 }
207
208 private:
209 wxDash* m_dash;
210 };
211
212 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
213 *x1 = dc->MinX();
214 *y1 = dc->MinY();
215 *x2 = dc->MaxX();
216 *y2 = dc->MaxY();
217 }
218 // Alternate 'constructor'
219 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
220 return new wxMemoryDC(oldDC);
221 }
222
223 #include <wx/metafile.h>
224
225 #if 0
226 extern wxFont * wxNORMAL_FONT;
227 extern wxFont * wxSMALL_FONT;
228 extern wxFont * wxITALIC_FONT;
229 extern wxFont * wxSWISS_FONT;
230 extern wxPen * wxRED_PEN;
231 extern wxPen * wxCYAN_PEN;
232 extern wxPen * wxGREEN_PEN;
233 extern wxPen * wxBLACK_PEN;
234 extern wxPen * wxWHITE_PEN;
235 extern wxPen * wxTRANSPARENT_PEN;
236 extern wxPen * wxBLACK_DASHED_PEN;
237 extern wxPen * wxGREY_PEN;
238 extern wxPen * wxMEDIUM_GREY_PEN;
239 extern wxPen * wxLIGHT_GREY_PEN;
240 extern wxBrush * wxBLUE_BRUSH;
241 extern wxBrush * wxGREEN_BRUSH;
242 extern wxBrush * wxWHITE_BRUSH;
243 extern wxBrush * wxBLACK_BRUSH;
244 extern wxBrush * wxTRANSPARENT_BRUSH;
245 extern wxBrush * wxCYAN_BRUSH;
246 extern wxBrush * wxRED_BRUSH;
247 extern wxBrush * wxGREY_BRUSH;
248 extern wxBrush * wxMEDIUM_GREY_BRUSH;
249 extern wxBrush * wxLIGHT_GREY_BRUSH;
250 extern wxColour * wxBLACK;
251 extern wxColour * wxWHITE;
252 extern wxColour * wxRED;
253 extern wxColour * wxBLUE;
254 extern wxColour * wxGREEN;
255 extern wxColour * wxCYAN;
256 extern wxColour * wxLIGHT_GREY;
257 extern wxCursor * wxSTANDARD_CURSOR;
258 extern wxCursor * wxHOURGLASS_CURSOR;
259 extern wxCursor * wxCROSS_CURSOR;
260 extern wxBitmap wxNullBitmap;
261 extern wxIcon wxNullIcon;
262 extern wxCursor wxNullCursor;
263 extern wxPen wxNullPen;
264 extern wxBrush wxNullBrush;
265 extern wxPalette wxNullPalette;
266 extern wxFont wxNullFont;
267 extern wxColour wxNullColour;
268 extern wxFontList * wxTheFontList;
269 extern wxPenList * wxThePenList;
270 extern wxBrushList * wxTheBrushList;
271 extern wxColourDatabase * wxTheColourDatabase;
272
273 #endif
274 #ifdef __cplusplus
275 extern "C" {
276 #endif
277 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
278 PyObject * _resultobj;
279 wxBitmap * _result;
280 int _arg0;
281 int _arg1;
282 int _arg2 = (int ) -1;
283 char *_kwnames[] = { "width","height","depth", NULL };
284 char _ptemp[128];
285
286 self = self;
287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
288 return NULL;
289 {
290 PyThreadState* __tstate = wxPyBeginAllowThreads();
291 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
292
293 wxPyEndAllowThreads(__tstate);
294 if (PyErr_Occurred()) return NULL;
295 } if (_result) {
296 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
297 _resultobj = Py_BuildValue("s",_ptemp);
298 } else {
299 Py_INCREF(Py_None);
300 _resultobj = Py_None;
301 }
302 return _resultobj;
303 }
304
305 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
306 PyObject * _resultobj;
307 wxBitmap * _result;
308 PyObject * _arg0;
309 PyObject * _obj0 = 0;
310 char *_kwnames[] = { "listOfStrings", NULL };
311 char _ptemp[128];
312
313 self = self;
314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
315 return NULL;
316 {
317 _arg0 = _obj0;
318 }
319 {
320 PyThreadState* __tstate = wxPyBeginAllowThreads();
321 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
322
323 wxPyEndAllowThreads(__tstate);
324 if (PyErr_Occurred()) return NULL;
325 } if (_result) {
326 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
327 _resultobj = Py_BuildValue("s",_ptemp);
328 } else {
329 Py_INCREF(Py_None);
330 _resultobj = Py_None;
331 }
332 return _resultobj;
333 }
334
335 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
336 PyObject * _resultobj;
337 wxBitmap * _result;
338 wxIcon * _arg0;
339 PyObject * _argo0 = 0;
340 char *_kwnames[] = { "icon", NULL };
341 char _ptemp[128];
342
343 self = self;
344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
345 return NULL;
346 if (_argo0) {
347 if (_argo0 == Py_None) { _arg0 = NULL; }
348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
350 return NULL;
351 }
352 }
353 {
354 PyThreadState* __tstate = wxPyBeginAllowThreads();
355 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
356
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
359 } if (_result) {
360 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
361 _resultobj = Py_BuildValue("s",_ptemp);
362 } else {
363 Py_INCREF(Py_None);
364 _resultobj = Py_None;
365 }
366 return _resultobj;
367 }
368
369 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
370 PyObject * _resultobj;
371 wxBitmap * _result;
372 char * _arg0;
373 int _arg1;
374 int _arg2;
375 int _arg3 = (int ) 1;
376 char *_kwnames[] = { "bits","width","height","depth", NULL };
377 char _ptemp[128];
378
379 self = self;
380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
381 return NULL;
382 {
383 PyThreadState* __tstate = wxPyBeginAllowThreads();
384 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
385
386 wxPyEndAllowThreads(__tstate);
387 if (PyErr_Occurred()) return NULL;
388 } if (_result) {
389 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
390 _resultobj = Py_BuildValue("s",_ptemp);
391 } else {
392 Py_INCREF(Py_None);
393 _resultobj = Py_None;
394 }
395 return _resultobj;
396 }
397
398 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
399 PyObject * _resultobj;
400 wxMask * _result;
401 wxBitmap * _arg0;
402 wxColour * _arg1;
403 PyObject * _argo0 = 0;
404 wxColour temp;
405 PyObject * _obj1 = 0;
406 char *_kwnames[] = { "bitmap","colour", NULL };
407 char _ptemp[128];
408
409 self = self;
410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
411 return NULL;
412 if (_argo0) {
413 if (_argo0 == Py_None) { _arg0 = NULL; }
414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
416 return NULL;
417 }
418 }
419 {
420 _arg1 = &temp;
421 if (! wxColour_helper(_obj1, &_arg1))
422 return NULL;
423 }
424 {
425 PyThreadState* __tstate = wxPyBeginAllowThreads();
426 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
427
428 wxPyEndAllowThreads(__tstate);
429 if (PyErr_Occurred()) return NULL;
430 } if (_result) {
431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
432 _resultobj = Py_BuildValue("s",_ptemp);
433 } else {
434 Py_INCREF(Py_None);
435 _resultobj = Py_None;
436 }
437 return _resultobj;
438 }
439
440 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
441 PyObject * _resultobj;
442 wxIcon * _result;
443 char *_kwnames[] = { NULL };
444 char _ptemp[128];
445
446 self = self;
447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
448 return NULL;
449 {
450 PyThreadState* __tstate = wxPyBeginAllowThreads();
451 _result = (wxIcon *)wxEmptyIcon();
452
453 wxPyEndAllowThreads(__tstate);
454 if (PyErr_Occurred()) return NULL;
455 } if (_result) {
456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
457 _resultobj = Py_BuildValue("s",_ptemp);
458 } else {
459 Py_INCREF(Py_None);
460 _resultobj = Py_None;
461 }
462 return _resultobj;
463 }
464
465 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
466 PyObject * _resultobj;
467 wxIcon * _result;
468 PyObject * _arg0;
469 PyObject * _obj0 = 0;
470 char *_kwnames[] = { "listOfStrings", NULL };
471 char _ptemp[128];
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
475 return NULL;
476 {
477 _arg0 = _obj0;
478 }
479 {
480 PyThreadState* __tstate = wxPyBeginAllowThreads();
481 _result = (wxIcon *)wxIconFromXPMData(_arg0);
482
483 wxPyEndAllowThreads(__tstate);
484 if (PyErr_Occurred()) return NULL;
485 } if (_result) {
486 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
487 _resultobj = Py_BuildValue("s",_ptemp);
488 } else {
489 Py_INCREF(Py_None);
490 _resultobj = Py_None;
491 }
492 return _resultobj;
493 }
494
495 static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
496 PyObject * _resultobj;
497 wxIcon * _result;
498 wxBitmap * _arg0;
499 PyObject * _argo0 = 0;
500 char *_kwnames[] = { "bmp", NULL };
501 char _ptemp[128];
502
503 self = self;
504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
505 return NULL;
506 if (_argo0) {
507 if (_argo0 == Py_None) { _arg0 = NULL; }
508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
510 return NULL;
511 }
512 }
513 {
514 PyThreadState* __tstate = wxPyBeginAllowThreads();
515 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
516
517 wxPyEndAllowThreads(__tstate);
518 if (PyErr_Occurred()) return NULL;
519 } if (_result) {
520 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
521 _resultobj = Py_BuildValue("s",_ptemp);
522 } else {
523 Py_INCREF(Py_None);
524 _resultobj = Py_None;
525 }
526 return _resultobj;
527 }
528
529 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
530 PyObject * _resultobj;
531 wxCursor * _result;
532 int _arg0;
533 char *_kwnames[] = { "id", NULL };
534 char _ptemp[128];
535
536 self = self;
537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
538 return NULL;
539 {
540 PyThreadState* __tstate = wxPyBeginAllowThreads();
541 _result = (wxCursor *)wxPyStockCursor(_arg0);
542
543 wxPyEndAllowThreads(__tstate);
544 if (PyErr_Occurred()) return NULL;
545 } if (_result) {
546 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
547 _resultobj = Py_BuildValue("s",_ptemp);
548 } else {
549 Py_INCREF(Py_None);
550 _resultobj = Py_None;
551 }
552 return _resultobj;
553 }
554
555 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
556 PyObject * _resultobj;
557 wxColour * _result;
558 wxString * _arg0;
559 PyObject * _obj0 = 0;
560 char *_kwnames[] = { "colorName", NULL };
561 char _ptemp[128];
562
563 self = self;
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
565 return NULL;
566 {
567 _arg0 = wxString_in_helper(_obj0);
568 if (_arg0 == NULL)
569 return NULL;
570 }
571 {
572 PyThreadState* __tstate = wxPyBeginAllowThreads();
573 _result = (wxColour *)wxNamedColour(*_arg0);
574
575 wxPyEndAllowThreads(__tstate);
576 if (PyErr_Occurred()) return NULL;
577 } if (_result) {
578 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
579 _resultobj = Py_BuildValue("s",_ptemp);
580 } else {
581 Py_INCREF(Py_None);
582 _resultobj = Py_None;
583 }
584 {
585 if (_obj0)
586 delete _arg0;
587 }
588 return _resultobj;
589 }
590
591 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
592 PyObject * _resultobj;
593 wxMemoryDC * _result;
594 wxDC * _arg0;
595 PyObject * _argo0 = 0;
596 char *_kwnames[] = { "oldDC", NULL };
597 char _ptemp[128];
598
599 self = self;
600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
601 return NULL;
602 if (_argo0) {
603 if (_argo0 == Py_None) { _arg0 = NULL; }
604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
606 return NULL;
607 }
608 }
609 {
610 PyThreadState* __tstate = wxPyBeginAllowThreads();
611 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
612
613 wxPyEndAllowThreads(__tstate);
614 if (PyErr_Occurred()) return NULL;
615 } if (_result) {
616 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
617 _resultobj = Py_BuildValue("s",_ptemp);
618 } else {
619 Py_INCREF(Py_None);
620 _resultobj = Py_None;
621 }
622 return _resultobj;
623 }
624
625 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
626
627 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
628 return 1;
629 }
630
631 static PyObject *_wrap_wxNORMAL_FONT_get() {
632 PyObject * pyobj;
633 char ptemp[128];
634
635 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
636 pyobj = PyString_FromString(ptemp);
637 return pyobj;
638 }
639
640 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
641
642 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
643 return 1;
644 }
645
646 static PyObject *_wrap_wxSMALL_FONT_get() {
647 PyObject * pyobj;
648 char ptemp[128];
649
650 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
651 pyobj = PyString_FromString(ptemp);
652 return pyobj;
653 }
654
655 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
656
657 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
658 return 1;
659 }
660
661 static PyObject *_wrap_wxITALIC_FONT_get() {
662 PyObject * pyobj;
663 char ptemp[128];
664
665 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
666 pyobj = PyString_FromString(ptemp);
667 return pyobj;
668 }
669
670 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
671
672 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
673 return 1;
674 }
675
676 static PyObject *_wrap_wxSWISS_FONT_get() {
677 PyObject * pyobj;
678 char ptemp[128];
679
680 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
681 pyobj = PyString_FromString(ptemp);
682 return pyobj;
683 }
684
685 static int _wrap_wxRED_PEN_set(PyObject *val) {
686
687 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
688 return 1;
689 }
690
691 static PyObject *_wrap_wxRED_PEN_get() {
692 PyObject * pyobj;
693 char ptemp[128];
694
695 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
696 pyobj = PyString_FromString(ptemp);
697 return pyobj;
698 }
699
700 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
701
702 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
703 return 1;
704 }
705
706 static PyObject *_wrap_wxCYAN_PEN_get() {
707 PyObject * pyobj;
708 char ptemp[128];
709
710 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
711 pyobj = PyString_FromString(ptemp);
712 return pyobj;
713 }
714
715 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
716
717 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
718 return 1;
719 }
720
721 static PyObject *_wrap_wxGREEN_PEN_get() {
722 PyObject * pyobj;
723 char ptemp[128];
724
725 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
726 pyobj = PyString_FromString(ptemp);
727 return pyobj;
728 }
729
730 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
731
732 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
733 return 1;
734 }
735
736 static PyObject *_wrap_wxBLACK_PEN_get() {
737 PyObject * pyobj;
738 char ptemp[128];
739
740 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
741 pyobj = PyString_FromString(ptemp);
742 return pyobj;
743 }
744
745 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
746
747 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
748 return 1;
749 }
750
751 static PyObject *_wrap_wxWHITE_PEN_get() {
752 PyObject * pyobj;
753 char ptemp[128];
754
755 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
756 pyobj = PyString_FromString(ptemp);
757 return pyobj;
758 }
759
760 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
761
762 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
763 return 1;
764 }
765
766 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
767 PyObject * pyobj;
768 char ptemp[128];
769
770 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
771 pyobj = PyString_FromString(ptemp);
772 return pyobj;
773 }
774
775 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
776
777 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
778 return 1;
779 }
780
781 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
782 PyObject * pyobj;
783 char ptemp[128];
784
785 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
786 pyobj = PyString_FromString(ptemp);
787 return pyobj;
788 }
789
790 static int _wrap_wxGREY_PEN_set(PyObject *val) {
791
792 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
793 return 1;
794 }
795
796 static PyObject *_wrap_wxGREY_PEN_get() {
797 PyObject * pyobj;
798 char ptemp[128];
799
800 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
801 pyobj = PyString_FromString(ptemp);
802 return pyobj;
803 }
804
805 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
806
807 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
808 return 1;
809 }
810
811 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
812 PyObject * pyobj;
813 char ptemp[128];
814
815 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
816 pyobj = PyString_FromString(ptemp);
817 return pyobj;
818 }
819
820 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
821
822 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
823 return 1;
824 }
825
826 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
827 PyObject * pyobj;
828 char ptemp[128];
829
830 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
831 pyobj = PyString_FromString(ptemp);
832 return pyobj;
833 }
834
835 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
836
837 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
838 return 1;
839 }
840
841 static PyObject *_wrap_wxBLUE_BRUSH_get() {
842 PyObject * pyobj;
843 char ptemp[128];
844
845 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
846 pyobj = PyString_FromString(ptemp);
847 return pyobj;
848 }
849
850 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
851
852 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
853 return 1;
854 }
855
856 static PyObject *_wrap_wxGREEN_BRUSH_get() {
857 PyObject * pyobj;
858 char ptemp[128];
859
860 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
861 pyobj = PyString_FromString(ptemp);
862 return pyobj;
863 }
864
865 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
866
867 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
868 return 1;
869 }
870
871 static PyObject *_wrap_wxWHITE_BRUSH_get() {
872 PyObject * pyobj;
873 char ptemp[128];
874
875 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
876 pyobj = PyString_FromString(ptemp);
877 return pyobj;
878 }
879
880 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
881
882 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
883 return 1;
884 }
885
886 static PyObject *_wrap_wxBLACK_BRUSH_get() {
887 PyObject * pyobj;
888 char ptemp[128];
889
890 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
891 pyobj = PyString_FromString(ptemp);
892 return pyobj;
893 }
894
895 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
896
897 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
898 return 1;
899 }
900
901 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
902 PyObject * pyobj;
903 char ptemp[128];
904
905 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
906 pyobj = PyString_FromString(ptemp);
907 return pyobj;
908 }
909
910 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
911
912 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
913 return 1;
914 }
915
916 static PyObject *_wrap_wxCYAN_BRUSH_get() {
917 PyObject * pyobj;
918 char ptemp[128];
919
920 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
921 pyobj = PyString_FromString(ptemp);
922 return pyobj;
923 }
924
925 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
926
927 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
928 return 1;
929 }
930
931 static PyObject *_wrap_wxRED_BRUSH_get() {
932 PyObject * pyobj;
933 char ptemp[128];
934
935 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
936 pyobj = PyString_FromString(ptemp);
937 return pyobj;
938 }
939
940 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
941
942 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
943 return 1;
944 }
945
946 static PyObject *_wrap_wxGREY_BRUSH_get() {
947 PyObject * pyobj;
948 char ptemp[128];
949
950 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
951 pyobj = PyString_FromString(ptemp);
952 return pyobj;
953 }
954
955 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
956
957 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
958 return 1;
959 }
960
961 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
962 PyObject * pyobj;
963 char ptemp[128];
964
965 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
966 pyobj = PyString_FromString(ptemp);
967 return pyobj;
968 }
969
970 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
971
972 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
973 return 1;
974 }
975
976 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
977 PyObject * pyobj;
978 char ptemp[128];
979
980 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
981 pyobj = PyString_FromString(ptemp);
982 return pyobj;
983 }
984
985 static int _wrap_wxBLACK_set(PyObject *val) {
986
987 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
988 return 1;
989 }
990
991 static PyObject *_wrap_wxBLACK_get() {
992 PyObject * pyobj;
993 char ptemp[128];
994
995 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
996 pyobj = PyString_FromString(ptemp);
997 return pyobj;
998 }
999
1000 static int _wrap_wxWHITE_set(PyObject *val) {
1001
1002 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1003 return 1;
1004 }
1005
1006 static PyObject *_wrap_wxWHITE_get() {
1007 PyObject * pyobj;
1008 char ptemp[128];
1009
1010 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1011 pyobj = PyString_FromString(ptemp);
1012 return pyobj;
1013 }
1014
1015 static int _wrap_wxRED_set(PyObject *val) {
1016
1017 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1018 return 1;
1019 }
1020
1021 static PyObject *_wrap_wxRED_get() {
1022 PyObject * pyobj;
1023 char ptemp[128];
1024
1025 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1026 pyobj = PyString_FromString(ptemp);
1027 return pyobj;
1028 }
1029
1030 static int _wrap_wxBLUE_set(PyObject *val) {
1031
1032 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1033 return 1;
1034 }
1035
1036 static PyObject *_wrap_wxBLUE_get() {
1037 PyObject * pyobj;
1038 char ptemp[128];
1039
1040 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1041 pyobj = PyString_FromString(ptemp);
1042 return pyobj;
1043 }
1044
1045 static int _wrap_wxGREEN_set(PyObject *val) {
1046
1047 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1048 return 1;
1049 }
1050
1051 static PyObject *_wrap_wxGREEN_get() {
1052 PyObject * pyobj;
1053 char ptemp[128];
1054
1055 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1056 pyobj = PyString_FromString(ptemp);
1057 return pyobj;
1058 }
1059
1060 static int _wrap_wxCYAN_set(PyObject *val) {
1061
1062 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1063 return 1;
1064 }
1065
1066 static PyObject *_wrap_wxCYAN_get() {
1067 PyObject * pyobj;
1068 char ptemp[128];
1069
1070 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1071 pyobj = PyString_FromString(ptemp);
1072 return pyobj;
1073 }
1074
1075 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1076
1077 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1078 return 1;
1079 }
1080
1081 static PyObject *_wrap_wxLIGHT_GREY_get() {
1082 PyObject * pyobj;
1083 char ptemp[128];
1084
1085 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1086 pyobj = PyString_FromString(ptemp);
1087 return pyobj;
1088 }
1089
1090 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1091
1092 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1093 return 1;
1094 }
1095
1096 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1097 PyObject * pyobj;
1098 char ptemp[128];
1099
1100 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1101 pyobj = PyString_FromString(ptemp);
1102 return pyobj;
1103 }
1104
1105 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1106
1107 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1108 return 1;
1109 }
1110
1111 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1112 PyObject * pyobj;
1113 char ptemp[128];
1114
1115 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1116 pyobj = PyString_FromString(ptemp);
1117 return pyobj;
1118 }
1119
1120 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1121
1122 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1123 return 1;
1124 }
1125
1126 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1127 PyObject * pyobj;
1128 char ptemp[128];
1129
1130 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1131 pyobj = PyString_FromString(ptemp);
1132 return pyobj;
1133 }
1134
1135 static int _wrap_wxNullBitmap_set(PyObject *val) {
1136
1137 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1138 return 1;
1139 }
1140
1141 static PyObject *_wrap_wxNullBitmap_get() {
1142 PyObject * pyobj;
1143 char ptemp[128];
1144
1145 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1146 pyobj = PyString_FromString(ptemp);
1147 return pyobj;
1148 }
1149
1150 static int _wrap_wxNullIcon_set(PyObject *val) {
1151
1152 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1153 return 1;
1154 }
1155
1156 static PyObject *_wrap_wxNullIcon_get() {
1157 PyObject * pyobj;
1158 char ptemp[128];
1159
1160 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1161 pyobj = PyString_FromString(ptemp);
1162 return pyobj;
1163 }
1164
1165 static int _wrap_wxNullCursor_set(PyObject *val) {
1166
1167 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1168 return 1;
1169 }
1170
1171 static PyObject *_wrap_wxNullCursor_get() {
1172 PyObject * pyobj;
1173 char ptemp[128];
1174
1175 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1176 pyobj = PyString_FromString(ptemp);
1177 return pyobj;
1178 }
1179
1180 static int _wrap_wxNullPen_set(PyObject *val) {
1181
1182 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1183 return 1;
1184 }
1185
1186 static PyObject *_wrap_wxNullPen_get() {
1187 PyObject * pyobj;
1188 char ptemp[128];
1189
1190 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1191 pyobj = PyString_FromString(ptemp);
1192 return pyobj;
1193 }
1194
1195 static int _wrap_wxNullBrush_set(PyObject *val) {
1196
1197 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1198 return 1;
1199 }
1200
1201 static PyObject *_wrap_wxNullBrush_get() {
1202 PyObject * pyobj;
1203 char ptemp[128];
1204
1205 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1206 pyobj = PyString_FromString(ptemp);
1207 return pyobj;
1208 }
1209
1210 static int _wrap_wxNullPalette_set(PyObject *val) {
1211
1212 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1213 return 1;
1214 }
1215
1216 static PyObject *_wrap_wxNullPalette_get() {
1217 PyObject * pyobj;
1218 char ptemp[128];
1219
1220 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1221 pyobj = PyString_FromString(ptemp);
1222 return pyobj;
1223 }
1224
1225 static int _wrap_wxNullFont_set(PyObject *val) {
1226
1227 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1228 return 1;
1229 }
1230
1231 static PyObject *_wrap_wxNullFont_get() {
1232 PyObject * pyobj;
1233 char ptemp[128];
1234
1235 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1236 pyobj = PyString_FromString(ptemp);
1237 return pyobj;
1238 }
1239
1240 static int _wrap_wxNullColour_set(PyObject *val) {
1241
1242 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1243 return 1;
1244 }
1245
1246 static PyObject *_wrap_wxNullColour_get() {
1247 PyObject * pyobj;
1248 char ptemp[128];
1249
1250 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1251 pyobj = PyString_FromString(ptemp);
1252 return pyobj;
1253 }
1254
1255 static int _wrap_wxTheFontList_set(PyObject *val) {
1256
1257 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1258 return 1;
1259 }
1260
1261 static PyObject *_wrap_wxTheFontList_get() {
1262 PyObject * pyobj;
1263 char ptemp[128];
1264
1265 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1266 pyobj = PyString_FromString(ptemp);
1267 return pyobj;
1268 }
1269
1270 static int _wrap_wxThePenList_set(PyObject *val) {
1271
1272 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1273 return 1;
1274 }
1275
1276 static PyObject *_wrap_wxThePenList_get() {
1277 PyObject * pyobj;
1278 char ptemp[128];
1279
1280 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1281 pyobj = PyString_FromString(ptemp);
1282 return pyobj;
1283 }
1284
1285 static int _wrap_wxTheBrushList_set(PyObject *val) {
1286
1287 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1288 return 1;
1289 }
1290
1291 static PyObject *_wrap_wxTheBrushList_get() {
1292 PyObject * pyobj;
1293 char ptemp[128];
1294
1295 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1296 pyobj = PyString_FromString(ptemp);
1297 return pyobj;
1298 }
1299
1300 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1301
1302 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1303 return 1;
1304 }
1305
1306 static PyObject *_wrap_wxTheColourDatabase_get() {
1307 PyObject * pyobj;
1308 char ptemp[128];
1309
1310 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1311 pyobj = PyString_FromString(ptemp);
1312 return pyobj;
1313 }
1314
1315 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1316 wxGDIObject *src;
1317 wxObject *dest;
1318 src = (wxGDIObject *) ptr;
1319 dest = (wxObject *) src;
1320 return (void *) dest;
1321 }
1322
1323 #define new_wxGDIObject() (new wxGDIObject())
1324 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1325 PyObject * _resultobj;
1326 wxGDIObject * _result;
1327 char *_kwnames[] = { NULL };
1328 char _ptemp[128];
1329
1330 self = self;
1331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1332 return NULL;
1333 {
1334 PyThreadState* __tstate = wxPyBeginAllowThreads();
1335 _result = (wxGDIObject *)new_wxGDIObject();
1336
1337 wxPyEndAllowThreads(__tstate);
1338 if (PyErr_Occurred()) return NULL;
1339 } if (_result) {
1340 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1341 _resultobj = Py_BuildValue("s",_ptemp);
1342 } else {
1343 Py_INCREF(Py_None);
1344 _resultobj = Py_None;
1345 }
1346 return _resultobj;
1347 }
1348
1349 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1350 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1351 PyObject * _resultobj;
1352 wxGDIObject * _arg0;
1353 PyObject * _argo0 = 0;
1354 char *_kwnames[] = { "self", NULL };
1355
1356 self = self;
1357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1358 return NULL;
1359 if (_argo0) {
1360 if (_argo0 == Py_None) { _arg0 = NULL; }
1361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1363 return NULL;
1364 }
1365 }
1366 {
1367 PyThreadState* __tstate = wxPyBeginAllowThreads();
1368 delete_wxGDIObject(_arg0);
1369
1370 wxPyEndAllowThreads(__tstate);
1371 if (PyErr_Occurred()) return NULL;
1372 } Py_INCREF(Py_None);
1373 _resultobj = Py_None;
1374 return _resultobj;
1375 }
1376
1377 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1378 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1379 PyObject * _resultobj;
1380 bool _result;
1381 wxGDIObject * _arg0;
1382 PyObject * _argo0 = 0;
1383 char *_kwnames[] = { "self", NULL };
1384
1385 self = self;
1386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1387 return NULL;
1388 if (_argo0) {
1389 if (_argo0 == Py_None) { _arg0 = NULL; }
1390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1392 return NULL;
1393 }
1394 }
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 _result = (bool )wxGDIObject_GetVisible(_arg0);
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) return NULL;
1401 } _resultobj = Py_BuildValue("i",_result);
1402 return _resultobj;
1403 }
1404
1405 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1406 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1407 PyObject * _resultobj;
1408 wxGDIObject * _arg0;
1409 bool _arg1;
1410 PyObject * _argo0 = 0;
1411 int tempbool1;
1412 char *_kwnames[] = { "self","visible", NULL };
1413
1414 self = self;
1415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1416 return NULL;
1417 if (_argo0) {
1418 if (_argo0 == Py_None) { _arg0 = NULL; }
1419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1421 return NULL;
1422 }
1423 }
1424 _arg1 = (bool ) tempbool1;
1425 {
1426 PyThreadState* __tstate = wxPyBeginAllowThreads();
1427 wxGDIObject_SetVisible(_arg0,_arg1);
1428
1429 wxPyEndAllowThreads(__tstate);
1430 if (PyErr_Occurred()) return NULL;
1431 } Py_INCREF(Py_None);
1432 _resultobj = Py_None;
1433 return _resultobj;
1434 }
1435
1436 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1437 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1438 PyObject * _resultobj;
1439 bool _result;
1440 wxGDIObject * _arg0;
1441 PyObject * _argo0 = 0;
1442 char *_kwnames[] = { "self", NULL };
1443
1444 self = self;
1445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1446 return NULL;
1447 if (_argo0) {
1448 if (_argo0 == Py_None) { _arg0 = NULL; }
1449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1451 return NULL;
1452 }
1453 }
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 _result = (bool )wxGDIObject_IsNull(_arg0);
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) return NULL;
1460 } _resultobj = Py_BuildValue("i",_result);
1461 return _resultobj;
1462 }
1463
1464 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1465 wxBitmap *src;
1466 wxGDIObject *dest;
1467 src = (wxBitmap *) ptr;
1468 dest = (wxGDIObject *) src;
1469 return (void *) dest;
1470 }
1471
1472 static void *SwigwxBitmapTowxObject(void *ptr) {
1473 wxBitmap *src;
1474 wxObject *dest;
1475 src = (wxBitmap *) ptr;
1476 dest = (wxObject *) src;
1477 return (void *) dest;
1478 }
1479
1480 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1481 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1482 PyObject * _resultobj;
1483 wxBitmap * _result;
1484 wxString * _arg0;
1485 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1486 PyObject * _obj0 = 0;
1487 char *_kwnames[] = { "name","type", NULL };
1488 char _ptemp[128];
1489
1490 self = self;
1491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1492 return NULL;
1493 {
1494 _arg0 = wxString_in_helper(_obj0);
1495 if (_arg0 == NULL)
1496 return NULL;
1497 }
1498 {
1499 PyThreadState* __tstate = wxPyBeginAllowThreads();
1500 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1501
1502 wxPyEndAllowThreads(__tstate);
1503 if (PyErr_Occurred()) return NULL;
1504 } if (_result) {
1505 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1506 _resultobj = Py_BuildValue("s",_ptemp);
1507 } else {
1508 Py_INCREF(Py_None);
1509 _resultobj = Py_None;
1510 }
1511 {
1512 if (_obj0)
1513 delete _arg0;
1514 }
1515 return _resultobj;
1516 }
1517
1518 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1519 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1520 PyObject * _resultobj;
1521 wxBitmap * _arg0;
1522 PyObject * _argo0 = 0;
1523 char *_kwnames[] = { "self", NULL };
1524
1525 self = self;
1526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1527 return NULL;
1528 if (_argo0) {
1529 if (_argo0 == Py_None) { _arg0 = NULL; }
1530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1532 return NULL;
1533 }
1534 }
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 delete_wxBitmap(_arg0);
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) return NULL;
1541 } Py_INCREF(Py_None);
1542 _resultobj = Py_None;
1543 return _resultobj;
1544 }
1545
1546 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1547 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject * _resultobj;
1549 wxPalette * _result;
1550 wxBitmap * _arg0;
1551 PyObject * _argo0 = 0;
1552 char *_kwnames[] = { "self", NULL };
1553 char _ptemp[128];
1554
1555 self = self;
1556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1557 return NULL;
1558 if (_argo0) {
1559 if (_argo0 == Py_None) { _arg0 = NULL; }
1560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1562 return NULL;
1563 }
1564 }
1565 {
1566 PyThreadState* __tstate = wxPyBeginAllowThreads();
1567 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1568
1569 wxPyEndAllowThreads(__tstate);
1570 if (PyErr_Occurred()) return NULL;
1571 } if (_result) {
1572 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1573 _resultobj = Py_BuildValue("s",_ptemp);
1574 } else {
1575 Py_INCREF(Py_None);
1576 _resultobj = Py_None;
1577 }
1578 return _resultobj;
1579 }
1580
1581 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1582 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject * _resultobj;
1584 wxMask * _result;
1585 wxBitmap * _arg0;
1586 PyObject * _argo0 = 0;
1587 char *_kwnames[] = { "self", NULL };
1588 char _ptemp[128];
1589
1590 self = self;
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1592 return NULL;
1593 if (_argo0) {
1594 if (_argo0 == Py_None) { _arg0 = NULL; }
1595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1597 return NULL;
1598 }
1599 }
1600 {
1601 PyThreadState* __tstate = wxPyBeginAllowThreads();
1602 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1603
1604 wxPyEndAllowThreads(__tstate);
1605 if (PyErr_Occurred()) return NULL;
1606 } if (_result) {
1607 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1608 _resultobj = Py_BuildValue("s",_ptemp);
1609 } else {
1610 Py_INCREF(Py_None);
1611 _resultobj = Py_None;
1612 }
1613 return _resultobj;
1614 }
1615
1616 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1617 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1618 PyObject * _resultobj;
1619 bool _result;
1620 wxBitmap * _arg0;
1621 wxString * _arg1;
1622 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
1623 PyObject * _argo0 = 0;
1624 PyObject * _obj1 = 0;
1625 char *_kwnames[] = { "self","name","type", NULL };
1626
1627 self = self;
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1629 return NULL;
1630 if (_argo0) {
1631 if (_argo0 == Py_None) { _arg0 = NULL; }
1632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1634 return NULL;
1635 }
1636 }
1637 {
1638 _arg1 = wxString_in_helper(_obj1);
1639 if (_arg1 == NULL)
1640 return NULL;
1641 }
1642 {
1643 PyThreadState* __tstate = wxPyBeginAllowThreads();
1644 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1645
1646 wxPyEndAllowThreads(__tstate);
1647 if (PyErr_Occurred()) return NULL;
1648 } _resultobj = Py_BuildValue("i",_result);
1649 {
1650 if (_obj1)
1651 delete _arg1;
1652 }
1653 return _resultobj;
1654 }
1655
1656 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1657 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1658 PyObject * _resultobj;
1659 bool _result;
1660 wxBitmap * _arg0;
1661 wxString * _arg1;
1662 wxBitmapType _arg2;
1663 wxPalette * _arg3 = (wxPalette *) NULL;
1664 PyObject * _argo0 = 0;
1665 PyObject * _obj1 = 0;
1666 PyObject * _argo3 = 0;
1667 char *_kwnames[] = { "self","name","type","palette", NULL };
1668
1669 self = self;
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1671 return NULL;
1672 if (_argo0) {
1673 if (_argo0 == Py_None) { _arg0 = NULL; }
1674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1676 return NULL;
1677 }
1678 }
1679 {
1680 _arg1 = wxString_in_helper(_obj1);
1681 if (_arg1 == NULL)
1682 return NULL;
1683 }
1684 if (_argo3) {
1685 if (_argo3 == Py_None) { _arg3 = NULL; }
1686 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1687 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1688 return NULL;
1689 }
1690 }
1691 {
1692 PyThreadState* __tstate = wxPyBeginAllowThreads();
1693 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1694
1695 wxPyEndAllowThreads(__tstate);
1696 if (PyErr_Occurred()) return NULL;
1697 } _resultobj = Py_BuildValue("i",_result);
1698 {
1699 if (_obj1)
1700 delete _arg1;
1701 }
1702 return _resultobj;
1703 }
1704
1705 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1706 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1707 PyObject * _resultobj;
1708 wxBitmap * _arg0;
1709 wxMask * _arg1;
1710 PyObject * _argo0 = 0;
1711 PyObject * _argo1 = 0;
1712 char *_kwnames[] = { "self","mask", NULL };
1713
1714 self = self;
1715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1716 return NULL;
1717 if (_argo0) {
1718 if (_argo0 == Py_None) { _arg0 = NULL; }
1719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1721 return NULL;
1722 }
1723 }
1724 if (_argo1) {
1725 if (_argo1 == Py_None) { _arg1 = NULL; }
1726 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1727 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1728 return NULL;
1729 }
1730 }
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 wxBitmap_SetMask(_arg0,_arg1);
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) return NULL;
1737 } Py_INCREF(Py_None);
1738 _resultobj = Py_None;
1739 return _resultobj;
1740 }
1741
1742 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1743 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject * _resultobj;
1745 wxBitmap * _arg0;
1746 wxPalette * _arg1;
1747 PyObject * _argo0 = 0;
1748 PyObject * _argo1 = 0;
1749 char *_kwnames[] = { "self","palette", NULL };
1750
1751 self = self;
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1753 return NULL;
1754 if (_argo0) {
1755 if (_argo0 == Py_None) { _arg0 = NULL; }
1756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1758 return NULL;
1759 }
1760 }
1761 if (_argo1) {
1762 if (_argo1 == Py_None) { _arg1 = NULL; }
1763 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1764 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1765 return NULL;
1766 }
1767 }
1768 {
1769 PyThreadState* __tstate = wxPyBeginAllowThreads();
1770 wxBitmap_SetPalette(_arg0,*_arg1);
1771
1772 wxPyEndAllowThreads(__tstate);
1773 if (PyErr_Occurred()) return NULL;
1774 } Py_INCREF(Py_None);
1775 _resultobj = Py_None;
1776 return _resultobj;
1777 }
1778
1779 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1780 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject * _resultobj;
1782 long _result;
1783 wxBitmap * _arg0;
1784 PyObject * _argo0 = 0;
1785 char *_kwnames[] = { "self", NULL };
1786
1787 self = self;
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1789 return NULL;
1790 if (_argo0) {
1791 if (_argo0 == Py_None) { _arg0 = NULL; }
1792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1794 return NULL;
1795 }
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 _result = (long )wxBitmap_GetHandle(_arg0);
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) return NULL;
1803 } _resultobj = Py_BuildValue("l",_result);
1804 return _resultobj;
1805 }
1806
1807 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1808 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1809 PyObject * _resultobj;
1810 wxBitmap * _arg0;
1811 long _arg1;
1812 PyObject * _argo0 = 0;
1813 char *_kwnames[] = { "self","handle", NULL };
1814
1815 self = self;
1816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1817 return NULL;
1818 if (_argo0) {
1819 if (_argo0 == Py_None) { _arg0 = NULL; }
1820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1822 return NULL;
1823 }
1824 }
1825 {
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 wxBitmap_SetHandle(_arg0,_arg1);
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) return NULL;
1831 } Py_INCREF(Py_None);
1832 _resultobj = Py_None;
1833 return _resultobj;
1834 }
1835
1836 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1837 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1838 PyObject * _resultobj;
1839 bool _result;
1840 wxBitmap * _arg0;
1841 PyObject * _argo0 = 0;
1842 char *_kwnames[] = { "self", NULL };
1843
1844 self = self;
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1846 return NULL;
1847 if (_argo0) {
1848 if (_argo0 == Py_None) { _arg0 = NULL; }
1849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1851 return NULL;
1852 }
1853 }
1854 {
1855 PyThreadState* __tstate = wxPyBeginAllowThreads();
1856 _result = (bool )wxBitmap_Ok(_arg0);
1857
1858 wxPyEndAllowThreads(__tstate);
1859 if (PyErr_Occurred()) return NULL;
1860 } _resultobj = Py_BuildValue("i",_result);
1861 return _resultobj;
1862 }
1863
1864 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1865 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1866 PyObject * _resultobj;
1867 int _result;
1868 wxBitmap * _arg0;
1869 PyObject * _argo0 = 0;
1870 char *_kwnames[] = { "self", NULL };
1871
1872 self = self;
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1874 return NULL;
1875 if (_argo0) {
1876 if (_argo0 == Py_None) { _arg0 = NULL; }
1877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1879 return NULL;
1880 }
1881 }
1882 {
1883 PyThreadState* __tstate = wxPyBeginAllowThreads();
1884 _result = (int )wxBitmap_GetWidth(_arg0);
1885
1886 wxPyEndAllowThreads(__tstate);
1887 if (PyErr_Occurred()) return NULL;
1888 } _resultobj = Py_BuildValue("i",_result);
1889 return _resultobj;
1890 }
1891
1892 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1893 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1894 PyObject * _resultobj;
1895 int _result;
1896 wxBitmap * _arg0;
1897 PyObject * _argo0 = 0;
1898 char *_kwnames[] = { "self", NULL };
1899
1900 self = self;
1901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1902 return NULL;
1903 if (_argo0) {
1904 if (_argo0 == Py_None) { _arg0 = NULL; }
1905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1907 return NULL;
1908 }
1909 }
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 _result = (int )wxBitmap_GetHeight(_arg0);
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) return NULL;
1916 } _resultobj = Py_BuildValue("i",_result);
1917 return _resultobj;
1918 }
1919
1920 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1921 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1922 PyObject * _resultobj;
1923 int _result;
1924 wxBitmap * _arg0;
1925 PyObject * _argo0 = 0;
1926 char *_kwnames[] = { "self", NULL };
1927
1928 self = self;
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1930 return NULL;
1931 if (_argo0) {
1932 if (_argo0 == Py_None) { _arg0 = NULL; }
1933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1935 return NULL;
1936 }
1937 }
1938 {
1939 PyThreadState* __tstate = wxPyBeginAllowThreads();
1940 _result = (int )wxBitmap_GetDepth(_arg0);
1941
1942 wxPyEndAllowThreads(__tstate);
1943 if (PyErr_Occurred()) return NULL;
1944 } _resultobj = Py_BuildValue("i",_result);
1945 return _resultobj;
1946 }
1947
1948 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1949 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1950 PyObject * _resultobj;
1951 wxBitmap * _arg0;
1952 int _arg1;
1953 PyObject * _argo0 = 0;
1954 char *_kwnames[] = { "self","w", NULL };
1955
1956 self = self;
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1958 return NULL;
1959 if (_argo0) {
1960 if (_argo0 == Py_None) { _arg0 = NULL; }
1961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1963 return NULL;
1964 }
1965 }
1966 {
1967 PyThreadState* __tstate = wxPyBeginAllowThreads();
1968 wxBitmap_SetWidth(_arg0,_arg1);
1969
1970 wxPyEndAllowThreads(__tstate);
1971 if (PyErr_Occurred()) return NULL;
1972 } Py_INCREF(Py_None);
1973 _resultobj = Py_None;
1974 return _resultobj;
1975 }
1976
1977 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1978 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject * _resultobj;
1980 wxBitmap * _arg0;
1981 int _arg1;
1982 PyObject * _argo0 = 0;
1983 char *_kwnames[] = { "self","h", NULL };
1984
1985 self = self;
1986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
1987 return NULL;
1988 if (_argo0) {
1989 if (_argo0 == Py_None) { _arg0 = NULL; }
1990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1992 return NULL;
1993 }
1994 }
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 wxBitmap_SetHeight(_arg0,_arg1);
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) return NULL;
2001 } Py_INCREF(Py_None);
2002 _resultobj = Py_None;
2003 return _resultobj;
2004 }
2005
2006 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2007 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2008 PyObject * _resultobj;
2009 wxBitmap * _arg0;
2010 int _arg1;
2011 PyObject * _argo0 = 0;
2012 char *_kwnames[] = { "self","d", NULL };
2013
2014 self = self;
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2016 return NULL;
2017 if (_argo0) {
2018 if (_argo0 == Py_None) { _arg0 = NULL; }
2019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2021 return NULL;
2022 }
2023 }
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 wxBitmap_SetDepth(_arg0,_arg1);
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) return NULL;
2030 } Py_INCREF(Py_None);
2031 _resultobj = Py_None;
2032 return _resultobj;
2033 }
2034
2035 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2036 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2037 PyObject * _resultobj;
2038 wxBitmap * _arg0;
2039 wxSize * _arg1;
2040 PyObject * _argo0 = 0;
2041 wxSize temp;
2042 PyObject * _obj1 = 0;
2043 char *_kwnames[] = { "self","size", NULL };
2044
2045 self = self;
2046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2047 return NULL;
2048 if (_argo0) {
2049 if (_argo0 == Py_None) { _arg0 = NULL; }
2050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2052 return NULL;
2053 }
2054 }
2055 {
2056 _arg1 = &temp;
2057 if (! wxSize_helper(_obj1, &_arg1))
2058 return NULL;
2059 }
2060 {
2061 PyThreadState* __tstate = wxPyBeginAllowThreads();
2062 wxBitmap_SetSize(_arg0,*_arg1);
2063
2064 wxPyEndAllowThreads(__tstate);
2065 if (PyErr_Occurred()) return NULL;
2066 } Py_INCREF(Py_None);
2067 _resultobj = Py_None;
2068 return _resultobj;
2069 }
2070
2071 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2072 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject * _resultobj;
2074 wxBitmap * _result;
2075 wxBitmap * _arg0;
2076 wxRect * _arg1;
2077 PyObject * _argo0 = 0;
2078 wxRect temp;
2079 PyObject * _obj1 = 0;
2080 char *_kwnames[] = { "self","rect", NULL };
2081 char _ptemp[128];
2082
2083 self = self;
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2085 return NULL;
2086 if (_argo0) {
2087 if (_argo0 == Py_None) { _arg0 = NULL; }
2088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2090 return NULL;
2091 }
2092 }
2093 {
2094 _arg1 = &temp;
2095 if (! wxRect_helper(_obj1, &_arg1))
2096 return NULL;
2097 }
2098 {
2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
2100 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2101
2102 wxPyEndAllowThreads(__tstate);
2103 if (PyErr_Occurred()) return NULL;
2104 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2105 _resultobj = Py_BuildValue("s",_ptemp);
2106 return _resultobj;
2107 }
2108
2109 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2110 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2111 PyObject * _resultobj;
2112 bool _result;
2113 wxBitmap * _arg0;
2114 wxIcon * _arg1;
2115 PyObject * _argo0 = 0;
2116 PyObject * _argo1 = 0;
2117 char *_kwnames[] = { "self","icon", NULL };
2118
2119 self = self;
2120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2121 return NULL;
2122 if (_argo0) {
2123 if (_argo0 == Py_None) { _arg0 = NULL; }
2124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2126 return NULL;
2127 }
2128 }
2129 if (_argo1) {
2130 if (_argo1 == Py_None) { _arg1 = NULL; }
2131 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2132 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2133 return NULL;
2134 }
2135 }
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) return NULL;
2142 } _resultobj = Py_BuildValue("i",_result);
2143 return _resultobj;
2144 }
2145
2146 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2147 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject * _resultobj;
2149 bool _result;
2150 wxBitmap * _arg0;
2151 wxCursor * _arg1;
2152 PyObject * _argo0 = 0;
2153 PyObject * _argo1 = 0;
2154 char *_kwnames[] = { "self","cursor", NULL };
2155
2156 self = self;
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2158 return NULL;
2159 if (_argo0) {
2160 if (_argo0 == Py_None) { _arg0 = NULL; }
2161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2163 return NULL;
2164 }
2165 }
2166 if (_argo1) {
2167 if (_argo1 == Py_None) { _arg1 = NULL; }
2168 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2169 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2170 return NULL;
2171 }
2172 }
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) return NULL;
2179 } _resultobj = Py_BuildValue("i",_result);
2180 return _resultobj;
2181 }
2182
2183 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2184 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2185 PyObject * _resultobj;
2186 int _result;
2187 wxBitmap * _arg0;
2188 PyObject * _argo0 = 0;
2189 char *_kwnames[] = { "self", NULL };
2190
2191 self = self;
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2193 return NULL;
2194 if (_argo0) {
2195 if (_argo0 == Py_None) { _arg0 = NULL; }
2196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2198 return NULL;
2199 }
2200 }
2201 {
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 _result = (int )wxBitmap_GetQuality(_arg0);
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) return NULL;
2207 } _resultobj = Py_BuildValue("i",_result);
2208 return _resultobj;
2209 }
2210
2211 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2212 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject * _resultobj;
2214 wxBitmap * _arg0;
2215 int _arg1;
2216 PyObject * _argo0 = 0;
2217 char *_kwnames[] = { "self","q", NULL };
2218
2219 self = self;
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2221 return NULL;
2222 if (_argo0) {
2223 if (_argo0 == Py_None) { _arg0 = NULL; }
2224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2226 return NULL;
2227 }
2228 }
2229 {
2230 PyThreadState* __tstate = wxPyBeginAllowThreads();
2231 wxBitmap_SetQuality(_arg0,_arg1);
2232
2233 wxPyEndAllowThreads(__tstate);
2234 if (PyErr_Occurred()) return NULL;
2235 } Py_INCREF(Py_None);
2236 _resultobj = Py_None;
2237 return _resultobj;
2238 }
2239
2240 static void *SwigwxMaskTowxObject(void *ptr) {
2241 wxMask *src;
2242 wxObject *dest;
2243 src = (wxMask *) ptr;
2244 dest = (wxObject *) src;
2245 return (void *) dest;
2246 }
2247
2248 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2249 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject * _resultobj;
2251 wxMask * _result;
2252 wxBitmap * _arg0;
2253 PyObject * _argo0 = 0;
2254 char *_kwnames[] = { "bitmap", NULL };
2255 char _ptemp[128];
2256
2257 self = self;
2258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2259 return NULL;
2260 if (_argo0) {
2261 if (_argo0 == Py_None) { _arg0 = NULL; }
2262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2264 return NULL;
2265 }
2266 }
2267 {
2268 PyThreadState* __tstate = wxPyBeginAllowThreads();
2269 _result = (wxMask *)new_wxMask(*_arg0);
2270
2271 wxPyEndAllowThreads(__tstate);
2272 if (PyErr_Occurred()) return NULL;
2273 } if (_result) {
2274 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2275 _resultobj = Py_BuildValue("s",_ptemp);
2276 } else {
2277 Py_INCREF(Py_None);
2278 _resultobj = Py_None;
2279 }
2280 return _resultobj;
2281 }
2282
2283 static void wxMask_Destroy(wxMask *self) { delete self; }
2284 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2285 PyObject * _resultobj;
2286 wxMask * _arg0;
2287 PyObject * _argo0 = 0;
2288 char *_kwnames[] = { "self", NULL };
2289
2290 self = self;
2291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2292 return NULL;
2293 if (_argo0) {
2294 if (_argo0 == Py_None) { _arg0 = NULL; }
2295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2297 return NULL;
2298 }
2299 }
2300 {
2301 PyThreadState* __tstate = wxPyBeginAllowThreads();
2302 wxMask_Destroy(_arg0);
2303
2304 wxPyEndAllowThreads(__tstate);
2305 if (PyErr_Occurred()) return NULL;
2306 } Py_INCREF(Py_None);
2307 _resultobj = Py_None;
2308 return _resultobj;
2309 }
2310
2311 static void *SwigwxIconTowxGDIObject(void *ptr) {
2312 wxIcon *src;
2313 wxGDIObject *dest;
2314 src = (wxIcon *) ptr;
2315 dest = (wxGDIObject *) src;
2316 return (void *) dest;
2317 }
2318
2319 static void *SwigwxIconTowxObject(void *ptr) {
2320 wxIcon *src;
2321 wxObject *dest;
2322 src = (wxIcon *) ptr;
2323 dest = (wxObject *) src;
2324 return (void *) dest;
2325 }
2326
2327 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2328 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject * _resultobj;
2330 wxIcon * _result;
2331 wxString * _arg0;
2332 long _arg1;
2333 int _arg2 = (int ) -1;
2334 int _arg3 = (int ) -1;
2335 PyObject * _obj0 = 0;
2336 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2337 char _ptemp[128];
2338
2339 self = self;
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2341 return NULL;
2342 {
2343 _arg0 = wxString_in_helper(_obj0);
2344 if (_arg0 == NULL)
2345 return NULL;
2346 }
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) return NULL;
2353 } if (_result) {
2354 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2355 _resultobj = Py_BuildValue("s",_ptemp);
2356 } else {
2357 Py_INCREF(Py_None);
2358 _resultobj = Py_None;
2359 }
2360 {
2361 if (_obj0)
2362 delete _arg0;
2363 }
2364 return _resultobj;
2365 }
2366
2367 #define delete_wxIcon(_swigobj) (delete _swigobj)
2368 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject * _resultobj;
2370 wxIcon * _arg0;
2371 PyObject * _argo0 = 0;
2372 char *_kwnames[] = { "self", NULL };
2373
2374 self = self;
2375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2376 return NULL;
2377 if (_argo0) {
2378 if (_argo0 == Py_None) { _arg0 = NULL; }
2379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2381 return NULL;
2382 }
2383 }
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 delete_wxIcon(_arg0);
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) return NULL;
2390 } Py_INCREF(Py_None);
2391 _resultobj = Py_None;
2392 return _resultobj;
2393 }
2394
2395 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2396 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2397 PyObject * _resultobj;
2398 bool _result;
2399 wxIcon * _arg0;
2400 wxString * _arg1;
2401 long _arg2;
2402 PyObject * _argo0 = 0;
2403 PyObject * _obj1 = 0;
2404 char *_kwnames[] = { "self","name","flags", NULL };
2405
2406 self = self;
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2408 return NULL;
2409 if (_argo0) {
2410 if (_argo0 == Py_None) { _arg0 = NULL; }
2411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2413 return NULL;
2414 }
2415 }
2416 {
2417 _arg1 = wxString_in_helper(_obj1);
2418 if (_arg1 == NULL)
2419 return NULL;
2420 }
2421 {
2422 PyThreadState* __tstate = wxPyBeginAllowThreads();
2423 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2424
2425 wxPyEndAllowThreads(__tstate);
2426 if (PyErr_Occurred()) return NULL;
2427 } _resultobj = Py_BuildValue("i",_result);
2428 {
2429 if (_obj1)
2430 delete _arg1;
2431 }
2432 return _resultobj;
2433 }
2434
2435 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2436 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2437 PyObject * _resultobj;
2438 long _result;
2439 wxIcon * _arg0;
2440 PyObject * _argo0 = 0;
2441 char *_kwnames[] = { "self", NULL };
2442
2443 self = self;
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2445 return NULL;
2446 if (_argo0) {
2447 if (_argo0 == Py_None) { _arg0 = NULL; }
2448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2450 return NULL;
2451 }
2452 }
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 _result = (long )wxIcon_GetHandle(_arg0);
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) return NULL;
2459 } _resultobj = Py_BuildValue("l",_result);
2460 return _resultobj;
2461 }
2462
2463 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2464 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2465 PyObject * _resultobj;
2466 wxIcon * _arg0;
2467 long _arg1;
2468 PyObject * _argo0 = 0;
2469 char *_kwnames[] = { "self","handle", NULL };
2470
2471 self = self;
2472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2473 return NULL;
2474 if (_argo0) {
2475 if (_argo0 == Py_None) { _arg0 = NULL; }
2476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2478 return NULL;
2479 }
2480 }
2481 {
2482 PyThreadState* __tstate = wxPyBeginAllowThreads();
2483 wxIcon_SetHandle(_arg0,_arg1);
2484
2485 wxPyEndAllowThreads(__tstate);
2486 if (PyErr_Occurred()) return NULL;
2487 } Py_INCREF(Py_None);
2488 _resultobj = Py_None;
2489 return _resultobj;
2490 }
2491
2492 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2493 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2494 PyObject * _resultobj;
2495 bool _result;
2496 wxIcon * _arg0;
2497 PyObject * _argo0 = 0;
2498 char *_kwnames[] = { "self", NULL };
2499
2500 self = self;
2501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2502 return NULL;
2503 if (_argo0) {
2504 if (_argo0 == Py_None) { _arg0 = NULL; }
2505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2507 return NULL;
2508 }
2509 }
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 _result = (bool )wxIcon_Ok(_arg0);
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) return NULL;
2516 } _resultobj = Py_BuildValue("i",_result);
2517 return _resultobj;
2518 }
2519
2520 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2521 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2522 PyObject * _resultobj;
2523 int _result;
2524 wxIcon * _arg0;
2525 PyObject * _argo0 = 0;
2526 char *_kwnames[] = { "self", NULL };
2527
2528 self = self;
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2530 return NULL;
2531 if (_argo0) {
2532 if (_argo0 == Py_None) { _arg0 = NULL; }
2533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2535 return NULL;
2536 }
2537 }
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 _result = (int )wxIcon_GetWidth(_arg0);
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) return NULL;
2544 } _resultobj = Py_BuildValue("i",_result);
2545 return _resultobj;
2546 }
2547
2548 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2549 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2550 PyObject * _resultobj;
2551 int _result;
2552 wxIcon * _arg0;
2553 PyObject * _argo0 = 0;
2554 char *_kwnames[] = { "self", NULL };
2555
2556 self = self;
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2558 return NULL;
2559 if (_argo0) {
2560 if (_argo0 == Py_None) { _arg0 = NULL; }
2561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2563 return NULL;
2564 }
2565 }
2566 {
2567 PyThreadState* __tstate = wxPyBeginAllowThreads();
2568 _result = (int )wxIcon_GetHeight(_arg0);
2569
2570 wxPyEndAllowThreads(__tstate);
2571 if (PyErr_Occurred()) return NULL;
2572 } _resultobj = Py_BuildValue("i",_result);
2573 return _resultobj;
2574 }
2575
2576 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2577 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2578 PyObject * _resultobj;
2579 int _result;
2580 wxIcon * _arg0;
2581 PyObject * _argo0 = 0;
2582 char *_kwnames[] = { "self", NULL };
2583
2584 self = self;
2585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2586 return NULL;
2587 if (_argo0) {
2588 if (_argo0 == Py_None) { _arg0 = NULL; }
2589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2591 return NULL;
2592 }
2593 }
2594 {
2595 PyThreadState* __tstate = wxPyBeginAllowThreads();
2596 _result = (int )wxIcon_GetDepth(_arg0);
2597
2598 wxPyEndAllowThreads(__tstate);
2599 if (PyErr_Occurred()) return NULL;
2600 } _resultobj = Py_BuildValue("i",_result);
2601 return _resultobj;
2602 }
2603
2604 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2605 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject * _resultobj;
2607 wxIcon * _arg0;
2608 int _arg1;
2609 PyObject * _argo0 = 0;
2610 char *_kwnames[] = { "self","w", NULL };
2611
2612 self = self;
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2614 return NULL;
2615 if (_argo0) {
2616 if (_argo0 == Py_None) { _arg0 = NULL; }
2617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2619 return NULL;
2620 }
2621 }
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 wxIcon_SetWidth(_arg0,_arg1);
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) return NULL;
2628 } Py_INCREF(Py_None);
2629 _resultobj = Py_None;
2630 return _resultobj;
2631 }
2632
2633 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2634 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2635 PyObject * _resultobj;
2636 wxIcon * _arg0;
2637 int _arg1;
2638 PyObject * _argo0 = 0;
2639 char *_kwnames[] = { "self","h", NULL };
2640
2641 self = self;
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2643 return NULL;
2644 if (_argo0) {
2645 if (_argo0 == Py_None) { _arg0 = NULL; }
2646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2648 return NULL;
2649 }
2650 }
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 wxIcon_SetHeight(_arg0,_arg1);
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) return NULL;
2657 } Py_INCREF(Py_None);
2658 _resultobj = Py_None;
2659 return _resultobj;
2660 }
2661
2662 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2663 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2664 PyObject * _resultobj;
2665 wxIcon * _arg0;
2666 int _arg1;
2667 PyObject * _argo0 = 0;
2668 char *_kwnames[] = { "self","d", NULL };
2669
2670 self = self;
2671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2672 return NULL;
2673 if (_argo0) {
2674 if (_argo0 == Py_None) { _arg0 = NULL; }
2675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2677 return NULL;
2678 }
2679 }
2680 {
2681 PyThreadState* __tstate = wxPyBeginAllowThreads();
2682 wxIcon_SetDepth(_arg0,_arg1);
2683
2684 wxPyEndAllowThreads(__tstate);
2685 if (PyErr_Occurred()) return NULL;
2686 } Py_INCREF(Py_None);
2687 _resultobj = Py_None;
2688 return _resultobj;
2689 }
2690
2691 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2692 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2693 PyObject * _resultobj;
2694 wxIcon * _arg0;
2695 wxSize * _arg1;
2696 PyObject * _argo0 = 0;
2697 wxSize temp;
2698 PyObject * _obj1 = 0;
2699 char *_kwnames[] = { "self","size", NULL };
2700
2701 self = self;
2702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2703 return NULL;
2704 if (_argo0) {
2705 if (_argo0 == Py_None) { _arg0 = NULL; }
2706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2708 return NULL;
2709 }
2710 }
2711 {
2712 _arg1 = &temp;
2713 if (! wxSize_helper(_obj1, &_arg1))
2714 return NULL;
2715 }
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
2718 wxIcon_SetSize(_arg0,*_arg1);
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) return NULL;
2722 } Py_INCREF(Py_None);
2723 _resultobj = Py_None;
2724 return _resultobj;
2725 }
2726
2727 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2728 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2729 PyObject * _resultobj;
2730 wxIcon * _arg0;
2731 wxBitmap * _arg1;
2732 PyObject * _argo0 = 0;
2733 PyObject * _argo1 = 0;
2734 char *_kwnames[] = { "self","bmp", NULL };
2735
2736 self = self;
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2738 return NULL;
2739 if (_argo0) {
2740 if (_argo0 == Py_None) { _arg0 = NULL; }
2741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2743 return NULL;
2744 }
2745 }
2746 if (_argo1) {
2747 if (_argo1 == Py_None) { _arg1 = NULL; }
2748 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2749 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2750 return NULL;
2751 }
2752 }
2753 {
2754 PyThreadState* __tstate = wxPyBeginAllowThreads();
2755 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2756
2757 wxPyEndAllowThreads(__tstate);
2758 if (PyErr_Occurred()) return NULL;
2759 } Py_INCREF(Py_None);
2760 _resultobj = Py_None;
2761 return _resultobj;
2762 }
2763
2764 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2765 wxCursor *src;
2766 wxGDIObject *dest;
2767 src = (wxCursor *) ptr;
2768 dest = (wxGDIObject *) src;
2769 return (void *) dest;
2770 }
2771
2772 static void *SwigwxCursorTowxObject(void *ptr) {
2773 wxCursor *src;
2774 wxObject *dest;
2775 src = (wxCursor *) ptr;
2776 dest = (wxObject *) src;
2777 return (void *) dest;
2778 }
2779
2780 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2781 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2782 PyObject * _resultobj;
2783 wxCursor * _result;
2784 wxString * _arg0;
2785 long _arg1;
2786 int _arg2 = (int ) 0;
2787 int _arg3 = (int ) 0;
2788 PyObject * _obj0 = 0;
2789 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2790 char _ptemp[128];
2791
2792 self = self;
2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2794 return NULL;
2795 {
2796 _arg0 = wxString_in_helper(_obj0);
2797 if (_arg0 == NULL)
2798 return NULL;
2799 }
2800 {
2801 PyThreadState* __tstate = wxPyBeginAllowThreads();
2802 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2803
2804 wxPyEndAllowThreads(__tstate);
2805 if (PyErr_Occurred()) return NULL;
2806 } if (_result) {
2807 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2808 _resultobj = Py_BuildValue("s",_ptemp);
2809 } else {
2810 Py_INCREF(Py_None);
2811 _resultobj = Py_None;
2812 }
2813 {
2814 if (_obj0)
2815 delete _arg0;
2816 }
2817 return _resultobj;
2818 }
2819
2820 #define delete_wxCursor(_swigobj) (delete _swigobj)
2821 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject * _resultobj;
2823 wxCursor * _arg0;
2824 PyObject * _argo0 = 0;
2825 char *_kwnames[] = { "self", NULL };
2826
2827 self = self;
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2829 return NULL;
2830 if (_argo0) {
2831 if (_argo0 == Py_None) { _arg0 = NULL; }
2832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2834 return NULL;
2835 }
2836 }
2837 {
2838 PyThreadState* __tstate = wxPyBeginAllowThreads();
2839 delete_wxCursor(_arg0);
2840
2841 wxPyEndAllowThreads(__tstate);
2842 if (PyErr_Occurred()) return NULL;
2843 } Py_INCREF(Py_None);
2844 _resultobj = Py_None;
2845 return _resultobj;
2846 }
2847
2848 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2849 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject * _resultobj;
2851 long _result;
2852 wxCursor * _arg0;
2853 PyObject * _argo0 = 0;
2854 char *_kwnames[] = { "self", NULL };
2855
2856 self = self;
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2858 return NULL;
2859 if (_argo0) {
2860 if (_argo0 == Py_None) { _arg0 = NULL; }
2861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2863 return NULL;
2864 }
2865 }
2866 {
2867 PyThreadState* __tstate = wxPyBeginAllowThreads();
2868 _result = (long )wxCursor_GetHandle(_arg0);
2869
2870 wxPyEndAllowThreads(__tstate);
2871 if (PyErr_Occurred()) return NULL;
2872 } _resultobj = Py_BuildValue("l",_result);
2873 return _resultobj;
2874 }
2875
2876 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2877 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2878 PyObject * _resultobj;
2879 wxCursor * _arg0;
2880 long _arg1;
2881 PyObject * _argo0 = 0;
2882 char *_kwnames[] = { "self","handle", NULL };
2883
2884 self = self;
2885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2886 return NULL;
2887 if (_argo0) {
2888 if (_argo0 == Py_None) { _arg0 = NULL; }
2889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2891 return NULL;
2892 }
2893 }
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 wxCursor_SetHandle(_arg0,_arg1);
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) return NULL;
2900 } Py_INCREF(Py_None);
2901 _resultobj = Py_None;
2902 return _resultobj;
2903 }
2904
2905 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2906 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 bool _result;
2909 wxCursor * _arg0;
2910 PyObject * _argo0 = 0;
2911 char *_kwnames[] = { "self", NULL };
2912
2913 self = self;
2914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2915 return NULL;
2916 if (_argo0) {
2917 if (_argo0 == Py_None) { _arg0 = NULL; }
2918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2920 return NULL;
2921 }
2922 }
2923 {
2924 PyThreadState* __tstate = wxPyBeginAllowThreads();
2925 _result = (bool )wxCursor_Ok(_arg0);
2926
2927 wxPyEndAllowThreads(__tstate);
2928 if (PyErr_Occurred()) return NULL;
2929 } _resultobj = Py_BuildValue("i",_result);
2930 return _resultobj;
2931 }
2932
2933 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2934 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2935 PyObject * _resultobj;
2936 int _result;
2937 wxCursor * _arg0;
2938 PyObject * _argo0 = 0;
2939 char *_kwnames[] = { "self", NULL };
2940
2941 self = self;
2942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2943 return NULL;
2944 if (_argo0) {
2945 if (_argo0 == Py_None) { _arg0 = NULL; }
2946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2948 return NULL;
2949 }
2950 }
2951 {
2952 PyThreadState* __tstate = wxPyBeginAllowThreads();
2953 _result = (int )wxCursor_GetWidth(_arg0);
2954
2955 wxPyEndAllowThreads(__tstate);
2956 if (PyErr_Occurred()) return NULL;
2957 } _resultobj = Py_BuildValue("i",_result);
2958 return _resultobj;
2959 }
2960
2961 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2962 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject * _resultobj;
2964 int _result;
2965 wxCursor * _arg0;
2966 PyObject * _argo0 = 0;
2967 char *_kwnames[] = { "self", NULL };
2968
2969 self = self;
2970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
2971 return NULL;
2972 if (_argo0) {
2973 if (_argo0 == Py_None) { _arg0 = NULL; }
2974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
2976 return NULL;
2977 }
2978 }
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 _result = (int )wxCursor_GetHeight(_arg0);
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) return NULL;
2985 } _resultobj = Py_BuildValue("i",_result);
2986 return _resultobj;
2987 }
2988
2989 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
2990 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2991 PyObject * _resultobj;
2992 int _result;
2993 wxCursor * _arg0;
2994 PyObject * _argo0 = 0;
2995 char *_kwnames[] = { "self", NULL };
2996
2997 self = self;
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
2999 return NULL;
3000 if (_argo0) {
3001 if (_argo0 == Py_None) { _arg0 = NULL; }
3002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3004 return NULL;
3005 }
3006 }
3007 {
3008 PyThreadState* __tstate = wxPyBeginAllowThreads();
3009 _result = (int )wxCursor_GetDepth(_arg0);
3010
3011 wxPyEndAllowThreads(__tstate);
3012 if (PyErr_Occurred()) return NULL;
3013 } _resultobj = Py_BuildValue("i",_result);
3014 return _resultobj;
3015 }
3016
3017 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3018 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3019 PyObject * _resultobj;
3020 wxCursor * _arg0;
3021 int _arg1;
3022 PyObject * _argo0 = 0;
3023 char *_kwnames[] = { "self","w", NULL };
3024
3025 self = self;
3026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3027 return NULL;
3028 if (_argo0) {
3029 if (_argo0 == Py_None) { _arg0 = NULL; }
3030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3032 return NULL;
3033 }
3034 }
3035 {
3036 PyThreadState* __tstate = wxPyBeginAllowThreads();
3037 wxCursor_SetWidth(_arg0,_arg1);
3038
3039 wxPyEndAllowThreads(__tstate);
3040 if (PyErr_Occurred()) return NULL;
3041 } Py_INCREF(Py_None);
3042 _resultobj = Py_None;
3043 return _resultobj;
3044 }
3045
3046 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3047 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3048 PyObject * _resultobj;
3049 wxCursor * _arg0;
3050 int _arg1;
3051 PyObject * _argo0 = 0;
3052 char *_kwnames[] = { "self","h", NULL };
3053
3054 self = self;
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3056 return NULL;
3057 if (_argo0) {
3058 if (_argo0 == Py_None) { _arg0 = NULL; }
3059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3061 return NULL;
3062 }
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 wxCursor_SetHeight(_arg0,_arg1);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) return NULL;
3070 } Py_INCREF(Py_None);
3071 _resultobj = Py_None;
3072 return _resultobj;
3073 }
3074
3075 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3076 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3077 PyObject * _resultobj;
3078 wxCursor * _arg0;
3079 int _arg1;
3080 PyObject * _argo0 = 0;
3081 char *_kwnames[] = { "self","d", NULL };
3082
3083 self = self;
3084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3085 return NULL;
3086 if (_argo0) {
3087 if (_argo0 == Py_None) { _arg0 = NULL; }
3088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3090 return NULL;
3091 }
3092 }
3093 {
3094 PyThreadState* __tstate = wxPyBeginAllowThreads();
3095 wxCursor_SetDepth(_arg0,_arg1);
3096
3097 wxPyEndAllowThreads(__tstate);
3098 if (PyErr_Occurred()) return NULL;
3099 } Py_INCREF(Py_None);
3100 _resultobj = Py_None;
3101 return _resultobj;
3102 }
3103
3104 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3105 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3106 PyObject * _resultobj;
3107 wxCursor * _arg0;
3108 wxSize * _arg1;
3109 PyObject * _argo0 = 0;
3110 wxSize temp;
3111 PyObject * _obj1 = 0;
3112 char *_kwnames[] = { "self","size", NULL };
3113
3114 self = self;
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3116 return NULL;
3117 if (_argo0) {
3118 if (_argo0 == Py_None) { _arg0 = NULL; }
3119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3121 return NULL;
3122 }
3123 }
3124 {
3125 _arg1 = &temp;
3126 if (! wxSize_helper(_obj1, &_arg1))
3127 return NULL;
3128 }
3129 {
3130 PyThreadState* __tstate = wxPyBeginAllowThreads();
3131 wxCursor_SetSize(_arg0,*_arg1);
3132
3133 wxPyEndAllowThreads(__tstate);
3134 if (PyErr_Occurred()) return NULL;
3135 } Py_INCREF(Py_None);
3136 _resultobj = Py_None;
3137 return _resultobj;
3138 }
3139
3140 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
3141 static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject * _resultobj;
3143 wxNativeFontInfo * _result;
3144 char *_kwnames[] = { NULL };
3145 char _ptemp[128];
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
3149 return NULL;
3150 {
3151 PyThreadState* __tstate = wxPyBeginAllowThreads();
3152 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
3153
3154 wxPyEndAllowThreads(__tstate);
3155 if (PyErr_Occurred()) return NULL;
3156 } if (_result) {
3157 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3158 _resultobj = Py_BuildValue("s",_ptemp);
3159 } else {
3160 Py_INCREF(Py_None);
3161 _resultobj = Py_None;
3162 }
3163 return _resultobj;
3164 }
3165
3166 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
3167 static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
3168 PyObject * _resultobj;
3169 wxNativeFontInfo * _arg0;
3170 PyObject * _argo0 = 0;
3171 char *_kwnames[] = { "self", NULL };
3172
3173 self = self;
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
3175 return NULL;
3176 if (_argo0) {
3177 if (_argo0 == Py_None) { _arg0 = NULL; }
3178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
3180 return NULL;
3181 }
3182 }
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 wxNativeFontInfo_Init(_arg0);
3186
3187 wxPyEndAllowThreads(__tstate);
3188 if (PyErr_Occurred()) return NULL;
3189 } Py_INCREF(Py_None);
3190 _resultobj = Py_None;
3191 return _resultobj;
3192 }
3193
3194 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3195 static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3196 PyObject * _resultobj;
3197 int _result;
3198 wxNativeFontInfo * _arg0;
3199 PyObject * _argo0 = 0;
3200 char *_kwnames[] = { "self", NULL };
3201
3202 self = self;
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
3204 return NULL;
3205 if (_argo0) {
3206 if (_argo0 == Py_None) { _arg0 = NULL; }
3207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
3209 return NULL;
3210 }
3211 }
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 _result = (int )wxNativeFontInfo_GetPointSize(_arg0);
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) return NULL;
3218 } _resultobj = Py_BuildValue("i",_result);
3219 return _resultobj;
3220 }
3221
3222 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
3223 static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3224 PyObject * _resultobj;
3225 wxFontStyle _result;
3226 wxNativeFontInfo * _arg0;
3227 PyObject * _argo0 = 0;
3228 char *_kwnames[] = { "self", NULL };
3229
3230 self = self;
3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
3232 return NULL;
3233 if (_argo0) {
3234 if (_argo0 == Py_None) { _arg0 = NULL; }
3235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
3237 return NULL;
3238 }
3239 }
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) return NULL;
3246 } _resultobj = Py_BuildValue("i",_result);
3247 return _resultobj;
3248 }
3249
3250 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
3251 static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3252 PyObject * _resultobj;
3253 wxFontWeight _result;
3254 wxNativeFontInfo * _arg0;
3255 PyObject * _argo0 = 0;
3256 char *_kwnames[] = { "self", NULL };
3257
3258 self = self;
3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
3260 return NULL;
3261 if (_argo0) {
3262 if (_argo0 == Py_None) { _arg0 = NULL; }
3263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
3265 return NULL;
3266 }
3267 }
3268 {
3269 PyThreadState* __tstate = wxPyBeginAllowThreads();
3270 _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
3271
3272 wxPyEndAllowThreads(__tstate);
3273 if (PyErr_Occurred()) return NULL;
3274 } _resultobj = Py_BuildValue("i",_result);
3275 return _resultobj;
3276 }
3277
3278 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3279 static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3280 PyObject * _resultobj;
3281 bool _result;
3282 wxNativeFontInfo * _arg0;
3283 PyObject * _argo0 = 0;
3284 char *_kwnames[] = { "self", NULL };
3285
3286 self = self;
3287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
3288 return NULL;
3289 if (_argo0) {
3290 if (_argo0 == Py_None) { _arg0 = NULL; }
3291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
3293 return NULL;
3294 }
3295 }
3296 {
3297 PyThreadState* __tstate = wxPyBeginAllowThreads();
3298 _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
3299
3300 wxPyEndAllowThreads(__tstate);
3301 if (PyErr_Occurred()) return NULL;
3302 } _resultobj = Py_BuildValue("i",_result);
3303 return _resultobj;
3304 }
3305
3306 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3307 static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject * _resultobj;
3309 wxString * _result;
3310 wxNativeFontInfo * _arg0;
3311 PyObject * _argo0 = 0;
3312 char *_kwnames[] = { "self", NULL };
3313
3314 self = self;
3315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
3316 return NULL;
3317 if (_argo0) {
3318 if (_argo0 == Py_None) { _arg0 = NULL; }
3319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
3321 return NULL;
3322 }
3323 }
3324 {
3325 PyThreadState* __tstate = wxPyBeginAllowThreads();
3326 _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
3327
3328 wxPyEndAllowThreads(__tstate);
3329 if (PyErr_Occurred()) return NULL;
3330 }{
3331 #if wxUSE_UNICODE
3332 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3333 #else
3334 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3335 #endif
3336 }
3337 {
3338 delete _result;
3339 }
3340 return _resultobj;
3341 }
3342
3343 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
3344 static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3345 PyObject * _resultobj;
3346 wxFontFamily _result;
3347 wxNativeFontInfo * _arg0;
3348 PyObject * _argo0 = 0;
3349 char *_kwnames[] = { "self", NULL };
3350
3351 self = self;
3352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
3353 return NULL;
3354 if (_argo0) {
3355 if (_argo0 == Py_None) { _arg0 = NULL; }
3356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
3358 return NULL;
3359 }
3360 }
3361 {
3362 PyThreadState* __tstate = wxPyBeginAllowThreads();
3363 _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
3364
3365 wxPyEndAllowThreads(__tstate);
3366 if (PyErr_Occurred()) return NULL;
3367 } _resultobj = Py_BuildValue("i",_result);
3368 return _resultobj;
3369 }
3370
3371 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3372 static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject * _resultobj;
3374 wxFontEncoding _result;
3375 wxNativeFontInfo * _arg0;
3376 PyObject * _argo0 = 0;
3377 char *_kwnames[] = { "self", NULL };
3378
3379 self = self;
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
3381 return NULL;
3382 if (_argo0) {
3383 if (_argo0 == Py_None) { _arg0 = NULL; }
3384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
3386 return NULL;
3387 }
3388 }
3389 {
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) return NULL;
3395 } _resultobj = Py_BuildValue("i",_result);
3396 return _resultobj;
3397 }
3398
3399 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3400 static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3401 PyObject * _resultobj;
3402 wxNativeFontInfo * _arg0;
3403 int _arg1;
3404 PyObject * _argo0 = 0;
3405 char *_kwnames[] = { "self","pointsize", NULL };
3406
3407 self = self;
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
3409 return NULL;
3410 if (_argo0) {
3411 if (_argo0 == Py_None) { _arg0 = NULL; }
3412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
3414 return NULL;
3415 }
3416 }
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 wxNativeFontInfo_SetPointSize(_arg0,_arg1);
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) return NULL;
3423 } Py_INCREF(Py_None);
3424 _resultobj = Py_None;
3425 return _resultobj;
3426 }
3427
3428 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3429 static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3430 PyObject * _resultobj;
3431 wxNativeFontInfo * _arg0;
3432 wxFontStyle _arg1;
3433 PyObject * _argo0 = 0;
3434 char *_kwnames[] = { "self","style", NULL };
3435
3436 self = self;
3437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
3438 return NULL;
3439 if (_argo0) {
3440 if (_argo0 == Py_None) { _arg0 = NULL; }
3441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
3443 return NULL;
3444 }
3445 }
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 wxNativeFontInfo_SetStyle(_arg0,_arg1);
3449
3450 wxPyEndAllowThreads(__tstate);
3451 if (PyErr_Occurred()) return NULL;
3452 } Py_INCREF(Py_None);
3453 _resultobj = Py_None;
3454 return _resultobj;
3455 }
3456
3457 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3458 static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3459 PyObject * _resultobj;
3460 wxNativeFontInfo * _arg0;
3461 wxFontWeight _arg1;
3462 PyObject * _argo0 = 0;
3463 char *_kwnames[] = { "self","weight", NULL };
3464
3465 self = self;
3466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
3467 return NULL;
3468 if (_argo0) {
3469 if (_argo0 == Py_None) { _arg0 = NULL; }
3470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
3472 return NULL;
3473 }
3474 }
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 wxNativeFontInfo_SetWeight(_arg0,_arg1);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) return NULL;
3481 } Py_INCREF(Py_None);
3482 _resultobj = Py_None;
3483 return _resultobj;
3484 }
3485
3486 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3487 static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject * _resultobj;
3489 wxNativeFontInfo * _arg0;
3490 bool _arg1;
3491 PyObject * _argo0 = 0;
3492 int tempbool1;
3493 char *_kwnames[] = { "self","underlined", NULL };
3494
3495 self = self;
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3497 return NULL;
3498 if (_argo0) {
3499 if (_argo0 == Py_None) { _arg0 = NULL; }
3500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
3502 return NULL;
3503 }
3504 }
3505 _arg1 = (bool ) tempbool1;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) return NULL;
3512 } Py_INCREF(Py_None);
3513 _resultobj = Py_None;
3514 return _resultobj;
3515 }
3516
3517 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3518 static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3519 PyObject * _resultobj;
3520 wxNativeFontInfo * _arg0;
3521 wxString * _arg1;
3522 PyObject * _argo0 = 0;
3523 PyObject * _obj1 = 0;
3524 char *_kwnames[] = { "self","facename", NULL };
3525
3526 self = self;
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
3528 return NULL;
3529 if (_argo0) {
3530 if (_argo0 == Py_None) { _arg0 = NULL; }
3531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
3533 return NULL;
3534 }
3535 }
3536 {
3537 _arg1 = wxString_in_helper(_obj1);
3538 if (_arg1 == NULL)
3539 return NULL;
3540 }
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) return NULL;
3547 } Py_INCREF(Py_None);
3548 _resultobj = Py_None;
3549 {
3550 if (_obj1)
3551 delete _arg1;
3552 }
3553 return _resultobj;
3554 }
3555
3556 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3557 static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3558 PyObject * _resultobj;
3559 wxNativeFontInfo * _arg0;
3560 wxFontFamily _arg1;
3561 PyObject * _argo0 = 0;
3562 char *_kwnames[] = { "self","family", NULL };
3563
3564 self = self;
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
3566 return NULL;
3567 if (_argo0) {
3568 if (_argo0 == Py_None) { _arg0 = NULL; }
3569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
3571 return NULL;
3572 }
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 wxNativeFontInfo_SetFamily(_arg0,_arg1);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) return NULL;
3580 } Py_INCREF(Py_None);
3581 _resultobj = Py_None;
3582 return _resultobj;
3583 }
3584
3585 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3586 static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject * _resultobj;
3588 wxNativeFontInfo * _arg0;
3589 wxFontEncoding _arg1;
3590 PyObject * _argo0 = 0;
3591 char *_kwnames[] = { "self","encoding", NULL };
3592
3593 self = self;
3594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
3595 return NULL;
3596 if (_argo0) {
3597 if (_argo0 == Py_None) { _arg0 = NULL; }
3598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
3600 return NULL;
3601 }
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 wxNativeFontInfo_SetEncoding(_arg0,_arg1);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) return NULL;
3609 } Py_INCREF(Py_None);
3610 _resultobj = Py_None;
3611 return _resultobj;
3612 }
3613
3614 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3615 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3616 PyObject * _resultobj;
3617 bool _result;
3618 wxNativeFontInfo * _arg0;
3619 wxString * _arg1;
3620 PyObject * _argo0 = 0;
3621 PyObject * _obj1 = 0;
3622 char *_kwnames[] = { "self","s", NULL };
3623
3624 self = self;
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3626 return NULL;
3627 if (_argo0) {
3628 if (_argo0 == Py_None) { _arg0 = NULL; }
3629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3631 return NULL;
3632 }
3633 }
3634 {
3635 _arg1 = wxString_in_helper(_obj1);
3636 if (_arg1 == NULL)
3637 return NULL;
3638 }
3639 {
3640 PyThreadState* __tstate = wxPyBeginAllowThreads();
3641 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3642
3643 wxPyEndAllowThreads(__tstate);
3644 if (PyErr_Occurred()) return NULL;
3645 } _resultobj = Py_BuildValue("i",_result);
3646 {
3647 if (_obj1)
3648 delete _arg1;
3649 }
3650 return _resultobj;
3651 }
3652
3653 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3654 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3655 PyObject * _resultobj;
3656 wxString * _result;
3657 wxNativeFontInfo * _arg0;
3658 PyObject * _argo0 = 0;
3659 char *_kwnames[] = { "self", NULL };
3660
3661 self = self;
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3663 return NULL;
3664 if (_argo0) {
3665 if (_argo0 == Py_None) { _arg0 = NULL; }
3666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3668 return NULL;
3669 }
3670 }
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) return NULL;
3677 }{
3678 #if wxUSE_UNICODE
3679 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3680 #else
3681 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3682 #endif
3683 }
3684 {
3685 delete _result;
3686 }
3687 return _resultobj;
3688 }
3689
3690 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3691 return self->ToString();
3692 }
3693 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3694 PyObject * _resultobj;
3695 wxString * _result;
3696 wxNativeFontInfo * _arg0;
3697 PyObject * _argo0 = 0;
3698 char *_kwnames[] = { "self", NULL };
3699
3700 self = self;
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3702 return NULL;
3703 if (_argo0) {
3704 if (_argo0 == Py_None) { _arg0 = NULL; }
3705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3707 return NULL;
3708 }
3709 }
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) return NULL;
3716 }{
3717 #if wxUSE_UNICODE
3718 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3719 #else
3720 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3721 #endif
3722 }
3723 {
3724 delete _result;
3725 }
3726 return _resultobj;
3727 }
3728
3729 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3730 static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3731 PyObject * _resultobj;
3732 bool _result;
3733 wxNativeFontInfo * _arg0;
3734 wxString * _arg1;
3735 PyObject * _argo0 = 0;
3736 PyObject * _obj1 = 0;
3737 char *_kwnames[] = { "self","s", NULL };
3738
3739 self = self;
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
3741 return NULL;
3742 if (_argo0) {
3743 if (_argo0 == Py_None) { _arg0 = NULL; }
3744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3746 return NULL;
3747 }
3748 }
3749 {
3750 _arg1 = wxString_in_helper(_obj1);
3751 if (_arg1 == NULL)
3752 return NULL;
3753 }
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
3757
3758 wxPyEndAllowThreads(__tstate);
3759 if (PyErr_Occurred()) return NULL;
3760 } _resultobj = Py_BuildValue("i",_result);
3761 {
3762 if (_obj1)
3763 delete _arg1;
3764 }
3765 return _resultobj;
3766 }
3767
3768 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3769 static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
3770 PyObject * _resultobj;
3771 wxString * _result;
3772 wxNativeFontInfo * _arg0;
3773 PyObject * _argo0 = 0;
3774 char *_kwnames[] = { "self", NULL };
3775
3776 self = self;
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
3778 return NULL;
3779 if (_argo0) {
3780 if (_argo0 == Py_None) { _arg0 = NULL; }
3781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3783 return NULL;
3784 }
3785 }
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) return NULL;
3792 }{
3793 #if wxUSE_UNICODE
3794 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3795 #else
3796 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3797 #endif
3798 }
3799 {
3800 delete _result;
3801 }
3802 return _resultobj;
3803 }
3804
3805 #define new_wxFontMapper() (new wxFontMapper())
3806 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 wxFontMapper * _result;
3809 char *_kwnames[] = { NULL };
3810 char _ptemp[128];
3811
3812 self = self;
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3814 return NULL;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 _result = (wxFontMapper *)new_wxFontMapper();
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) return NULL;
3821 } if (_result) {
3822 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3823 _resultobj = Py_BuildValue("s",_ptemp);
3824 } else {
3825 Py_INCREF(Py_None);
3826 _resultobj = Py_None;
3827 }
3828 return _resultobj;
3829 }
3830
3831 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3832 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3833 PyObject * _resultobj;
3834 wxFontMapper * _arg0;
3835 PyObject * _argo0 = 0;
3836 char *_kwnames[] = { "self", NULL };
3837
3838 self = self;
3839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3840 return NULL;
3841 if (_argo0) {
3842 if (_argo0 == Py_None) { _arg0 = NULL; }
3843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3845 return NULL;
3846 }
3847 }
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 delete_wxFontMapper(_arg0);
3851
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) return NULL;
3854 } Py_INCREF(Py_None);
3855 _resultobj = Py_None;
3856 return _resultobj;
3857 }
3858
3859 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3860 wxFontEncoding alt_enc;
3861 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3862 return PyInt_FromLong(alt_enc);
3863 else {
3864 Py_INCREF(Py_None);
3865 return Py_None;
3866 }
3867 }
3868 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3869 PyObject * _resultobj;
3870 PyObject * _result;
3871 wxFontMapper * _arg0;
3872 wxFontEncoding _arg1;
3873 wxString * _arg2 = (wxString *) &wxPyEmptyString;
3874 bool _arg3 = (bool ) TRUE;
3875 PyObject * _argo0 = 0;
3876 PyObject * _obj2 = 0;
3877 int tempbool3 = (int) TRUE;
3878 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3879
3880 self = self;
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3882 return NULL;
3883 if (_argo0) {
3884 if (_argo0 == Py_None) { _arg0 = NULL; }
3885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3887 return NULL;
3888 }
3889 }
3890 if (_obj2)
3891 {
3892 _arg2 = wxString_in_helper(_obj2);
3893 if (_arg2 == NULL)
3894 return NULL;
3895 }
3896 _arg3 = (bool ) tempbool3;
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) return NULL;
3903 }{
3904 _resultobj = _result;
3905 }
3906 {
3907 if (_obj2)
3908 delete _arg2;
3909 }
3910 return _resultobj;
3911 }
3912
3913 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3914 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
3915 PyObject * _resultobj;
3916 bool _result;
3917 wxFontMapper * _arg0;
3918 wxFontEncoding _arg1;
3919 wxString * _arg2 = (wxString *) &wxPyEmptyString;
3920 PyObject * _argo0 = 0;
3921 PyObject * _obj2 = 0;
3922 char *_kwnames[] = { "self","encoding","facename", NULL };
3923
3924 self = self;
3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
3926 return NULL;
3927 if (_argo0) {
3928 if (_argo0 == Py_None) { _arg0 = NULL; }
3929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3931 return NULL;
3932 }
3933 }
3934 if (_obj2)
3935 {
3936 _arg2 = wxString_in_helper(_obj2);
3937 if (_arg2 == NULL)
3938 return NULL;
3939 }
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
3943
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) return NULL;
3946 } _resultobj = Py_BuildValue("i",_result);
3947 {
3948 if (_obj2)
3949 delete _arg2;
3950 }
3951 return _resultobj;
3952 }
3953
3954 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3955 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3956 PyObject * _resultobj;
3957 wxFontEncoding _result;
3958 wxFontMapper * _arg0;
3959 wxString * _arg1;
3960 bool _arg2 = (bool ) TRUE;
3961 PyObject * _argo0 = 0;
3962 PyObject * _obj1 = 0;
3963 int tempbool2 = (int) TRUE;
3964 char *_kwnames[] = { "self","charset","interactive", NULL };
3965
3966 self = self;
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
3968 return NULL;
3969 if (_argo0) {
3970 if (_argo0 == Py_None) { _arg0 = NULL; }
3971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3973 return NULL;
3974 }
3975 }
3976 {
3977 _arg1 = wxString_in_helper(_obj1);
3978 if (_arg1 == NULL)
3979 return NULL;
3980 }
3981 _arg2 = (bool ) tempbool2;
3982 {
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3985
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) return NULL;
3988 } _resultobj = Py_BuildValue("i",_result);
3989 {
3990 if (_obj1)
3991 delete _arg1;
3992 }
3993 return _resultobj;
3994 }
3995
3996 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject * _resultobj;
3998 wxString * _result;
3999 wxFontEncoding _arg0;
4000 char *_kwnames[] = { "encoding", NULL };
4001
4002 self = self;
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
4004 return NULL;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) return NULL;
4011 }{
4012 #if wxUSE_UNICODE
4013 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4014 #else
4015 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4016 #endif
4017 }
4018 {
4019 delete _result;
4020 }
4021 return _resultobj;
4022 }
4023
4024 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
4025 PyObject * _resultobj;
4026 wxString * _result;
4027 wxFontEncoding _arg0;
4028 char *_kwnames[] = { "encoding", NULL };
4029
4030 self = self;
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
4032 return NULL;
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
4036
4037 wxPyEndAllowThreads(__tstate);
4038 if (PyErr_Occurred()) return NULL;
4039 }{
4040 #if wxUSE_UNICODE
4041 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4042 #else
4043 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4044 #endif
4045 }
4046 {
4047 delete _result;
4048 }
4049 return _resultobj;
4050 }
4051
4052 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
4053 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4054 PyObject * _resultobj;
4055 wxFontMapper * _arg0;
4056 wxWindow * _arg1;
4057 PyObject * _argo0 = 0;
4058 PyObject * _argo1 = 0;
4059 char *_kwnames[] = { "self","parent", NULL };
4060
4061 self = self;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
4063 return NULL;
4064 if (_argo0) {
4065 if (_argo0 == Py_None) { _arg0 = NULL; }
4066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
4068 return NULL;
4069 }
4070 }
4071 if (_argo1) {
4072 if (_argo1 == Py_None) { _arg1 = NULL; }
4073 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4074 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
4075 return NULL;
4076 }
4077 }
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 wxFontMapper_SetDialogParent(_arg0,_arg1);
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) return NULL;
4084 } Py_INCREF(Py_None);
4085 _resultobj = Py_None;
4086 return _resultobj;
4087 }
4088
4089 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
4090 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4091 PyObject * _resultobj;
4092 wxFontMapper * _arg0;
4093 wxString * _arg1;
4094 PyObject * _argo0 = 0;
4095 PyObject * _obj1 = 0;
4096 char *_kwnames[] = { "self","title", NULL };
4097
4098 self = self;
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
4100 return NULL;
4101 if (_argo0) {
4102 if (_argo0 == Py_None) { _arg0 = NULL; }
4103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
4105 return NULL;
4106 }
4107 }
4108 {
4109 _arg1 = wxString_in_helper(_obj1);
4110 if (_arg1 == NULL)
4111 return NULL;
4112 }
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
4116
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) return NULL;
4119 } Py_INCREF(Py_None);
4120 _resultobj = Py_None;
4121 {
4122 if (_obj1)
4123 delete _arg1;
4124 }
4125 return _resultobj;
4126 }
4127
4128 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
4129 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject * _resultobj;
4131 wxFontMapper * _arg0;
4132 wxConfigBase * _arg1;
4133 PyObject * _argo0 = 0;
4134 PyObject * _argo1 = 0;
4135 char *_kwnames[] = { "self","config", NULL };
4136
4137 self = self;
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
4139 return NULL;
4140 if (_argo0) {
4141 if (_argo0 == Py_None) { _arg0 = NULL; }
4142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
4144 return NULL;
4145 }
4146 }
4147 if (_argo1) {
4148 if (_argo1 == Py_None) { _arg1 = NULL; }
4149 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4150 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
4151 return NULL;
4152 }
4153 }
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 wxFontMapper_SetConfig(_arg0,_arg1);
4157
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) return NULL;
4160 } Py_INCREF(Py_None);
4161 _resultobj = Py_None;
4162 return _resultobj;
4163 }
4164
4165 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
4166 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject * _resultobj;
4168 wxFontMapper * _arg0;
4169 wxString * _arg1;
4170 PyObject * _argo0 = 0;
4171 PyObject * _obj1 = 0;
4172 char *_kwnames[] = { "self","prefix", NULL };
4173
4174 self = self;
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
4176 return NULL;
4177 if (_argo0) {
4178 if (_argo0 == Py_None) { _arg0 = NULL; }
4179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
4180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
4181 return NULL;
4182 }
4183 }
4184 {
4185 _arg1 = wxString_in_helper(_obj1);
4186 if (_arg1 == NULL)
4187 return NULL;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 wxFontMapper_SetConfigPath(_arg0,*_arg1);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) return NULL;
4195 } Py_INCREF(Py_None);
4196 _resultobj = Py_None;
4197 {
4198 if (_obj1)
4199 delete _arg1;
4200 }
4201 return _resultobj;
4202 }
4203
4204 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
4205 PyObject * _resultobj;
4206 wxString * _result;
4207 char *_kwnames[] = { NULL };
4208
4209 self = self;
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
4211 return NULL;
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 _result = new wxString (wxFontMapper::GetDefaultConfigPath());
4215
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) return NULL;
4218 }{
4219 #if wxUSE_UNICODE
4220 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4221 #else
4222 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4223 #endif
4224 }
4225 {
4226 delete _result;
4227 }
4228 return _resultobj;
4229 }
4230
4231 static void *SwigwxFontTowxGDIObject(void *ptr) {
4232 wxFont *src;
4233 wxGDIObject *dest;
4234 src = (wxFont *) ptr;
4235 dest = (wxGDIObject *) src;
4236 return (void *) dest;
4237 }
4238
4239 static void *SwigwxFontTowxObject(void *ptr) {
4240 wxFont *src;
4241 wxObject *dest;
4242 src = (wxFont *) ptr;
4243 dest = (wxObject *) src;
4244 return (void *) dest;
4245 }
4246
4247 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4248 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4249 PyObject * _resultobj;
4250 wxFont * _result;
4251 int _arg0;
4252 int _arg1;
4253 int _arg2;
4254 int _arg3;
4255 int _arg4 = (int ) FALSE;
4256 wxString * _arg5 = (wxString *) &wxPyEmptyString;
4257 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4258 PyObject * _obj5 = 0;
4259 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
4260 char _ptemp[128];
4261
4262 self = self;
4263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|iOi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
4264 return NULL;
4265 if (_obj5)
4266 {
4267 _arg5 = wxString_in_helper(_obj5);
4268 if (_arg5 == NULL)
4269 return NULL;
4270 }
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,_arg6);
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) return NULL;
4277 } if (_result) {
4278 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4279 _resultobj = Py_BuildValue("s",_ptemp);
4280 } else {
4281 Py_INCREF(Py_None);
4282 _resultobj = Py_None;
4283 }
4284 {
4285 if (_obj5)
4286 delete _arg5;
4287 }
4288 return _resultobj;
4289 }
4290
4291 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
4292 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject * _resultobj;
4294 wxFont * _result;
4295 wxNativeFontInfo * _arg0;
4296 PyObject * _argo0 = 0;
4297 char *_kwnames[] = { "info", NULL };
4298 char _ptemp[128];
4299
4300 self = self;
4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
4302 return NULL;
4303 if (_argo0) {
4304 if (_argo0 == Py_None) { _arg0 = NULL; }
4305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
4306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
4307 return NULL;
4308 }
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) return NULL;
4316 } if (_result) {
4317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4318 _resultobj = Py_BuildValue("s",_ptemp);
4319 } else {
4320 Py_INCREF(Py_None);
4321 _resultobj = Py_None;
4322 }
4323 return _resultobj;
4324 }
4325
4326 #define delete_wxFont(_swigobj) (delete _swigobj)
4327 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4328 PyObject * _resultobj;
4329 wxFont * _arg0;
4330 PyObject * _argo0 = 0;
4331 char *_kwnames[] = { "self", NULL };
4332
4333 self = self;
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
4335 return NULL;
4336 if (_argo0) {
4337 if (_argo0 == Py_None) { _arg0 = NULL; }
4338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
4340 return NULL;
4341 }
4342 }
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 delete_wxFont(_arg0);
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) return NULL;
4349 } Py_INCREF(Py_None);
4350 _resultobj = Py_None;
4351 return _resultobj;
4352 }
4353
4354 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
4355 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4356 PyObject * _resultobj;
4357 bool _result;
4358 wxFont * _arg0;
4359 PyObject * _argo0 = 0;
4360 char *_kwnames[] = { "self", NULL };
4361
4362 self = self;
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
4364 return NULL;
4365 if (_argo0) {
4366 if (_argo0 == Py_None) { _arg0 = NULL; }
4367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
4369 return NULL;
4370 }
4371 }
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 _result = (bool )wxFont_Ok(_arg0);
4375
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) return NULL;
4378 } _resultobj = Py_BuildValue("i",_result);
4379 return _resultobj;
4380 }
4381
4382 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
4383 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4384 PyObject * _resultobj;
4385 int _result;
4386 wxFont * _arg0;
4387 PyObject * _argo0 = 0;
4388 char *_kwnames[] = { "self", NULL };
4389
4390 self = self;
4391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
4392 return NULL;
4393 if (_argo0) {
4394 if (_argo0 == Py_None) { _arg0 = NULL; }
4395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
4397 return NULL;
4398 }
4399 }
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 _result = (int )wxFont_GetPointSize(_arg0);
4403
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) return NULL;
4406 } _resultobj = Py_BuildValue("i",_result);
4407 return _resultobj;
4408 }
4409
4410 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
4411 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4412 PyObject * _resultobj;
4413 int _result;
4414 wxFont * _arg0;
4415 PyObject * _argo0 = 0;
4416 char *_kwnames[] = { "self", NULL };
4417
4418 self = self;
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
4420 return NULL;
4421 if (_argo0) {
4422 if (_argo0 == Py_None) { _arg0 = NULL; }
4423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
4425 return NULL;
4426 }
4427 }
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 _result = (int )wxFont_GetFamily(_arg0);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) return NULL;
4434 } _resultobj = Py_BuildValue("i",_result);
4435 return _resultobj;
4436 }
4437
4438 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
4439 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject * _resultobj;
4441 int _result;
4442 wxFont * _arg0;
4443 PyObject * _argo0 = 0;
4444 char *_kwnames[] = { "self", NULL };
4445
4446 self = self;
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
4448 return NULL;
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4453 return NULL;
4454 }
4455 }
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 _result = (int )wxFont_GetStyle(_arg0);
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) return NULL;
4462 } _resultobj = Py_BuildValue("i",_result);
4463 return _resultobj;
4464 }
4465
4466 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4467 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 int _result;
4470 wxFont * _arg0;
4471 PyObject * _argo0 = 0;
4472 char *_kwnames[] = { "self", NULL };
4473
4474 self = self;
4475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4476 return NULL;
4477 if (_argo0) {
4478 if (_argo0 == Py_None) { _arg0 = NULL; }
4479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4481 return NULL;
4482 }
4483 }
4484 {
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 _result = (int )wxFont_GetWeight(_arg0);
4487
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) return NULL;
4490 } _resultobj = Py_BuildValue("i",_result);
4491 return _resultobj;
4492 }
4493
4494 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4495 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject * _resultobj;
4497 bool _result;
4498 wxFont * _arg0;
4499 PyObject * _argo0 = 0;
4500 char *_kwnames[] = { "self", NULL };
4501
4502 self = self;
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4504 return NULL;
4505 if (_argo0) {
4506 if (_argo0 == Py_None) { _arg0 = NULL; }
4507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4509 return NULL;
4510 }
4511 }
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 _result = (bool )wxFont_GetUnderlined(_arg0);
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) return NULL;
4518 } _resultobj = Py_BuildValue("i",_result);
4519 return _resultobj;
4520 }
4521
4522 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4523 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject * _resultobj;
4525 wxString * _result;
4526 wxFont * _arg0;
4527 PyObject * _argo0 = 0;
4528 char *_kwnames[] = { "self", NULL };
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4537 return NULL;
4538 }
4539 }
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 _result = new wxString (wxFont_GetFaceName(_arg0));
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) return NULL;
4546 }{
4547 #if wxUSE_UNICODE
4548 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4549 #else
4550 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4551 #endif
4552 }
4553 {
4554 delete _result;
4555 }
4556 return _resultobj;
4557 }
4558
4559 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4560 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4561 PyObject * _resultobj;
4562 wxFontEncoding _result;
4563 wxFont * _arg0;
4564 PyObject * _argo0 = 0;
4565 char *_kwnames[] = { "self", NULL };
4566
4567 self = self;
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4569 return NULL;
4570 if (_argo0) {
4571 if (_argo0 == Py_None) { _arg0 = NULL; }
4572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4574 return NULL;
4575 }
4576 }
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) return NULL;
4583 } _resultobj = Py_BuildValue("i",_result);
4584 return _resultobj;
4585 }
4586
4587 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4588 static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4589 PyObject * _resultobj;
4590 bool _result;
4591 wxFont * _arg0;
4592 PyObject * _argo0 = 0;
4593 char *_kwnames[] = { "self", NULL };
4594
4595 self = self;
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
4597 return NULL;
4598 if (_argo0) {
4599 if (_argo0 == Py_None) { _arg0 = NULL; }
4600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4602 return NULL;
4603 }
4604 }
4605 {
4606 PyThreadState* __tstate = wxPyBeginAllowThreads();
4607 _result = (bool )wxFont_IsFixedWidth(_arg0);
4608
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) return NULL;
4611 } _resultobj = Py_BuildValue("i",_result);
4612 return _resultobj;
4613 }
4614
4615 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4616 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject * _resultobj;
4618 wxNativeFontInfo * _result;
4619 wxFont * _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:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4626 return NULL;
4627 if (_argo0) {
4628 if (_argo0 == Py_None) { _arg0 = NULL; }
4629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4631 return NULL;
4632 }
4633 }
4634 {
4635 PyThreadState* __tstate = wxPyBeginAllowThreads();
4636 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4637
4638 wxPyEndAllowThreads(__tstate);
4639 if (PyErr_Occurred()) return NULL;
4640 } if (_result) {
4641 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_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 wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4651 static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject * _resultobj;
4653 wxString * _result;
4654 wxFont * _arg0;
4655 PyObject * _argo0 = 0;
4656 char *_kwnames[] = { "self", NULL };
4657
4658 self = self;
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
4660 return NULL;
4661 if (_argo0) {
4662 if (_argo0 == Py_None) { _arg0 = NULL; }
4663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4665 return NULL;
4666 }
4667 }
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) return NULL;
4674 }{
4675 #if wxUSE_UNICODE
4676 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4677 #else
4678 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4679 #endif
4680 }
4681 {
4682 delete _result;
4683 }
4684 return _resultobj;
4685 }
4686
4687 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4688 static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject * _resultobj;
4690 wxString * _result;
4691 wxFont * _arg0;
4692 PyObject * _argo0 = 0;
4693 char *_kwnames[] = { "self", NULL };
4694
4695 self = self;
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
4697 return NULL;
4698 if (_argo0) {
4699 if (_argo0 == Py_None) { _arg0 = NULL; }
4700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4702 return NULL;
4703 }
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) return NULL;
4711 }{
4712 #if wxUSE_UNICODE
4713 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4714 #else
4715 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4716 #endif
4717 }
4718 {
4719 delete _result;
4720 }
4721 return _resultobj;
4722 }
4723
4724 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4725 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4726 PyObject * _resultobj;
4727 wxFont * _arg0;
4728 int _arg1;
4729 PyObject * _argo0 = 0;
4730 char *_kwnames[] = { "self","pointSize", NULL };
4731
4732 self = self;
4733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4734 return NULL;
4735 if (_argo0) {
4736 if (_argo0 == Py_None) { _arg0 = NULL; }
4737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4739 return NULL;
4740 }
4741 }
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 wxFont_SetPointSize(_arg0,_arg1);
4745
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) return NULL;
4748 } Py_INCREF(Py_None);
4749 _resultobj = Py_None;
4750 return _resultobj;
4751 }
4752
4753 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4754 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject * _resultobj;
4756 wxFont * _arg0;
4757 int _arg1;
4758 PyObject * _argo0 = 0;
4759 char *_kwnames[] = { "self","family", NULL };
4760
4761 self = self;
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4763 return NULL;
4764 if (_argo0) {
4765 if (_argo0 == Py_None) { _arg0 = NULL; }
4766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4768 return NULL;
4769 }
4770 }
4771 {
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 wxFont_SetFamily(_arg0,_arg1);
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) return NULL;
4777 } Py_INCREF(Py_None);
4778 _resultobj = Py_None;
4779 return _resultobj;
4780 }
4781
4782 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4783 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject * _resultobj;
4785 wxFont * _arg0;
4786 int _arg1;
4787 PyObject * _argo0 = 0;
4788 char *_kwnames[] = { "self","style", NULL };
4789
4790 self = self;
4791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4792 return NULL;
4793 if (_argo0) {
4794 if (_argo0 == Py_None) { _arg0 = NULL; }
4795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4797 return NULL;
4798 }
4799 }
4800 {
4801 PyThreadState* __tstate = wxPyBeginAllowThreads();
4802 wxFont_SetStyle(_arg0,_arg1);
4803
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) return NULL;
4806 } Py_INCREF(Py_None);
4807 _resultobj = Py_None;
4808 return _resultobj;
4809 }
4810
4811 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4812 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4813 PyObject * _resultobj;
4814 wxFont * _arg0;
4815 int _arg1;
4816 PyObject * _argo0 = 0;
4817 char *_kwnames[] = { "self","weight", NULL };
4818
4819 self = self;
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4821 return NULL;
4822 if (_argo0) {
4823 if (_argo0 == Py_None) { _arg0 = NULL; }
4824 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4825 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4826 return NULL;
4827 }
4828 }
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 wxFont_SetWeight(_arg0,_arg1);
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) return NULL;
4835 } Py_INCREF(Py_None);
4836 _resultobj = Py_None;
4837 return _resultobj;
4838 }
4839
4840 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4841 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4842 PyObject * _resultobj;
4843 wxFont * _arg0;
4844 wxString * _arg1;
4845 PyObject * _argo0 = 0;
4846 PyObject * _obj1 = 0;
4847 char *_kwnames[] = { "self","faceName", NULL };
4848
4849 self = self;
4850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4851 return NULL;
4852 if (_argo0) {
4853 if (_argo0 == Py_None) { _arg0 = NULL; }
4854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4856 return NULL;
4857 }
4858 }
4859 {
4860 _arg1 = wxString_in_helper(_obj1);
4861 if (_arg1 == NULL)
4862 return NULL;
4863 }
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 wxFont_SetFaceName(_arg0,*_arg1);
4867
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) return NULL;
4870 } Py_INCREF(Py_None);
4871 _resultobj = Py_None;
4872 {
4873 if (_obj1)
4874 delete _arg1;
4875 }
4876 return _resultobj;
4877 }
4878
4879 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4880 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject * _resultobj;
4882 wxFont * _arg0;
4883 bool _arg1;
4884 PyObject * _argo0 = 0;
4885 int tempbool1;
4886 char *_kwnames[] = { "self","underlined", NULL };
4887
4888 self = self;
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4890 return NULL;
4891 if (_argo0) {
4892 if (_argo0 == Py_None) { _arg0 = NULL; }
4893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4895 return NULL;
4896 }
4897 }
4898 _arg1 = (bool ) tempbool1;
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 wxFont_SetUnderlined(_arg0,_arg1);
4902
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) return NULL;
4905 } Py_INCREF(Py_None);
4906 _resultobj = Py_None;
4907 return _resultobj;
4908 }
4909
4910 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4911 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4912 PyObject * _resultobj;
4913 wxFont * _arg0;
4914 wxFontEncoding _arg1;
4915 PyObject * _argo0 = 0;
4916 char *_kwnames[] = { "self","encoding", NULL };
4917
4918 self = self;
4919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
4920 return NULL;
4921 if (_argo0) {
4922 if (_argo0 == Py_None) { _arg0 = NULL; }
4923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4925 return NULL;
4926 }
4927 }
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 wxFont_SetEncoding(_arg0,_arg1);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) return NULL;
4934 } Py_INCREF(Py_None);
4935 _resultobj = Py_None;
4936 return _resultobj;
4937 }
4938
4939 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4940 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4941 PyObject * _resultobj;
4942 wxFont * _arg0;
4943 wxNativeFontInfo * _arg1;
4944 PyObject * _argo0 = 0;
4945 PyObject * _argo1 = 0;
4946 char *_kwnames[] = { "self","info", NULL };
4947
4948 self = self;
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
4950 return NULL;
4951 if (_argo0) {
4952 if (_argo0 == Py_None) { _arg0 = NULL; }
4953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4955 return NULL;
4956 }
4957 }
4958 if (_argo1) {
4959 if (_argo1 == Py_None) { _arg1 = NULL; }
4960 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4961 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4962 return NULL;
4963 }
4964 }
4965 {
4966 PyThreadState* __tstate = wxPyBeginAllowThreads();
4967 wxFont_SetNativeFontInfo(_arg0,*_arg1);
4968
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) return NULL;
4971 } Py_INCREF(Py_None);
4972 _resultobj = Py_None;
4973 return _resultobj;
4974 }
4975
4976 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4977 static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject * _resultobj;
4979 wxFont * _arg0;
4980 wxString * _arg1;
4981 PyObject * _argo0 = 0;
4982 PyObject * _obj1 = 0;
4983 char *_kwnames[] = { "self","info", NULL };
4984
4985 self = self;
4986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4987 return NULL;
4988 if (_argo0) {
4989 if (_argo0 == Py_None) { _arg0 = NULL; }
4990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4992 return NULL;
4993 }
4994 }
4995 {
4996 _arg1 = wxString_in_helper(_obj1);
4997 if (_arg1 == NULL)
4998 return NULL;
4999 }
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
5003
5004 wxPyEndAllowThreads(__tstate);
5005 if (PyErr_Occurred()) return NULL;
5006 } Py_INCREF(Py_None);
5007 _resultobj = Py_None;
5008 {
5009 if (_obj1)
5010 delete _arg1;
5011 }
5012 return _resultobj;
5013 }
5014
5015 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
5016 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
5017 PyObject * _resultobj;
5018 wxString * _result;
5019 wxFont * _arg0;
5020 PyObject * _argo0 = 0;
5021 char *_kwnames[] = { "self", NULL };
5022
5023 self = self;
5024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
5025 return NULL;
5026 if (_argo0) {
5027 if (_argo0 == Py_None) { _arg0 = NULL; }
5028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
5030 return NULL;
5031 }
5032 }
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 _result = new wxString (wxFont_GetFamilyString(_arg0));
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) return NULL;
5039 }{
5040 #if wxUSE_UNICODE
5041 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5042 #else
5043 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5044 #endif
5045 }
5046 {
5047 delete _result;
5048 }
5049 return _resultobj;
5050 }
5051
5052 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
5053 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
5054 PyObject * _resultobj;
5055 wxString * _result;
5056 wxFont * _arg0;
5057 PyObject * _argo0 = 0;
5058 char *_kwnames[] = { "self", NULL };
5059
5060 self = self;
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
5062 return NULL;
5063 if (_argo0) {
5064 if (_argo0 == Py_None) { _arg0 = NULL; }
5065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
5067 return NULL;
5068 }
5069 }
5070 {
5071 PyThreadState* __tstate = wxPyBeginAllowThreads();
5072 _result = new wxString (wxFont_GetStyleString(_arg0));
5073
5074 wxPyEndAllowThreads(__tstate);
5075 if (PyErr_Occurred()) return NULL;
5076 }{
5077 #if wxUSE_UNICODE
5078 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5079 #else
5080 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5081 #endif
5082 }
5083 {
5084 delete _result;
5085 }
5086 return _resultobj;
5087 }
5088
5089 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
5090 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
5091 PyObject * _resultobj;
5092 wxString * _result;
5093 wxFont * _arg0;
5094 PyObject * _argo0 = 0;
5095 char *_kwnames[] = { "self", NULL };
5096
5097 self = self;
5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
5099 return NULL;
5100 if (_argo0) {
5101 if (_argo0 == Py_None) { _arg0 = NULL; }
5102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
5103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
5104 return NULL;
5105 }
5106 }
5107 {
5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
5109 _result = new wxString (wxFont_GetWeightString(_arg0));
5110
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) return NULL;
5113 }{
5114 #if wxUSE_UNICODE
5115 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5116 #else
5117 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5118 #endif
5119 }
5120 {
5121 delete _result;
5122 }
5123 return _resultobj;
5124 }
5125
5126 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject * _resultobj;
5128 wxFontEncoding _result;
5129 char *_kwnames[] = { NULL };
5130
5131 self = self;
5132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
5133 return NULL;
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
5137
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) return NULL;
5140 } _resultobj = Py_BuildValue("i",_result);
5141 return _resultobj;
5142 }
5143
5144 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5145 PyObject * _resultobj;
5146 wxFontEncoding _arg0;
5147 char *_kwnames[] = { "encoding", NULL };
5148
5149 self = self;
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
5151 return NULL;
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 wxFont::SetDefaultEncoding(_arg0);
5155
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) return NULL;
5158 } Py_INCREF(Py_None);
5159 _resultobj = Py_None;
5160 return _resultobj;
5161 }
5162
5163 static void *SwigwxFontListTowxObject(void *ptr) {
5164 wxFontList *src;
5165 wxObject *dest;
5166 src = (wxFontList *) ptr;
5167 dest = (wxObject *) src;
5168 return (void *) dest;
5169 }
5170
5171 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
5172 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5173 PyObject * _resultobj;
5174 wxFontList * _arg0;
5175 wxFont * _arg1;
5176 PyObject * _argo0 = 0;
5177 PyObject * _argo1 = 0;
5178 char *_kwnames[] = { "self","font", NULL };
5179
5180 self = self;
5181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
5182 return NULL;
5183 if (_argo0) {
5184 if (_argo0 == Py_None) { _arg0 = NULL; }
5185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
5187 return NULL;
5188 }
5189 }
5190 if (_argo1) {
5191 if (_argo1 == Py_None) { _arg1 = NULL; }
5192 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5193 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
5194 return NULL;
5195 }
5196 }
5197 {
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 wxFontList_AddFont(_arg0,_arg1);
5200
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) return NULL;
5203 } Py_INCREF(Py_None);
5204 _resultobj = Py_None;
5205 return _resultobj;
5206 }
5207
5208 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5209 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5210 PyObject * _resultobj;
5211 wxFont * _result;
5212 wxFontList * _arg0;
5213 int _arg1;
5214 int _arg2;
5215 int _arg3;
5216 int _arg4;
5217 bool _arg5 = (bool ) FALSE;
5218 wxString * _arg6 = (wxString *) &wxPyEmptyString;
5219 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
5220 PyObject * _argo0 = 0;
5221 int tempbool5 = (int) FALSE;
5222 PyObject * _obj6 = 0;
5223 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
5224 char _ptemp[128];
5225
5226 self = self;
5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iOi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_obj6,&_arg7))
5228 return NULL;
5229 if (_argo0) {
5230 if (_argo0 == Py_None) { _arg0 = NULL; }
5231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
5233 return NULL;
5234 }
5235 }
5236 _arg5 = (bool ) tempbool5;
5237 if (_obj6)
5238 {
5239 _arg6 = wxString_in_helper(_obj6);
5240 if (_arg6 == NULL)
5241 return NULL;
5242 }
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,_arg7);
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) return NULL;
5249 } if (_result) {
5250 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5251 _resultobj = Py_BuildValue("s",_ptemp);
5252 } else {
5253 Py_INCREF(Py_None);
5254 _resultobj = Py_None;
5255 }
5256 {
5257 if (_obj6)
5258 delete _arg6;
5259 }
5260 return _resultobj;
5261 }
5262
5263 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
5264 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5265 PyObject * _resultobj;
5266 wxFontList * _arg0;
5267 wxFont * _arg1;
5268 PyObject * _argo0 = 0;
5269 PyObject * _argo1 = 0;
5270 char *_kwnames[] = { "self","font", NULL };
5271
5272 self = self;
5273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
5274 return NULL;
5275 if (_argo0) {
5276 if (_argo0 == Py_None) { _arg0 = NULL; }
5277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
5279 return NULL;
5280 }
5281 }
5282 if (_argo1) {
5283 if (_argo1 == Py_None) { _arg1 = NULL; }
5284 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5285 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
5286 return NULL;
5287 }
5288 }
5289 {
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 wxFontList_RemoveFont(_arg0,_arg1);
5292
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) return NULL;
5295 } Py_INCREF(Py_None);
5296 _resultobj = Py_None;
5297 return _resultobj;
5298 }
5299
5300 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
5301 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5302 PyObject * _resultobj;
5303 int _result;
5304 wxFontList * _arg0;
5305 PyObject * _argo0 = 0;
5306 char *_kwnames[] = { "self", NULL };
5307
5308 self = self;
5309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
5310 return NULL;
5311 if (_argo0) {
5312 if (_argo0 == Py_None) { _arg0 = NULL; }
5313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
5314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
5315 return NULL;
5316 }
5317 }
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 _result = (int )wxFontList_GetCount(_arg0);
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) return NULL;
5324 } _resultobj = Py_BuildValue("i",_result);
5325 return _resultobj;
5326 }
5327
5328 static void *SwigwxColourTowxObject(void *ptr) {
5329 wxColour *src;
5330 wxObject *dest;
5331 src = (wxColour *) ptr;
5332 dest = (wxObject *) src;
5333 return (void *) dest;
5334 }
5335
5336 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
5337 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5338 PyObject * _resultobj;
5339 wxColour * _result;
5340 unsigned char _arg0 = (unsigned char ) 0;
5341 unsigned char _arg1 = (unsigned char ) 0;
5342 unsigned char _arg2 = (unsigned char ) 0;
5343 char *_kwnames[] = { "red","green","blue", NULL };
5344 char _ptemp[128];
5345
5346 self = self;
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
5348 return NULL;
5349 {
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
5352
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) return NULL;
5355 } if (_result) {
5356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5357 _resultobj = Py_BuildValue("s",_ptemp);
5358 } else {
5359 Py_INCREF(Py_None);
5360 _resultobj = Py_None;
5361 }
5362 return _resultobj;
5363 }
5364
5365 #define delete_wxColour(_swigobj) (delete _swigobj)
5366 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5367 PyObject * _resultobj;
5368 wxColour * _arg0;
5369 wxColour temp;
5370 PyObject * _obj0 = 0;
5371 char *_kwnames[] = { "self", NULL };
5372
5373 self = self;
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
5375 return NULL;
5376 {
5377 _arg0 = &temp;
5378 if (! wxColour_helper(_obj0, &_arg0))
5379 return NULL;
5380 }
5381 {
5382 PyThreadState* __tstate = wxPyBeginAllowThreads();
5383 delete_wxColour(_arg0);
5384
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) return NULL;
5387 } Py_INCREF(Py_None);
5388 _resultobj = Py_None;
5389 return _resultobj;
5390 }
5391
5392 #define wxColour_Red(_swigobj) (_swigobj->Red())
5393 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject * _resultobj;
5395 unsigned char _result;
5396 wxColour * _arg0;
5397 wxColour temp;
5398 PyObject * _obj0 = 0;
5399 char *_kwnames[] = { "self", NULL };
5400
5401 self = self;
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
5403 return NULL;
5404 {
5405 _arg0 = &temp;
5406 if (! wxColour_helper(_obj0, &_arg0))
5407 return NULL;
5408 }
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 _result = (unsigned char )wxColour_Red(_arg0);
5412
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) return NULL;
5415 } _resultobj = Py_BuildValue("b",_result);
5416 return _resultobj;
5417 }
5418
5419 #define wxColour_Green(_swigobj) (_swigobj->Green())
5420 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
5421 PyObject * _resultobj;
5422 unsigned char _result;
5423 wxColour * _arg0;
5424 wxColour temp;
5425 PyObject * _obj0 = 0;
5426 char *_kwnames[] = { "self", NULL };
5427
5428 self = self;
5429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
5430 return NULL;
5431 {
5432 _arg0 = &temp;
5433 if (! wxColour_helper(_obj0, &_arg0))
5434 return NULL;
5435 }
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 _result = (unsigned char )wxColour_Green(_arg0);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) return NULL;
5442 } _resultobj = Py_BuildValue("b",_result);
5443 return _resultobj;
5444 }
5445
5446 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
5447 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
5448 PyObject * _resultobj;
5449 unsigned char _result;
5450 wxColour * _arg0;
5451 wxColour temp;
5452 PyObject * _obj0 = 0;
5453 char *_kwnames[] = { "self", NULL };
5454
5455 self = self;
5456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
5457 return NULL;
5458 {
5459 _arg0 = &temp;
5460 if (! wxColour_helper(_obj0, &_arg0))
5461 return NULL;
5462 }
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 _result = (unsigned char )wxColour_Blue(_arg0);
5466
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) return NULL;
5469 } _resultobj = Py_BuildValue("b",_result);
5470 return _resultobj;
5471 }
5472
5473 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
5474 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject * _resultobj;
5476 bool _result;
5477 wxColour * _arg0;
5478 wxColour temp;
5479 PyObject * _obj0 = 0;
5480 char *_kwnames[] = { "self", NULL };
5481
5482 self = self;
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
5484 return NULL;
5485 {
5486 _arg0 = &temp;
5487 if (! wxColour_helper(_obj0, &_arg0))
5488 return NULL;
5489 }
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 _result = (bool )wxColour_Ok(_arg0);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) return NULL;
5496 } _resultobj = Py_BuildValue("i",_result);
5497 return _resultobj;
5498 }
5499
5500 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5501 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5502 PyObject * _resultobj;
5503 wxColour * _arg0;
5504 unsigned char _arg1;
5505 unsigned char _arg2;
5506 unsigned char _arg3;
5507 wxColour temp;
5508 PyObject * _obj0 = 0;
5509 char *_kwnames[] = { "self","red","green","blue", NULL };
5510
5511 self = self;
5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
5513 return NULL;
5514 {
5515 _arg0 = &temp;
5516 if (! wxColour_helper(_obj0, &_arg0))
5517 return NULL;
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
5522
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) return NULL;
5525 } Py_INCREF(Py_None);
5526 _resultobj = Py_None;
5527 return _resultobj;
5528 }
5529
5530 static PyObject * wxColour_Get(wxColour *self) {
5531 PyObject* rv = PyTuple_New(3);
5532 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
5533 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
5534 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
5535 return rv;
5536 }
5537 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject * _resultobj;
5539 PyObject * _result;
5540 wxColour * _arg0;
5541 wxColour temp;
5542 PyObject * _obj0 = 0;
5543 char *_kwnames[] = { "self", NULL };
5544
5545 self = self;
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
5547 return NULL;
5548 {
5549 _arg0 = &temp;
5550 if (! wxColour_helper(_obj0, &_arg0))
5551 return NULL;
5552 }
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 _result = (PyObject *)wxColour_Get(_arg0);
5556
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) return NULL;
5559 }{
5560 _resultobj = _result;
5561 }
5562 return _resultobj;
5563 }
5564
5565 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
5566 wxColourDatabase *src;
5567 wxObject *dest;
5568 src = (wxColourDatabase *) ptr;
5569 dest = (wxObject *) src;
5570 return (void *) dest;
5571 }
5572
5573 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
5574 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5575 PyObject * _resultobj;
5576 wxColour * _result;
5577 wxColourDatabase * _arg0;
5578 wxString * _arg1;
5579 PyObject * _argo0 = 0;
5580 PyObject * _obj1 = 0;
5581 char *_kwnames[] = { "self","colour", NULL };
5582 char _ptemp[128];
5583
5584 self = self;
5585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
5586 return NULL;
5587 if (_argo0) {
5588 if (_argo0 == Py_None) { _arg0 = NULL; }
5589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5591 return NULL;
5592 }
5593 }
5594 {
5595 _arg1 = wxString_in_helper(_obj1);
5596 if (_arg1 == NULL)
5597 return NULL;
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) return NULL;
5605 } if (_result) {
5606 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5607 _resultobj = Py_BuildValue("s",_ptemp);
5608 } else {
5609 Py_INCREF(Py_None);
5610 _resultobj = Py_None;
5611 }
5612 {
5613 if (_obj1)
5614 delete _arg1;
5615 }
5616 return _resultobj;
5617 }
5618
5619 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5620 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5621 PyObject * _resultobj;
5622 wxString * _result;
5623 wxColourDatabase * _arg0;
5624 wxColour * _arg1;
5625 PyObject * _argo0 = 0;
5626 wxColour temp;
5627 PyObject * _obj1 = 0;
5628 char *_kwnames[] = { "self","colour", NULL };
5629
5630 self = self;
5631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5632 return NULL;
5633 if (_argo0) {
5634 if (_argo0 == Py_None) { _arg0 = NULL; }
5635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5637 return NULL;
5638 }
5639 }
5640 {
5641 _arg1 = &temp;
5642 if (! wxColour_helper(_obj1, &_arg1))
5643 return NULL;
5644 }
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5648
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) return NULL;
5651 }{
5652 #if wxUSE_UNICODE
5653 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5654 #else
5655 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5656 #endif
5657 }
5658 {
5659 delete _result;
5660 }
5661 return _resultobj;
5662 }
5663
5664 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5665 // first see if the name is already there
5666 wxString cName = name;
5667 cName.MakeUpper();
5668 wxString cName2 = cName;
5669 if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) )
5670 cName2.clear();
5671
5672 wxNode *node = self->First();
5673 while ( node ) {
5674 const wxChar *key = node->GetKeyString();
5675 if ( cName == key || cName2 == key ) {
5676 wxColour* c = (wxColour *)node->Data();
5677 c->Set(red, green, blue);
5678 return;
5679 }
5680 node = node->Next();
5681 }
5682
5683 // otherwise append the new colour
5684 self->Append(name.c_str(), new wxColour(red, green, blue));
5685 }
5686 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject * _resultobj;
5688 wxColourDatabase * _arg0;
5689 wxString * _arg1;
5690 int _arg2;
5691 int _arg3;
5692 int _arg4;
5693 PyObject * _argo0 = 0;
5694 PyObject * _obj1 = 0;
5695 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5696
5697 self = self;
5698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5699 return NULL;
5700 if (_argo0) {
5701 if (_argo0 == Py_None) { _arg0 = NULL; }
5702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5704 return NULL;
5705 }
5706 }
5707 {
5708 _arg1 = wxString_in_helper(_obj1);
5709 if (_arg1 == NULL)
5710 return NULL;
5711 }
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) return NULL;
5718 } Py_INCREF(Py_None);
5719 _resultobj = Py_None;
5720 {
5721 if (_obj1)
5722 delete _arg1;
5723 }
5724 return _resultobj;
5725 }
5726
5727 static void *SwigwxPenTowxGDIObject(void *ptr) {
5728 wxPen *src;
5729 wxGDIObject *dest;
5730 src = (wxPen *) ptr;
5731 dest = (wxGDIObject *) src;
5732 return (void *) dest;
5733 }
5734
5735 static void *SwigwxPenTowxObject(void *ptr) {
5736 wxPen *src;
5737 wxObject *dest;
5738 src = (wxPen *) ptr;
5739 dest = (wxObject *) src;
5740 return (void *) dest;
5741 }
5742
5743 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5744 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5745 PyObject * _resultobj;
5746 wxPen * _result;
5747 wxColour * _arg0;
5748 int _arg1 = (int ) 1;
5749 int _arg2 = (int ) wxSOLID;
5750 wxColour temp;
5751 PyObject * _obj0 = 0;
5752 char *_kwnames[] = { "colour","width","style", NULL };
5753 char _ptemp[128];
5754
5755 self = self;
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5757 return NULL;
5758 {
5759 _arg0 = &temp;
5760 if (! wxColour_helper(_obj0, &_arg0))
5761 return NULL;
5762 }
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) return NULL;
5769 } if (_result) {
5770 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5771 _resultobj = Py_BuildValue("s",_ptemp);
5772 } else {
5773 Py_INCREF(Py_None);
5774 _resultobj = Py_None;
5775 }
5776 return _resultobj;
5777 }
5778
5779 #define delete_wxPen(_swigobj) (delete _swigobj)
5780 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject * _resultobj;
5782 wxPen * _arg0;
5783 PyObject * _argo0 = 0;
5784 char *_kwnames[] = { "self", NULL };
5785
5786 self = self;
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5788 return NULL;
5789 if (_argo0) {
5790 if (_argo0 == Py_None) { _arg0 = NULL; }
5791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5793 return NULL;
5794 }
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 delete_wxPen(_arg0);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) return NULL;
5802 } Py_INCREF(Py_None);
5803 _resultobj = Py_None;
5804 return _resultobj;
5805 }
5806
5807 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5808 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5809 PyObject * _resultobj;
5810 int _result;
5811 wxPen * _arg0;
5812 PyObject * _argo0 = 0;
5813 char *_kwnames[] = { "self", NULL };
5814
5815 self = self;
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5817 return NULL;
5818 if (_argo0) {
5819 if (_argo0 == Py_None) { _arg0 = NULL; }
5820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5822 return NULL;
5823 }
5824 }
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 _result = (int )wxPen_GetCap(_arg0);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) return NULL;
5831 } _resultobj = Py_BuildValue("i",_result);
5832 return _resultobj;
5833 }
5834
5835 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5836 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5837 PyObject * _resultobj;
5838 wxColour * _result;
5839 wxPen * _arg0;
5840 PyObject * _argo0 = 0;
5841 char *_kwnames[] = { "self", NULL };
5842 char _ptemp[128];
5843
5844 self = self;
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5846 return NULL;
5847 if (_argo0) {
5848 if (_argo0 == Py_None) { _arg0 = NULL; }
5849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5851 return NULL;
5852 }
5853 }
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 _result = new wxColour (wxPen_GetColour(_arg0));
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) return NULL;
5860 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5861 _resultobj = Py_BuildValue("s",_ptemp);
5862 return _resultobj;
5863 }
5864
5865 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5866 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5867 PyObject * _resultobj;
5868 int _result;
5869 wxPen * _arg0;
5870 PyObject * _argo0 = 0;
5871 char *_kwnames[] = { "self", NULL };
5872
5873 self = self;
5874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5875 return NULL;
5876 if (_argo0) {
5877 if (_argo0 == Py_None) { _arg0 = NULL; }
5878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5880 return NULL;
5881 }
5882 }
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 _result = (int )wxPen_GetJoin(_arg0);
5886
5887 wxPyEndAllowThreads(__tstate);
5888 if (PyErr_Occurred()) return NULL;
5889 } _resultobj = Py_BuildValue("i",_result);
5890 return _resultobj;
5891 }
5892
5893 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5894 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject * _resultobj;
5896 int _result;
5897 wxPen * _arg0;
5898 PyObject * _argo0 = 0;
5899 char *_kwnames[] = { "self", NULL };
5900
5901 self = self;
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5903 return NULL;
5904 if (_argo0) {
5905 if (_argo0 == Py_None) { _arg0 = NULL; }
5906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5908 return NULL;
5909 }
5910 }
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 _result = (int )wxPen_GetStyle(_arg0);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) return NULL;
5917 } _resultobj = Py_BuildValue("i",_result);
5918 return _resultobj;
5919 }
5920
5921 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5922 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5923 PyObject * _resultobj;
5924 int _result;
5925 wxPen * _arg0;
5926 PyObject * _argo0 = 0;
5927 char *_kwnames[] = { "self", NULL };
5928
5929 self = self;
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5931 return NULL;
5932 if (_argo0) {
5933 if (_argo0 == Py_None) { _arg0 = NULL; }
5934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5936 return NULL;
5937 }
5938 }
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 _result = (int )wxPen_GetWidth(_arg0);
5942
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) return NULL;
5945 } _resultobj = Py_BuildValue("i",_result);
5946 return _resultobj;
5947 }
5948
5949 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5950 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5951 PyObject * _resultobj;
5952 bool _result;
5953 wxPen * _arg0;
5954 PyObject * _argo0 = 0;
5955 char *_kwnames[] = { "self", NULL };
5956
5957 self = self;
5958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5959 return NULL;
5960 if (_argo0) {
5961 if (_argo0 == Py_None) { _arg0 = NULL; }
5962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5964 return NULL;
5965 }
5966 }
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 _result = (bool )wxPen_Ok(_arg0);
5970
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) return NULL;
5973 } _resultobj = Py_BuildValue("i",_result);
5974 return _resultobj;
5975 }
5976
5977 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5978 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject * _resultobj;
5980 wxPen * _arg0;
5981 int _arg1;
5982 PyObject * _argo0 = 0;
5983 char *_kwnames[] = { "self","cap_style", NULL };
5984
5985 self = self;
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5987 return NULL;
5988 if (_argo0) {
5989 if (_argo0 == Py_None) { _arg0 = NULL; }
5990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5992 return NULL;
5993 }
5994 }
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 wxPen_SetCap(_arg0,_arg1);
5998
5999 wxPyEndAllowThreads(__tstate);
6000 if (PyErr_Occurred()) return NULL;
6001 } Py_INCREF(Py_None);
6002 _resultobj = Py_None;
6003 return _resultobj;
6004 }
6005
6006 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6007 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6008 PyObject * _resultobj;
6009 wxPen * _arg0;
6010 wxColour * _arg1;
6011 PyObject * _argo0 = 0;
6012 wxColour temp;
6013 PyObject * _obj1 = 0;
6014 char *_kwnames[] = { "self","colour", NULL };
6015
6016 self = self;
6017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
6018 return NULL;
6019 if (_argo0) {
6020 if (_argo0 == Py_None) { _arg0 = NULL; }
6021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
6023 return NULL;
6024 }
6025 }
6026 {
6027 _arg1 = &temp;
6028 if (! wxColour_helper(_obj1, &_arg1))
6029 return NULL;
6030 }
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 wxPen_SetColour(_arg0,*_arg1);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) return NULL;
6037 } Py_INCREF(Py_None);
6038 _resultobj = Py_None;
6039 return _resultobj;
6040 }
6041
6042 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
6043 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
6044 PyObject * _resultobj;
6045 wxPen * _arg0;
6046 int _arg1;
6047 PyObject * _argo0 = 0;
6048 char *_kwnames[] = { "self","join_style", NULL };
6049
6050 self = self;
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
6052 return NULL;
6053 if (_argo0) {
6054 if (_argo0 == Py_None) { _arg0 = NULL; }
6055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
6057 return NULL;
6058 }
6059 }
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 wxPen_SetJoin(_arg0,_arg1);
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) return NULL;
6066 } Py_INCREF(Py_None);
6067 _resultobj = Py_None;
6068 return _resultobj;
6069 }
6070
6071 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6072 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6073 PyObject * _resultobj;
6074 wxPen * _arg0;
6075 int _arg1;
6076 PyObject * _argo0 = 0;
6077 char *_kwnames[] = { "self","style", NULL };
6078
6079 self = self;
6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
6081 return NULL;
6082 if (_argo0) {
6083 if (_argo0 == Py_None) { _arg0 = NULL; }
6084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
6086 return NULL;
6087 }
6088 }
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 wxPen_SetStyle(_arg0,_arg1);
6092
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) return NULL;
6095 } Py_INCREF(Py_None);
6096 _resultobj = Py_None;
6097 return _resultobj;
6098 }
6099
6100 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
6101 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject * _resultobj;
6103 wxPen * _arg0;
6104 int _arg1;
6105 PyObject * _argo0 = 0;
6106 char *_kwnames[] = { "self","width", NULL };
6107
6108 self = self;
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
6110 return NULL;
6111 if (_argo0) {
6112 if (_argo0 == Py_None) { _arg0 = NULL; }
6113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
6115 return NULL;
6116 }
6117 }
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 wxPen_SetWidth(_arg0,_arg1);
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) return NULL;
6124 } Py_INCREF(Py_None);
6125 _resultobj = Py_None;
6126 return _resultobj;
6127 }
6128
6129 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6130 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6131 PyObject * _resultobj;
6132 wxPen * _arg0;
6133 int _arg1;
6134 wxDash * _arg2;
6135 PyObject * _argo0 = 0;
6136 PyObject * _obj2 = 0;
6137 char *_kwnames[] = { "self","choices", NULL };
6138
6139 self = self;
6140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
6141 return NULL;
6142 if (_argo0) {
6143 if (_argo0 == Py_None) { _arg0 = NULL; }
6144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
6146 return NULL;
6147 }
6148 }
6149 if (_obj2)
6150 {
6151 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6152 if (_arg2 == NULL) {
6153 return NULL;
6154 }
6155 }
6156 {
6157 if (_obj2) {
6158 _arg1 = PyList_Size(_obj2);
6159 }
6160 else {
6161 _arg1 = 0;
6162 }
6163 }
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 wxPen_SetDashes(_arg0,_arg1,_arg2);
6167
6168 wxPyEndAllowThreads(__tstate);
6169 if (PyErr_Occurred()) return NULL;
6170 } Py_INCREF(Py_None);
6171 _resultobj = Py_None;
6172 {
6173 delete [] _arg2;
6174 }
6175 return _resultobj;
6176 }
6177
6178 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
6179 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6180 PyObject * _resultobj;
6181 wxBitmap * _result;
6182 wxPen * _arg0;
6183 PyObject * _argo0 = 0;
6184 char *_kwnames[] = { "self", NULL };
6185 char _ptemp[128];
6186
6187 self = self;
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
6189 return NULL;
6190 if (_argo0) {
6191 if (_argo0 == Py_None) { _arg0 = NULL; }
6192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
6194 return NULL;
6195 }
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) return NULL;
6203 } if (_result) {
6204 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6205 _resultobj = Py_BuildValue("s",_ptemp);
6206 } else {
6207 Py_INCREF(Py_None);
6208 _resultobj = Py_None;
6209 }
6210 return _resultobj;
6211 }
6212
6213 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6214 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6215 PyObject * _resultobj;
6216 wxPen * _arg0;
6217 wxBitmap * _arg1;
6218 PyObject * _argo0 = 0;
6219 PyObject * _argo1 = 0;
6220 char *_kwnames[] = { "self","stipple", NULL };
6221
6222 self = self;
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
6224 return NULL;
6225 if (_argo0) {
6226 if (_argo0 == Py_None) { _arg0 = NULL; }
6227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
6228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
6229 return NULL;
6230 }
6231 }
6232 if (_argo1) {
6233 if (_argo1 == Py_None) { _arg1 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
6236 return NULL;
6237 }
6238 }
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 wxPen_SetStipple(_arg0,*_arg1);
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) return NULL;
6245 } Py_INCREF(Py_None);
6246 _resultobj = Py_None;
6247 return _resultobj;
6248 }
6249
6250 static void *SwigwxPyPenTowxPen(void *ptr) {
6251 wxPyPen *src;
6252 wxPen *dest;
6253 src = (wxPyPen *) ptr;
6254 dest = (wxPen *) src;
6255 return (void *) dest;
6256 }
6257
6258 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
6259 wxPyPen *src;
6260 wxGDIObject *dest;
6261 src = (wxPyPen *) ptr;
6262 dest = (wxGDIObject *) src;
6263 return (void *) dest;
6264 }
6265
6266 static void *SwigwxPyPenTowxObject(void *ptr) {
6267 wxPyPen *src;
6268 wxObject *dest;
6269 src = (wxPyPen *) ptr;
6270 dest = (wxObject *) src;
6271 return (void *) dest;
6272 }
6273
6274 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
6275 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6276 PyObject * _resultobj;
6277 wxPyPen * _result;
6278 wxColour * _arg0;
6279 int _arg1 = (int ) 1;
6280 int _arg2 = (int ) wxSOLID;
6281 wxColour temp;
6282 PyObject * _obj0 = 0;
6283 char *_kwnames[] = { "colour","width","style", NULL };
6284 char _ptemp[128];
6285
6286 self = self;
6287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
6288 return NULL;
6289 {
6290 _arg0 = &temp;
6291 if (! wxColour_helper(_obj0, &_arg0))
6292 return NULL;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) return NULL;
6300 } if (_result) {
6301 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
6302 _resultobj = Py_BuildValue("s",_ptemp);
6303 } else {
6304 Py_INCREF(Py_None);
6305 _resultobj = Py_None;
6306 }
6307 return _resultobj;
6308 }
6309
6310 #define delete_wxPyPen(_swigobj) (delete _swigobj)
6311 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6312 PyObject * _resultobj;
6313 wxPyPen * _arg0;
6314 PyObject * _argo0 = 0;
6315 char *_kwnames[] = { "self", NULL };
6316
6317 self = self;
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
6319 return NULL;
6320 if (_argo0) {
6321 if (_argo0 == Py_None) { _arg0 = NULL; }
6322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
6324 return NULL;
6325 }
6326 }
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 delete_wxPyPen(_arg0);
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) return NULL;
6333 } Py_INCREF(Py_None);
6334 _resultobj = Py_None;
6335 return _resultobj;
6336 }
6337
6338 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
6339 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject * _resultobj;
6341 wxPyPen * _arg0;
6342 int _arg1;
6343 wxDash * _arg2;
6344 PyObject * _argo0 = 0;
6345 PyObject * _obj2 = 0;
6346 char *_kwnames[] = { "self","choices", NULL };
6347
6348 self = self;
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
6350 return NULL;
6351 if (_argo0) {
6352 if (_argo0 == Py_None) { _arg0 = NULL; }
6353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
6354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
6355 return NULL;
6356 }
6357 }
6358 if (_obj2)
6359 {
6360 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
6361 if (_arg2 == NULL) {
6362 return NULL;
6363 }
6364 }
6365 {
6366 if (_obj2) {
6367 _arg1 = PyList_Size(_obj2);
6368 }
6369 else {
6370 _arg1 = 0;
6371 }
6372 }
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) return NULL;
6379 } Py_INCREF(Py_None);
6380 _resultobj = Py_None;
6381 {
6382 delete [] _arg2;
6383 }
6384 return _resultobj;
6385 }
6386
6387 static void *SwigwxPenListTowxObject(void *ptr) {
6388 wxPenList *src;
6389 wxObject *dest;
6390 src = (wxPenList *) ptr;
6391 dest = (wxObject *) src;
6392 return (void *) dest;
6393 }
6394
6395 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
6396 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6397 PyObject * _resultobj;
6398 wxPenList * _arg0;
6399 wxPen * _arg1;
6400 PyObject * _argo0 = 0;
6401 PyObject * _argo1 = 0;
6402 char *_kwnames[] = { "self","pen", NULL };
6403
6404 self = self;
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
6406 return NULL;
6407 if (_argo0) {
6408 if (_argo0 == Py_None) { _arg0 = NULL; }
6409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
6411 return NULL;
6412 }
6413 }
6414 if (_argo1) {
6415 if (_argo1 == Py_None) { _arg1 = NULL; }
6416 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6417 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
6418 return NULL;
6419 }
6420 }
6421 {
6422 PyThreadState* __tstate = wxPyBeginAllowThreads();
6423 wxPenList_AddPen(_arg0,_arg1);
6424
6425 wxPyEndAllowThreads(__tstate);
6426 if (PyErr_Occurred()) return NULL;
6427 } Py_INCREF(Py_None);
6428 _resultobj = Py_None;
6429 return _resultobj;
6430 }
6431
6432 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
6433 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6434 PyObject * _resultobj;
6435 wxPen * _result;
6436 wxPenList * _arg0;
6437 wxColour * _arg1;
6438 int _arg2;
6439 int _arg3;
6440 PyObject * _argo0 = 0;
6441 wxColour temp;
6442 PyObject * _obj1 = 0;
6443 char *_kwnames[] = { "self","colour","width","style", NULL };
6444 char _ptemp[128];
6445
6446 self = self;
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6448 return NULL;
6449 if (_argo0) {
6450 if (_argo0 == Py_None) { _arg0 = NULL; }
6451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
6453 return NULL;
6454 }
6455 }
6456 {
6457 _arg1 = &temp;
6458 if (! wxColour_helper(_obj1, &_arg1))
6459 return NULL;
6460 }
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
6464
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) return NULL;
6467 } if (_result) {
6468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6469 _resultobj = Py_BuildValue("s",_ptemp);
6470 } else {
6471 Py_INCREF(Py_None);
6472 _resultobj = Py_None;
6473 }
6474 return _resultobj;
6475 }
6476
6477 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
6478 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject * _resultobj;
6480 wxPenList * _arg0;
6481 wxPen * _arg1;
6482 PyObject * _argo0 = 0;
6483 PyObject * _argo1 = 0;
6484 char *_kwnames[] = { "self","pen", NULL };
6485
6486 self = self;
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
6488 return NULL;
6489 if (_argo0) {
6490 if (_argo0 == Py_None) { _arg0 = NULL; }
6491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
6493 return NULL;
6494 }
6495 }
6496 if (_argo1) {
6497 if (_argo1 == Py_None) { _arg1 = NULL; }
6498 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
6499 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
6500 return NULL;
6501 }
6502 }
6503 {
6504 PyThreadState* __tstate = wxPyBeginAllowThreads();
6505 wxPenList_RemovePen(_arg0,_arg1);
6506
6507 wxPyEndAllowThreads(__tstate);
6508 if (PyErr_Occurred()) return NULL;
6509 } Py_INCREF(Py_None);
6510 _resultobj = Py_None;
6511 return _resultobj;
6512 }
6513
6514 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
6515 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6516 PyObject * _resultobj;
6517 int _result;
6518 wxPenList * _arg0;
6519 PyObject * _argo0 = 0;
6520 char *_kwnames[] = { "self", NULL };
6521
6522 self = self;
6523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
6524 return NULL;
6525 if (_argo0) {
6526 if (_argo0 == Py_None) { _arg0 = NULL; }
6527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
6528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
6529 return NULL;
6530 }
6531 }
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 _result = (int )wxPenList_GetCount(_arg0);
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) return NULL;
6538 } _resultobj = Py_BuildValue("i",_result);
6539 return _resultobj;
6540 }
6541
6542 static void *SwigwxBrushTowxGDIObject(void *ptr) {
6543 wxBrush *src;
6544 wxGDIObject *dest;
6545 src = (wxBrush *) ptr;
6546 dest = (wxGDIObject *) src;
6547 return (void *) dest;
6548 }
6549
6550 static void *SwigwxBrushTowxObject(void *ptr) {
6551 wxBrush *src;
6552 wxObject *dest;
6553 src = (wxBrush *) ptr;
6554 dest = (wxObject *) src;
6555 return (void *) dest;
6556 }
6557
6558 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
6559 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject * _resultobj;
6561 wxBrush * _result;
6562 wxColour * _arg0;
6563 int _arg1 = (int ) wxSOLID;
6564 wxColour temp;
6565 PyObject * _obj0 = 0;
6566 char *_kwnames[] = { "colour","style", NULL };
6567 char _ptemp[128];
6568
6569 self = self;
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
6571 return NULL;
6572 {
6573 _arg0 = &temp;
6574 if (! wxColour_helper(_obj0, &_arg0))
6575 return NULL;
6576 }
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) return NULL;
6583 } if (_result) {
6584 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6585 _resultobj = Py_BuildValue("s",_ptemp);
6586 } else {
6587 Py_INCREF(Py_None);
6588 _resultobj = Py_None;
6589 }
6590 return _resultobj;
6591 }
6592
6593 #define delete_wxBrush(_swigobj) (delete _swigobj)
6594 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6595 PyObject * _resultobj;
6596 wxBrush * _arg0;
6597 PyObject * _argo0 = 0;
6598 char *_kwnames[] = { "self", NULL };
6599
6600 self = self;
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
6602 return NULL;
6603 if (_argo0) {
6604 if (_argo0 == Py_None) { _arg0 = NULL; }
6605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6607 return NULL;
6608 }
6609 }
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
6612 delete_wxBrush(_arg0);
6613
6614 wxPyEndAllowThreads(__tstate);
6615 if (PyErr_Occurred()) return NULL;
6616 } Py_INCREF(Py_None);
6617 _resultobj = Py_None;
6618 return _resultobj;
6619 }
6620
6621 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6622 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject * _resultobj;
6624 wxColour * _result;
6625 wxBrush * _arg0;
6626 PyObject * _argo0 = 0;
6627 char *_kwnames[] = { "self", NULL };
6628 char _ptemp[128];
6629
6630 self = self;
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6632 return NULL;
6633 if (_argo0) {
6634 if (_argo0 == Py_None) { _arg0 = NULL; }
6635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6637 return NULL;
6638 }
6639 }
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 _result = new wxColour (wxBrush_GetColour(_arg0));
6643
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) return NULL;
6646 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6647 _resultobj = Py_BuildValue("s",_ptemp);
6648 return _resultobj;
6649 }
6650
6651 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6652 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject * _resultobj;
6654 wxBitmap * _result;
6655 wxBrush * _arg0;
6656 PyObject * _argo0 = 0;
6657 char *_kwnames[] = { "self", NULL };
6658 char _ptemp[128];
6659
6660 self = self;
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6662 return NULL;
6663 if (_argo0) {
6664 if (_argo0 == Py_None) { _arg0 = NULL; }
6665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6667 return NULL;
6668 }
6669 }
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) return NULL;
6676 } if (_result) {
6677 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6678 _resultobj = Py_BuildValue("s",_ptemp);
6679 } else {
6680 Py_INCREF(Py_None);
6681 _resultobj = Py_None;
6682 }
6683 return _resultobj;
6684 }
6685
6686 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6687 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6688 PyObject * _resultobj;
6689 int _result;
6690 wxBrush * _arg0;
6691 PyObject * _argo0 = 0;
6692 char *_kwnames[] = { "self", NULL };
6693
6694 self = self;
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6696 return NULL;
6697 if (_argo0) {
6698 if (_argo0 == Py_None) { _arg0 = NULL; }
6699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6701 return NULL;
6702 }
6703 }
6704 {
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 _result = (int )wxBrush_GetStyle(_arg0);
6707
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) return NULL;
6710 } _resultobj = Py_BuildValue("i",_result);
6711 return _resultobj;
6712 }
6713
6714 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6715 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6716 PyObject * _resultobj;
6717 bool _result;
6718 wxBrush * _arg0;
6719 PyObject * _argo0 = 0;
6720 char *_kwnames[] = { "self", NULL };
6721
6722 self = self;
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6724 return NULL;
6725 if (_argo0) {
6726 if (_argo0 == Py_None) { _arg0 = NULL; }
6727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6729 return NULL;
6730 }
6731 }
6732 {
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 _result = (bool )wxBrush_Ok(_arg0);
6735
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) return NULL;
6738 } _resultobj = Py_BuildValue("i",_result);
6739 return _resultobj;
6740 }
6741
6742 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6743 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6744 PyObject * _resultobj;
6745 wxBrush * _arg0;
6746 wxColour * _arg1;
6747 PyObject * _argo0 = 0;
6748 wxColour temp;
6749 PyObject * _obj1 = 0;
6750 char *_kwnames[] = { "self","colour", NULL };
6751
6752 self = self;
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6754 return NULL;
6755 if (_argo0) {
6756 if (_argo0 == Py_None) { _arg0 = NULL; }
6757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6759 return NULL;
6760 }
6761 }
6762 {
6763 _arg1 = &temp;
6764 if (! wxColour_helper(_obj1, &_arg1))
6765 return NULL;
6766 }
6767 {
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 wxBrush_SetColour(_arg0,*_arg1);
6770
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) return NULL;
6773 } Py_INCREF(Py_None);
6774 _resultobj = Py_None;
6775 return _resultobj;
6776 }
6777
6778 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6779 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject * _resultobj;
6781 wxBrush * _arg0;
6782 wxBitmap * _arg1;
6783 PyObject * _argo0 = 0;
6784 PyObject * _argo1 = 0;
6785 char *_kwnames[] = { "self","bitmap", NULL };
6786
6787 self = self;
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6789 return NULL;
6790 if (_argo0) {
6791 if (_argo0 == Py_None) { _arg0 = NULL; }
6792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6794 return NULL;
6795 }
6796 }
6797 if (_argo1) {
6798 if (_argo1 == Py_None) { _arg1 = NULL; }
6799 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6800 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6801 return NULL;
6802 }
6803 }
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 wxBrush_SetStipple(_arg0,*_arg1);
6807
6808 wxPyEndAllowThreads(__tstate);
6809 if (PyErr_Occurred()) return NULL;
6810 } Py_INCREF(Py_None);
6811 _resultobj = Py_None;
6812 return _resultobj;
6813 }
6814
6815 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6816 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6817 PyObject * _resultobj;
6818 wxBrush * _arg0;
6819 int _arg1;
6820 PyObject * _argo0 = 0;
6821 char *_kwnames[] = { "self","style", NULL };
6822
6823 self = self;
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6825 return NULL;
6826 if (_argo0) {
6827 if (_argo0 == Py_None) { _arg0 = NULL; }
6828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6830 return NULL;
6831 }
6832 }
6833 {
6834 PyThreadState* __tstate = wxPyBeginAllowThreads();
6835 wxBrush_SetStyle(_arg0,_arg1);
6836
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) return NULL;
6839 } Py_INCREF(Py_None);
6840 _resultobj = Py_None;
6841 return _resultobj;
6842 }
6843
6844 static void *SwigwxBrushListTowxObject(void *ptr) {
6845 wxBrushList *src;
6846 wxObject *dest;
6847 src = (wxBrushList *) ptr;
6848 dest = (wxObject *) src;
6849 return (void *) dest;
6850 }
6851
6852 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6853 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject * _resultobj;
6855 wxBrushList * _arg0;
6856 wxBrush * _arg1;
6857 PyObject * _argo0 = 0;
6858 PyObject * _argo1 = 0;
6859 char *_kwnames[] = { "self","brush", NULL };
6860
6861 self = self;
6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6863 return NULL;
6864 if (_argo0) {
6865 if (_argo0 == Py_None) { _arg0 = NULL; }
6866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6868 return NULL;
6869 }
6870 }
6871 if (_argo1) {
6872 if (_argo1 == Py_None) { _arg1 = NULL; }
6873 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6874 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6875 return NULL;
6876 }
6877 }
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 wxBrushList_AddBrush(_arg0,_arg1);
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) return NULL;
6884 } Py_INCREF(Py_None);
6885 _resultobj = Py_None;
6886 return _resultobj;
6887 }
6888
6889 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6890 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6891 PyObject * _resultobj;
6892 wxBrush * _result;
6893 wxBrushList * _arg0;
6894 wxColour * _arg1;
6895 int _arg2;
6896 PyObject * _argo0 = 0;
6897 wxColour temp;
6898 PyObject * _obj1 = 0;
6899 char *_kwnames[] = { "self","colour","style", NULL };
6900 char _ptemp[128];
6901
6902 self = self;
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6904 return NULL;
6905 if (_argo0) {
6906 if (_argo0 == Py_None) { _arg0 = NULL; }
6907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6909 return NULL;
6910 }
6911 }
6912 {
6913 _arg1 = &temp;
6914 if (! wxColour_helper(_obj1, &_arg1))
6915 return NULL;
6916 }
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6920
6921 wxPyEndAllowThreads(__tstate);
6922 if (PyErr_Occurred()) return NULL;
6923 } if (_result) {
6924 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6925 _resultobj = Py_BuildValue("s",_ptemp);
6926 } else {
6927 Py_INCREF(Py_None);
6928 _resultobj = Py_None;
6929 }
6930 return _resultobj;
6931 }
6932
6933 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6934 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject * _resultobj;
6936 wxBrushList * _arg0;
6937 wxBrush * _arg1;
6938 PyObject * _argo0 = 0;
6939 PyObject * _argo1 = 0;
6940 char *_kwnames[] = { "self","brush", NULL };
6941
6942 self = self;
6943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6944 return NULL;
6945 if (_argo0) {
6946 if (_argo0 == Py_None) { _arg0 = NULL; }
6947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6949 return NULL;
6950 }
6951 }
6952 if (_argo1) {
6953 if (_argo1 == Py_None) { _arg1 = NULL; }
6954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6956 return NULL;
6957 }
6958 }
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 wxBrushList_RemoveBrush(_arg0,_arg1);
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) return NULL;
6965 } Py_INCREF(Py_None);
6966 _resultobj = Py_None;
6967 return _resultobj;
6968 }
6969
6970 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6971 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject * _resultobj;
6973 int _result;
6974 wxBrushList * _arg0;
6975 PyObject * _argo0 = 0;
6976 char *_kwnames[] = { "self", NULL };
6977
6978 self = self;
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6980 return NULL;
6981 if (_argo0) {
6982 if (_argo0 == Py_None) { _arg0 = NULL; }
6983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6985 return NULL;
6986 }
6987 }
6988 {
6989 PyThreadState* __tstate = wxPyBeginAllowThreads();
6990 _result = (int )wxBrushList_GetCount(_arg0);
6991
6992 wxPyEndAllowThreads(__tstate);
6993 if (PyErr_Occurred()) return NULL;
6994 } _resultobj = Py_BuildValue("i",_result);
6995 return _resultobj;
6996 }
6997
6998 static void *SwigwxDCTowxObject(void *ptr) {
6999 wxDC *src;
7000 wxObject *dest;
7001 src = (wxDC *) ptr;
7002 dest = (wxObject *) src;
7003 return (void *) dest;
7004 }
7005
7006 #define delete_wxDC(_swigobj) (delete _swigobj)
7007 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7008 PyObject * _resultobj;
7009 wxDC * _arg0;
7010 PyObject * _argo0 = 0;
7011 char *_kwnames[] = { "self", NULL };
7012
7013 self = self;
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
7015 return NULL;
7016 if (_argo0) {
7017 if (_argo0 == Py_None) { _arg0 = NULL; }
7018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
7020 return NULL;
7021 }
7022 }
7023 {
7024 PyThreadState* __tstate = wxPyBeginAllowThreads();
7025 delete_wxDC(_arg0);
7026
7027 wxPyEndAllowThreads(__tstate);
7028 if (PyErr_Occurred()) return NULL;
7029 } Py_INCREF(Py_None);
7030 _resultobj = Py_None;
7031 return _resultobj;
7032 }
7033
7034 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
7035 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7036 PyObject * _resultobj;
7037 wxDC * _arg0;
7038 PyObject * _argo0 = 0;
7039 char *_kwnames[] = { "self", NULL };
7040
7041 self = self;
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
7043 return NULL;
7044 if (_argo0) {
7045 if (_argo0 == Py_None) { _arg0 = NULL; }
7046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
7048 return NULL;
7049 }
7050 }
7051 {
7052 PyThreadState* __tstate = wxPyBeginAllowThreads();
7053 wxDC_BeginDrawing(_arg0);
7054
7055 wxPyEndAllowThreads(__tstate);
7056 if (PyErr_Occurred()) return NULL;
7057 } Py_INCREF(Py_None);
7058 _resultobj = Py_None;
7059 return _resultobj;
7060 }
7061
7062 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
7063 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
7064 PyObject * _resultobj;
7065 bool _result;
7066 wxDC * _arg0;
7067 long _arg1;
7068 long _arg2;
7069 long _arg3;
7070 long _arg4;
7071 wxDC * _arg5;
7072 long _arg6;
7073 long _arg7;
7074 int _arg8 = (int ) wxCOPY;
7075 int _arg9 = (int ) FALSE;
7076 PyObject * _argo0 = 0;
7077 PyObject * _argo5 = 0;
7078 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
7079
7080 self = self;
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
7082 return NULL;
7083 if (_argo0) {
7084 if (_argo0 == Py_None) { _arg0 = NULL; }
7085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
7087 return NULL;
7088 }
7089 }
7090 if (_argo5) {
7091 if (_argo5 == Py_None) { _arg5 = NULL; }
7092 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
7093 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
7094 return NULL;
7095 }
7096 }
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
7100
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) return NULL;
7103 } _resultobj = Py_BuildValue("i",_result);
7104 return _resultobj;
7105 }
7106
7107 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
7108 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7109 PyObject * _resultobj;
7110 wxDC * _arg0;
7111 PyObject * _argo0 = 0;
7112 char *_kwnames[] = { "self", NULL };
7113
7114 self = self;
7115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
7116 return NULL;
7117 if (_argo0) {
7118 if (_argo0 == Py_None) { _arg0 = NULL; }
7119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
7121 return NULL;
7122 }
7123 }
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 wxDC_Clear(_arg0);
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) return NULL;
7130 } Py_INCREF(Py_None);
7131 _resultobj = Py_None;
7132 return _resultobj;
7133 }
7134
7135 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
7136 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject * _resultobj;
7138 wxDC * _arg0;
7139 long _arg1;
7140 long _arg2;
7141 PyObject * _argo0 = 0;
7142 char *_kwnames[] = { "self","x","y", NULL };
7143
7144 self = self;
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
7146 return NULL;
7147 if (_argo0) {
7148 if (_argo0 == Py_None) { _arg0 = NULL; }
7149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
7151 return NULL;
7152 }
7153 }
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 wxDC_CrossHair(_arg0,_arg1,_arg2);
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) return NULL;
7160 } Py_INCREF(Py_None);
7161 _resultobj = Py_None;
7162 return _resultobj;
7163 }
7164
7165 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
7166 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject * _resultobj;
7168 wxDC * _arg0;
7169 PyObject * _argo0 = 0;
7170 char *_kwnames[] = { "self", NULL };
7171
7172 self = self;
7173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
7174 return NULL;
7175 if (_argo0) {
7176 if (_argo0 == Py_None) { _arg0 = NULL; }
7177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
7179 return NULL;
7180 }
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 wxDC_DestroyClippingRegion(_arg0);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) return NULL;
7188 } Py_INCREF(Py_None);
7189 _resultobj = Py_None;
7190 return _resultobj;
7191 }
7192
7193 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
7194 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
7195 PyObject * _resultobj;
7196 long _result;
7197 wxDC * _arg0;
7198 long _arg1;
7199 PyObject * _argo0 = 0;
7200 char *_kwnames[] = { "self","x", NULL };
7201
7202 self = self;
7203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
7204 return NULL;
7205 if (_argo0) {
7206 if (_argo0 == Py_None) { _arg0 = NULL; }
7207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
7209 return NULL;
7210 }
7211 }
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
7215
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) return NULL;
7218 } _resultobj = Py_BuildValue("l",_result);
7219 return _resultobj;
7220 }
7221
7222 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
7223 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject * _resultobj;
7225 long _result;
7226 wxDC * _arg0;
7227 long _arg1;
7228 PyObject * _argo0 = 0;
7229 char *_kwnames[] = { "self","x", NULL };
7230
7231 self = self;
7232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
7233 return NULL;
7234 if (_argo0) {
7235 if (_argo0 == Py_None) { _arg0 = NULL; }
7236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
7238 return NULL;
7239 }
7240 }
7241 {
7242 PyThreadState* __tstate = wxPyBeginAllowThreads();
7243 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
7244
7245 wxPyEndAllowThreads(__tstate);
7246 if (PyErr_Occurred()) return NULL;
7247 } _resultobj = Py_BuildValue("l",_result);
7248 return _resultobj;
7249 }
7250
7251 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
7252 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
7253 PyObject * _resultobj;
7254 long _result;
7255 wxDC * _arg0;
7256 long _arg1;
7257 PyObject * _argo0 = 0;
7258 char *_kwnames[] = { "self","y", NULL };
7259
7260 self = self;
7261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
7262 return NULL;
7263 if (_argo0) {
7264 if (_argo0 == Py_None) { _arg0 = NULL; }
7265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
7267 return NULL;
7268 }
7269 }
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) return NULL;
7276 } _resultobj = Py_BuildValue("l",_result);
7277 return _resultobj;
7278 }
7279
7280 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
7281 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject * _resultobj;
7283 long _result;
7284 wxDC * _arg0;
7285 long _arg1;
7286 PyObject * _argo0 = 0;
7287 char *_kwnames[] = { "self","y", NULL };
7288
7289 self = self;
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
7291 return NULL;
7292 if (_argo0) {
7293 if (_argo0 == Py_None) { _arg0 = NULL; }
7294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
7296 return NULL;
7297 }
7298 }
7299 {
7300 PyThreadState* __tstate = wxPyBeginAllowThreads();
7301 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
7302
7303 wxPyEndAllowThreads(__tstate);
7304 if (PyErr_Occurred()) return NULL;
7305 } _resultobj = Py_BuildValue("l",_result);
7306 return _resultobj;
7307 }
7308
7309 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7310 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7311 PyObject * _resultobj;
7312 wxDC * _arg0;
7313 long _arg1;
7314 long _arg2;
7315 long _arg3;
7316 long _arg4;
7317 long _arg5;
7318 long _arg6;
7319 PyObject * _argo0 = 0;
7320 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
7321
7322 self = self;
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7324 return NULL;
7325 if (_argo0) {
7326 if (_argo0 == Py_None) { _arg0 = NULL; }
7327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
7329 return NULL;
7330 }
7331 }
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) return NULL;
7338 } Py_INCREF(Py_None);
7339 _resultobj = Py_None;
7340 return _resultobj;
7341 }
7342
7343 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
7344 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject * _resultobj;
7346 wxDC * _arg0;
7347 long _arg1;
7348 long _arg2;
7349 long _arg3;
7350 PyObject * _argo0 = 0;
7351 char *_kwnames[] = { "self","x","y","radius", NULL };
7352
7353 self = self;
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
7355 return NULL;
7356 if (_argo0) {
7357 if (_argo0 == Py_None) { _arg0 = NULL; }
7358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
7360 return NULL;
7361 }
7362 }
7363 {
7364 PyThreadState* __tstate = wxPyBeginAllowThreads();
7365 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
7366
7367 wxPyEndAllowThreads(__tstate);
7368 if (PyErr_Occurred()) return NULL;
7369 } Py_INCREF(Py_None);
7370 _resultobj = Py_None;
7371 return _resultobj;
7372 }
7373
7374 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7375 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
7376 PyObject * _resultobj;
7377 wxDC * _arg0;
7378 long _arg1;
7379 long _arg2;
7380 long _arg3;
7381 long _arg4;
7382 PyObject * _argo0 = 0;
7383 char *_kwnames[] = { "self","x","y","width","height", NULL };
7384
7385 self = self;
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7387 return NULL;
7388 if (_argo0) {
7389 if (_argo0 == Py_None) { _arg0 = NULL; }
7390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
7392 return NULL;
7393 }
7394 }
7395 {
7396 PyThreadState* __tstate = wxPyBeginAllowThreads();
7397 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
7398
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) return NULL;
7401 } Py_INCREF(Py_None);
7402 _resultobj = Py_None;
7403 return _resultobj;
7404 }
7405
7406 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7407 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
7408 PyObject * _resultobj;
7409 wxDC * _arg0;
7410 long _arg1;
7411 long _arg2;
7412 long _arg3;
7413 long _arg4;
7414 long _arg5;
7415 long _arg6;
7416 PyObject * _argo0 = 0;
7417 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
7418
7419 self = self;
7420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
7421 return NULL;
7422 if (_argo0) {
7423 if (_argo0 == Py_None) { _arg0 = NULL; }
7424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
7426 return NULL;
7427 }
7428 }
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) return NULL;
7435 } Py_INCREF(Py_None);
7436 _resultobj = Py_None;
7437 return _resultobj;
7438 }
7439
7440 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
7441 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7442 PyObject * _resultobj;
7443 wxDC * _arg0;
7444 wxIcon * _arg1;
7445 long _arg2;
7446 long _arg3;
7447 PyObject * _argo0 = 0;
7448 PyObject * _argo1 = 0;
7449 char *_kwnames[] = { "self","icon","x","y", NULL };
7450
7451 self = self;
7452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7453 return NULL;
7454 if (_argo0) {
7455 if (_argo0 == Py_None) { _arg0 = NULL; }
7456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
7458 return NULL;
7459 }
7460 }
7461 if (_argo1) {
7462 if (_argo1 == Py_None) { _arg1 = NULL; }
7463 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
7464 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
7465 return NULL;
7466 }
7467 }
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
7470 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) return NULL;
7474 } Py_INCREF(Py_None);
7475 _resultobj = Py_None;
7476 return _resultobj;
7477 }
7478
7479 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7480 static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7481 PyObject * _resultobj;
7482 wxDC * _arg0;
7483 wxString * _arg1;
7484 wxRect * _arg2;
7485 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7486 int _arg4 = (int ) -1;
7487 PyObject * _argo0 = 0;
7488 PyObject * _obj1 = 0;
7489 wxRect temp;
7490 PyObject * _obj2 = 0;
7491 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
7492
7493 self = self;
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
7495 return NULL;
7496 if (_argo0) {
7497 if (_argo0 == Py_None) { _arg0 = NULL; }
7498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
7500 return NULL;
7501 }
7502 }
7503 {
7504 _arg1 = wxString_in_helper(_obj1);
7505 if (_arg1 == NULL)
7506 return NULL;
7507 }
7508 {
7509 _arg2 = &temp;
7510 if (! wxRect_helper(_obj2, &_arg2))
7511 return NULL;
7512 }
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
7516
7517 wxPyEndAllowThreads(__tstate);
7518 if (PyErr_Occurred()) return NULL;
7519 } Py_INCREF(Py_None);
7520 _resultobj = Py_None;
7521 {
7522 if (_obj1)
7523 delete _arg1;
7524 }
7525 return _resultobj;
7526 }
7527
7528 static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
7529 wxRect rv;
7530 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
7531 return rv;
7532 }
7533 static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7534 PyObject * _resultobj;
7535 wxRect * _result;
7536 wxDC * _arg0;
7537 wxString * _arg1;
7538 wxBitmap * _arg2;
7539 wxRect * _arg3;
7540 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
7541 int _arg5 = (int ) -1;
7542 PyObject * _argo0 = 0;
7543 PyObject * _obj1 = 0;
7544 PyObject * _argo2 = 0;
7545 wxRect temp;
7546 PyObject * _obj3 = 0;
7547 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
7548 char _ptemp[128];
7549
7550 self = self;
7551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
7552 return NULL;
7553 if (_argo0) {
7554 if (_argo0 == Py_None) { _arg0 = NULL; }
7555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
7557 return NULL;
7558 }
7559 }
7560 {
7561 _arg1 = wxString_in_helper(_obj1);
7562 if (_arg1 == NULL)
7563 return NULL;
7564 }
7565 if (_argo2) {
7566 if (_argo2 == Py_None) { _arg2 = NULL; }
7567 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7568 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
7569 return NULL;
7570 }
7571 }
7572 {
7573 _arg3 = &temp;
7574 if (! wxRect_helper(_obj3, &_arg3))
7575 return NULL;
7576 }
7577 {
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
7580
7581 wxPyEndAllowThreads(__tstate);
7582 if (PyErr_Occurred()) return NULL;
7583 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
7584 _resultobj = Py_BuildValue("s",_ptemp);
7585 {
7586 if (_obj1)
7587 delete _arg1;
7588 }
7589 return _resultobj;
7590 }
7591
7592 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7593 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7594 PyObject * _resultobj;
7595 wxDC * _arg0;
7596 long _arg1;
7597 long _arg2;
7598 long _arg3;
7599 long _arg4;
7600 PyObject * _argo0 = 0;
7601 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
7602
7603 self = self;
7604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7605 return NULL;
7606 if (_argo0) {
7607 if (_argo0 == Py_None) { _arg0 = NULL; }
7608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
7610 return NULL;
7611 }
7612 }
7613 {
7614 PyThreadState* __tstate = wxPyBeginAllowThreads();
7615 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
7616
7617 wxPyEndAllowThreads(__tstate);
7618 if (PyErr_Occurred()) return NULL;
7619 } Py_INCREF(Py_None);
7620 _resultobj = Py_None;
7621 return _resultobj;
7622 }
7623
7624 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7625 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7626 PyObject * _resultobj;
7627 wxDC * _arg0;
7628 int _arg1;
7629 wxPoint * _arg2;
7630 long _arg3 = (long ) 0;
7631 long _arg4 = (long ) 0;
7632 PyObject * _argo0 = 0;
7633 int NPOINTS;
7634 PyObject * _obj2 = 0;
7635 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
7636
7637 self = self;
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
7639 return NULL;
7640 if (_argo0) {
7641 if (_argo0 == Py_None) { _arg0 = NULL; }
7642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7644 return NULL;
7645 }
7646 }
7647 if (_obj2)
7648 {
7649 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7650 if (_arg2 == NULL) {
7651 return NULL;
7652 }
7653 }
7654 {
7655 _arg1 = NPOINTS;
7656 }
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
7659 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
7660
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) return NULL;
7663 } Py_INCREF(Py_None);
7664 _resultobj = Py_None;
7665 {
7666 delete [] _arg2;
7667 }
7668 return _resultobj;
7669 }
7670
7671 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7672 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
7673 PyObject * _resultobj;
7674 wxDC * _arg0;
7675 int _arg1;
7676 wxPoint * _arg2;
7677 long _arg3 = (long ) 0;
7678 long _arg4 = (long ) 0;
7679 int _arg5 = (int ) wxODDEVEN_RULE;
7680 PyObject * _argo0 = 0;
7681 int NPOINTS;
7682 PyObject * _obj2 = 0;
7683 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
7684
7685 self = self;
7686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
7687 return NULL;
7688 if (_argo0) {
7689 if (_argo0 == Py_None) { _arg0 = NULL; }
7690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7692 return NULL;
7693 }
7694 }
7695 if (_obj2)
7696 {
7697 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7698 if (_arg2 == NULL) {
7699 return NULL;
7700 }
7701 }
7702 {
7703 _arg1 = NPOINTS;
7704 }
7705 {
7706 PyThreadState* __tstate = wxPyBeginAllowThreads();
7707 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7708
7709 wxPyEndAllowThreads(__tstate);
7710 if (PyErr_Occurred()) return NULL;
7711 } Py_INCREF(Py_None);
7712 _resultobj = Py_None;
7713 {
7714 delete [] _arg2;
7715 }
7716 return _resultobj;
7717 }
7718
7719 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7720 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7721 PyObject * _resultobj;
7722 wxDC * _arg0;
7723 long _arg1;
7724 long _arg2;
7725 PyObject * _argo0 = 0;
7726 char *_kwnames[] = { "self","x","y", NULL };
7727
7728 self = self;
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7730 return NULL;
7731 if (_argo0) {
7732 if (_argo0 == Py_None) { _arg0 = NULL; }
7733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7735 return NULL;
7736 }
7737 }
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) return NULL;
7744 } Py_INCREF(Py_None);
7745 _resultobj = Py_None;
7746 return _resultobj;
7747 }
7748
7749 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7750 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject * _resultobj;
7752 wxDC * _arg0;
7753 long _arg1;
7754 long _arg2;
7755 long _arg3;
7756 long _arg4;
7757 PyObject * _argo0 = 0;
7758 char *_kwnames[] = { "self","x","y","width","height", NULL };
7759
7760 self = self;
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7762 return NULL;
7763 if (_argo0) {
7764 if (_argo0 == Py_None) { _arg0 = NULL; }
7765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7767 return NULL;
7768 }
7769 }
7770 {
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7773
7774 wxPyEndAllowThreads(__tstate);
7775 if (PyErr_Occurred()) return NULL;
7776 } Py_INCREF(Py_None);
7777 _resultobj = Py_None;
7778 return _resultobj;
7779 }
7780
7781 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7782 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject * _resultobj;
7784 wxDC * _arg0;
7785 wxString * _arg1;
7786 wxCoord _arg2;
7787 wxCoord _arg3;
7788 double _arg4;
7789 PyObject * _argo0 = 0;
7790 PyObject * _obj1 = 0;
7791 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7792
7793 self = self;
7794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7795 return NULL;
7796 if (_argo0) {
7797 if (_argo0 == Py_None) { _arg0 = NULL; }
7798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7800 return NULL;
7801 }
7802 }
7803 {
7804 _arg1 = wxString_in_helper(_obj1);
7805 if (_arg1 == NULL)
7806 return NULL;
7807 }
7808 {
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7811
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) return NULL;
7814 } Py_INCREF(Py_None);
7815 _resultobj = Py_None;
7816 {
7817 if (_obj1)
7818 delete _arg1;
7819 }
7820 return _resultobj;
7821 }
7822
7823 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7824 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject * _resultobj;
7826 wxDC * _arg0;
7827 long _arg1;
7828 long _arg2;
7829 long _arg3;
7830 long _arg4;
7831 long _arg5 = (long ) 20;
7832 PyObject * _argo0 = 0;
7833 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7834
7835 self = self;
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7837 return NULL;
7838 if (_argo0) {
7839 if (_argo0 == Py_None) { _arg0 = NULL; }
7840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7842 return NULL;
7843 }
7844 }
7845 {
7846 PyThreadState* __tstate = wxPyBeginAllowThreads();
7847 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7848
7849 wxPyEndAllowThreads(__tstate);
7850 if (PyErr_Occurred()) return NULL;
7851 } Py_INCREF(Py_None);
7852 _resultobj = Py_None;
7853 return _resultobj;
7854 }
7855
7856 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7857 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7858 PyObject * _resultobj;
7859 wxDC * _arg0;
7860 int _arg1;
7861 wxPoint * _arg2;
7862 PyObject * _argo0 = 0;
7863 int NPOINTS;
7864 PyObject * _obj2 = 0;
7865 char *_kwnames[] = { "self","points", NULL };
7866
7867 self = self;
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7869 return NULL;
7870 if (_argo0) {
7871 if (_argo0 == Py_None) { _arg0 = NULL; }
7872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7874 return NULL;
7875 }
7876 }
7877 if (_obj2)
7878 {
7879 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7880 if (_arg2 == NULL) {
7881 return NULL;
7882 }
7883 }
7884 {
7885 _arg1 = NPOINTS;
7886 }
7887 {
7888 PyThreadState* __tstate = wxPyBeginAllowThreads();
7889 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7890
7891 wxPyEndAllowThreads(__tstate);
7892 if (PyErr_Occurred()) return NULL;
7893 } Py_INCREF(Py_None);
7894 _resultobj = Py_None;
7895 {
7896 delete [] _arg2;
7897 }
7898 return _resultobj;
7899 }
7900
7901 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7902 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject * _resultobj;
7904 wxDC * _arg0;
7905 wxString * _arg1;
7906 long _arg2;
7907 long _arg3;
7908 PyObject * _argo0 = 0;
7909 PyObject * _obj1 = 0;
7910 char *_kwnames[] = { "self","text","x","y", NULL };
7911
7912 self = self;
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7914 return NULL;
7915 if (_argo0) {
7916 if (_argo0 == Py_None) { _arg0 = NULL; }
7917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7919 return NULL;
7920 }
7921 }
7922 {
7923 _arg1 = wxString_in_helper(_obj1);
7924 if (_arg1 == NULL)
7925 return NULL;
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7930
7931 wxPyEndAllowThreads(__tstate);
7932 if (PyErr_Occurred()) return NULL;
7933 } Py_INCREF(Py_None);
7934 _resultobj = Py_None;
7935 {
7936 if (_obj1)
7937 delete _arg1;
7938 }
7939 return _resultobj;
7940 }
7941
7942 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7943 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7944 PyObject * _resultobj;
7945 wxDC * _arg0;
7946 PyObject * _argo0 = 0;
7947 char *_kwnames[] = { "self", NULL };
7948
7949 self = self;
7950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7951 return NULL;
7952 if (_argo0) {
7953 if (_argo0 == Py_None) { _arg0 = NULL; }
7954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7956 return NULL;
7957 }
7958 }
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 wxDC_EndDoc(_arg0);
7962
7963 wxPyEndAllowThreads(__tstate);
7964 if (PyErr_Occurred()) return NULL;
7965 } Py_INCREF(Py_None);
7966 _resultobj = Py_None;
7967 return _resultobj;
7968 }
7969
7970 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7971 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7972 PyObject * _resultobj;
7973 wxDC * _arg0;
7974 PyObject * _argo0 = 0;
7975 char *_kwnames[] = { "self", NULL };
7976
7977 self = self;
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7979 return NULL;
7980 if (_argo0) {
7981 if (_argo0 == Py_None) { _arg0 = NULL; }
7982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7984 return NULL;
7985 }
7986 }
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 wxDC_EndDrawing(_arg0);
7990
7991 wxPyEndAllowThreads(__tstate);
7992 if (PyErr_Occurred()) return NULL;
7993 } Py_INCREF(Py_None);
7994 _resultobj = Py_None;
7995 return _resultobj;
7996 }
7997
7998 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7999 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject * _resultobj;
8001 wxDC * _arg0;
8002 PyObject * _argo0 = 0;
8003 char *_kwnames[] = { "self", NULL };
8004
8005 self = self;
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
8007 return NULL;
8008 if (_argo0) {
8009 if (_argo0 == Py_None) { _arg0 = NULL; }
8010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
8012 return NULL;
8013 }
8014 }
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 wxDC_EndPage(_arg0);
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) return NULL;
8021 } Py_INCREF(Py_None);
8022 _resultobj = Py_None;
8023 return _resultobj;
8024 }
8025
8026 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8027 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
8028 PyObject * _resultobj;
8029 wxDC * _arg0;
8030 long _arg1;
8031 long _arg2;
8032 wxColour * _arg3;
8033 int _arg4 = (int ) wxFLOOD_SURFACE;
8034 PyObject * _argo0 = 0;
8035 wxColour temp;
8036 PyObject * _obj3 = 0;
8037 char *_kwnames[] = { "self","x","y","colour","style", NULL };
8038
8039 self = self;
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8041 return NULL;
8042 if (_argo0) {
8043 if (_argo0 == Py_None) { _arg0 = NULL; }
8044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
8046 return NULL;
8047 }
8048 }
8049 {
8050 _arg3 = &temp;
8051 if (! wxColour_helper(_obj3, &_arg3))
8052 return NULL;
8053 }
8054 {
8055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8056 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
8057
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) return NULL;
8060 } Py_INCREF(Py_None);
8061 _resultobj = Py_None;
8062 return _resultobj;
8063 }
8064
8065 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
8066 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8067 PyObject * _resultobj;
8068 wxBrush * _result;
8069 wxDC * _arg0;
8070 PyObject * _argo0 = 0;
8071 char *_kwnames[] = { "self", NULL };
8072 char _ptemp[128];
8073
8074 self = self;
8075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
8076 return NULL;
8077 if (_argo0) {
8078 if (_argo0 == Py_None) { _arg0 = NULL; }
8079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
8081 return NULL;
8082 }
8083 }
8084 {
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 _result = new wxBrush (wxDC_GetBackground(_arg0));
8087
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) return NULL;
8090 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8091 _resultobj = Py_BuildValue("s",_ptemp);
8092 return _resultobj;
8093 }
8094
8095 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
8096 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8097 PyObject * _resultobj;
8098 wxBrush * _result;
8099 wxDC * _arg0;
8100 PyObject * _argo0 = 0;
8101 char *_kwnames[] = { "self", NULL };
8102 char _ptemp[128];
8103
8104 self = self;
8105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
8106 return NULL;
8107 if (_argo0) {
8108 if (_argo0 == Py_None) { _arg0 = NULL; }
8109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
8111 return NULL;
8112 }
8113 }
8114 {
8115 PyThreadState* __tstate = wxPyBeginAllowThreads();
8116 _result = new wxBrush (wxDC_GetBrush(_arg0));
8117
8118 wxPyEndAllowThreads(__tstate);
8119 if (PyErr_Occurred()) return NULL;
8120 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
8121 _resultobj = Py_BuildValue("s",_ptemp);
8122 return _resultobj;
8123 }
8124
8125 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
8126 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject * _resultobj;
8128 long _result;
8129 wxDC * _arg0;
8130 PyObject * _argo0 = 0;
8131 char *_kwnames[] = { "self", NULL };
8132
8133 self = self;
8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
8135 return NULL;
8136 if (_argo0) {
8137 if (_argo0 == Py_None) { _arg0 = NULL; }
8138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
8140 return NULL;
8141 }
8142 }
8143 {
8144 PyThreadState* __tstate = wxPyBeginAllowThreads();
8145 _result = (long )wxDC_GetCharHeight(_arg0);
8146
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) return NULL;
8149 } _resultobj = Py_BuildValue("l",_result);
8150 return _resultobj;
8151 }
8152
8153 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
8154 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8155 PyObject * _resultobj;
8156 long _result;
8157 wxDC * _arg0;
8158 PyObject * _argo0 = 0;
8159 char *_kwnames[] = { "self", NULL };
8160
8161 self = self;
8162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
8163 return NULL;
8164 if (_argo0) {
8165 if (_argo0 == Py_None) { _arg0 = NULL; }
8166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
8168 return NULL;
8169 }
8170 }
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 _result = (long )wxDC_GetCharWidth(_arg0);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) return NULL;
8177 } _resultobj = Py_BuildValue("l",_result);
8178 return _resultobj;
8179 }
8180
8181 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8182 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject * _resultobj;
8184 wxDC * _arg0;
8185 long * _arg1;
8186 long temp;
8187 long * _arg2;
8188 long temp0;
8189 long * _arg3;
8190 long temp1;
8191 long * _arg4;
8192 long temp2;
8193 PyObject * _argo0 = 0;
8194 char *_kwnames[] = { "self", NULL };
8195
8196 self = self;
8197 {
8198 _arg1 = &temp;
8199 }
8200 {
8201 _arg2 = &temp0;
8202 }
8203 {
8204 _arg3 = &temp1;
8205 }
8206 {
8207 _arg4 = &temp2;
8208 }
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
8210 return NULL;
8211 if (_argo0) {
8212 if (_argo0 == Py_None) { _arg0 = NULL; }
8213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
8215 return NULL;
8216 }
8217 }
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) return NULL;
8224 } Py_INCREF(Py_None);
8225 _resultobj = Py_None;
8226 {
8227 PyObject *o;
8228 o = PyInt_FromLong((long) (*_arg1));
8229 _resultobj = t_output_helper(_resultobj, o);
8230 }
8231 {
8232 PyObject *o;
8233 o = PyInt_FromLong((long) (*_arg2));
8234 _resultobj = t_output_helper(_resultobj, o);
8235 }
8236 {
8237 PyObject *o;
8238 o = PyInt_FromLong((long) (*_arg3));
8239 _resultobj = t_output_helper(_resultobj, o);
8240 }
8241 {
8242 PyObject *o;
8243 o = PyInt_FromLong((long) (*_arg4));
8244 _resultobj = t_output_helper(_resultobj, o);
8245 }
8246 return _resultobj;
8247 }
8248
8249 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
8250 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8251 PyObject * _resultobj;
8252 wxFont * _result;
8253 wxDC * _arg0;
8254 PyObject * _argo0 = 0;
8255 char *_kwnames[] = { "self", NULL };
8256 char _ptemp[128];
8257
8258 self = self;
8259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
8260 return NULL;
8261 if (_argo0) {
8262 if (_argo0 == Py_None) { _arg0 = NULL; }
8263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
8265 return NULL;
8266 }
8267 }
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 _result = new wxFont (wxDC_GetFont(_arg0));
8271
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) return NULL;
8274 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
8275 _resultobj = Py_BuildValue("s",_ptemp);
8276 return _resultobj;
8277 }
8278
8279 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
8280 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject * _resultobj;
8282 int _result;
8283 wxDC * _arg0;
8284 PyObject * _argo0 = 0;
8285 char *_kwnames[] = { "self", NULL };
8286
8287 self = self;
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
8289 return NULL;
8290 if (_argo0) {
8291 if (_argo0 == Py_None) { _arg0 = NULL; }
8292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
8294 return NULL;
8295 }
8296 }
8297 {
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 _result = (int )wxDC_GetLogicalFunction(_arg0);
8300
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) return NULL;
8303 } _resultobj = Py_BuildValue("i",_result);
8304 return _resultobj;
8305 }
8306
8307 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
8308 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject * _resultobj;
8310 wxDC * _arg0;
8311 double * _arg1;
8312 double temp;
8313 double * _arg2;
8314 double temp0;
8315 PyObject * _argo0 = 0;
8316 char *_kwnames[] = { "self", NULL };
8317
8318 self = self;
8319 {
8320 _arg1 = &temp;
8321 }
8322 {
8323 _arg2 = &temp0;
8324 }
8325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
8326 return NULL;
8327 if (_argo0) {
8328 if (_argo0 == Py_None) { _arg0 = NULL; }
8329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
8331 return NULL;
8332 }
8333 }
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
8337
8338 wxPyEndAllowThreads(__tstate);
8339 if (PyErr_Occurred()) return NULL;
8340 } Py_INCREF(Py_None);
8341 _resultobj = Py_None;
8342 {
8343 PyObject *o;
8344 o = PyFloat_FromDouble((double) (*_arg1));
8345 _resultobj = t_output_helper(_resultobj, o);
8346 }
8347 {
8348 PyObject *o;
8349 o = PyFloat_FromDouble((double) (*_arg2));
8350 _resultobj = t_output_helper(_resultobj, o);
8351 }
8352 return _resultobj;
8353 }
8354
8355 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
8356 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8357 PyObject * _resultobj;
8358 int _result;
8359 wxDC * _arg0;
8360 PyObject * _argo0 = 0;
8361 char *_kwnames[] = { "self", NULL };
8362
8363 self = self;
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
8365 return NULL;
8366 if (_argo0) {
8367 if (_argo0 == Py_None) { _arg0 = NULL; }
8368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
8370 return NULL;
8371 }
8372 }
8373 {
8374 PyThreadState* __tstate = wxPyBeginAllowThreads();
8375 _result = (int )wxDC_GetMapMode(_arg0);
8376
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) return NULL;
8379 } _resultobj = Py_BuildValue("i",_result);
8380 return _resultobj;
8381 }
8382
8383 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
8384 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8385 PyObject * _resultobj;
8386 bool _result;
8387 wxDC * _arg0;
8388 PyObject * _argo0 = 0;
8389 char *_kwnames[] = { "self", NULL };
8390
8391 self = self;
8392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
8393 return NULL;
8394 if (_argo0) {
8395 if (_argo0 == Py_None) { _arg0 = NULL; }
8396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
8398 return NULL;
8399 }
8400 }
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 _result = (bool )wxDC_GetOptimization(_arg0);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) return NULL;
8407 } _resultobj = Py_BuildValue("i",_result);
8408 return _resultobj;
8409 }
8410
8411 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
8412 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8413 PyObject * _resultobj;
8414 wxPen * _result;
8415 wxDC * _arg0;
8416 PyObject * _argo0 = 0;
8417 char *_kwnames[] = { "self", NULL };
8418 char _ptemp[128];
8419
8420 self = self;
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
8422 return NULL;
8423 if (_argo0) {
8424 if (_argo0 == Py_None) { _arg0 = NULL; }
8425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
8427 return NULL;
8428 }
8429 }
8430 {
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 _result = new wxPen (wxDC_GetPen(_arg0));
8433
8434 wxPyEndAllowThreads(__tstate);
8435 if (PyErr_Occurred()) return NULL;
8436 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
8437 _resultobj = Py_BuildValue("s",_ptemp);
8438 return _resultobj;
8439 }
8440
8441 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
8442 wxColour* wc = new wxColour();
8443 self->GetPixel(x, y, wc);
8444 return wc;
8445 }
8446 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject * _resultobj;
8448 wxColour * _result;
8449 wxDC * _arg0;
8450 long _arg1;
8451 long _arg2;
8452 PyObject * _argo0 = 0;
8453 char *_kwnames[] = { "self","x","y", NULL };
8454 char _ptemp[128];
8455
8456 self = self;
8457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
8458 return NULL;
8459 if (_argo0) {
8460 if (_argo0 == Py_None) { _arg0 = NULL; }
8461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
8463 return NULL;
8464 }
8465 }
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) return NULL;
8472 } if (_result) {
8473 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
8474 _resultobj = Py_BuildValue("s",_ptemp);
8475 } else {
8476 Py_INCREF(Py_None);
8477 _resultobj = Py_None;
8478 }
8479 return _resultobj;
8480 }
8481
8482 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
8483 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject * _resultobj;
8485 wxDC * _arg0;
8486 int * _arg1;
8487 int temp;
8488 int * _arg2;
8489 int temp0;
8490 PyObject * _argo0 = 0;
8491 char *_kwnames[] = { "self", NULL };
8492
8493 self = self;
8494 {
8495 _arg1 = &temp;
8496 }
8497 {
8498 _arg2 = &temp0;
8499 }
8500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
8501 return NULL;
8502 if (_argo0) {
8503 if (_argo0 == Py_None) { _arg0 = NULL; }
8504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
8506 return NULL;
8507 }
8508 }
8509 {
8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
8511 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
8512
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) return NULL;
8515 } Py_INCREF(Py_None);
8516 _resultobj = Py_None;
8517 {
8518 PyObject *o;
8519 o = PyInt_FromLong((long) (*_arg1));
8520 _resultobj = t_output_helper(_resultobj, o);
8521 }
8522 {
8523 PyObject *o;
8524 o = PyInt_FromLong((long) (*_arg2));
8525 _resultobj = t_output_helper(_resultobj, o);
8526 }
8527 return _resultobj;
8528 }
8529
8530 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
8531 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject * _resultobj;
8533 wxSize * _result;
8534 wxDC * _arg0;
8535 PyObject * _argo0 = 0;
8536 char *_kwnames[] = { "self", NULL };
8537 char _ptemp[128];
8538
8539 self = self;
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
8541 return NULL;
8542 if (_argo0) {
8543 if (_argo0 == Py_None) { _arg0 = NULL; }
8544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
8546 return NULL;
8547 }
8548 }
8549 {
8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
8551 _result = new wxSize (wxDC_GetSize(_arg0));
8552
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) return NULL;
8555 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8556 _resultobj = Py_BuildValue("s",_ptemp);
8557 return _resultobj;
8558 }
8559
8560 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
8561 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
8562 PyObject * _resultobj;
8563 wxSize * _result;
8564 wxDC * _arg0;
8565 PyObject * _argo0 = 0;
8566 char *_kwnames[] = { "self", NULL };
8567 char _ptemp[128];
8568
8569 self = self;
8570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
8571 return NULL;
8572 if (_argo0) {
8573 if (_argo0 == Py_None) { _arg0 = NULL; }
8574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
8576 return NULL;
8577 }
8578 }
8579 {
8580 PyThreadState* __tstate = wxPyBeginAllowThreads();
8581 _result = new wxSize (wxDC_GetSizeMM(_arg0));
8582
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) return NULL;
8585 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8586 _resultobj = Py_BuildValue("s",_ptemp);
8587 return _resultobj;
8588 }
8589
8590 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8591 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject * _resultobj;
8593 wxColour * _result;
8594 wxDC * _arg0;
8595 PyObject * _argo0 = 0;
8596 char *_kwnames[] = { "self", NULL };
8597 char _ptemp[128];
8598
8599 self = self;
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
8601 return NULL;
8602 if (_argo0) {
8603 if (_argo0 == Py_None) { _arg0 = NULL; }
8604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8606 return NULL;
8607 }
8608 }
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 _result = new wxColour (wxDC_GetTextBackground(_arg0));
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) return NULL;
8615 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8616 _resultobj = Py_BuildValue("s",_ptemp);
8617 return _resultobj;
8618 }
8619
8620 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8621 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8622 PyObject * _resultobj;
8623 wxDC * _arg0;
8624 wxString * _arg1;
8625 long * _arg2;
8626 long temp;
8627 long * _arg3;
8628 long temp0;
8629 PyObject * _argo0 = 0;
8630 PyObject * _obj1 = 0;
8631 char *_kwnames[] = { "self","string", NULL };
8632
8633 self = self;
8634 {
8635 _arg2 = &temp;
8636 }
8637 {
8638 _arg3 = &temp0;
8639 }
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
8641 return NULL;
8642 if (_argo0) {
8643 if (_argo0 == Py_None) { _arg0 = NULL; }
8644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8646 return NULL;
8647 }
8648 }
8649 {
8650 _arg1 = wxString_in_helper(_obj1);
8651 if (_arg1 == NULL)
8652 return NULL;
8653 }
8654 {
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) return NULL;
8660 } Py_INCREF(Py_None);
8661 _resultobj = Py_None;
8662 {
8663 PyObject *o;
8664 o = PyInt_FromLong((long) (*_arg2));
8665 _resultobj = t_output_helper(_resultobj, o);
8666 }
8667 {
8668 PyObject *o;
8669 o = PyInt_FromLong((long) (*_arg3));
8670 _resultobj = t_output_helper(_resultobj, o);
8671 }
8672 {
8673 if (_obj1)
8674 delete _arg1;
8675 }
8676 return _resultobj;
8677 }
8678
8679 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8680 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8681 PyObject * _resultobj;
8682 wxDC * _arg0;
8683 wxString * _arg1;
8684 long * _arg2;
8685 long temp;
8686 long * _arg3;
8687 long temp0;
8688 long * _arg4;
8689 long temp1;
8690 long * _arg5;
8691 long temp2;
8692 wxFont * _arg6 = (wxFont *) NULL;
8693 PyObject * _argo0 = 0;
8694 PyObject * _obj1 = 0;
8695 PyObject * _argo6 = 0;
8696 char *_kwnames[] = { "self","string","font", NULL };
8697
8698 self = self;
8699 {
8700 _arg2 = &temp;
8701 }
8702 {
8703 _arg3 = &temp0;
8704 }
8705 {
8706 _arg4 = &temp1;
8707 }
8708 {
8709 _arg5 = &temp2;
8710 }
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8712 return NULL;
8713 if (_argo0) {
8714 if (_argo0 == Py_None) { _arg0 = NULL; }
8715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8717 return NULL;
8718 }
8719 }
8720 {
8721 _arg1 = wxString_in_helper(_obj1);
8722 if (_arg1 == NULL)
8723 return NULL;
8724 }
8725 if (_argo6) {
8726 if (_argo6 == Py_None) { _arg6 = NULL; }
8727 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8728 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8729 return NULL;
8730 }
8731 }
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) return NULL;
8738 } Py_INCREF(Py_None);
8739 _resultobj = Py_None;
8740 {
8741 PyObject *o;
8742 o = PyInt_FromLong((long) (*_arg2));
8743 _resultobj = t_output_helper(_resultobj, o);
8744 }
8745 {
8746 PyObject *o;
8747 o = PyInt_FromLong((long) (*_arg3));
8748 _resultobj = t_output_helper(_resultobj, o);
8749 }
8750 {
8751 PyObject *o;
8752 o = PyInt_FromLong((long) (*_arg4));
8753 _resultobj = t_output_helper(_resultobj, o);
8754 }
8755 {
8756 PyObject *o;
8757 o = PyInt_FromLong((long) (*_arg5));
8758 _resultobj = t_output_helper(_resultobj, o);
8759 }
8760 {
8761 if (_obj1)
8762 delete _arg1;
8763 }
8764 return _resultobj;
8765 }
8766
8767 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8768 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject * _resultobj;
8770 wxColour * _result;
8771 wxDC * _arg0;
8772 PyObject * _argo0 = 0;
8773 char *_kwnames[] = { "self", NULL };
8774 char _ptemp[128];
8775
8776 self = self;
8777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8778 return NULL;
8779 if (_argo0) {
8780 if (_argo0 == Py_None) { _arg0 = NULL; }
8781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8783 return NULL;
8784 }
8785 }
8786 {
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8789
8790 wxPyEndAllowThreads(__tstate);
8791 if (PyErr_Occurred()) return NULL;
8792 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8793 _resultobj = Py_BuildValue("s",_ptemp);
8794 return _resultobj;
8795 }
8796
8797 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8798 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject * _resultobj;
8800 wxDC * _arg0;
8801 double * _arg1;
8802 double temp;
8803 double * _arg2;
8804 double temp0;
8805 PyObject * _argo0 = 0;
8806 char *_kwnames[] = { "self", NULL };
8807
8808 self = self;
8809 {
8810 _arg1 = &temp;
8811 }
8812 {
8813 _arg2 = &temp0;
8814 }
8815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8816 return NULL;
8817 if (_argo0) {
8818 if (_argo0 == Py_None) { _arg0 = NULL; }
8819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8821 return NULL;
8822 }
8823 }
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) return NULL;
8830 } Py_INCREF(Py_None);
8831 _resultobj = Py_None;
8832 {
8833 PyObject *o;
8834 o = PyFloat_FromDouble((double) (*_arg1));
8835 _resultobj = t_output_helper(_resultobj, o);
8836 }
8837 {
8838 PyObject *o;
8839 o = PyFloat_FromDouble((double) (*_arg2));
8840 _resultobj = t_output_helper(_resultobj, o);
8841 }
8842 return _resultobj;
8843 }
8844
8845 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8846 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8847 PyObject * _resultobj;
8848 long _result;
8849 wxDC * _arg0;
8850 long _arg1;
8851 PyObject * _argo0 = 0;
8852 char *_kwnames[] = { "self","x", NULL };
8853
8854 self = self;
8855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8856 return NULL;
8857 if (_argo0) {
8858 if (_argo0 == Py_None) { _arg0 = NULL; }
8859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8861 return NULL;
8862 }
8863 }
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) return NULL;
8870 } _resultobj = Py_BuildValue("l",_result);
8871 return _resultobj;
8872 }
8873
8874 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8875 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8876 PyObject * _resultobj;
8877 long _result;
8878 wxDC * _arg0;
8879 long _arg1;
8880 PyObject * _argo0 = 0;
8881 char *_kwnames[] = { "self","x", NULL };
8882
8883 self = self;
8884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8885 return NULL;
8886 if (_argo0) {
8887 if (_argo0 == Py_None) { _arg0 = NULL; }
8888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8890 return NULL;
8891 }
8892 }
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8896
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) return NULL;
8899 } _resultobj = Py_BuildValue("l",_result);
8900 return _resultobj;
8901 }
8902
8903 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8904 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject * _resultobj;
8906 long _result;
8907 wxDC * _arg0;
8908 long _arg1;
8909 PyObject * _argo0 = 0;
8910 char *_kwnames[] = { "self","y", NULL };
8911
8912 self = self;
8913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8914 return NULL;
8915 if (_argo0) {
8916 if (_argo0 == Py_None) { _arg0 = NULL; }
8917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8919 return NULL;
8920 }
8921 }
8922 {
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8925
8926 wxPyEndAllowThreads(__tstate);
8927 if (PyErr_Occurred()) return NULL;
8928 } _resultobj = Py_BuildValue("l",_result);
8929 return _resultobj;
8930 }
8931
8932 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8933 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8934 PyObject * _resultobj;
8935 long _result;
8936 wxDC * _arg0;
8937 long _arg1;
8938 PyObject * _argo0 = 0;
8939 char *_kwnames[] = { "self","y", NULL };
8940
8941 self = self;
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8943 return NULL;
8944 if (_argo0) {
8945 if (_argo0 == Py_None) { _arg0 = NULL; }
8946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8948 return NULL;
8949 }
8950 }
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) return NULL;
8957 } _resultobj = Py_BuildValue("l",_result);
8958 return _resultobj;
8959 }
8960
8961 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8962 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8963 PyObject * _resultobj;
8964 long _result;
8965 wxDC * _arg0;
8966 PyObject * _argo0 = 0;
8967 char *_kwnames[] = { "self", NULL };
8968
8969 self = self;
8970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8971 return NULL;
8972 if (_argo0) {
8973 if (_argo0 == Py_None) { _arg0 = NULL; }
8974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8976 return NULL;
8977 }
8978 }
8979 {
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 _result = (long )wxDC_MaxX(_arg0);
8982
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) return NULL;
8985 } _resultobj = Py_BuildValue("l",_result);
8986 return _resultobj;
8987 }
8988
8989 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8990 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject * _resultobj;
8992 long _result;
8993 wxDC * _arg0;
8994 PyObject * _argo0 = 0;
8995 char *_kwnames[] = { "self", NULL };
8996
8997 self = self;
8998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8999 return NULL;
9000 if (_argo0) {
9001 if (_argo0 == Py_None) { _arg0 = NULL; }
9002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
9004 return NULL;
9005 }
9006 }
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 _result = (long )wxDC_MaxY(_arg0);
9010
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) return NULL;
9013 } _resultobj = Py_BuildValue("l",_result);
9014 return _resultobj;
9015 }
9016
9017 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
9018 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
9019 PyObject * _resultobj;
9020 long _result;
9021 wxDC * _arg0;
9022 PyObject * _argo0 = 0;
9023 char *_kwnames[] = { "self", NULL };
9024
9025 self = self;
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
9027 return NULL;
9028 if (_argo0) {
9029 if (_argo0 == Py_None) { _arg0 = NULL; }
9030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
9032 return NULL;
9033 }
9034 }
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 _result = (long )wxDC_MinX(_arg0);
9038
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) return NULL;
9041 } _resultobj = Py_BuildValue("l",_result);
9042 return _resultobj;
9043 }
9044
9045 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
9046 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
9047 PyObject * _resultobj;
9048 long _result;
9049 wxDC * _arg0;
9050 PyObject * _argo0 = 0;
9051 char *_kwnames[] = { "self", NULL };
9052
9053 self = self;
9054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
9055 return NULL;
9056 if (_argo0) {
9057 if (_argo0 == Py_None) { _arg0 = NULL; }
9058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
9060 return NULL;
9061 }
9062 }
9063 {
9064 PyThreadState* __tstate = wxPyBeginAllowThreads();
9065 _result = (long )wxDC_MinY(_arg0);
9066
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) return NULL;
9069 } _resultobj = Py_BuildValue("l",_result);
9070 return _resultobj;
9071 }
9072
9073 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
9074 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9075 PyObject * _resultobj;
9076 bool _result;
9077 wxDC * _arg0;
9078 PyObject * _argo0 = 0;
9079 char *_kwnames[] = { "self", NULL };
9080
9081 self = self;
9082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
9083 return NULL;
9084 if (_argo0) {
9085 if (_argo0 == Py_None) { _arg0 = NULL; }
9086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
9088 return NULL;
9089 }
9090 }
9091 {
9092 PyThreadState* __tstate = wxPyBeginAllowThreads();
9093 _result = (bool )wxDC_Ok(_arg0);
9094
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) return NULL;
9097 } _resultobj = Py_BuildValue("i",_result);
9098 return _resultobj;
9099 }
9100
9101 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
9102 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject * _resultobj;
9104 wxDC * _arg0;
9105 long _arg1;
9106 long _arg2;
9107 PyObject * _argo0 = 0;
9108 char *_kwnames[] = { "self","x","y", NULL };
9109
9110 self = self;
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9112 return NULL;
9113 if (_argo0) {
9114 if (_argo0 == Py_None) { _arg0 = NULL; }
9115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
9117 return NULL;
9118 }
9119 }
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
9123
9124 wxPyEndAllowThreads(__tstate);
9125 if (PyErr_Occurred()) return NULL;
9126 } Py_INCREF(Py_None);
9127 _resultobj = Py_None;
9128 return _resultobj;
9129 }
9130
9131 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
9132 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject * _resultobj;
9134 wxDC * _arg0;
9135 wxBrush * _arg1;
9136 PyObject * _argo0 = 0;
9137 PyObject * _argo1 = 0;
9138 char *_kwnames[] = { "self","brush", NULL };
9139
9140 self = self;
9141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
9142 return NULL;
9143 if (_argo0) {
9144 if (_argo0 == Py_None) { _arg0 = NULL; }
9145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
9147 return NULL;
9148 }
9149 }
9150 if (_argo1) {
9151 if (_argo1 == Py_None) { _arg1 = NULL; }
9152 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9153 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
9154 return NULL;
9155 }
9156 }
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 wxDC_SetBackground(_arg0,*_arg1);
9160
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) return NULL;
9163 } Py_INCREF(Py_None);
9164 _resultobj = Py_None;
9165 return _resultobj;
9166 }
9167
9168 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
9169 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9170 PyObject * _resultobj;
9171 wxDC * _arg0;
9172 int _arg1;
9173 PyObject * _argo0 = 0;
9174 char *_kwnames[] = { "self","mode", NULL };
9175
9176 self = self;
9177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
9178 return NULL;
9179 if (_argo0) {
9180 if (_argo0 == Py_None) { _arg0 = NULL; }
9181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
9183 return NULL;
9184 }
9185 }
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 wxDC_SetBackgroundMode(_arg0,_arg1);
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) return NULL;
9192 } Py_INCREF(Py_None);
9193 _resultobj = Py_None;
9194 return _resultobj;
9195 }
9196
9197 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9198 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9199 PyObject * _resultobj;
9200 wxDC * _arg0;
9201 long _arg1;
9202 long _arg2;
9203 long _arg3;
9204 long _arg4;
9205 PyObject * _argo0 = 0;
9206 char *_kwnames[] = { "self","x","y","width","height", NULL };
9207
9208 self = self;
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9210 return NULL;
9211 if (_argo0) {
9212 if (_argo0 == Py_None) { _arg0 = NULL; }
9213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
9215 return NULL;
9216 }
9217 }
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
9221
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) return NULL;
9224 } Py_INCREF(Py_None);
9225 _resultobj = Py_None;
9226 return _resultobj;
9227 }
9228
9229 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
9230 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9231 PyObject * _resultobj;
9232 wxDC * _arg0;
9233 wxRegion * _arg1;
9234 PyObject * _argo0 = 0;
9235 PyObject * _argo1 = 0;
9236 char *_kwnames[] = { "self","region", NULL };
9237
9238 self = self;
9239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
9240 return NULL;
9241 if (_argo0) {
9242 if (_argo0 == Py_None) { _arg0 = NULL; }
9243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
9245 return NULL;
9246 }
9247 }
9248 if (_argo1) {
9249 if (_argo1 == Py_None) { _arg1 = NULL; }
9250 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9251 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
9252 return NULL;
9253 }
9254 }
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) return NULL;
9261 } Py_INCREF(Py_None);
9262 _resultobj = Py_None;
9263 return _resultobj;
9264 }
9265
9266 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
9267 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject * _resultobj;
9269 wxDC * _arg0;
9270 wxPalette * _arg1;
9271 PyObject * _argo0 = 0;
9272 PyObject * _argo1 = 0;
9273 char *_kwnames[] = { "self","colourMap", NULL };
9274
9275 self = self;
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
9277 return NULL;
9278 if (_argo0) {
9279 if (_argo0 == Py_None) { _arg0 = NULL; }
9280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
9282 return NULL;
9283 }
9284 }
9285 if (_argo1) {
9286 if (_argo1 == Py_None) { _arg1 = NULL; }
9287 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
9288 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
9289 return NULL;
9290 }
9291 }
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 wxDC_SetPalette(_arg0,*_arg1);
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) return NULL;
9298 } Py_INCREF(Py_None);
9299 _resultobj = Py_None;
9300 return _resultobj;
9301 }
9302
9303 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
9304 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
9305 PyObject * _resultobj;
9306 wxDC * _arg0;
9307 wxBrush * _arg1;
9308 PyObject * _argo0 = 0;
9309 PyObject * _argo1 = 0;
9310 char *_kwnames[] = { "self","brush", NULL };
9311
9312 self = self;
9313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
9314 return NULL;
9315 if (_argo0) {
9316 if (_argo0 == Py_None) { _arg0 = NULL; }
9317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
9319 return NULL;
9320 }
9321 }
9322 if (_argo1) {
9323 if (_argo1 == Py_None) { _arg1 = NULL; }
9324 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
9325 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
9326 return NULL;
9327 }
9328 }
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 wxDC_SetBrush(_arg0,*_arg1);
9332
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) return NULL;
9335 } Py_INCREF(Py_None);
9336 _resultobj = Py_None;
9337 return _resultobj;
9338 }
9339
9340 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9341 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9342 PyObject * _resultobj;
9343 wxDC * _arg0;
9344 wxFont * _arg1;
9345 PyObject * _argo0 = 0;
9346 PyObject * _argo1 = 0;
9347 char *_kwnames[] = { "self","font", NULL };
9348
9349 self = self;
9350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
9351 return NULL;
9352 if (_argo0) {
9353 if (_argo0 == Py_None) { _arg0 = NULL; }
9354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
9356 return NULL;
9357 }
9358 }
9359 if (_argo1) {
9360 if (_argo1 == Py_None) { _arg1 = NULL; }
9361 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
9362 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
9363 return NULL;
9364 }
9365 }
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 wxDC_SetFont(_arg0,*_arg1);
9369
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) return NULL;
9372 } Py_INCREF(Py_None);
9373 _resultobj = Py_None;
9374 return _resultobj;
9375 }
9376
9377 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
9378 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
9379 PyObject * _resultobj;
9380 wxDC * _arg0;
9381 int _arg1;
9382 PyObject * _argo0 = 0;
9383 char *_kwnames[] = { "self","function", NULL };
9384
9385 self = self;
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
9387 return NULL;
9388 if (_argo0) {
9389 if (_argo0 == Py_None) { _arg0 = NULL; }
9390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
9392 return NULL;
9393 }
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 wxDC_SetLogicalFunction(_arg0,_arg1);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) return NULL;
9401 } Py_INCREF(Py_None);
9402 _resultobj = Py_None;
9403 return _resultobj;
9404 }
9405
9406 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
9407 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject * _resultobj;
9409 wxDC * _arg0;
9410 double _arg1;
9411 double _arg2;
9412 PyObject * _argo0 = 0;
9413 char *_kwnames[] = { "self","x","y", NULL };
9414
9415 self = self;
9416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
9417 return NULL;
9418 if (_argo0) {
9419 if (_argo0 == Py_None) { _arg0 = NULL; }
9420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
9422 return NULL;
9423 }
9424 }
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
9428
9429 wxPyEndAllowThreads(__tstate);
9430 if (PyErr_Occurred()) return NULL;
9431 } Py_INCREF(Py_None);
9432 _resultobj = Py_None;
9433 return _resultobj;
9434 }
9435
9436 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
9437 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
9438 PyObject * _resultobj;
9439 wxDC * _arg0;
9440 int _arg1;
9441 PyObject * _argo0 = 0;
9442 char *_kwnames[] = { "self","mode", NULL };
9443
9444 self = self;
9445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
9446 return NULL;
9447 if (_argo0) {
9448 if (_argo0 == Py_None) { _arg0 = NULL; }
9449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
9451 return NULL;
9452 }
9453 }
9454 {
9455 PyThreadState* __tstate = wxPyBeginAllowThreads();
9456 wxDC_SetMapMode(_arg0,_arg1);
9457
9458 wxPyEndAllowThreads(__tstate);
9459 if (PyErr_Occurred()) return NULL;
9460 } Py_INCREF(Py_None);
9461 _resultobj = Py_None;
9462 return _resultobj;
9463 }
9464
9465 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
9466 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject * _resultobj;
9468 wxDC * _arg0;
9469 bool _arg1;
9470 PyObject * _argo0 = 0;
9471 int tempbool1;
9472 char *_kwnames[] = { "self","optimize", NULL };
9473
9474 self = self;
9475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
9476 return NULL;
9477 if (_argo0) {
9478 if (_argo0 == Py_None) { _arg0 = NULL; }
9479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
9481 return NULL;
9482 }
9483 }
9484 _arg1 = (bool ) tempbool1;
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 wxDC_SetOptimization(_arg0,_arg1);
9488
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) return NULL;
9491 } Py_INCREF(Py_None);
9492 _resultobj = Py_None;
9493 return _resultobj;
9494 }
9495
9496 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
9497 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
9498 PyObject * _resultobj;
9499 wxDC * _arg0;
9500 wxPen * _arg1;
9501 PyObject * _argo0 = 0;
9502 PyObject * _argo1 = 0;
9503 char *_kwnames[] = { "self","pen", NULL };
9504
9505 self = self;
9506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
9507 return NULL;
9508 if (_argo0) {
9509 if (_argo0 == Py_None) { _arg0 = NULL; }
9510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
9512 return NULL;
9513 }
9514 }
9515 if (_argo1) {
9516 if (_argo1 == Py_None) { _arg1 = NULL; }
9517 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
9518 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
9519 return NULL;
9520 }
9521 }
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 wxDC_SetPen(_arg0,*_arg1);
9525
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) return NULL;
9528 } Py_INCREF(Py_None);
9529 _resultobj = Py_None;
9530 return _resultobj;
9531 }
9532
9533 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
9534 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
9535 PyObject * _resultobj;
9536 wxDC * _arg0;
9537 wxColour * _arg1;
9538 PyObject * _argo0 = 0;
9539 wxColour temp;
9540 PyObject * _obj1 = 0;
9541 char *_kwnames[] = { "self","colour", NULL };
9542
9543 self = self;
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
9545 return NULL;
9546 if (_argo0) {
9547 if (_argo0 == Py_None) { _arg0 = NULL; }
9548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
9550 return NULL;
9551 }
9552 }
9553 {
9554 _arg1 = &temp;
9555 if (! wxColour_helper(_obj1, &_arg1))
9556 return NULL;
9557 }
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 wxDC_SetTextBackground(_arg0,*_arg1);
9561
9562 wxPyEndAllowThreads(__tstate);
9563 if (PyErr_Occurred()) return NULL;
9564 } Py_INCREF(Py_None);
9565 _resultobj = Py_None;
9566 return _resultobj;
9567 }
9568
9569 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9570 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
9571 PyObject * _resultobj;
9572 wxDC * _arg0;
9573 wxColour * _arg1;
9574 PyObject * _argo0 = 0;
9575 wxColour temp;
9576 PyObject * _obj1 = 0;
9577 char *_kwnames[] = { "self","colour", NULL };
9578
9579 self = self;
9580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
9581 return NULL;
9582 if (_argo0) {
9583 if (_argo0 == Py_None) { _arg0 = NULL; }
9584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9586 return NULL;
9587 }
9588 }
9589 {
9590 _arg1 = &temp;
9591 if (! wxColour_helper(_obj1, &_arg1))
9592 return NULL;
9593 }
9594 {
9595 PyThreadState* __tstate = wxPyBeginAllowThreads();
9596 wxDC_SetTextForeground(_arg0,*_arg1);
9597
9598 wxPyEndAllowThreads(__tstate);
9599 if (PyErr_Occurred()) return NULL;
9600 } Py_INCREF(Py_None);
9601 _resultobj = Py_None;
9602 return _resultobj;
9603 }
9604
9605 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9606 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
9607 PyObject * _resultobj;
9608 wxDC * _arg0;
9609 double _arg1;
9610 double _arg2;
9611 PyObject * _argo0 = 0;
9612 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
9613
9614 self = self;
9615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
9616 return NULL;
9617 if (_argo0) {
9618 if (_argo0 == Py_None) { _arg0 = NULL; }
9619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9621 return NULL;
9622 }
9623 }
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 wxDC_SetUserScale(_arg0,_arg1,_arg2);
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) return NULL;
9630 } Py_INCREF(Py_None);
9631 _resultobj = Py_None;
9632 return _resultobj;
9633 }
9634
9635 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9636 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject * _resultobj;
9638 bool _result;
9639 wxDC * _arg0;
9640 wxString * _arg1;
9641 PyObject * _argo0 = 0;
9642 PyObject * _obj1 = 0;
9643 char *_kwnames[] = { "self","message", NULL };
9644
9645 self = self;
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9647 return NULL;
9648 if (_argo0) {
9649 if (_argo0 == Py_None) { _arg0 = NULL; }
9650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9652 return NULL;
9653 }
9654 }
9655 {
9656 _arg1 = wxString_in_helper(_obj1);
9657 if (_arg1 == NULL)
9658 return NULL;
9659 }
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) return NULL;
9666 } _resultobj = Py_BuildValue("i",_result);
9667 {
9668 if (_obj1)
9669 delete _arg1;
9670 }
9671 return _resultobj;
9672 }
9673
9674 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9675 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9676 PyObject * _resultobj;
9677 wxDC * _arg0;
9678 PyObject * _argo0 = 0;
9679 char *_kwnames[] = { "self", NULL };
9680
9681 self = self;
9682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9683 return NULL;
9684 if (_argo0) {
9685 if (_argo0 == Py_None) { _arg0 = NULL; }
9686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9688 return NULL;
9689 }
9690 }
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 wxDC_StartPage(_arg0);
9694
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) return NULL;
9697 } Py_INCREF(Py_None);
9698 _resultobj = Py_None;
9699 return _resultobj;
9700 }
9701
9702 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9703 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9704 PyObject * _resultobj;
9705 wxDC * _arg0;
9706 wxBitmap * _arg1;
9707 long _arg2;
9708 long _arg3;
9709 int _arg4 = (int ) FALSE;
9710 PyObject * _argo0 = 0;
9711 PyObject * _argo1 = 0;
9712 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9713
9714 self = self;
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9716 return NULL;
9717 if (_argo0) {
9718 if (_argo0 == Py_None) { _arg0 = NULL; }
9719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9721 return NULL;
9722 }
9723 }
9724 if (_argo1) {
9725 if (_argo1 == Py_None) { _arg1 = NULL; }
9726 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9727 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9728 return NULL;
9729 }
9730 }
9731 {
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9734
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) return NULL;
9737 } Py_INCREF(Py_None);
9738 _resultobj = Py_None;
9739 return _resultobj;
9740 }
9741
9742 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9743 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9744 PyObject * _resultobj;
9745 bool _result;
9746 wxDC * _arg0;
9747 PyObject * _argo0 = 0;
9748 char *_kwnames[] = { "self", NULL };
9749
9750 self = self;
9751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9752 return NULL;
9753 if (_argo0) {
9754 if (_argo0 == Py_None) { _arg0 = NULL; }
9755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9757 return NULL;
9758 }
9759 }
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) return NULL;
9766 } _resultobj = Py_BuildValue("i",_result);
9767 return _resultobj;
9768 }
9769
9770 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9771 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject * _resultobj;
9773 bool _result;
9774 wxDC * _arg0;
9775 PyObject * _argo0 = 0;
9776 char *_kwnames[] = { "self", NULL };
9777
9778 self = self;
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9780 return NULL;
9781 if (_argo0) {
9782 if (_argo0 == Py_None) { _arg0 = NULL; }
9783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9785 return NULL;
9786 }
9787 }
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) return NULL;
9794 } _resultobj = Py_BuildValue("i",_result);
9795 return _resultobj;
9796 }
9797
9798 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9799 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9800 PyObject * _resultobj;
9801 int _result;
9802 wxDC * _arg0;
9803 PyObject * _argo0 = 0;
9804 char *_kwnames[] = { "self", NULL };
9805
9806 self = self;
9807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9808 return NULL;
9809 if (_argo0) {
9810 if (_argo0 == Py_None) { _arg0 = NULL; }
9811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9813 return NULL;
9814 }
9815 }
9816 {
9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
9818 _result = (int )wxDC_GetDepth(_arg0);
9819
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) return NULL;
9822 } _resultobj = Py_BuildValue("i",_result);
9823 return _resultobj;
9824 }
9825
9826 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9827 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject * _resultobj;
9829 wxSize * _result;
9830 wxDC * _arg0;
9831 PyObject * _argo0 = 0;
9832 char *_kwnames[] = { "self", NULL };
9833 char _ptemp[128];
9834
9835 self = self;
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9837 return NULL;
9838 if (_argo0) {
9839 if (_argo0 == Py_None) { _arg0 = NULL; }
9840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9842 return NULL;
9843 }
9844 }
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 _result = new wxSize (wxDC_GetPPI(_arg0));
9848
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) return NULL;
9851 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9852 _resultobj = Py_BuildValue("s",_ptemp);
9853 return _resultobj;
9854 }
9855
9856 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9857 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9858 PyObject * _resultobj;
9859 wxDC * _arg0;
9860 int * _arg1;
9861 int temp;
9862 int * _arg2;
9863 int temp0;
9864 PyObject * _argo0 = 0;
9865 char *_kwnames[] = { "self", NULL };
9866
9867 self = self;
9868 {
9869 _arg1 = &temp;
9870 }
9871 {
9872 _arg2 = &temp0;
9873 }
9874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9875 return NULL;
9876 if (_argo0) {
9877 if (_argo0 == Py_None) { _arg0 = NULL; }
9878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9880 return NULL;
9881 }
9882 }
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) return NULL;
9889 } Py_INCREF(Py_None);
9890 _resultobj = Py_None;
9891 {
9892 PyObject *o;
9893 o = PyInt_FromLong((long) (*_arg1));
9894 _resultobj = t_output_helper(_resultobj, o);
9895 }
9896 {
9897 PyObject *o;
9898 o = PyInt_FromLong((long) (*_arg2));
9899 _resultobj = t_output_helper(_resultobj, o);
9900 }
9901 return _resultobj;
9902 }
9903
9904 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9905 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9906 PyObject * _resultobj;
9907 wxDC * _arg0;
9908 int _arg1;
9909 int _arg2;
9910 PyObject * _argo0 = 0;
9911 char *_kwnames[] = { "self","x","y", NULL };
9912
9913 self = self;
9914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9915 return NULL;
9916 if (_argo0) {
9917 if (_argo0 == Py_None) { _arg0 = NULL; }
9918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9920 return NULL;
9921 }
9922 }
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9926
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) return NULL;
9929 } Py_INCREF(Py_None);
9930 _resultobj = Py_None;
9931 return _resultobj;
9932 }
9933
9934 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9935 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject * _resultobj;
9937 wxDC * _arg0;
9938 int * _arg1;
9939 int temp;
9940 int * _arg2;
9941 int temp0;
9942 PyObject * _argo0 = 0;
9943 char *_kwnames[] = { "self", NULL };
9944
9945 self = self;
9946 {
9947 _arg1 = &temp;
9948 }
9949 {
9950 _arg2 = &temp0;
9951 }
9952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9953 return NULL;
9954 if (_argo0) {
9955 if (_argo0 == Py_None) { _arg0 = NULL; }
9956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9958 return NULL;
9959 }
9960 }
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) return NULL;
9967 } Py_INCREF(Py_None);
9968 _resultobj = Py_None;
9969 {
9970 PyObject *o;
9971 o = PyInt_FromLong((long) (*_arg1));
9972 _resultobj = t_output_helper(_resultobj, o);
9973 }
9974 {
9975 PyObject *o;
9976 o = PyInt_FromLong((long) (*_arg2));
9977 _resultobj = t_output_helper(_resultobj, o);
9978 }
9979 return _resultobj;
9980 }
9981
9982 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9983 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9984 PyObject * _resultobj;
9985 wxDC * _arg0;
9986 bool _arg1;
9987 bool _arg2;
9988 PyObject * _argo0 = 0;
9989 int tempbool1;
9990 int tempbool2;
9991 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9992
9993 self = self;
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9995 return NULL;
9996 if (_argo0) {
9997 if (_argo0 == Py_None) { _arg0 = NULL; }
9998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
10000 return NULL;
10001 }
10002 }
10003 _arg1 = (bool ) tempbool1;
10004 _arg2 = (bool ) tempbool2;
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) return NULL;
10011 } Py_INCREF(Py_None);
10012 _resultobj = Py_None;
10013 return _resultobj;
10014 }
10015
10016 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
10017 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10018 PyObject * _resultobj;
10019 wxDC * _arg0;
10020 int _arg1;
10021 int _arg2;
10022 PyObject * _argo0 = 0;
10023 char *_kwnames[] = { "self","x","y", NULL };
10024
10025 self = self;
10026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
10027 return NULL;
10028 if (_argo0) {
10029 if (_argo0 == Py_None) { _arg0 = NULL; }
10030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
10032 return NULL;
10033 }
10034 }
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
10038
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) return NULL;
10041 } Py_INCREF(Py_None);
10042 _resultobj = Py_None;
10043 return _resultobj;
10044 }
10045
10046 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
10047 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10048 PyObject * _resultobj;
10049 wxDC * _arg0;
10050 PyObject * _argo0 = 0;
10051 char *_kwnames[] = { "self", NULL };
10052
10053 self = self;
10054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
10055 return NULL;
10056 if (_argo0) {
10057 if (_argo0 == Py_None) { _arg0 = NULL; }
10058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
10060 return NULL;
10061 }
10062 }
10063 {
10064 PyThreadState* __tstate = wxPyBeginAllowThreads();
10065 wxDC_ResetBoundingBox(_arg0);
10066
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) return NULL;
10069 } Py_INCREF(Py_None);
10070 _resultobj = Py_None;
10071 return _resultobj;
10072 }
10073
10074 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject * _resultobj;
10076 wxDC * _arg0;
10077 int * _arg1;
10078 int temp;
10079 int * _arg2;
10080 int temp0;
10081 int * _arg3;
10082 int temp1;
10083 int * _arg4;
10084 int temp2;
10085 PyObject * _argo0 = 0;
10086 char *_kwnames[] = { "self", NULL };
10087
10088 self = self;
10089 {
10090 _arg1 = &temp;
10091 }
10092 {
10093 _arg2 = &temp0;
10094 }
10095 {
10096 _arg3 = &temp1;
10097 }
10098 {
10099 _arg4 = &temp2;
10100 }
10101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
10102 return NULL;
10103 if (_argo0) {
10104 if (_argo0 == Py_None) { _arg0 = NULL; }
10105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
10107 return NULL;
10108 }
10109 }
10110 {
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
10113
10114 wxPyEndAllowThreads(__tstate);
10115 if (PyErr_Occurred()) return NULL;
10116 } Py_INCREF(Py_None);
10117 _resultobj = Py_None;
10118 {
10119 PyObject *o;
10120 o = PyInt_FromLong((long) (*_arg1));
10121 _resultobj = t_output_helper(_resultobj, o);
10122 }
10123 {
10124 PyObject *o;
10125 o = PyInt_FromLong((long) (*_arg2));
10126 _resultobj = t_output_helper(_resultobj, o);
10127 }
10128 {
10129 PyObject *o;
10130 o = PyInt_FromLong((long) (*_arg3));
10131 _resultobj = t_output_helper(_resultobj, o);
10132 }
10133 {
10134 PyObject *o;
10135 o = PyInt_FromLong((long) (*_arg4));
10136 _resultobj = t_output_helper(_resultobj, o);
10137 }
10138 return _resultobj;
10139 }
10140
10141 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
10142 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject * _resultobj;
10144 long _result;
10145 wxDC * _arg0;
10146 PyObject * _argo0 = 0;
10147 char *_kwnames[] = { "self", NULL };
10148
10149 self = self;
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
10151 return NULL;
10152 if (_argo0) {
10153 if (_argo0 == Py_None) { _arg0 = NULL; }
10154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
10156 return NULL;
10157 }
10158 }
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 _result = (long )wxDC_GetHDC(_arg0);
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) return NULL;
10165 } _resultobj = Py_BuildValue("l",_result);
10166 return _resultobj;
10167 }
10168
10169 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
10170 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
10171 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10172 int numObjs = 0;
10173 int numPens = 0;
10174 wxPen* pen;
10175 PyObject* obj;
10176 int x1, y1;
10177 int i = 0;
10178
10179 if (!PySequence_Check(pyPoints)) {
10180 goto err0;
10181 }
10182 if (!PySequence_Check(pyPens)) {
10183 goto err1;
10184 }
10185 numObjs = PySequence_Length(pyPoints);
10186 numPens = PySequence_Length(pyPens);
10187
10188 for (i = 0; i < numObjs; i++) {
10189 // Use a new pen?
10190 if (i < numPens) {
10191 if (isFastPens) {
10192 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10193 }
10194 else {
10195 obj = PySequence_GetItem(pyPens, i);
10196 }
10197 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10198 if (!isFastPens)
10199 Py_DECREF(obj);
10200 goto err1;
10201 }
10202
10203 self->SetPen(*pen);
10204 if (!isFastPens)
10205 Py_DECREF(obj);
10206 }
10207
10208 // Get the point coordinants
10209 if (isFastSeq) {
10210 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
10211 }
10212 else {
10213 obj = PySequence_GetItem(pyPoints, i);
10214 }
10215 if (! _2int_seq_helper(obj, &x1, &y1)) {
10216 if (!isFastPens)
10217 Py_DECREF(obj);
10218 goto err0;
10219 }
10220
10221 // Now draw the point
10222 self->DrawPoint(x1, y1);
10223
10224 if (!isFastSeq)
10225 Py_DECREF(obj);
10226 }
10227
10228 Py_INCREF(Py_None);
10229 return Py_None;
10230
10231 err1:
10232 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10233 return NULL;
10234 err0:
10235 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
10236 return NULL;
10237 }
10238 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject * _resultobj;
10240 PyObject * _result;
10241 wxDC * _arg0;
10242 PyObject * _arg1;
10243 PyObject * _arg2;
10244 PyObject * _argo0 = 0;
10245 PyObject * _obj1 = 0;
10246 PyObject * _obj2 = 0;
10247 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
10248
10249 self = self;
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
10251 return NULL;
10252 if (_argo0) {
10253 if (_argo0 == Py_None) { _arg0 = NULL; }
10254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
10256 return NULL;
10257 }
10258 }
10259 {
10260 _arg1 = _obj1;
10261 }
10262 {
10263 _arg2 = _obj2;
10264 }
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
10268
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) return NULL;
10271 }{
10272 _resultobj = _result;
10273 }
10274 return _resultobj;
10275 }
10276
10277 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
10278 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
10279 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
10280 int numObjs = 0;
10281 int numPens = 0;
10282 wxPen* pen;
10283 PyObject* obj;
10284 int x1, y1, x2, y2;
10285 int i = 0;
10286
10287 if (!PySequence_Check(pyLines)) {
10288 goto err0;
10289 }
10290 if (!PySequence_Check(pyPens)) {
10291 goto err1;
10292 }
10293 numObjs = PySequence_Length(pyLines);
10294 numPens = PySequence_Length(pyPens);
10295
10296 for (i = 0; i < numObjs; i++) {
10297 // Use a new pen?
10298 if (i < numPens) {
10299 if (isFastPens) {
10300 obj = PySequence_Fast_GET_ITEM(pyPens, i);
10301 }
10302 else {
10303 obj = PySequence_GetItem(pyPens, i);
10304 }
10305 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
10306 if (!isFastPens)
10307 Py_DECREF(obj);
10308 goto err1;
10309 }
10310
10311 self->SetPen(*pen);
10312 if (!isFastPens)
10313 Py_DECREF(obj);
10314 }
10315
10316 // Get the line coordinants
10317 if (isFastSeq) {
10318 obj = PySequence_Fast_GET_ITEM(pyLines, i);
10319 }
10320 else {
10321 obj = PySequence_GetItem(pyLines, i);
10322 }
10323 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
10324 if (!isFastPens)
10325 Py_DECREF(obj);
10326 goto err0;
10327 }
10328
10329 // Now draw the line
10330 self->DrawLine(x1, y1, x2, y2);
10331
10332 if (!isFastSeq)
10333 Py_DECREF(obj);
10334 }
10335
10336 Py_INCREF(Py_None);
10337 return Py_None;
10338
10339 err1:
10340 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
10341 return NULL;
10342 err0:
10343 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
10344 return NULL;
10345 }
10346 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
10347 PyObject * _resultobj;
10348 PyObject * _result;
10349 wxDC * _arg0;
10350 PyObject * _arg1;
10351 PyObject * _arg2;
10352 PyObject * _argo0 = 0;
10353 PyObject * _obj1 = 0;
10354 PyObject * _obj2 = 0;
10355 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
10356
10357 self = self;
10358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
10359 return NULL;
10360 if (_argo0) {
10361 if (_argo0 == Py_None) { _arg0 = NULL; }
10362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
10364 return NULL;
10365 }
10366 }
10367 {
10368 _arg1 = _obj1;
10369 }
10370 {
10371 _arg2 = _obj2;
10372 }
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
10376
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) return NULL;
10379 }{
10380 _resultobj = _result;
10381 }
10382 return _resultobj;
10383 }
10384
10385 static void *SwigwxMemoryDCTowxDC(void *ptr) {
10386 wxMemoryDC *src;
10387 wxDC *dest;
10388 src = (wxMemoryDC *) ptr;
10389 dest = (wxDC *) src;
10390 return (void *) dest;
10391 }
10392
10393 static void *SwigwxMemoryDCTowxObject(void *ptr) {
10394 wxMemoryDC *src;
10395 wxObject *dest;
10396 src = (wxMemoryDC *) ptr;
10397 dest = (wxObject *) src;
10398 return (void *) dest;
10399 }
10400
10401 #define new_wxMemoryDC() (new wxMemoryDC())
10402 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10403 PyObject * _resultobj;
10404 wxMemoryDC * _result;
10405 char *_kwnames[] = { NULL };
10406 char _ptemp[128];
10407
10408 self = self;
10409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
10410 return NULL;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 _result = (wxMemoryDC *)new_wxMemoryDC();
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) return NULL;
10417 } if (_result) {
10418 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
10419 _resultobj = Py_BuildValue("s",_ptemp);
10420 } else {
10421 Py_INCREF(Py_None);
10422 _resultobj = Py_None;
10423 }
10424 return _resultobj;
10425 }
10426
10427 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
10428 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject * _resultobj;
10430 wxMemoryDC * _arg0;
10431 wxBitmap * _arg1;
10432 PyObject * _argo0 = 0;
10433 PyObject * _argo1 = 0;
10434 char *_kwnames[] = { "self","bitmap", NULL };
10435
10436 self = self;
10437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
10438 return NULL;
10439 if (_argo0) {
10440 if (_argo0 == Py_None) { _arg0 = NULL; }
10441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
10442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
10443 return NULL;
10444 }
10445 }
10446 if (_argo1) {
10447 if (_argo1 == Py_None) { _arg1 = NULL; }
10448 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10449 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
10450 return NULL;
10451 }
10452 }
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 wxMemoryDC_SelectObject(_arg0,*_arg1);
10456
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) return NULL;
10459 } Py_INCREF(Py_None);
10460 _resultobj = Py_None;
10461 return _resultobj;
10462 }
10463
10464 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
10465 wxBufferedDC *src;
10466 wxMemoryDC *dest;
10467 src = (wxBufferedDC *) ptr;
10468 dest = (wxMemoryDC *) src;
10469 return (void *) dest;
10470 }
10471
10472 static void *SwigwxBufferedDCTowxDC(void *ptr) {
10473 wxBufferedDC *src;
10474 wxDC *dest;
10475 src = (wxBufferedDC *) ptr;
10476 dest = (wxDC *) src;
10477 return (void *) dest;
10478 }
10479
10480 static void *SwigwxBufferedDCTowxObject(void *ptr) {
10481 wxBufferedDC *src;
10482 wxObject *dest;
10483 src = (wxBufferedDC *) ptr;
10484 dest = (wxObject *) src;
10485 return (void *) dest;
10486 }
10487
10488 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
10489 static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject * _resultobj;
10491 wxBufferedDC * _result;
10492 wxDC * _arg0;
10493 wxBitmap * _arg1;
10494 PyObject * _argo0 = 0;
10495 PyObject * _argo1 = 0;
10496 char *_kwnames[] = { "dc","buffer", NULL };
10497 char _ptemp[128];
10498
10499 self = self;
10500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
10501 return NULL;
10502 if (_argo0) {
10503 if (_argo0 == Py_None) { _arg0 = NULL; }
10504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
10506 return NULL;
10507 }
10508 }
10509 if (_argo1) {
10510 if (_argo1 == Py_None) { _arg1 = NULL; }
10511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
10513 return NULL;
10514 }
10515 }
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) return NULL;
10522 } if (_result) {
10523 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
10524 _resultobj = Py_BuildValue("s",_ptemp);
10525 } else {
10526 Py_INCREF(Py_None);
10527 _resultobj = Py_None;
10528 }
10529 return _resultobj;
10530 }
10531
10532 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
10533 static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10534 PyObject * _resultobj;
10535 wxBufferedDC * _result;
10536 wxDC * _arg0;
10537 wxSize * _arg1;
10538 PyObject * _argo0 = 0;
10539 wxSize temp;
10540 PyObject * _obj1 = 0;
10541 char *_kwnames[] = { "dc","area", NULL };
10542 char _ptemp[128];
10543
10544 self = self;
10545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
10546 return NULL;
10547 if (_argo0) {
10548 if (_argo0 == Py_None) { _arg0 = NULL; }
10549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
10550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
10551 return NULL;
10552 }
10553 }
10554 {
10555 _arg1 = &temp;
10556 if (! wxSize_helper(_obj1, &_arg1))
10557 return NULL;
10558 }
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
10562
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) return NULL;
10565 } if (_result) {
10566 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
10567 _resultobj = Py_BuildValue("s",_ptemp);
10568 } else {
10569 Py_INCREF(Py_None);
10570 _resultobj = Py_None;
10571 }
10572 return _resultobj;
10573 }
10574
10575 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
10576 wxBufferedPaintDC *src;
10577 wxBufferedDC *dest;
10578 src = (wxBufferedPaintDC *) ptr;
10579 dest = (wxBufferedDC *) src;
10580 return (void *) dest;
10581 }
10582
10583 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
10584 wxBufferedPaintDC *src;
10585 wxMemoryDC *dest;
10586 src = (wxBufferedPaintDC *) ptr;
10587 dest = (wxMemoryDC *) src;
10588 return (void *) dest;
10589 }
10590
10591 static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
10592 wxBufferedPaintDC *src;
10593 wxDC *dest;
10594 src = (wxBufferedPaintDC *) ptr;
10595 dest = (wxDC *) src;
10596 return (void *) dest;
10597 }
10598
10599 static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
10600 wxBufferedPaintDC *src;
10601 wxObject *dest;
10602 src = (wxBufferedPaintDC *) ptr;
10603 dest = (wxObject *) src;
10604 return (void *) dest;
10605 }
10606
10607 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
10608 static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10609 PyObject * _resultobj;
10610 wxBufferedPaintDC * _result;
10611 wxWindow * _arg0;
10612 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
10613 PyObject * _argo0 = 0;
10614 PyObject * _argo1 = 0;
10615 char *_kwnames[] = { "window","buffer", NULL };
10616 char _ptemp[128];
10617
10618 self = self;
10619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
10620 return NULL;
10621 if (_argo0) {
10622 if (_argo0 == Py_None) { _arg0 = NULL; }
10623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
10625 return NULL;
10626 }
10627 }
10628 if (_argo1) {
10629 if (_argo1 == Py_None) { _arg1 = NULL; }
10630 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10631 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
10632 return NULL;
10633 }
10634 }
10635 {
10636 PyThreadState* __tstate = wxPyBeginAllowThreads();
10637 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
10638
10639 wxPyEndAllowThreads(__tstate);
10640 if (PyErr_Occurred()) return NULL;
10641 } if (_result) {
10642 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
10643 _resultobj = Py_BuildValue("s",_ptemp);
10644 } else {
10645 Py_INCREF(Py_None);
10646 _resultobj = Py_None;
10647 }
10648 return _resultobj;
10649 }
10650
10651 static void *SwigwxScreenDCTowxDC(void *ptr) {
10652 wxScreenDC *src;
10653 wxDC *dest;
10654 src = (wxScreenDC *) ptr;
10655 dest = (wxDC *) src;
10656 return (void *) dest;
10657 }
10658
10659 static void *SwigwxScreenDCTowxObject(void *ptr) {
10660 wxScreenDC *src;
10661 wxObject *dest;
10662 src = (wxScreenDC *) ptr;
10663 dest = (wxObject *) src;
10664 return (void *) dest;
10665 }
10666
10667 #define new_wxScreenDC() (new wxScreenDC())
10668 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject * _resultobj;
10670 wxScreenDC * _result;
10671 char *_kwnames[] = { NULL };
10672 char _ptemp[128];
10673
10674 self = self;
10675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
10676 return NULL;
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 _result = (wxScreenDC *)new_wxScreenDC();
10680
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) return NULL;
10683 } if (_result) {
10684 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
10685 _resultobj = Py_BuildValue("s",_ptemp);
10686 } else {
10687 Py_INCREF(Py_None);
10688 _resultobj = Py_None;
10689 }
10690 return _resultobj;
10691 }
10692
10693 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10694 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
10695 PyObject * _resultobj;
10696 bool _result;
10697 wxScreenDC * _arg0;
10698 wxWindow * _arg1;
10699 PyObject * _argo0 = 0;
10700 PyObject * _argo1 = 0;
10701 char *_kwnames[] = { "self","window", NULL };
10702
10703 self = self;
10704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
10705 return NULL;
10706 if (_argo0) {
10707 if (_argo0 == Py_None) { _arg0 = NULL; }
10708 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10709 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
10710 return NULL;
10711 }
10712 }
10713 if (_argo1) {
10714 if (_argo1 == Py_None) { _arg1 = NULL; }
10715 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10716 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
10717 return NULL;
10718 }
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
10723
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) return NULL;
10726 } _resultobj = Py_BuildValue("i",_result);
10727 return _resultobj;
10728 }
10729
10730 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
10731 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10732 PyObject * _resultobj;
10733 bool _result;
10734 wxScreenDC * _arg0;
10735 wxRect * _arg1 = (wxRect *) NULL;
10736 PyObject * _argo0 = 0;
10737 wxRect temp;
10738 PyObject * _obj1 = 0;
10739 char *_kwnames[] = { "self","rect", NULL };
10740
10741 self = self;
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
10743 return NULL;
10744 if (_argo0) {
10745 if (_argo0 == Py_None) { _arg0 = NULL; }
10746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
10748 return NULL;
10749 }
10750 }
10751 if (_obj1)
10752 {
10753 _arg1 = &temp;
10754 if (! wxRect_helper(_obj1, &_arg1))
10755 return NULL;
10756 }
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) return NULL;
10763 } _resultobj = Py_BuildValue("i",_result);
10764 return _resultobj;
10765 }
10766
10767 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10768 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10769 PyObject * _resultobj;
10770 bool _result;
10771 wxScreenDC * _arg0;
10772 PyObject * _argo0 = 0;
10773 char *_kwnames[] = { "self", NULL };
10774
10775 self = self;
10776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
10777 return NULL;
10778 if (_argo0) {
10779 if (_argo0 == Py_None) { _arg0 = NULL; }
10780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
10781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10782 return NULL;
10783 }
10784 }
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) return NULL;
10791 } _resultobj = Py_BuildValue("i",_result);
10792 return _resultobj;
10793 }
10794
10795 static void *SwigwxClientDCTowxDC(void *ptr) {
10796 wxClientDC *src;
10797 wxDC *dest;
10798 src = (wxClientDC *) ptr;
10799 dest = (wxDC *) src;
10800 return (void *) dest;
10801 }
10802
10803 static void *SwigwxClientDCTowxObject(void *ptr) {
10804 wxClientDC *src;
10805 wxObject *dest;
10806 src = (wxClientDC *) ptr;
10807 dest = (wxObject *) src;
10808 return (void *) dest;
10809 }
10810
10811 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10812 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10813 PyObject * _resultobj;
10814 wxClientDC * _result;
10815 wxWindow * _arg0;
10816 PyObject * _argo0 = 0;
10817 char *_kwnames[] = { "win", NULL };
10818 char _ptemp[128];
10819
10820 self = self;
10821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10822 return NULL;
10823 if (_argo0) {
10824 if (_argo0 == Py_None) { _arg0 = NULL; }
10825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10827 return NULL;
10828 }
10829 }
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 _result = (wxClientDC *)new_wxClientDC(_arg0);
10833
10834 wxPyEndAllowThreads(__tstate);
10835 if (PyErr_Occurred()) return NULL;
10836 } if (_result) {
10837 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10838 _resultobj = Py_BuildValue("s",_ptemp);
10839 } else {
10840 Py_INCREF(Py_None);
10841 _resultobj = Py_None;
10842 }
10843 return _resultobj;
10844 }
10845
10846 static void *SwigwxPaintDCTowxDC(void *ptr) {
10847 wxPaintDC *src;
10848 wxDC *dest;
10849 src = (wxPaintDC *) ptr;
10850 dest = (wxDC *) src;
10851 return (void *) dest;
10852 }
10853
10854 static void *SwigwxPaintDCTowxObject(void *ptr) {
10855 wxPaintDC *src;
10856 wxObject *dest;
10857 src = (wxPaintDC *) ptr;
10858 dest = (wxObject *) src;
10859 return (void *) dest;
10860 }
10861
10862 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10863 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10864 PyObject * _resultobj;
10865 wxPaintDC * _result;
10866 wxWindow * _arg0;
10867 PyObject * _argo0 = 0;
10868 char *_kwnames[] = { "win", NULL };
10869 char _ptemp[128];
10870
10871 self = self;
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10873 return NULL;
10874 if (_argo0) {
10875 if (_argo0 == Py_None) { _arg0 = NULL; }
10876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10878 return NULL;
10879 }
10880 }
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10884
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) return NULL;
10887 } if (_result) {
10888 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10889 _resultobj = Py_BuildValue("s",_ptemp);
10890 } else {
10891 Py_INCREF(Py_None);
10892 _resultobj = Py_None;
10893 }
10894 return _resultobj;
10895 }
10896
10897 static void *SwigwxWindowDCTowxDC(void *ptr) {
10898 wxWindowDC *src;
10899 wxDC *dest;
10900 src = (wxWindowDC *) ptr;
10901 dest = (wxDC *) src;
10902 return (void *) dest;
10903 }
10904
10905 static void *SwigwxWindowDCTowxObject(void *ptr) {
10906 wxWindowDC *src;
10907 wxObject *dest;
10908 src = (wxWindowDC *) ptr;
10909 dest = (wxObject *) src;
10910 return (void *) dest;
10911 }
10912
10913 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10914 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10915 PyObject * _resultobj;
10916 wxWindowDC * _result;
10917 wxWindow * _arg0;
10918 PyObject * _argo0 = 0;
10919 char *_kwnames[] = { "win", NULL };
10920 char _ptemp[128];
10921
10922 self = self;
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10924 return NULL;
10925 if (_argo0) {
10926 if (_argo0 == Py_None) { _arg0 = NULL; }
10927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10929 return NULL;
10930 }
10931 }
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10935
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) return NULL;
10938 } if (_result) {
10939 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10940 _resultobj = Py_BuildValue("s",_ptemp);
10941 } else {
10942 Py_INCREF(Py_None);
10943 _resultobj = Py_None;
10944 }
10945 return _resultobj;
10946 }
10947
10948 static void *SwigwxMetaFileTowxObject(void *ptr) {
10949 wxMetaFile *src;
10950 wxObject *dest;
10951 src = (wxMetaFile *) ptr;
10952 dest = (wxObject *) src;
10953 return (void *) dest;
10954 }
10955
10956 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10957 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10958 PyObject * _resultobj;
10959 wxMetaFile * _result;
10960 wxString * _arg0 = (wxString *) &wxPyEmptyString;
10961 PyObject * _obj0 = 0;
10962 char *_kwnames[] = { "filename", NULL };
10963 char _ptemp[128];
10964
10965 self = self;
10966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10967 return NULL;
10968 if (_obj0)
10969 {
10970 _arg0 = wxString_in_helper(_obj0);
10971 if (_arg0 == NULL)
10972 return NULL;
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) return NULL;
10980 } if (_result) {
10981 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10982 _resultobj = Py_BuildValue("s",_ptemp);
10983 } else {
10984 Py_INCREF(Py_None);
10985 _resultobj = Py_None;
10986 }
10987 {
10988 if (_obj0)
10989 delete _arg0;
10990 }
10991 return _resultobj;
10992 }
10993
10994 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10995 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10996 PyObject * _resultobj;
10997 wxMetaFile * _arg0;
10998 PyObject * _argo0 = 0;
10999 char *_kwnames[] = { "self", NULL };
11000
11001 self = self;
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
11003 return NULL;
11004 if (_argo0) {
11005 if (_argo0 == Py_None) { _arg0 = NULL; }
11006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
11008 return NULL;
11009 }
11010 }
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 delete_wxMetaFile(_arg0);
11014
11015 wxPyEndAllowThreads(__tstate);
11016 if (PyErr_Occurred()) return NULL;
11017 } Py_INCREF(Py_None);
11018 _resultobj = Py_None;
11019 return _resultobj;
11020 }
11021
11022 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
11023 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11024 PyObject * _resultobj;
11025 bool _result;
11026 wxMetaFile * _arg0;
11027 PyObject * _argo0 = 0;
11028 char *_kwnames[] = { "self", NULL };
11029
11030 self = self;
11031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
11032 return NULL;
11033 if (_argo0) {
11034 if (_argo0 == Py_None) { _arg0 = NULL; }
11035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
11037 return NULL;
11038 }
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 _result = (bool )wxMetaFile_Ok(_arg0);
11043
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) return NULL;
11046 } _resultobj = Py_BuildValue("i",_result);
11047 return _resultobj;
11048 }
11049
11050 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
11051 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
11052 PyObject * _resultobj;
11053 bool _result;
11054 wxMetaFile * _arg0;
11055 int _arg1 = (int ) 0;
11056 int _arg2 = (int ) 0;
11057 PyObject * _argo0 = 0;
11058 char *_kwnames[] = { "self","width","height", NULL };
11059
11060 self = self;
11061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
11062 return NULL;
11063 if (_argo0) {
11064 if (_argo0 == Py_None) { _arg0 = NULL; }
11065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
11067 return NULL;
11068 }
11069 }
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) return NULL;
11076 } _resultobj = Py_BuildValue("i",_result);
11077 return _resultobj;
11078 }
11079
11080 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
11081 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11082 PyObject * _resultobj;
11083 wxSize * _result;
11084 wxMetaFile * _arg0;
11085 PyObject * _argo0 = 0;
11086 char *_kwnames[] = { "self", NULL };
11087 char _ptemp[128];
11088
11089 self = self;
11090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
11091 return NULL;
11092 if (_argo0) {
11093 if (_argo0 == Py_None) { _arg0 = NULL; }
11094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
11096 return NULL;
11097 }
11098 }
11099 {
11100 PyThreadState* __tstate = wxPyBeginAllowThreads();
11101 _result = new wxSize (wxMetaFile_GetSize(_arg0));
11102
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) return NULL;
11105 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
11106 _resultobj = Py_BuildValue("s",_ptemp);
11107 return _resultobj;
11108 }
11109
11110 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
11111 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11112 PyObject * _resultobj;
11113 int _result;
11114 wxMetaFile * _arg0;
11115 PyObject * _argo0 = 0;
11116 char *_kwnames[] = { "self", NULL };
11117
11118 self = self;
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
11120 return NULL;
11121 if (_argo0) {
11122 if (_argo0 == Py_None) { _arg0 = NULL; }
11123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
11125 return NULL;
11126 }
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 _result = (int )wxMetaFile_GetWidth(_arg0);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) return NULL;
11134 } _resultobj = Py_BuildValue("i",_result);
11135 return _resultobj;
11136 }
11137
11138 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
11139 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11140 PyObject * _resultobj;
11141 int _result;
11142 wxMetaFile * _arg0;
11143 PyObject * _argo0 = 0;
11144 char *_kwnames[] = { "self", NULL };
11145
11146 self = self;
11147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
11148 return NULL;
11149 if (_argo0) {
11150 if (_argo0 == Py_None) { _arg0 = NULL; }
11151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
11153 return NULL;
11154 }
11155 }
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 _result = (int )wxMetaFile_GetHeight(_arg0);
11159
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) return NULL;
11162 } _resultobj = Py_BuildValue("i",_result);
11163 return _resultobj;
11164 }
11165
11166 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
11167 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
11168 PyObject * _resultobj;
11169 wxString * _result;
11170 wxMetaFile * _arg0;
11171 PyObject * _argo0 = 0;
11172 char *_kwnames[] = { "self", NULL };
11173
11174 self = self;
11175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
11176 return NULL;
11177 if (_argo0) {
11178 if (_argo0 == Py_None) { _arg0 = NULL; }
11179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
11180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
11181 return NULL;
11182 }
11183 }
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
11187 _result = (wxString *) &_result_ref;
11188
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) return NULL;
11191 }{
11192 #if wxUSE_UNICODE
11193 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
11194 #else
11195 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11196 #endif
11197 }
11198 return _resultobj;
11199 }
11200
11201 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
11202 wxMetaFileDC *src;
11203 wxDC *dest;
11204 src = (wxMetaFileDC *) ptr;
11205 dest = (wxDC *) src;
11206 return (void *) dest;
11207 }
11208
11209 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
11210 wxMetaFileDC *src;
11211 wxObject *dest;
11212 src = (wxMetaFileDC *) ptr;
11213 dest = (wxObject *) src;
11214 return (void *) dest;
11215 }
11216
11217 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11218 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
11219 PyObject * _resultobj;
11220 wxMetaFileDC * _result;
11221 wxString * _arg0 = (wxString *) &wxPyEmptyString;
11222 int _arg1 = (int ) 0;
11223 int _arg2 = (int ) 0;
11224 wxString * _arg3 = (wxString *) &wxPyEmptyString;
11225 PyObject * _obj0 = 0;
11226 PyObject * _obj3 = 0;
11227 char *_kwnames[] = { "filename","width","height","description", NULL };
11228 char _ptemp[128];
11229
11230 self = self;
11231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
11232 return NULL;
11233 if (_obj0)
11234 {
11235 _arg0 = wxString_in_helper(_obj0);
11236 if (_arg0 == NULL)
11237 return NULL;
11238 }
11239 if (_obj3)
11240 {
11241 _arg3 = wxString_in_helper(_obj3);
11242 if (_arg3 == NULL)
11243 return NULL;
11244 }
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
11248
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) return NULL;
11251 } if (_result) {
11252 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
11253 _resultobj = Py_BuildValue("s",_ptemp);
11254 } else {
11255 Py_INCREF(Py_None);
11256 _resultobj = Py_None;
11257 }
11258 {
11259 if (_obj0)
11260 delete _arg0;
11261 }
11262 {
11263 if (_obj3)
11264 delete _arg3;
11265 }
11266 return _resultobj;
11267 }
11268
11269 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
11270 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
11271 PyObject * _resultobj;
11272 wxMetaFile * _result;
11273 wxMetaFileDC * _arg0;
11274 PyObject * _argo0 = 0;
11275 char *_kwnames[] = { "self", NULL };
11276 char _ptemp[128];
11277
11278 self = self;
11279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
11280 return NULL;
11281 if (_argo0) {
11282 if (_argo0 == Py_None) { _arg0 = NULL; }
11283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
11284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
11285 return NULL;
11286 }
11287 }
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) return NULL;
11294 } if (_result) {
11295 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
11296 _resultobj = Py_BuildValue("s",_ptemp);
11297 } else {
11298 Py_INCREF(Py_None);
11299 _resultobj = Py_None;
11300 }
11301 return _resultobj;
11302 }
11303
11304 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
11305 wxPalette *src;
11306 wxGDIObject *dest;
11307 src = (wxPalette *) ptr;
11308 dest = (wxGDIObject *) src;
11309 return (void *) dest;
11310 }
11311
11312 static void *SwigwxPaletteTowxObject(void *ptr) {
11313 wxPalette *src;
11314 wxObject *dest;
11315 src = (wxPalette *) ptr;
11316 dest = (wxObject *) src;
11317 return (void *) dest;
11318 }
11319
11320 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11321 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11322 PyObject * _resultobj;
11323 wxPalette * _result;
11324 int _arg0;
11325 byte * _arg1;
11326 byte * _arg2;
11327 byte * _arg3;
11328 PyObject * _obj1 = 0;
11329 PyObject * _obj2 = 0;
11330 PyObject * _obj3 = 0;
11331 char *_kwnames[] = { "choices","choices","choices", NULL };
11332 char _ptemp[128];
11333
11334 self = self;
11335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
11336 return NULL;
11337 {
11338 _arg1 = byte_LIST_helper(_obj1);
11339 if (_arg1 == NULL) {
11340 return NULL;
11341 }
11342 }
11343 {
11344 _arg2 = byte_LIST_helper(_obj2);
11345 if (_arg2 == NULL) {
11346 return NULL;
11347 }
11348 }
11349 if (_obj3)
11350 {
11351 _arg3 = byte_LIST_helper(_obj3);
11352 if (_arg3 == NULL) {
11353 return NULL;
11354 }
11355 }
11356 {
11357 if (_obj1) {
11358 _arg0 = PyList_Size(_obj1);
11359 }
11360 else {
11361 _arg0 = 0;
11362 }
11363 }
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
11367
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) return NULL;
11370 } if (_result) {
11371 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
11372 _resultobj = Py_BuildValue("s",_ptemp);
11373 } else {
11374 Py_INCREF(Py_None);
11375 _resultobj = Py_None;
11376 }
11377 {
11378 delete [] _arg1;
11379 }
11380 {
11381 delete [] _arg2;
11382 }
11383 {
11384 delete [] _arg3;
11385 }
11386 return _resultobj;
11387 }
11388
11389 #define delete_wxPalette(_swigobj) (delete _swigobj)
11390 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject * _resultobj;
11392 wxPalette * _arg0;
11393 PyObject * _argo0 = 0;
11394 char *_kwnames[] = { "self", NULL };
11395
11396 self = self;
11397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
11398 return NULL;
11399 if (_argo0) {
11400 if (_argo0 == Py_None) { _arg0 = NULL; }
11401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
11403 return NULL;
11404 }
11405 }
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 delete_wxPalette(_arg0);
11409
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) return NULL;
11412 } Py_INCREF(Py_None);
11413 _resultobj = Py_None;
11414 return _resultobj;
11415 }
11416
11417 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
11418 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11419 PyObject * _resultobj;
11420 int _result;
11421 wxPalette * _arg0;
11422 byte _arg1;
11423 byte _arg2;
11424 byte _arg3;
11425 PyObject * _argo0 = 0;
11426 char *_kwnames[] = { "self","red","green","blue", NULL };
11427
11428 self = self;
11429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
11430 return NULL;
11431 if (_argo0) {
11432 if (_argo0 == Py_None) { _arg0 = NULL; }
11433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
11435 return NULL;
11436 }
11437 }
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) return NULL;
11444 } _resultobj = Py_BuildValue("i",_result);
11445 return _resultobj;
11446 }
11447
11448 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11449 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
11450 PyObject * _resultobj;
11451 bool _result;
11452 wxPalette * _arg0;
11453 int _arg1;
11454 byte * _arg2;
11455 int temp;
11456 byte * _arg3;
11457 int temp0;
11458 byte * _arg4;
11459 int temp1;
11460 PyObject * _argo0 = 0;
11461 char *_kwnames[] = { "self","pixel", NULL };
11462
11463 self = self;
11464 {
11465 _arg2 = (byte*)&temp;
11466 }
11467 {
11468 _arg3 = (byte*)&temp0;
11469 }
11470 {
11471 _arg4 = (byte*)&temp1;
11472 }
11473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
11474 return NULL;
11475 if (_argo0) {
11476 if (_argo0 == Py_None) { _arg0 = NULL; }
11477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
11479 return NULL;
11480 }
11481 }
11482 {
11483 PyThreadState* __tstate = wxPyBeginAllowThreads();
11484 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
11485
11486 wxPyEndAllowThreads(__tstate);
11487 if (PyErr_Occurred()) return NULL;
11488 } _resultobj = Py_BuildValue("i",_result);
11489 {
11490 PyObject *o;
11491 o = PyInt_FromLong((long) (*_arg2));
11492 _resultobj = t_output_helper(_resultobj, o);
11493 }
11494 {
11495 PyObject *o;
11496 o = PyInt_FromLong((long) (*_arg3));
11497 _resultobj = t_output_helper(_resultobj, o);
11498 }
11499 {
11500 PyObject *o;
11501 o = PyInt_FromLong((long) (*_arg4));
11502 _resultobj = t_output_helper(_resultobj, o);
11503 }
11504 return _resultobj;
11505 }
11506
11507 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
11508 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11509 PyObject * _resultobj;
11510 bool _result;
11511 wxPalette * _arg0;
11512 PyObject * _argo0 = 0;
11513 char *_kwnames[] = { "self", NULL };
11514
11515 self = self;
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
11517 return NULL;
11518 if (_argo0) {
11519 if (_argo0 == Py_None) { _arg0 = NULL; }
11520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
11521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
11522 return NULL;
11523 }
11524 }
11525 {
11526 PyThreadState* __tstate = wxPyBeginAllowThreads();
11527 _result = (bool )wxPalette_Ok(_arg0);
11528
11529 wxPyEndAllowThreads(__tstate);
11530 if (PyErr_Occurred()) return NULL;
11531 } _resultobj = Py_BuildValue("i",_result);
11532 return _resultobj;
11533 }
11534
11535 static void *SwigwxImageListTowxObject(void *ptr) {
11536 wxImageList *src;
11537 wxObject *dest;
11538 src = (wxImageList *) ptr;
11539 dest = (wxObject *) src;
11540 return (void *) dest;
11541 }
11542
11543 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11544 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11545 PyObject * _resultobj;
11546 wxImageList * _result;
11547 int _arg0;
11548 int _arg1;
11549 int _arg2 = (int ) TRUE;
11550 int _arg3 = (int ) 1;
11551 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
11552 char _ptemp[128];
11553
11554 self = self;
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11556 return NULL;
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
11560
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) return NULL;
11563 } if (_result) {
11564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
11565 _resultobj = Py_BuildValue("s",_ptemp);
11566 } else {
11567 Py_INCREF(Py_None);
11568 _resultobj = Py_None;
11569 }
11570 return _resultobj;
11571 }
11572
11573 #define delete_wxImageList(_swigobj) (delete _swigobj)
11574 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
11575 PyObject * _resultobj;
11576 wxImageList * _arg0;
11577 PyObject * _argo0 = 0;
11578 char *_kwnames[] = { "self", NULL };
11579
11580 self = self;
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
11582 return NULL;
11583 if (_argo0) {
11584 if (_argo0 == Py_None) { _arg0 = NULL; }
11585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
11587 return NULL;
11588 }
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 delete_wxImageList(_arg0);
11593
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) return NULL;
11596 } Py_INCREF(Py_None);
11597 _resultobj = Py_None;
11598 return _resultobj;
11599 }
11600
11601 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11602 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject * _resultobj;
11604 int _result;
11605 wxImageList * _arg0;
11606 wxBitmap * _arg1;
11607 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11608 PyObject * _argo0 = 0;
11609 PyObject * _argo1 = 0;
11610 PyObject * _argo2 = 0;
11611 char *_kwnames[] = { "self","bitmap","mask", NULL };
11612
11613 self = self;
11614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
11615 return NULL;
11616 if (_argo0) {
11617 if (_argo0 == Py_None) { _arg0 = NULL; }
11618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
11620 return NULL;
11621 }
11622 }
11623 if (_argo1) {
11624 if (_argo1 == Py_None) { _arg1 = NULL; }
11625 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11626 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
11627 return NULL;
11628 }
11629 }
11630 if (_argo2) {
11631 if (_argo2 == Py_None) { _arg2 = NULL; }
11632 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11633 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
11634 return NULL;
11635 }
11636 }
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
11640
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) return NULL;
11643 } _resultobj = Py_BuildValue("i",_result);
11644 return _resultobj;
11645 }
11646
11647 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
11648 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
11649 PyObject * _resultobj;
11650 int _result;
11651 wxImageList * _arg0;
11652 wxBitmap * _arg1;
11653 wxColour * _arg2;
11654 PyObject * _argo0 = 0;
11655 PyObject * _argo1 = 0;
11656 wxColour temp;
11657 PyObject * _obj2 = 0;
11658 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
11659
11660 self = self;
11661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
11662 return NULL;
11663 if (_argo0) {
11664 if (_argo0 == Py_None) { _arg0 = NULL; }
11665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
11667 return NULL;
11668 }
11669 }
11670 if (_argo1) {
11671 if (_argo1 == Py_None) { _arg1 = NULL; }
11672 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11673 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
11674 return NULL;
11675 }
11676 }
11677 {
11678 _arg2 = &temp;
11679 if (! wxColour_helper(_obj2, &_arg2))
11680 return NULL;
11681 }
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) return NULL;
11688 } _resultobj = Py_BuildValue("i",_result);
11689 return _resultobj;
11690 }
11691
11692 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
11693 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject * _resultobj;
11695 int _result;
11696 wxImageList * _arg0;
11697 wxIcon * _arg1;
11698 PyObject * _argo0 = 0;
11699 PyObject * _argo1 = 0;
11700 char *_kwnames[] = { "self","icon", NULL };
11701
11702 self = self;
11703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
11704 return NULL;
11705 if (_argo0) {
11706 if (_argo0 == Py_None) { _arg0 = NULL; }
11707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
11709 return NULL;
11710 }
11711 }
11712 if (_argo1) {
11713 if (_argo1 == Py_None) { _arg1 = NULL; }
11714 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
11715 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
11716 return NULL;
11717 }
11718 }
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
11722
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) return NULL;
11725 } _resultobj = Py_BuildValue("i",_result);
11726 return _resultobj;
11727 }
11728
11729 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
11730 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
11731 PyObject * _resultobj;
11732 bool _result;
11733 wxImageList * _arg0;
11734 int _arg1;
11735 wxBitmap * _arg2;
11736 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
11737 PyObject * _argo0 = 0;
11738 PyObject * _argo2 = 0;
11739 PyObject * _argo3 = 0;
11740 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
11741
11742 self = self;
11743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
11744 return NULL;
11745 if (_argo0) {
11746 if (_argo0 == Py_None) { _arg0 = NULL; }
11747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
11749 return NULL;
11750 }
11751 }
11752 if (_argo2) {
11753 if (_argo2 == Py_None) { _arg2 = NULL; }
11754 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11755 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
11756 return NULL;
11757 }
11758 }
11759 if (_argo3) {
11760 if (_argo3 == Py_None) { _arg3 = NULL; }
11761 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
11762 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
11763 return NULL;
11764 }
11765 }
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
11769
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) return NULL;
11772 } _resultobj = Py_BuildValue("i",_result);
11773 return _resultobj;
11774 }
11775
11776 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
11777 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
11778 PyObject * _resultobj;
11779 bool _result;
11780 wxImageList * _arg0;
11781 int _arg1;
11782 wxDC * _arg2;
11783 int _arg3;
11784 int _arg4;
11785 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11786 bool _arg6 = (bool ) FALSE;
11787 PyObject * _argo0 = 0;
11788 PyObject * _argo2 = 0;
11789 int tempbool6 = (int) FALSE;
11790 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11791
11792 self = self;
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11794 return NULL;
11795 if (_argo0) {
11796 if (_argo0 == Py_None) { _arg0 = NULL; }
11797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11799 return NULL;
11800 }
11801 }
11802 if (_argo2) {
11803 if (_argo2 == Py_None) { _arg2 = NULL; }
11804 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11805 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11806 return NULL;
11807 }
11808 }
11809 _arg6 = (bool ) tempbool6;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) return NULL;
11816 } _resultobj = Py_BuildValue("i",_result);
11817 return _resultobj;
11818 }
11819
11820 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11821 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11822 PyObject * _resultobj;
11823 int _result;
11824 wxImageList * _arg0;
11825 PyObject * _argo0 = 0;
11826 char *_kwnames[] = { "self", NULL };
11827
11828 self = self;
11829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11830 return NULL;
11831 if (_argo0) {
11832 if (_argo0 == Py_None) { _arg0 = NULL; }
11833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11835 return NULL;
11836 }
11837 }
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 _result = (int )wxImageList_GetImageCount(_arg0);
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) return NULL;
11844 } _resultobj = Py_BuildValue("i",_result);
11845 return _resultobj;
11846 }
11847
11848 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11849 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11850 PyObject * _resultobj;
11851 bool _result;
11852 wxImageList * _arg0;
11853 int _arg1;
11854 PyObject * _argo0 = 0;
11855 char *_kwnames[] = { "self","index", NULL };
11856
11857 self = self;
11858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11859 return NULL;
11860 if (_argo0) {
11861 if (_argo0 == Py_None) { _arg0 = NULL; }
11862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11864 return NULL;
11865 }
11866 }
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) return NULL;
11873 } _resultobj = Py_BuildValue("i",_result);
11874 return _resultobj;
11875 }
11876
11877 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11878 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11879 PyObject * _resultobj;
11880 bool _result;
11881 wxImageList * _arg0;
11882 PyObject * _argo0 = 0;
11883 char *_kwnames[] = { "self", NULL };
11884
11885 self = self;
11886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11887 return NULL;
11888 if (_argo0) {
11889 if (_argo0 == Py_None) { _arg0 = NULL; }
11890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11892 return NULL;
11893 }
11894 }
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 _result = (bool )wxImageList_RemoveAll(_arg0);
11898
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) return NULL;
11901 } _resultobj = Py_BuildValue("i",_result);
11902 return _resultobj;
11903 }
11904
11905 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11906 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject * _resultobj;
11908 wxImageList * _arg0;
11909 int _arg1;
11910 int * _arg2;
11911 int temp;
11912 int * _arg3;
11913 int temp0;
11914 PyObject * _argo0 = 0;
11915 char *_kwnames[] = { "self","index", NULL };
11916
11917 self = self;
11918 {
11919 _arg2 = &temp;
11920 }
11921 {
11922 _arg3 = &temp0;
11923 }
11924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11925 return NULL;
11926 if (_argo0) {
11927 if (_argo0 == Py_None) { _arg0 = NULL; }
11928 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11929 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11930 return NULL;
11931 }
11932 }
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
11936
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) return NULL;
11939 } Py_INCREF(Py_None);
11940 _resultobj = Py_None;
11941 {
11942 PyObject *o;
11943 o = PyInt_FromLong((long) (*_arg2));
11944 _resultobj = t_output_helper(_resultobj, o);
11945 }
11946 {
11947 PyObject *o;
11948 o = PyInt_FromLong((long) (*_arg3));
11949 _resultobj = t_output_helper(_resultobj, o);
11950 }
11951 return _resultobj;
11952 }
11953
11954 static void *SwigwxRegionTowxGDIObject(void *ptr) {
11955 wxRegion *src;
11956 wxGDIObject *dest;
11957 src = (wxRegion *) ptr;
11958 dest = (wxGDIObject *) src;
11959 return (void *) dest;
11960 }
11961
11962 static void *SwigwxRegionTowxObject(void *ptr) {
11963 wxRegion *src;
11964 wxObject *dest;
11965 src = (wxRegion *) ptr;
11966 dest = (wxObject *) src;
11967 return (void *) dest;
11968 }
11969
11970 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11971 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject * _resultobj;
11973 wxRegion * _result;
11974 long _arg0 = (long ) 0;
11975 long _arg1 = (long ) 0;
11976 long _arg2 = (long ) 0;
11977 long _arg3 = (long ) 0;
11978 char *_kwnames[] = { "x","y","width","height", NULL };
11979 char _ptemp[128];
11980
11981 self = self;
11982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11983 return NULL;
11984 {
11985 PyThreadState* __tstate = wxPyBeginAllowThreads();
11986 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
11987
11988 wxPyEndAllowThreads(__tstate);
11989 if (PyErr_Occurred()) return NULL;
11990 } if (_result) {
11991 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11992 _resultobj = Py_BuildValue("s",_ptemp);
11993 } else {
11994 Py_INCREF(Py_None);
11995 _resultobj = Py_None;
11996 }
11997 return _resultobj;
11998 }
11999
12000 #define delete_wxRegion(_swigobj) (delete _swigobj)
12001 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12002 PyObject * _resultobj;
12003 wxRegion * _arg0;
12004 PyObject * _argo0 = 0;
12005 char *_kwnames[] = { "self", NULL };
12006
12007 self = self;
12008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
12009 return NULL;
12010 if (_argo0) {
12011 if (_argo0 == Py_None) { _arg0 = NULL; }
12012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
12014 return NULL;
12015 }
12016 }
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 delete_wxRegion(_arg0);
12020
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) return NULL;
12023 } Py_INCREF(Py_None);
12024 _resultobj = Py_None;
12025 return _resultobj;
12026 }
12027
12028 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
12029 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12030 PyObject * _resultobj;
12031 wxRegion * _arg0;
12032 PyObject * _argo0 = 0;
12033 char *_kwnames[] = { "self", NULL };
12034
12035 self = self;
12036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
12037 return NULL;
12038 if (_argo0) {
12039 if (_argo0 == Py_None) { _arg0 = NULL; }
12040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
12042 return NULL;
12043 }
12044 }
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 wxRegion_Clear(_arg0);
12048
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) return NULL;
12051 } Py_INCREF(Py_None);
12052 _resultobj = Py_None;
12053 return _resultobj;
12054 }
12055
12056 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
12057 static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
12058 PyObject * _resultobj;
12059 bool _result;
12060 wxRegion * _arg0;
12061 wxCoord _arg1;
12062 wxCoord _arg2;
12063 PyObject * _argo0 = 0;
12064 char *_kwnames[] = { "self","x","y", NULL };
12065
12066 self = self;
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
12068 return NULL;
12069 if (_argo0) {
12070 if (_argo0 == Py_None) { _arg0 = NULL; }
12071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
12073 return NULL;
12074 }
12075 }
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
12079
12080 wxPyEndAllowThreads(__tstate);
12081 if (PyErr_Occurred()) return NULL;
12082 } _resultobj = Py_BuildValue("i",_result);
12083 return _resultobj;
12084 }
12085
12086 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
12087 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
12088 PyObject * _resultobj;
12089 wxRegionContain _result;
12090 wxRegion * _arg0;
12091 long _arg1;
12092 long _arg2;
12093 PyObject * _argo0 = 0;
12094 char *_kwnames[] = { "self","x","y", NULL };
12095
12096 self = self;
12097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
12098 return NULL;
12099 if (_argo0) {
12100 if (_argo0 == Py_None) { _arg0 = NULL; }
12101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
12103 return NULL;
12104 }
12105 }
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
12109
12110 wxPyEndAllowThreads(__tstate);
12111 if (PyErr_Occurred()) return NULL;
12112 } _resultobj = Py_BuildValue("i",_result);
12113 return _resultobj;
12114 }
12115
12116 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12117 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12118 PyObject * _resultobj;
12119 wxRegionContain _result;
12120 wxRegion * _arg0;
12121 wxPoint * _arg1;
12122 PyObject * _argo0 = 0;
12123 wxPoint temp;
12124 PyObject * _obj1 = 0;
12125 char *_kwnames[] = { "self","pt", NULL };
12126
12127 self = self;
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
12129 return NULL;
12130 if (_argo0) {
12131 if (_argo0 == Py_None) { _arg0 = NULL; }
12132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
12134 return NULL;
12135 }
12136 }
12137 {
12138 _arg1 = &temp;
12139 if (! wxPoint_helper(_obj1, &_arg1))
12140 return NULL;
12141 }
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
12145
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) return NULL;
12148 } _resultobj = Py_BuildValue("i",_result);
12149 return _resultobj;
12150 }
12151
12152 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
12153 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12154 PyObject * _resultobj;
12155 wxRegionContain _result;
12156 wxRegion * _arg0;
12157 wxRect * _arg1;
12158 PyObject * _argo0 = 0;
12159 wxRect temp;
12160 PyObject * _obj1 = 0;
12161 char *_kwnames[] = { "self","rect", NULL };
12162
12163 self = self;
12164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
12165 return NULL;
12166 if (_argo0) {
12167 if (_argo0 == Py_None) { _arg0 = NULL; }
12168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
12170 return NULL;
12171 }
12172 }
12173 {
12174 _arg1 = &temp;
12175 if (! wxRect_helper(_obj1, &_arg1))
12176 return NULL;
12177 }
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) return NULL;
12184 } _resultobj = Py_BuildValue("i",_result);
12185 return _resultobj;
12186 }
12187
12188 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12189 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
12190 PyObject * _resultobj;
12191 wxRegionContain _result;
12192 wxRegion * _arg0;
12193 long _arg1;
12194 long _arg2;
12195 long _arg3;
12196 long _arg4;
12197 PyObject * _argo0 = 0;
12198 char *_kwnames[] = { "self","x","y","w","h", NULL };
12199
12200 self = self;
12201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12202 return NULL;
12203 if (_argo0) {
12204 if (_argo0 == Py_None) { _arg0 = NULL; }
12205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
12207 return NULL;
12208 }
12209 }
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
12213
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) return NULL;
12216 } _resultobj = Py_BuildValue("i",_result);
12217 return _resultobj;
12218 }
12219
12220 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
12221 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12222 PyObject * _resultobj;
12223 wxRect * _result;
12224 wxRegion * _arg0;
12225 PyObject * _argo0 = 0;
12226 char *_kwnames[] = { "self", NULL };
12227 char _ptemp[128];
12228
12229 self = self;
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
12231 return NULL;
12232 if (_argo0) {
12233 if (_argo0 == Py_None) { _arg0 = NULL; }
12234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
12236 return NULL;
12237 }
12238 }
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 _result = new wxRect (wxRegion_GetBox(_arg0));
12242
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) return NULL;
12245 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12246 _resultobj = Py_BuildValue("s",_ptemp);
12247 return _resultobj;
12248 }
12249
12250 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12251 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
12252 PyObject * _resultobj;
12253 bool _result;
12254 wxRegion * _arg0;
12255 long _arg1;
12256 long _arg2;
12257 long _arg3;
12258 long _arg4;
12259 PyObject * _argo0 = 0;
12260 char *_kwnames[] = { "self","x","y","width","height", NULL };
12261
12262 self = self;
12263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12264 return NULL;
12265 if (_argo0) {
12266 if (_argo0 == Py_None) { _arg0 = NULL; }
12267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
12269 return NULL;
12270 }
12271 }
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) return NULL;
12278 } _resultobj = Py_BuildValue("i",_result);
12279 return _resultobj;
12280 }
12281
12282 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12283 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12284 PyObject * _resultobj;
12285 bool _result;
12286 wxRegion * _arg0;
12287 wxRect * _arg1;
12288 PyObject * _argo0 = 0;
12289 wxRect temp;
12290 PyObject * _obj1 = 0;
12291 char *_kwnames[] = { "self","rect", NULL };
12292
12293 self = self;
12294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
12295 return NULL;
12296 if (_argo0) {
12297 if (_argo0 == Py_None) { _arg0 = NULL; }
12298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
12300 return NULL;
12301 }
12302 }
12303 {
12304 _arg1 = &temp;
12305 if (! wxRect_helper(_obj1, &_arg1))
12306 return NULL;
12307 }
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
12311
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) return NULL;
12314 } _resultobj = Py_BuildValue("i",_result);
12315 return _resultobj;
12316 }
12317
12318 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
12319 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject * _resultobj;
12321 bool _result;
12322 wxRegion * _arg0;
12323 wxRegion * _arg1;
12324 PyObject * _argo0 = 0;
12325 PyObject * _argo1 = 0;
12326 char *_kwnames[] = { "self","region", NULL };
12327
12328 self = self;
12329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
12330 return NULL;
12331 if (_argo0) {
12332 if (_argo0 == Py_None) { _arg0 = NULL; }
12333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12335 return NULL;
12336 }
12337 }
12338 if (_argo1) {
12339 if (_argo1 == Py_None) { _arg1 = NULL; }
12340 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12341 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
12342 return NULL;
12343 }
12344 }
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) return NULL;
12351 } _resultobj = Py_BuildValue("i",_result);
12352 return _resultobj;
12353 }
12354
12355 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
12356 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
12357 PyObject * _resultobj;
12358 bool _result;
12359 wxRegion * _arg0;
12360 PyObject * _argo0 = 0;
12361 char *_kwnames[] = { "self", NULL };
12362
12363 self = self;
12364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
12365 return NULL;
12366 if (_argo0) {
12367 if (_argo0 == Py_None) { _arg0 = NULL; }
12368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
12370 return NULL;
12371 }
12372 }
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 _result = (bool )wxRegion_IsEmpty(_arg0);
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) return NULL;
12379 } _resultobj = Py_BuildValue("i",_result);
12380 return _resultobj;
12381 }
12382
12383 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12384 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
12385 PyObject * _resultobj;
12386 bool _result;
12387 wxRegion * _arg0;
12388 long _arg1;
12389 long _arg2;
12390 long _arg3;
12391 long _arg4;
12392 PyObject * _argo0 = 0;
12393 char *_kwnames[] = { "self","x","y","width","height", NULL };
12394
12395 self = self;
12396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12397 return NULL;
12398 if (_argo0) {
12399 if (_argo0 == Py_None) { _arg0 = NULL; }
12400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
12402 return NULL;
12403 }
12404 }
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
12408
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) return NULL;
12411 } _resultobj = Py_BuildValue("i",_result);
12412 return _resultobj;
12413 }
12414
12415 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12416 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12417 PyObject * _resultobj;
12418 bool _result;
12419 wxRegion * _arg0;
12420 wxRect * _arg1;
12421 PyObject * _argo0 = 0;
12422 wxRect temp;
12423 PyObject * _obj1 = 0;
12424 char *_kwnames[] = { "self","rect", NULL };
12425
12426 self = self;
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
12428 return NULL;
12429 if (_argo0) {
12430 if (_argo0 == Py_None) { _arg0 = NULL; }
12431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
12433 return NULL;
12434 }
12435 }
12436 {
12437 _arg1 = &temp;
12438 if (! wxRect_helper(_obj1, &_arg1))
12439 return NULL;
12440 }
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
12444
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) return NULL;
12447 } _resultobj = Py_BuildValue("i",_result);
12448 return _resultobj;
12449 }
12450
12451 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
12452 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12453 PyObject * _resultobj;
12454 bool _result;
12455 wxRegion * _arg0;
12456 wxRegion * _arg1;
12457 PyObject * _argo0 = 0;
12458 PyObject * _argo1 = 0;
12459 char *_kwnames[] = { "self","region", NULL };
12460
12461 self = self;
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
12463 return NULL;
12464 if (_argo0) {
12465 if (_argo0 == Py_None) { _arg0 = NULL; }
12466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12468 return NULL;
12469 }
12470 }
12471 if (_argo1) {
12472 if (_argo1 == Py_None) { _arg1 = NULL; }
12473 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12474 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
12475 return NULL;
12476 }
12477 }
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) return NULL;
12484 } _resultobj = Py_BuildValue("i",_result);
12485 return _resultobj;
12486 }
12487
12488 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12489 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
12490 PyObject * _resultobj;
12491 bool _result;
12492 wxRegion * _arg0;
12493 long _arg1;
12494 long _arg2;
12495 long _arg3;
12496 long _arg4;
12497 PyObject * _argo0 = 0;
12498 char *_kwnames[] = { "self","x","y","width","height", NULL };
12499
12500 self = self;
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12502 return NULL;
12503 if (_argo0) {
12504 if (_argo0 == Py_None) { _arg0 = NULL; }
12505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
12507 return NULL;
12508 }
12509 }
12510 {
12511 PyThreadState* __tstate = wxPyBeginAllowThreads();
12512 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
12513
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) return NULL;
12516 } _resultobj = Py_BuildValue("i",_result);
12517 return _resultobj;
12518 }
12519
12520 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12521 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12522 PyObject * _resultobj;
12523 bool _result;
12524 wxRegion * _arg0;
12525 wxRect * _arg1;
12526 PyObject * _argo0 = 0;
12527 wxRect temp;
12528 PyObject * _obj1 = 0;
12529 char *_kwnames[] = { "self","rect", NULL };
12530
12531 self = self;
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
12533 return NULL;
12534 if (_argo0) {
12535 if (_argo0 == Py_None) { _arg0 = NULL; }
12536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
12538 return NULL;
12539 }
12540 }
12541 {
12542 _arg1 = &temp;
12543 if (! wxRect_helper(_obj1, &_arg1))
12544 return NULL;
12545 }
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) return NULL;
12552 } _resultobj = Py_BuildValue("i",_result);
12553 return _resultobj;
12554 }
12555
12556 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
12557 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12558 PyObject * _resultobj;
12559 bool _result;
12560 wxRegion * _arg0;
12561 wxRegion * _arg1;
12562 PyObject * _argo0 = 0;
12563 PyObject * _argo1 = 0;
12564 char *_kwnames[] = { "self","region", NULL };
12565
12566 self = self;
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
12568 return NULL;
12569 if (_argo0) {
12570 if (_argo0 == Py_None) { _arg0 = NULL; }
12571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12573 return NULL;
12574 }
12575 }
12576 if (_argo1) {
12577 if (_argo1 == Py_None) { _arg1 = NULL; }
12578 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12579 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
12580 return NULL;
12581 }
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) return NULL;
12589 } _resultobj = Py_BuildValue("i",_result);
12590 return _resultobj;
12591 }
12592
12593 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
12594 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
12595 PyObject * _resultobj;
12596 bool _result;
12597 wxRegion * _arg0;
12598 long _arg1;
12599 long _arg2;
12600 long _arg3;
12601 long _arg4;
12602 PyObject * _argo0 = 0;
12603 char *_kwnames[] = { "self","x","y","width","height", NULL };
12604
12605 self = self;
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
12607 return NULL;
12608 if (_argo0) {
12609 if (_argo0 == Py_None) { _arg0 = NULL; }
12610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
12612 return NULL;
12613 }
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
12618
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) return NULL;
12621 } _resultobj = Py_BuildValue("i",_result);
12622 return _resultobj;
12623 }
12624
12625 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12626 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12627 PyObject * _resultobj;
12628 bool _result;
12629 wxRegion * _arg0;
12630 wxRect * _arg1;
12631 PyObject * _argo0 = 0;
12632 wxRect temp;
12633 PyObject * _obj1 = 0;
12634 char *_kwnames[] = { "self","rect", NULL };
12635
12636 self = self;
12637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
12638 return NULL;
12639 if (_argo0) {
12640 if (_argo0 == Py_None) { _arg0 = NULL; }
12641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
12643 return NULL;
12644 }
12645 }
12646 {
12647 _arg1 = &temp;
12648 if (! wxRect_helper(_obj1, &_arg1))
12649 return NULL;
12650 }
12651 {
12652 PyThreadState* __tstate = wxPyBeginAllowThreads();
12653 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
12654
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) return NULL;
12657 } _resultobj = Py_BuildValue("i",_result);
12658 return _resultobj;
12659 }
12660
12661 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
12662 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12663 PyObject * _resultobj;
12664 bool _result;
12665 wxRegion * _arg0;
12666 wxRegion * _arg1;
12667 PyObject * _argo0 = 0;
12668 PyObject * _argo1 = 0;
12669 char *_kwnames[] = { "self","region", NULL };
12670
12671 self = self;
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
12673 return NULL;
12674 if (_argo0) {
12675 if (_argo0 == Py_None) { _arg0 = NULL; }
12676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
12678 return NULL;
12679 }
12680 }
12681 if (_argo1) {
12682 if (_argo1 == Py_None) { _arg1 = NULL; }
12683 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
12684 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
12685 return NULL;
12686 }
12687 }
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) return NULL;
12694 } _resultobj = Py_BuildValue("i",_result);
12695 return _resultobj;
12696 }
12697
12698 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
12699 wxRegionIterator *src;
12700 wxObject *dest;
12701 src = (wxRegionIterator *) ptr;
12702 dest = (wxObject *) src;
12703 return (void *) dest;
12704 }
12705
12706 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
12707 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12708 PyObject * _resultobj;
12709 wxRegionIterator * _result;
12710 wxRegion * _arg0;
12711 PyObject * _argo0 = 0;
12712 char *_kwnames[] = { "region", NULL };
12713 char _ptemp[128];
12714
12715 self = self;
12716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
12717 return NULL;
12718 if (_argo0) {
12719 if (_argo0 == Py_None) { _arg0 = NULL; }
12720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
12721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
12722 return NULL;
12723 }
12724 }
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
12728
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) return NULL;
12731 } if (_result) {
12732 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
12733 _resultobj = Py_BuildValue("s",_ptemp);
12734 } else {
12735 Py_INCREF(Py_None);
12736 _resultobj = Py_None;
12737 }
12738 return _resultobj;
12739 }
12740
12741 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
12742 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
12743 PyObject * _resultobj;
12744 wxRegionIterator * _arg0;
12745 PyObject * _argo0 = 0;
12746 char *_kwnames[] = { "self", NULL };
12747
12748 self = self;
12749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
12750 return NULL;
12751 if (_argo0) {
12752 if (_argo0 == Py_None) { _arg0 = NULL; }
12753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
12755 return NULL;
12756 }
12757 }
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 delete_wxRegionIterator(_arg0);
12761
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) return NULL;
12764 } Py_INCREF(Py_None);
12765 _resultobj = Py_None;
12766 return _resultobj;
12767 }
12768
12769 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
12770 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
12771 PyObject * _resultobj;
12772 long _result;
12773 wxRegionIterator * _arg0;
12774 PyObject * _argo0 = 0;
12775 char *_kwnames[] = { "self", NULL };
12776
12777 self = self;
12778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
12779 return NULL;
12780 if (_argo0) {
12781 if (_argo0 == Py_None) { _arg0 = NULL; }
12782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
12784 return NULL;
12785 }
12786 }
12787 {
12788 PyThreadState* __tstate = wxPyBeginAllowThreads();
12789 _result = (long )wxRegionIterator_GetX(_arg0);
12790
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) return NULL;
12793 } _resultobj = Py_BuildValue("l",_result);
12794 return _resultobj;
12795 }
12796
12797 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
12798 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
12799 PyObject * _resultobj;
12800 long _result;
12801 wxRegionIterator * _arg0;
12802 PyObject * _argo0 = 0;
12803 char *_kwnames[] = { "self", NULL };
12804
12805 self = self;
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
12807 return NULL;
12808 if (_argo0) {
12809 if (_argo0 == Py_None) { _arg0 = NULL; }
12810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
12812 return NULL;
12813 }
12814 }
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 _result = (long )wxRegionIterator_GetY(_arg0);
12818
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) return NULL;
12821 } _resultobj = Py_BuildValue("l",_result);
12822 return _resultobj;
12823 }
12824
12825 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12826 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12827 PyObject * _resultobj;
12828 long _result;
12829 wxRegionIterator * _arg0;
12830 PyObject * _argo0 = 0;
12831 char *_kwnames[] = { "self", NULL };
12832
12833 self = self;
12834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12835 return NULL;
12836 if (_argo0) {
12837 if (_argo0 == Py_None) { _arg0 = NULL; }
12838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12840 return NULL;
12841 }
12842 }
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 _result = (long )wxRegionIterator_GetW(_arg0);
12846
12847 wxPyEndAllowThreads(__tstate);
12848 if (PyErr_Occurred()) return NULL;
12849 } _resultobj = Py_BuildValue("l",_result);
12850 return _resultobj;
12851 }
12852
12853 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12854 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12855 PyObject * _resultobj;
12856 long _result;
12857 wxRegionIterator * _arg0;
12858 PyObject * _argo0 = 0;
12859 char *_kwnames[] = { "self", NULL };
12860
12861 self = self;
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12863 return NULL;
12864 if (_argo0) {
12865 if (_argo0 == Py_None) { _arg0 = NULL; }
12866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12868 return NULL;
12869 }
12870 }
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
12873 _result = (long )wxRegionIterator_GetWidth(_arg0);
12874
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) return NULL;
12877 } _resultobj = Py_BuildValue("l",_result);
12878 return _resultobj;
12879 }
12880
12881 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12882 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12883 PyObject * _resultobj;
12884 long _result;
12885 wxRegionIterator * _arg0;
12886 PyObject * _argo0 = 0;
12887 char *_kwnames[] = { "self", NULL };
12888
12889 self = self;
12890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12891 return NULL;
12892 if (_argo0) {
12893 if (_argo0 == Py_None) { _arg0 = NULL; }
12894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12896 return NULL;
12897 }
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 _result = (long )wxRegionIterator_GetH(_arg0);
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) return NULL;
12905 } _resultobj = Py_BuildValue("l",_result);
12906 return _resultobj;
12907 }
12908
12909 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12910 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12911 PyObject * _resultobj;
12912 long _result;
12913 wxRegionIterator * _arg0;
12914 PyObject * _argo0 = 0;
12915 char *_kwnames[] = { "self", NULL };
12916
12917 self = self;
12918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12919 return NULL;
12920 if (_argo0) {
12921 if (_argo0 == Py_None) { _arg0 = NULL; }
12922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12924 return NULL;
12925 }
12926 }
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 _result = (long )wxRegionIterator_GetHeight(_arg0);
12930
12931 wxPyEndAllowThreads(__tstate);
12932 if (PyErr_Occurred()) return NULL;
12933 } _resultobj = Py_BuildValue("l",_result);
12934 return _resultobj;
12935 }
12936
12937 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12938 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12939 PyObject * _resultobj;
12940 wxRect * _result;
12941 wxRegionIterator * _arg0;
12942 PyObject * _argo0 = 0;
12943 char *_kwnames[] = { "self", NULL };
12944 char _ptemp[128];
12945
12946 self = self;
12947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12948 return NULL;
12949 if (_argo0) {
12950 if (_argo0 == Py_None) { _arg0 = NULL; }
12951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12953 return NULL;
12954 }
12955 }
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12959
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) return NULL;
12962 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12963 _resultobj = Py_BuildValue("s",_ptemp);
12964 return _resultobj;
12965 }
12966
12967 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12968 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12969 PyObject * _resultobj;
12970 bool _result;
12971 wxRegionIterator * _arg0;
12972 PyObject * _argo0 = 0;
12973 char *_kwnames[] = { "self", NULL };
12974
12975 self = self;
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12977 return NULL;
12978 if (_argo0) {
12979 if (_argo0 == Py_None) { _arg0 = NULL; }
12980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12982 return NULL;
12983 }
12984 }
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12988
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) return NULL;
12991 } _resultobj = Py_BuildValue("i",_result);
12992 return _resultobj;
12993 }
12994
12995 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12996 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12997 PyObject * _resultobj;
12998 wxRegionIterator * _arg0;
12999 PyObject * _argo0 = 0;
13000 char *_kwnames[] = { "self", NULL };
13001
13002 self = self;
13003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
13004 return NULL;
13005 if (_argo0) {
13006 if (_argo0 == Py_None) { _arg0 = NULL; }
13007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
13009 return NULL;
13010 }
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 wxRegionIterator_Reset(_arg0);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) return NULL;
13018 } Py_INCREF(Py_None);
13019 _resultobj = Py_None;
13020 return _resultobj;
13021 }
13022
13023 static void wxRegionIterator_Next(wxRegionIterator *self) {
13024 (*self) ++;
13025 }
13026 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject * _resultobj;
13028 wxRegionIterator * _arg0;
13029 PyObject * _argo0 = 0;
13030 char *_kwnames[] = { "self", NULL };
13031
13032 self = self;
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
13034 return NULL;
13035 if (_argo0) {
13036 if (_argo0 == Py_None) { _arg0 = NULL; }
13037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
13038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
13039 return NULL;
13040 }
13041 }
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 wxRegionIterator_Next(_arg0);
13045
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) return NULL;
13048 } Py_INCREF(Py_None);
13049 _resultobj = Py_None;
13050 return _resultobj;
13051 }
13052
13053 static PyMethodDef gdicMethods[] = {
13054 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
13055 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
13056 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
13057 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
13058 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
13059 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
13060 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
13061 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
13062 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
13063 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
13064 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13065 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
13066 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
13067 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
13068 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
13069 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
13070 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
13071 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
13072 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
13073 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
13074 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
13075 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
13076 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
13077 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
13078 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
13079 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
13080 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
13081 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
13082 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
13083 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
13084 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
13085 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
13086 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
13087 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
13088 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
13089 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
13090 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
13091 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
13092 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
13093 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
13094 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
13095 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
13096 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
13097 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
13098 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
13099 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
13100 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
13101 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
13102 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
13103 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
13104 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
13105 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
13106 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
13107 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
13108 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
13109 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
13110 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
13111 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
13112 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13113 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
13114 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
13115 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
13116 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
13117 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13118 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
13119 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
13120 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
13121 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
13122 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
13123 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
13124 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
13125 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
13126 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
13127 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
13128 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
13129 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13130 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
13131 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
13132 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
13133 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13134 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13135 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
13136 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
13137 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
13138 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
13139 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
13140 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
13141 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
13142 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
13143 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
13144 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
13145 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
13146 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
13147 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
13148 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
13149 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13150 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13151 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
13152 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
13153 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
13154 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
13155 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
13156 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
13157 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
13158 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
13159 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
13160 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
13161 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
13162 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
13163 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
13164 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
13165 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
13166 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
13167 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
13168 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
13169 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
13170 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
13171 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
13172 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
13173 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
13174 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
13175 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
13176 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
13177 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
13178 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
13179 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
13180 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
13181 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
13182 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
13183 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
13184 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
13185 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
13186 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
13187 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
13188 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
13189 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
13190 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
13191 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
13192 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
13193 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
13194 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
13195 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
13196 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
13197 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
13198 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
13199 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
13200 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
13201 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
13202 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
13203 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
13204 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
13205 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
13206 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
13207 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
13208 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
13209 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
13210 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
13211 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
13212 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
13213 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
13214 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
13215 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
13216 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
13217 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
13218 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
13219 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
13220 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
13221 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
13222 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
13223 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
13224 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
13225 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
13226 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
13227 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
13228 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
13229 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
13230 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
13231 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
13232 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
13233 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
13234 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
13235 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13236 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13237 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
13238 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
13239 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
13240 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
13241 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
13242 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
13243 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
13244 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
13245 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
13246 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
13247 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
13248 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
13249 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
13250 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
13251 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
13252 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
13253 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
13254 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
13255 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
13256 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
13257 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
13258 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
13259 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
13260 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
13261 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
13262 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
13263 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
13264 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
13265 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
13266 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
13267 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
13268 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
13269 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13270 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
13271 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
13272 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
13273 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
13274 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13275 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13276 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13277 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13278 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13279 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
13280 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
13281 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
13282 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13283 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
13284 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
13285 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13286 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
13287 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13288 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13289 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13290 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
13291 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
13292 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
13293 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13294 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
13295 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
13296 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
13297 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
13298 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
13299 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
13300 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
13301 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
13302 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
13303 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
13304 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
13305 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
13306 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
13307 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
13308 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13309 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
13310 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
13311 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
13312 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
13313 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
13314 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
13315 { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
13316 { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
13317 { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
13318 { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
13319 { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
13320 { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
13321 { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
13322 { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
13323 { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
13324 { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
13325 { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
13326 { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
13327 { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
13328 { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
13329 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
13330 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
13331 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
13332 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
13333 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
13334 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
13335 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
13336 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
13337 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
13338 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
13339 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
13340 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
13341 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
13342 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
13343 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
13344 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
13345 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
13346 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
13347 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
13348 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
13349 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
13350 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
13351 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
13352 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
13353 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
13354 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
13355 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
13356 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
13357 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
13358 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
13359 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
13360 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
13361 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
13362 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
13363 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
13364 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
13365 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
13366 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
13367 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
13368 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
13369 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
13370 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
13371 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
13372 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
13373 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
13374 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
13375 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
13376 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
13377 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
13378 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
13379 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
13380 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13381 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
13382 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
13383 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
13384 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
13385 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13386 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
13387 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
13388 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
13389 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
13390 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
13391 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
13392 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
13393 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
13394 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
13395 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
13396 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
13397 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
13398 { NULL, NULL }
13399 };
13400 #ifdef __cplusplus
13401 }
13402 #endif
13403 /*
13404 * This table is used by the pointer type-checker
13405 */
13406 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
13407 { "_signed_long","_long",0},
13408 { "_wxPrintQuality","_wxCoord",0},
13409 { "_wxPrintQuality","_int",0},
13410 { "_wxPrintQuality","_signed_int",0},
13411 { "_wxPrintQuality","_unsigned_int",0},
13412 { "_wxPrintQuality","_wxWindowID",0},
13413 { "_wxPrintQuality","_uint",0},
13414 { "_wxPrintQuality","_EBool",0},
13415 { "_wxPrintQuality","_size_t",0},
13416 { "_wxPrintQuality","_time_t",0},
13417 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
13418 { "_byte","_unsigned_char",0},
13419 { "_long","_unsigned_long",0},
13420 { "_long","_signed_long",0},
13421 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
13422 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
13423 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
13424 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
13425 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
13426 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
13427 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
13428 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
13429 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
13430 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
13431 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
13432 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
13433 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
13434 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
13435 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
13436 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
13437 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
13438 { "_size_t","_wxCoord",0},
13439 { "_size_t","_wxPrintQuality",0},
13440 { "_size_t","_time_t",0},
13441 { "_size_t","_unsigned_int",0},
13442 { "_size_t","_int",0},
13443 { "_size_t","_wxWindowID",0},
13444 { "_size_t","_uint",0},
13445 { "_uint","_wxCoord",0},
13446 { "_uint","_wxPrintQuality",0},
13447 { "_uint","_time_t",0},
13448 { "_uint","_size_t",0},
13449 { "_uint","_unsigned_int",0},
13450 { "_uint","_int",0},
13451 { "_uint","_wxWindowID",0},
13452 { "_wxChar","_char",0},
13453 { "_char","_wxChar",0},
13454 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
13455 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
13456 { "_EBool","_wxCoord",0},
13457 { "_EBool","_wxPrintQuality",0},
13458 { "_EBool","_signed_int",0},
13459 { "_EBool","_int",0},
13460 { "_EBool","_wxWindowID",0},
13461 { "_unsigned_long","_long",0},
13462 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
13463 { "_signed_int","_wxCoord",0},
13464 { "_signed_int","_wxPrintQuality",0},
13465 { "_signed_int","_EBool",0},
13466 { "_signed_int","_wxWindowID",0},
13467 { "_signed_int","_int",0},
13468 { "_WXTYPE","_short",0},
13469 { "_WXTYPE","_signed_short",0},
13470 { "_WXTYPE","_unsigned_short",0},
13471 { "_unsigned_short","_WXTYPE",0},
13472 { "_unsigned_short","_short",0},
13473 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
13474 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
13475 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
13476 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
13477 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
13478 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
13479 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
13480 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
13481 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
13482 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
13483 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
13484 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
13485 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
13486 { "_wxObject","_wxDC",SwigwxDCTowxObject},
13487 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
13488 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
13489 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
13490 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
13491 { "_wxObject","_wxPen",SwigwxPenTowxObject},
13492 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
13493 { "_wxObject","_wxColour",SwigwxColourTowxObject},
13494 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
13495 { "_wxObject","_wxFont",SwigwxFontTowxObject},
13496 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
13497 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
13498 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
13499 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
13500 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
13501 { "_signed_short","_WXTYPE",0},
13502 { "_signed_short","_short",0},
13503 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
13504 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
13505 { "_unsigned_char","_byte",0},
13506 { "_unsigned_int","_wxCoord",0},
13507 { "_unsigned_int","_wxPrintQuality",0},
13508 { "_unsigned_int","_time_t",0},
13509 { "_unsigned_int","_size_t",0},
13510 { "_unsigned_int","_uint",0},
13511 { "_unsigned_int","_wxWindowID",0},
13512 { "_unsigned_int","_int",0},
13513 { "_short","_WXTYPE",0},
13514 { "_short","_unsigned_short",0},
13515 { "_short","_signed_short",0},
13516 { "_wxWindowID","_wxCoord",0},
13517 { "_wxWindowID","_wxPrintQuality",0},
13518 { "_wxWindowID","_time_t",0},
13519 { "_wxWindowID","_size_t",0},
13520 { "_wxWindowID","_EBool",0},
13521 { "_wxWindowID","_uint",0},
13522 { "_wxWindowID","_int",0},
13523 { "_wxWindowID","_signed_int",0},
13524 { "_wxWindowID","_unsigned_int",0},
13525 { "_int","_wxCoord",0},
13526 { "_int","_wxPrintQuality",0},
13527 { "_int","_time_t",0},
13528 { "_int","_size_t",0},
13529 { "_int","_EBool",0},
13530 { "_int","_uint",0},
13531 { "_int","_wxWindowID",0},
13532 { "_int","_unsigned_int",0},
13533 { "_int","_signed_int",0},
13534 { "_time_t","_wxCoord",0},
13535 { "_time_t","_wxPrintQuality",0},
13536 { "_time_t","_unsigned_int",0},
13537 { "_time_t","_int",0},
13538 { "_time_t","_wxWindowID",0},
13539 { "_time_t","_uint",0},
13540 { "_time_t","_size_t",0},
13541 { "_wxCoord","_int",0},
13542 { "_wxCoord","_signed_int",0},
13543 { "_wxCoord","_unsigned_int",0},
13544 { "_wxCoord","_wxWindowID",0},
13545 { "_wxCoord","_uint",0},
13546 { "_wxCoord","_EBool",0},
13547 { "_wxCoord","_size_t",0},
13548 { "_wxCoord","_time_t",0},
13549 { "_wxCoord","_wxPrintQuality",0},
13550 {0,0,0}};
13551
13552 static PyObject *SWIG_globals;
13553 #ifdef __cplusplus
13554 extern "C"
13555 #endif
13556 SWIGEXPORT(void) initgdic() {
13557 PyObject *m, *d;
13558 SWIG_globals = SWIG_newvarlink();
13559 m = Py_InitModule("gdic", gdicMethods);
13560 d = PyModule_GetDict(m);
13561 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
13562 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
13563 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
13564 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
13565 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
13566 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
13567 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
13568 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
13569 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
13570 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
13571 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
13572 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
13573 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
13574 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
13575 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
13576 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
13577 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
13578 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
13579 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
13580 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
13581 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
13582 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
13583 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
13584 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
13585 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
13586 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
13587 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
13588 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
13589 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
13590 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
13591 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
13592 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
13593 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
13594 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
13595 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
13596 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
13597 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
13598 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
13599 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
13600 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
13601 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
13602 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
13603 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
13604 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
13605 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
13606 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
13607 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
13608 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
13609 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
13610 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
13611 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
13612 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
13613 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
13614 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
13615 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
13616 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
13617 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
13618 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
13619 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
13620 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
13621 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
13622 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
13623 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
13624 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
13625 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
13626 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
13627 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
13628 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
13629 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
13630 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
13631 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
13632 PyDict_SetItemString(d,"cvar", SWIG_globals);
13633 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
13634 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
13635 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
13636 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
13637 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
13638 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
13639 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
13640 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
13641 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
13642 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
13643 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
13644 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
13645 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
13646 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
13647 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
13648 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
13649 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
13650 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
13651 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
13652 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
13653 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
13654 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
13655 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
13656 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
13657 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
13658 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
13659 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
13660 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
13661 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
13662 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
13663 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
13664 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
13665 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
13666 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
13667 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
13668 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
13669 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
13670 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
13671 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
13672 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
13673 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
13674 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
13675 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
13676 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
13677 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
13678 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
13679 {
13680 int i;
13681 for (i = 0; _swig_mapping[i].n1; i++)
13682 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13683 }
13684 }