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