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