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